aboutsummaryrefslogtreecommitdiffstats
path: root/tests/hana/test_intermout_exprs_condexpr_mux_test.v
diff options
context:
space:
mode:
Diffstat (limited to 'tests/hana/test_intermout_exprs_condexpr_mux_test.v')
-rw-r--r--tests/hana/test_intermout_exprs_condexpr_mux_test.v11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/hana/test_intermout_exprs_condexpr_mux_test.v b/tests/hana/test_intermout_exprs_condexpr_mux_test.v
new file mode 100644
index 000000000..11006e8b3
--- /dev/null
+++ b/tests/hana/test_intermout_exprs_condexpr_mux_test.v
@@ -0,0 +1,11 @@
+module test(in1, in2, out, vin1, vin2, vin3, vin4, vout1, vout2, en1, ven1, ven2);
+input in1, in2, en1, ven1;
+input [1:0] ven2;
+output out;
+input [1:0] vin1, vin2, vin3, vin4;
+output [1:0] vout1, vout2;
+
+assign out = en1 ? in1 : in2;
+assign vout1 = ven1 ? vin1 : vin2;
+assign vout2 = ven2 ? vin3 : vin4;
+endmodule