From 32b3bebde1f6b51d7072cb04b498c330722d2da2 Mon Sep 17 00:00:00 2001 From: Marek Materzok Date: Tue, 26 Nov 2024 13:01:34 +0100 Subject: [PATCH] Remove core_flushing signal --- coreblocks/backend/retirement.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/coreblocks/backend/retirement.py b/coreblocks/backend/retirement.py index fce0956b2..1621ed382 100644 --- a/coreblocks/backend/retirement.py +++ b/coreblocks/backend/retirement.py @@ -114,7 +114,6 @@ def flush_instr(rob_entry): continue_pc_override = Signal() continue_pc = Signal(self.gen_params.isa.xlen) - core_flushing = Signal() with m.FSM("NORMAL") as fsm: with m.State("NORMAL"): @@ -197,8 +196,6 @@ def flush_instr(rob_entry): with m.If(core_empty): m.next = "TRAP_RESUME" - m.d.comb += core_flushing.eq(1) - with m.State("TRAP_RESUME"): with Transaction().body(m): # Resume core operation @@ -219,7 +216,8 @@ def flush_instr(rob_entry): m.next = "NORMAL" # Disable executing any side effects from instructions in core when it is flushed - m.d.comb += side_fx.eq(~fsm.ongoing("TRAP_FLUSH")) + core_flushing = fsm.ongoing("TRAP_FLUSH") + m.d.comb += side_fx.eq(~core_flushing) @def_method(m, self.core_state) def _():