projects
/
soc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
08e8653
)
add in name into plru to help debugging
author
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Thu, 18 Apr 2019 09:35:46 +0000
(10:35 +0100)
committer
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Thu, 18 Apr 2019 09:35:46 +0000
(10:35 +0100)
TLB/src/ariane/tlb.py
patch
|
blob
|
history
diff --git
a/TLB/src/ariane/tlb.py
b/TLB/src/ariane/tlb.py
index 7d664cad16ece01e3e7e5a6416b45bbb38de01c0..3b91b0b8a0d9d3a1ffaeb72813f1947b74f9487f 100644
(file)
--- a/
TLB/src/ariane/tlb.py
+++ b/
TLB/src/ariane/tlb.py
@@
-205,9
+205,10
@@
class PLRU:
# lvl0 <=> MSB, lvl1 <=> MSB-1, ...
shift = LOG_TLB - lvl;
new_idx = Const(~((i >> (shift-1)) & 1), (1, False))
+ plru_idx = idx_base + (i >> shift)
print ("plru", i, lvl, hex(idx_base),
-
idx_base + (i >> shift)
, shift, new_idx)
- m.d.sync += plru_tree[
idx_base + (i >> shift)
].eq(new_idx)
+
plru_idx
, shift, new_idx)
+ m.d.sync += plru_tree[
plru_idx
].eq(new_idx)
# Decode tree to write enable signals
# Next for-loop basically creates the following logic for e.g.