projects
/
soc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e912db9
)
whoops connect enable / data correct way round in regfilearray
author
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Wed, 8 May 2019 07:23:57 +0000
(08:23 +0100)
committer
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Wed, 8 May 2019 07:23:57 +0000
(08:23 +0100)
src/regfile/regfile.py
patch
|
blob
|
history
diff --git
a/src/regfile/regfile.py
b/src/regfile/regfile.py
index d898c578f7c8e929eb9f9e3ad5e928e5caad8947..3cb5ef4507711a02ae2ebf3f22657c904e5255bd 100644
(file)
--- a/
src/regfile/regfile.py
+++ b/
src/regfile/regfile.py
@@
-120,13
+120,13
@@
class RegFileArray(Elaboratable):
for (regs, p) in self._rdports:
#print (p)
- m.d.comb +=
p.ren.eq(self._get_en_sig(regs, 'ren')
)
+ m.d.comb +=
self._get_en_sig(regs, 'ren').eq(p.ren
)
ror = treereduce(list(regs))
m.d.comb += p.data_o.eq(ror)
for (regs, p) in self._wrports:
- m.d.comb +=
p.wen.eq(self._get_en_sig(regs, 'wen')
)
+ m.d.comb +=
self._get_en_sig(regs, 'wen').eq(p.wen
)
for r in regs:
- m.d.comb +=
p.data_i.eq(r
.data_i)
+ m.d.comb +=
r.data_i.eq(p
.data_i)
return m