Skip to content

Commit

Permalink
Do not count ignored insns as retired
Browse files Browse the repository at this point in the history
  • Loading branch information
Arusekk authored and tilk committed Nov 15, 2023
1 parent 155658c commit 9bc9478
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions coreblocks/stages/retirement.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ def elaborate(self, platform):
rp_freed = Signal(self.gen_params.phys_regs_bits)
with m.If(side_fx):
m.d.comb += rp_freed.eq(rat_out.old_rp_dst)
self.instret_csr.increment(m)
with m.Else():
m.d.comb += rp_freed.eq(rob_entry.rob_data.rp_dst)
# free the phys_reg with computed value and restore old reg into FRAT as well
Expand All @@ -82,6 +83,4 @@ def elaborate(self, platform):
with m.If(rp_freed): # don't put rp0 to free list - reserved to no-return instructions
self.free_rf_put(m, rp_freed)

self.instret_csr.increment(m)

return m

0 comments on commit 9bc9478

Please sign in to comment.