mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-25 18:15:34 +00:00
xilinx: Treat DSP48E1 as 24x17 unsigned for now (actual behaviour is 25x18 signed)
Signed-off-by: David Shah <dave@ds0.me>
This commit is contained in:
parent
8da4c1ad82
commit
95c8d27b0b
2 changed files with 8 additions and 4 deletions
|
@ -284,8 +284,12 @@ struct SynthXilinxPass : public ScriptPass
|
|||
|
||||
run("techmap -map +/cmp2lut.v -D LUT_WIDTH=6");
|
||||
|
||||
// The actual behaviour of the Xilinx DSP is a signed 25x18 multiply
|
||||
// Due to current limitations of mul2dsp, we are actually mapping as a 24x17
|
||||
// unsigned multiply with MSBs set to 1'b0
|
||||
|
||||
if (!nodsp || help_mode)
|
||||
run("techmap -map +/mul2dsp.v -D DSP_A_MAXWIDTH=25 -D DSP_B_MAXWIDTH=18 -D DSP_NAME=$__MUL25X18");
|
||||
run("techmap -map +/mul2dsp.v -D DSP_A_MAXWIDTH=24 -D DSP_B_MAXWIDTH=17 -D DSP_NAME=$__MUL25X18");
|
||||
|
||||
run("alumacc");
|
||||
run("share");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue