diff options
Diffstat (limited to 'tests/hana/test_simulation_always_19_test.v')
-rw-r--r-- | tests/hana/test_simulation_always_19_test.v | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/hana/test_simulation_always_19_test.v b/tests/hana/test_simulation_always_19_test.v new file mode 100644 index 000000000..5152781df --- /dev/null +++ b/tests/hana/test_simulation_always_19_test.v @@ -0,0 +1,11 @@ +module test(ctrl, in1, in2, out); +input ctrl; +input in1, in2; +output reg out; + +always @ (ctrl or in1 or in2) + if(ctrl) + out = in1 & in2; + else + out = in1 | in2; +endmodule |