Fix BEQ instruction
This commit is contained in:
parent
c17ccdf897
commit
486c77a108
|
@ -8,6 +8,7 @@ class rvfi_insn_beq(rvfi_insn_SB):
|
||||||
def elaborate(self, platform):
|
def elaborate(self, platform):
|
||||||
m = super(rvfi_insn_beq, self).elaborate(platform)
|
m = super(rvfi_insn_beq, self).elaborate(platform)
|
||||||
|
|
||||||
|
# BEQ instruction
|
||||||
cond = Signal(1)
|
cond = Signal(1)
|
||||||
m.d.comb += cond.eq(self.rvfi_rs1_rdata == self.rvfi_rs2_rdata)
|
m.d.comb += cond.eq(self.rvfi_rs1_rdata == self.rvfi_rs2_rdata)
|
||||||
next_pc = Signal(32)
|
next_pc = Signal(32)
|
||||||
|
|
Loading…
Reference in New Issue