From 1028ff7d9bbf9587f03c43a009e6e0b95e79b88c Mon Sep 17 00:00:00 2001 From: Andrew Waterman Date: Thu, 29 Dec 2011 23:45:09 -0800 Subject: [PATCH] fix multiplier bug --- rocket/src/main/scala/multiplier.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rocket/src/main/scala/multiplier.scala b/rocket/src/main/scala/multiplier.scala index ad49a0f9..d7dc114f 100644 --- a/rocket/src/main/scala/multiplier.scala +++ b/rocket/src/main/scala/multiplier.scala @@ -91,7 +91,7 @@ class rocketMultiplier extends Component { } val mul_output64 = Mux(r_fn === MUL_LO, r_prod(63,0), r_prod(127,64)) - val mul_output32 = Mux(r_fn === MUL_LO, r_prod(31,0), r_prod(63,31)) + val mul_output32 = Mux(r_fn === MUL_LO, r_prod(31,0), r_prod(63,32)) val mul_output32_ext = Cat(Fill(32, mul_output32(31)), mul_output32) val mul_output = Mux(r_dw === DW_64, mul_output64, mul_output32_ext)