let A = 1, B = 64 and C=1904 for an especial case, but the output will be 0.
module PCmux( input clk, input[1:0] s, input[31:0] A, B, C, output reg[31:0] D);
always@( A or B or C or s)begin
case (s)
00: D <= A;
01: D <= B;
10: D <= C;
endcase
end
initial
begin
D = 31'b 0;
end
endmodule
Tags: