1
0

fix multiplier bug

This commit is contained in:
Andrew Waterman 2011-12-29 23:45:09 -08:00
parent d65e1a2eee
commit 1028ff7d9b

View File

@ -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)