aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--picorv32.v2
1 files changed, 1 insertions, 1 deletions
diff --git a/picorv32.v b/picorv32.v
index fe45e18..d8c088f 100644
--- a/picorv32.v
+++ b/picorv32.v
@@ -1909,7 +1909,7 @@ module picorv32_pcpi_fast_mul (
end
always @(posedge clk) begin
- rd <= rs1 * rs2;
+ rd <= $signed(rs1) * $signed(rs2);
end
always @(posedge clk) begin