# Conflicts:
#	lab2CA.cache/wt/webtalk_pa.xml
#	lab2CA.srcs/sources_1/new/BasicModules.v
This commit is contained in:
jose.rodriguezlabra
2019-02-16 12:39:15 -05:00
4 changed files with 171 additions and 23 deletions

View File

@@ -164,9 +164,26 @@ module gen_clock();
end
endmodule
<<<<<<< HEAD
<<<<<<< HEAD
//To enable register, input 00 to En, register is always outputting contents
=======
=======
module mux_2_1(input wire switch,
input wire [8:0] A,B,
output reg [8:0] out);
always @(A,B,switch) begin
case (switch)
2'b00 : out = A;
2'b01 : out = B;
default : out = 9'bxxxxxxxxx;
endcase
end
endmodule
>>>>>>> b2eb0da26cf8a205e02981e2a7c6a774e8d18e02
module mux_4_1(input wire [1:0] switch,
input wire [8:0] A,B,C,D,
output reg [8:0] out);