Skip to content

Commit

Permalink
Fix vector interface gating in FPU
Browse files Browse the repository at this point in the history
  • Loading branch information
jerryz123 committed Feb 20, 2024
1 parent f3951e7 commit eb141eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/scala/tile/FPU.scala
Original file line number Diff line number Diff line change
Expand Up @@ -748,7 +748,7 @@ class FPU(cfg: FPUParams)(implicit p: Parameters) extends FPUModule()(p) {
val v_decode = v.decoder(p) // Only need to get ren1
v_decode.io.inst := io.inst
v_decode.io.vconfig := DontCare // core deals with this
when (v_decode.io.read_frs1) {
when (v_decode.io.legal && v_decode.io.read_frs1) {
id_ctrl.ren1 := true.B
id_ctrl.swap12 := false.B
id_ctrl.toint := true.B
Expand Down

0 comments on commit eb141eb

Please sign in to comment.