projects
/
soc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
83cec6b
)
using same tag/row functions as in dcache.py
author
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Sun, 5 Dec 2021 12:41:56 +0000
(12:41 +0000)
committer
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Sun, 5 Dec 2021 12:41:56 +0000
(12:41 +0000)
src/soc/experiment/icache.py
patch
|
blob
|
history
diff --git
a/src/soc/experiment/icache.py
b/src/soc/experiment/icache.py
index a4a6fac503c30e8d3eabdbd47a79a1fb808607e8..5936cbe9f231499c5f7377f551908d57f7ec56f4 100644
(file)
--- a/
src/soc/experiment/icache.py
+++ b/
src/soc/experiment/icache.py
@@
-227,7
+227,7
@@
def get_row(addr):
# Return the index of a row within a line
def get_row_of_line(row):
- return row[:ROW_LINE_BITS]
+ return row[:ROW_
BITS][:ROW_
LINE_BITS]
# Returns whether this is the last row of a line
def is_last_row_addr(addr, last):
@@
-256,7
+256,7
@@
def get_tag(addr):
# Read a tag from a tag memory row
def read_tag(way, tagset):
- return tagset.word_select(way, TAG_
BITS)
+ return tagset.word_select(way, TAG_
WIDTH)[:TAG_BITS]
# Write a tag to tag memory row
def write_tag(way, tagset, tag):