fix multiplier bug
This commit is contained in:
parent
d65e1a2eee
commit
1028ff7d9b
@ -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_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_output32_ext = Cat(Fill(32, mul_output32(31)), mul_output32)
|
||||||
|
|
||||||
val mul_output = Mux(r_dw === DW_64, mul_output64, mul_output32_ext)
|
val mul_output = Mux(r_dw === DW_64, mul_output64, mul_output32_ext)
|
||||||
|
Loading…
Reference in New Issue
Block a user