summaryrefslogtreecommitdiff
path: root/tests/hana/test_intermout_always_comb_5_test.v
diff options
context:
space:
mode:
Diffstat (limited to 'tests/hana/test_intermout_always_comb_5_test.v')
-rw-r--r--tests/hana/test_intermout_always_comb_5_test.v11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/hana/test_intermout_always_comb_5_test.v b/tests/hana/test_intermout_always_comb_5_test.v
new file mode 100644
index 00000000..5152781d
--- /dev/null
+++ b/tests/hana/test_intermout_always_comb_5_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