projects
/
soc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
116e815
)
whoops, hazard vectors were depth 1 width N
author
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Tue, 16 Nov 2021 10:28:46 +0000
(10:28 +0000)
committer
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Tue, 16 Nov 2021 10:29:44 +0000
(10:29 +0000)
they need to be regwidth 1 (1 bit wide) depth N (one per register)
src/soc/regfile/regfiles.py
patch
|
blob
|
history
diff --git
a/src/soc/regfile/regfiles.py
b/src/soc/regfile/regfiles.py
index 93d94226c3c7637769416ae619c1380fc17a1b80..8461181a3d35866d2ff02e34ed9250cd334b6f82 100644
(file)
--- a/
src/soc/regfile/regfiles.py
+++ b/
src/soc/regfile/regfiles.py
@@
-285,9
+285,9
@@
class RegFiles:
def make_hazard_vec(self, rf, name):
if isinstance(rf, VirtualRegPort):
- vec = RegFileArray(
rf.bitwidth, 1
)
+ vec = RegFileArray(
1, rf.nregs
)
else:
- vec = RegFileArray(
rf.depth, 1
)
+ vec = RegFileArray(
1, rf.depth
)
# get read/write port specs and create bitvector ports with same names
wr_spec, rd_spec = rf.get_port_specs()
create_ports(vec, wr_spec, rd_spec)