projects
/
soc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6f8178a
)
whoops fix syntax error
author
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Mon, 5 Oct 2020 11:30:26 +0000
(12:30 +0100)
committer
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Mon, 5 Oct 2020 11:30:26 +0000
(12:30 +0100)
src/soc/experiment/icache.py
patch
|
blob
|
history
diff --git
a/src/soc/experiment/icache.py
b/src/soc/experiment/icache.py
index be30d32ba5a69e6b00e2745b3d1e6bf8ec82a22d..0213473ec517e3d18d75a44827a766fa3e0f2534 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
if
((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"