projects
/
soc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
040a060
)
whoops fix syntax error
author
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Mon, 5 Oct 2020 11:51:25 +0000
(12:51 +0100)
committer
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Mon, 5 Oct 2020 11:51:25 +0000
(12:51 +0100)
src/soc/experiment/icache.py
patch
|
blob
|
history
diff --git
a/src/soc/experiment/icache.py
b/src/soc/experiment/icache.py
index 0213473ec517e3d18d75a44827a766fa3e0f2534..00697f6c6d67f274b139acdb302f007e24c8f765 100644
(file)
--- a/
src/soc/experiment/icache.py
+++ b/
src/soc/experiment/icache.py
@@
-140,7
+140,7
@@
print("WAY_BITS =", WAY_BITS)
# from microwatt/utils.vhdl
def ispow2(n):
- return ((n << 32) & ((n-1) << 32)) == 0
:
+ return ((n << 32) & ((n-1) << 32)) == 0
assert LINE_SIZE % ROW_SIZE == 0
assert ispow2(LINE_SIZE), "LINE_SIZE not power of 2"