blob: 5bdf1971702c90cb6687e620039092f8c20d72e8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
module test (input [1:0] in, input enable, output reg out);
always @(in or enable)
if(!enable)
out = 4'b0000;
else begin
case (in)
2'b00 : out = 0 ;
2'b01 : out = 1;
2'b10 : out = 0;
2'b11 : out = 1;
endcase
end
endmodule
|