dcache: Ease timing on calculation of acks remaining
authorPaul Mackerras <paulus@ozlabs.org>
Sat, 11 Jul 2020 12:23:31 +0000 (22:23 +1000)
committerPaul Mackerras <paulus@ozlabs.org>
Mon, 20 Jul 2020 04:28:05 +0000 (14:28 +1000)
commit56420e74f3e92d09f02db12ca09bdedb95018ef7
treea58a09f3c5f54b77caf3bf5d7a76b88be02c0adc
parentdc8980d5a5dfab744e0df551a63208994927802d
dcache: Ease timing on calculation of acks remaining

This moves the incrementing or decrementing of r1.acks_pending
to the cycle after a strobe is output or an ack is seen on the
wishbone, and simplifies the logic that determines whether the
cycle is now complete.  This means that the path from seeing
req_op equal to OP_STORE_HIT or OP_STORE_MISS to setting r1.state
and r1.cyc now just involves the stbs_done bit rather than a more
complex calculation involving the possibly incremented r1.acks_pending.

Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
dcache.vhdl