aboutsummaryrefslogtreecommitdiffstats
path: root/tests/ice40/div_mod.v
diff options
context:
space:
mode:
authorEddie Hung <eddie@fpgeh.com>2019-08-30 10:54:22 -0700
committerGitHub <noreply@github.com>2019-08-30 10:54:22 -0700
commiteef0676105ff592e0e96bb835f0139f2f40d55bb (patch)
tree6fc8cae6410a5977c16b98643c82e3d661fc0271 /tests/ice40/div_mod.v
parent36e38ed46ae4b24be7b627a21a6627437db1ec61 (diff)
parent53912ad649d6e9f447b9e4037255606783a0cf51 (diff)
downloadyosys-eef0676105ff592e0e96bb835f0139f2f40d55bb.tar.gz
yosys-eef0676105ff592e0e96bb835f0139f2f40d55bb.tar.bz2
yosys-eef0676105ff592e0e96bb835f0139f2f40d55bb.zip
Merge pull request #1310 from SergeyDegtyar/master
Add new tests for ice40 architecture
Diffstat (limited to 'tests/ice40/div_mod.v')
-rw-r--r--tests/ice40/div_mod.v13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/ice40/div_mod.v b/tests/ice40/div_mod.v
new file mode 100644
index 000000000..64a36707d
--- /dev/null
+++ b/tests/ice40/div_mod.v
@@ -0,0 +1,13 @@
+module top
+(
+ input [3:0] x,
+ input [3:0] y,
+
+ output [3:0] A,
+ output [3:0] B
+ );
+
+assign A = x % y;
+assign B = x / y;
+
+endmodule