From 15467fe536e6d757c8790b0171adde2c549d3596 Mon Sep 17 00:00:00 2001 From: Benjamin Herrenschmidt Date: Thu, 11 Jun 2020 20:18:24 +1000 Subject: [PATCH] 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 --- litedram/extras/litedram-wrapper-l2.vhdl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;