projects
/
ls2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
55b5acc
)
add a dramsync2x domain as well
author
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Thu, 14 Apr 2022 10:24:17 +0000
(11:24 +0100)
committer
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Thu, 14 Apr 2022 10:24:17 +0000
(11:24 +0100)
src/ls2.py
patch
|
blob
|
history
diff --git
a/src/ls2.py
b/src/ls2.py
index 708673b65a526e7fb6850c21526b794cff7a4c88..6bee6d6446f0836f2ef9699b0cbfa45b4d154018 100644
(file)
--- a/
src/ls2.py
+++ b/
src/ls2.py
@@
-370,7
+370,12
@@
class DDR3SoC(SoC, Elaboratable):
ddrmodule = dram_cls(clk_freq, "1:2") # match DDR3 ASIC P/N
#drs = lambda x: x
- drs = DomainRenamer("dramsync")
+ # remap both the sync domain (wherever it occurs) and
+ # the sync2x domain. technically this should NOT be done.
+ # it's a bit of a mess. ok: this should be done only
+ # when dramsync===sync (and dramsync2x===sync2x)
+ drs = DomainRenamer({"sync": "dramsync",
+ "sync2x": "dramsync2x"})
if fpga == 'sim':
self.ddrphy = FakePHY(module=ddrmodule,