projects
/
soc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2691bb8
)
unsigned const
author
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Sun, 14 Apr 2019 17:29:49 +0000
(18:29 +0100)
committer
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Sun, 14 Apr 2019 17:29:49 +0000
(18:29 +0100)
TLB/src/ariane/tlb.py
patch
|
blob
|
history
diff --git
a/TLB/src/ariane/tlb.py
b/TLB/src/ariane/tlb.py
index a31edbd79f7632a59d39cbffcff3f14aa2b10232..875606f111d1fbd24a5fd412fe7189869ba2ab35 100644
(file)
--- a/
TLB/src/ariane/tlb.py
+++ b/
TLB/src/ariane/tlb.py
@@
-198,7
+198,7
@@
class PLRU:
idx_base = (1<<lvl)-1
# lvl0 <=> MSB, lvl1 <=> MSB-1, ...
shift = LOG_TLB - lvl;
- new_idx = Const(~((i >> (shift-1)) & 1),
1
)
+ new_idx = Const(~((i >> (shift-1)) & 1),
(1, False)
)
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)