How to implement this MUX? (Verilog)

Thread Starter

jegues

Joined Sep 13, 2010
733
Hello all,

I'm trying to figure out how I'm going to implement this MUX in verilog. (See figure)

How do I implement a MUX that has 8 inputs and 8 outputs?

See the other figure attached for my verilog code up to now.

The one portion of my code that I'm unsure about is the case statement. Does evaluate the binary value of S? If not, how can I code it so I can make the connections of each set of inputs to each set of outputs?

I have to write the rest of the verilog code to implement this whole schematic so I'm a little confused on how to start the main module as well.

Any help?

EDIT: I've attached my attempt at the "main" module for this circuit as well.
 

Attachments

Last edited:

narasimhan

Joined Dec 3, 2009
72
if you are using Xilinx then when you check the syntax it will return errors if any.
Anyway I think the case should look like
2'd 0:
2'd 1:
2'd 2:
2'd 3:
 
Top