diff --git a/chisel/playground/src/pipeline/decoder/Decoder.scala b/chisel/playground/src/pipeline/decoder/Decoder.scala index 52bf3bd..969abc5 100644 --- a/chisel/playground/src/pipeline/decoder/Decoder.scala +++ b/chisel/playground/src/pipeline/decoder/Decoder.scala @@ -38,7 +38,7 @@ class Decoder extends Module with HasInstrType { io.out.inst_info.valid := false.B io.out.inst_info.inst_legal := instrType =/= InstrN - io.out.inst_info.reg1_ren := src1Type === SrcType.reg + io.out.inst_info.reg1_ren := src1Type === SrcType.reg || inst(6, 0) === "b0110111".U // fix LUI io.out.inst_info.reg1_raddr := Mux(src1Type === SrcType.reg, rs, 0.U) io.out.inst_info.reg2_ren := src2Type === SrcType.reg io.out.inst_info.reg2_raddr := Mux(src2Type === SrcType.reg, rt, 0.U)