projects
/
yosys.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4985318
)
ice40_dsp: add test
author
Eddie Hung
<eddie@fpgeh.com>
Fri, 17 Jan 2020 23:38:26 +0000
(15:38 -0800)
committer
Eddie Hung
<eddie@fpgeh.com>
Fri, 17 Jan 2020 23:38:26 +0000
(15:38 -0800)
tests/arch/ice40/ice40_dsp.ys
[new file with mode: 0644]
patch
|
blob
diff --git a/tests/arch/ice40/ice40_dsp.ys
b/tests/arch/ice40/ice40_dsp.ys
new file mode 100644
(file)
index 0000000..
2502738
--- /dev/null
+++ b/
tests/arch/ice40/ice40_dsp.ys
@@ -0,0
+1,11
@@
+read_verilog <<EOT
+module top(input [15:0] a, b, output [31:0] o1, o2, o5);
+SB_MAC16 m1 (.A(a), .B(16'd1234), .O(o1));
+assign o2 = a * 16'd0;
+wire [31:0] o3, o4;
+SB_MAC16 m2 (.A(a), .B(b), .O(o3));
+assign o4 = a * b;
+SB_MAC16 m3 (.A(a), .B(b), .O(o5));
+endmodule
+EOT
+ice40_dsp