From f5a9f781527657a5c1e9cd44492b40893ab86694 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Mon, 14 Sep 2020 11:00:34 +0100 Subject: [PATCH] use word_select --- src/soc/experiment/icache.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/soc/experiment/icache.py b/src/soc/experiment/icache.py index ba9f940e..53d165a3 100644 --- a/src/soc/experiment/icache.py +++ b/src/soc/experiment/icache.py @@ -365,7 +365,7 @@ def next_row(row): # in the current cache row def read_insn_word(addr, data): word = addr[2:INSN_BITS+3] - return data[word * 32:32 + word * 32] + return data.word_select(word, 32) # -- Get the tag value from the address # function get_tag( -- 2.30.2