aboutsummaryrefslogtreecommitdiffstats
path: root/techlibs/ice40/tests/test_arith.v
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2015-04-18 09:33:34 +0200
committerClifford Wolf <clifford@clifford.at>2015-04-18 09:33:34 +0200
commitf564a658517f510dce12c5ef8bcc2a9ec9dd055b (patch)
tree03574547329d666ad0e229fa2529fd254a083273 /techlibs/ice40/tests/test_arith.v
parentf78fa718be5ff611547dbadce5f2dc3e9fb59384 (diff)
downloadyosys-f564a658517f510dce12c5ef8bcc2a9ec9dd055b.tar.gz
yosys-f564a658517f510dce12c5ef8bcc2a9ec9dd055b.tar.bz2
yosys-f564a658517f510dce12c5ef8bcc2a9ec9dd055b.zip
Added ice40 test_arith
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 000000000..77f79b973
--- /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