From: Benjamin Herrenschmidt Date: Thu, 11 Jun 2020 10:18:24 +0000 (+1000) Subject: litedram: L2 use latched refill_index X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=15467fe536e6d757c8790b0171adde2c549d3596;p=microwatt.git litedram: L2 use latched refill_index Not a huge difference since wb_req is itself a latch but may as well Signed-off-by: Benjamin Herrenschmidt --- diff --git a/litedram/extras/litedram-wrapper-l2.vhdl b/litedram/extras/litedram-wrapper-l2.vhdl index 33aff28..61b4867 100644 --- a/litedram/extras/litedram-wrapper-l2.vhdl +++ b/litedram/extras/litedram-wrapper-l2.vhdl @@ -962,9 +962,9 @@ begin -- Store new tag in selected way for i in 0 to NUM_WAYS-1 loop if i = refill_way then - tagset := cache_tags(req_index); + tagset := cache_tags(refill_index); write_tag(i, tagset, req_tag); - cache_tags(req_index) <= tagset; + cache_tags(refill_index) <= tagset; end if; end loop; state <= REFILL_WAIT_ACK;