projects
/
soc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2a06e10
)
mmu.py fix or(block of logic) to be (block of logic).bool() https://bugs.libre-soc...
author
Cole Poirier
<colepoirier@gmail.com>
Wed, 12 Aug 2020 16:51:16 +0000
(09:51 -0700)
committer
Cole Poirier
<colepoirier@gmail.com>
Wed, 12 Aug 2020 16:51:16 +0000
(09:51 -0700)
src/soc/experiment/mmu.py
patch
|
blob
|
history
diff --git
a/src/soc/experiment/mmu.py
b/src/soc/experiment/mmu.py
index 16704f09c48a2852d0cc26646deed164f56e0715..db677657a37cd860abde63a18017efc38e8a51cb 100644
(file)
--- a/
src/soc/experiment/mmu.py
+++ b/
src/soc/experiment/mmu.py
@@
-707,10
+707,9
@@
class MMU1(Elaboratable):
# not finalmask(30 downto 0));
comb += mbits.eq(0 & r.mask_size)
comb += v.shift.eq(r.shift + (31 -12) - mbits)
- # TODO need lkcl to check this is correct
- comb += nonzero.eq(0 | Cat((~finalmask[0:31]),
- r.addr[31:62]
- ))
+ comb += nonzero.eq((
+ r.addr[31:62] & ~finalmask[0:31]
+ ).bool())
# if r.addr(63) /= r.addr(62) or nonzero = '1' then
# v.state := RADIX_FINISH;
# v.segerror := '1';