projects
/
yosys.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
23d062f
)
ecp5: Fix DPR16X4 sim model.
author
Marcelina Kościelnicka
<mwk@0x04.net>
Wed, 9 Feb 2022 04:35:05 +0000
(
05:35
+0100)
committer
Marcelina Kościelnicka
<mwk@0x04.net>
Wed, 9 Feb 2022 08:02:13 +0000
(09:02 +0100)
techlibs/ecp5/cells_sim.v
patch
|
blob
|
history
diff --git
a/techlibs/ecp5/cells_sim.v
b/techlibs/ecp5/cells_sim.v
index 357fd917302935883cfe6f0c351bf4175c2cdd7e..a5f905cf819a19f1928c5b3d233d99fc8b237f2c 100644
(file)
--- a/
techlibs/ecp5/cells_sim.v
+++ b/
techlibs/ecp5/cells_sim.v
@@
-204,7
+204,7
@@
module TRELLIS_DPR16X4 (
integer i;
initial begin
for (i = 0; i < 16; i = i + 1)
- mem[i] <=
{INITVAL[i+3], INITVAL[i+2], INITVAL[i+1], INITVAL[i]}
;
+ mem[i] <=
INITVAL[4*i +: 4]
;
end
wire muxwck = (WCKMUX == "INV") ? ~WCK : WCK;