fix(id): 修复指令错误判断条件
This commit is contained in:
parent
a761e8ebad
commit
2c59111fbf
|
@ -37,7 +37,7 @@ class Decoder extends Module with HasInstrType {
|
|||
val (rs, rt, rd) = (inst(19, 15), inst(24, 20), inst(11, 7))
|
||||
|
||||
io.out.inst_info.valid := false.B
|
||||
io.out.inst_info.inst_legal := instrType === InstrN
|
||||
io.out.inst_info.inst_legal := instrType =/= InstrN
|
||||
io.out.inst_info.reg1_ren := src1Type === SrcType.reg
|
||||
io.out.inst_info.reg1_raddr := Mux(src1Type === SrcType.reg, rs, 0.U)
|
||||
io.out.inst_info.reg2_ren := src2Type === SrcType.reg
|
||||
|
|
Loading…
Reference in New Issue