Skip to content

Commit 15467fe

Browse files
committed
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 <benh@kernel.crashing.org>
1 parent 05bbbf0 commit 15467fe

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

litedram/extras/litedram-wrapper-l2.vhdl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -962,9 +962,9 @@ begin
962962
-- Store new tag in selected way
963963
for i in 0 to NUM_WAYS-1 loop
964964
if i = refill_way then
965-
tagset := cache_tags(req_index);
965+
tagset := cache_tags(refill_index);
966966
write_tag(i, tagset, req_tag);
967-
cache_tags(req_index) <= tagset;
967+
cache_tags(refill_index) <= tagset;
968968
end if;
969969
end loop;
970970
state <= REFILL_WAIT_ACK;

0 commit comments

Comments
 (0)