From: Luke Kenneth Casson Leighton Date: Wed, 22 Dec 2021 23:21:50 +0000 (+0000) Subject: only use a single variable for ack adjusting in dcache.py X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fdb5bb7a1a2a46484c18fb8844faff284d896f3d;p=soc.git only use a single variable for ack adjusting in dcache.py STORE_WAIT_ACK state --- diff --git a/src/soc/experiment/dcache.py b/src/soc/experiment/dcache.py index cabb5225..5c9c526a 100644 --- a/src/soc/experiment/dcache.py +++ b/src/soc/experiment/dcache.py @@ -1574,19 +1574,17 @@ class DCache(Elaboratable): with m.Case(State.STORE_WAIT_ACK): st_stbs_done = Signal() - acks = Signal(3) adjust_acks = Signal(3) comb += st_stbs_done.eq(~r1.wb.stb) - comb += acks.eq(r1.acks_pending) with m.If(r1.inc_acks != r1.dec_acks): with m.If(r1.inc_acks): - comb += adjust_acks.eq(acks + 1) + comb += adjust_acks.eq(r1.acks_pending + 1) with m.Else(): - comb += adjust_acks.eq(acks - 1) + comb += adjust_acks.eq(r1.acks_pending - 1) with m.Else(): - comb += adjust_acks.eq(acks) + comb += adjust_acks.eq(r1.acks_pending) sync += r1.acks_pending.eq(adjust_acks)