Question: Construct a 4-1 MUX using three 2-1 MUX, the circuit is given below. The interface of 2-1 MUX module is given below. //----------------------------------------------------- // File
Construct a 4-1 MUX using three 2-1 MUX, the circuit is given below. The interface of 2-1 MUX module is given below.
//----------------------------------------------------- // File Name : mux_2to1.v // Function : 2:1 Mux using Assign //----------------------------------------------------- module mux_2to1( input wire din_0, input wire din_1, input wire S, input wire E, output wire out);
Describe the 4-1 MUX constructed in Verilog. Note the interface of module mux_4to1 is given. Finish it up with the connection in Verilog.
//----------------------------------------------------- // File Name : mux_4to1.v // Function : 2:1 Mux using Assign // Coder : // Interface: four input lines, two select lines Enable input E, output y module mux_4to1( input wire [3:0]I, input wire [1:0]S, input wire E, output wire y); //put internal wires here //create instances of mux_2to1 for connections endmodule //End Of Module mux_4to12-1 S E 2-1 0 MUX 2-1 S E So E 2-1 S E 2-1 0 MUX 2-1 S E So E
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
