summaryrefslogtreecommitdiff
path: root/tests/various/constmsk_test.v
diff options
context:
space:
mode:
Diffstat (limited to 'tests/various/constmsk_test.v')
-rw-r--r--tests/various/constmsk_test.v4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/various/constmsk_test.v b/tests/various/constmsk_test.v
new file mode 100644
index 00000000..0d0e58fe
--- /dev/null
+++ b/tests/various/constmsk_test.v
@@ -0,0 +1,4 @@
+module test(input [3:0] A, output [3:0] Y1, Y2);
+ assign Y1 = |{A[3], 1'b0, A[1]};
+ assign Y2 = |{A[2], 1'b1, A[0]};
+endmodule