From bfba9b3eb34bfd9cc5d516153ddc960a44f7c5f2 Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Tue, 30 Aug 2016 11:14:46 +0200 Subject: [PATCH] Bugfix in picorv32_pcpi_fast_mul --- picorv32.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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