aboutsummaryrefslogtreecommitdiffstats
path: root/techlibs/ice40/dsp_map.v
diff options
context:
space:
mode:
authorEddie Hung <eddie@fpgeh.com>2019-09-29 19:39:12 -0700
committerEddie Hung <eddie@fpgeh.com>2019-09-29 19:39:12 -0700
commit1123c09588a6dd3964605de229c6bc4ac158b50e (patch)
tree6f6b950cfc30c4db0963a90fe065964489fa292b /techlibs/ice40/dsp_map.v
parent18ebb86edbade4a94833dead59d69fddd980f5bd (diff)
parentd5f0794a531b36976d2c4d181b1c3921b801bbfa (diff)
downloadyosys-1123c09588a6dd3964605de229c6bc4ac158b50e.tar.gz
yosys-1123c09588a6dd3964605de229c6bc4ac158b50e.tar.bz2
yosys-1123c09588a6dd3964605de229c6bc4ac158b50e.zip
Merge remote-tracking branch 'origin/master' into xaig_dff
Diffstat (limited to 'techlibs/ice40/dsp_map.v')
-rw-r--r--techlibs/ice40/dsp_map.v34
1 files changed, 34 insertions, 0 deletions
diff --git a/techlibs/ice40/dsp_map.v b/techlibs/ice40/dsp_map.v
new file mode 100644
index 000000000..06fa73956
--- /dev/null
+++ b/techlibs/ice40/dsp_map.v
@@ -0,0 +1,34 @@
+module \$__MUL16X16 (input [15:0] A, input [15:0] B, output [31:0] Y);
+ parameter A_SIGNED = 0;
+ parameter B_SIGNED = 0;
+ parameter A_WIDTH = 0;
+ parameter B_WIDTH = 0;
+ parameter Y_WIDTH = 0;
+
+ SB_MAC16 #(
+ .NEG_TRIGGER(1'b0),
+ .C_REG(1'b0),
+ .A_REG(1'b0),
+ .B_REG(1'b0),
+ .D_REG(1'b0),
+ .TOP_8x8_MULT_REG(1'b0),
+ .BOT_8x8_MULT_REG(1'b0),
+ .PIPELINE_16x16_MULT_REG1(1'b0),
+ .PIPELINE_16x16_MULT_REG2(1'b0),
+ .TOPOUTPUT_SELECT(2'b11),
+ .TOPADDSUB_LOWERINPUT(2'b0),
+ .TOPADDSUB_UPPERINPUT(1'b0),
+ .TOPADDSUB_CARRYSELECT(2'b0),
+ .BOTOUTPUT_SELECT(2'b11),
+ .BOTADDSUB_LOWERINPUT(2'b0),
+ .BOTADDSUB_UPPERINPUT(1'b0),
+ .BOTADDSUB_CARRYSELECT(2'b0),
+ .MODE_8x8(1'b0),
+ .A_SIGNED(A_SIGNED),
+ .B_SIGNED(B_SIGNED)
+ ) _TECHMAP_REPLACE_ (
+ .A(A),
+ .B(B),
+ .O(Y),
+ );
+endmodule