fetch_failed = core.icache.i_out.fetch_failed
else:
fetch_failed = Const(0, 1)
- # set to zero initially
- sync += pdecode2.instr_fault.eq(0)
+ # set to fault in decoder
+ # update (highest priority) instruction fault
+ comb += pdecode2.instr_fault.eq(fetch_failed)
with m.FSM(name="issue_fsm"):
# allowing it to be set again during the next execution
sync += pdecode2.ldst_exc.eq(0)
- # update (highest priority) instruction fault
- sync += pdecode2.instr_fault.eq(fetch_failed)
-
m.next = "INSN_EXECUTE" # move to "execute"
# handshake with execution FSM, move to "wait" once acknowledged