summaryrefslogtreecommitdiff
path: root/techlibs/ice40/tests/test_arith.v
diff options
context:
space:
mode:
Diffstat (limited to 'techlibs/ice40/tests/test_arith.v')
-rw-r--r--techlibs/ice40/tests/test_arith.v3
1 files changed, 3 insertions, 0 deletions
diff --git a/techlibs/ice40/tests/test_arith.v b/techlibs/ice40/tests/test_arith.v
new file mode 100644
index 00000000..77f79b97
--- /dev/null
+++ b/techlibs/ice40/tests/test_arith.v
@@ -0,0 +1,3 @@
+module test(input [4:0] a, b, c, output [4:0] y);
+ assign y = ((a+b) ^ (a-c)) - ((a*b) + (a*c) - (b*c));
+endmodule