mirror of https://github.com/YosysHQ/yosys.git
xilinx: Add correct signed behaviour to DSP48E1 model
Signed-off-by: David Shah <dave@ds0.me>
This commit is contained in:
parent
95c8d27b0b
commit
d38df68d26
|
@ -506,6 +506,6 @@ module DSP48E1 (
|
|||
if (PCIN != 48'b0) $fatal(1, "Unsupported PCIN value");
|
||||
if (CARRYIN != 1'b0) $fatal(1, "Unsupported CARRYIN value");
|
||||
`endif
|
||||
P[42:0] <= A[24:0] * B;
|
||||
P[42:0] <= $signed(A[24:0]) * $signed(B);
|
||||
end
|
||||
endmodule
|
||||
|
|
Loading…
Reference in New Issue