Initial commit
This commit is contained in:
28
Exp1-2-2/Exp1-2-2.srcs/sources_1/new/mux41.v
Normal file
28
Exp1-2-2/Exp1-2-2.srcs/sources_1/new/mux41.v
Normal file
@@ -0,0 +1,28 @@
|
||||
`timescale 1ns / 1ps
|
||||
//////////////////////////////////////////////////////////////////////////////////
|
||||
// Company:
|
||||
// Engineer:
|
||||
//
|
||||
// Create Date: 2024/09/24 15:50:25
|
||||
// Design Name:
|
||||
// Module Name: mux41
|
||||
// Project Name:
|
||||
// Target Devices:
|
||||
// Tool Versions:
|
||||
// Description:
|
||||
//
|
||||
// Dependencies:
|
||||
//
|
||||
// Revision:
|
||||
// Revision 0.01 - File Created
|
||||
// Additional Comments:
|
||||
//
|
||||
//////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
module mux41(input [3:0] I, input [1:0] S, output Y );
|
||||
wire m,n;
|
||||
mux21 M1(.a(I[0]) , .b(I[1]) , .c(S[0]) , .y(m) );
|
||||
mux21 M2(.a(I[2]) , .b(I[3]) , .c(S[0]) , .y(n) );
|
||||
mux21 M3(.a(m) , .b(n) , .c(S[1]) , .y(Y) );
|
||||
endmodule
|
||||
Reference in New Issue
Block a user