summaryrefslogtreecommitdiff
path: root/tests/hana/test_intermout_always_latch_1_test.v
diff options
context:
space:
mode:
Diffstat (limited to 'tests/hana/test_intermout_always_latch_1_test.v')
-rw-r--r--tests/hana/test_intermout_always_latch_1_test.v9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/hana/test_intermout_always_latch_1_test.v b/tests/hana/test_intermout_always_latch_1_test.v
new file mode 100644
index 00000000..a83be20d
--- /dev/null
+++ b/tests/hana/test_intermout_always_latch_1_test.v
@@ -0,0 +1,9 @@
+module test(en, in, out);
+input en;
+input [1:0] in;
+output reg [2:0] out;
+
+always @ (en or in)
+ if(en)
+ out = in + 1;
+endmodule