diff options
Diffstat (limited to 'tests/hana/test_simulation_mux_4_test.v')
-rw-r--r-- | tests/hana/test_simulation_mux_4_test.v | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/hana/test_simulation_mux_4_test.v b/tests/hana/test_simulation_mux_4_test.v new file mode 100644 index 000000000..6a112c6a9 --- /dev/null +++ b/tests/hana/test_simulation_mux_4_test.v @@ -0,0 +1,10 @@ +module test(input [3:0] in, input [1:0] select, output reg out); + +always @( in or select) + case (select) + 0: out = in[0]; + 1: out = in[1]; + 2: out = in[2]; + 3: out = in[3]; + endcase +endmodule |