icache.py fix translation mistake
authorCole Poirier <colepoirier@gmail.com>
Sun, 27 Sep 2020 16:22:06 +0000 (09:22 -0700)
committerCole Poirier <colepoirier@gmail.com>
Sun, 27 Sep 2020 16:22:29 +0000 (09:22 -0700)
src/soc/experiment/icache.py

index 9a6804f88e3656973f995774ac79b8d961d92898..7621d9ec523c8413e378bc0b6e69b02220bc6e32 100644 (file)
@@ -372,7 +372,7 @@ def next_row(row):
 # Read the instruction word for the given address
 # in the current cache row
 def read_insn_word(addr, data):
-    word = addr[2:INSN_BITS+3]
+    word = addr[2:INSN_BITS+2]
     return data.word_select(word, 32)
 
 #     -- Get the tag value from the address