projects
/
ls2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a1eed7
)
add an extra domain dramsync2x in preparation for
author
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Thu, 14 Apr 2022 10:35:30 +0000
(11:35 +0100)
committer
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Thu, 14 Apr 2022 10:35:30 +0000
(11:35 +0100)
AsyncBridge
src/ecp5_crg.py
patch
|
blob
|
history
diff --git
a/src/ecp5_crg.py
b/src/ecp5_crg.py
index 1740169befd5ffa2d8444a8ef59beaced7679eb6..239a5e624845881746cb563689aec174643fab0d 100644
(file)
--- a/
src/ecp5_crg.py
+++ b/
src/ecp5_crg.py
@@
-279,5
+279,11
@@
class ECP5CRG(Elaboratable):
m.d.comb += ClockSignal("dramsync").eq(ClockSignal("sync"))
m.d.comb += ResetSignal("dramsync").eq(reset_ok)
+ # and a dram 2x sigh
+ cd_dramsync2x = ClockDomain("dramsync2x", local=False)
+ m.domains += cd_dramsync2x
+ m.d.comb += ClockSignal("dramsync2x").eq(ClockSignal("sync2x"))
+ m.d.comb += ResetSignal("dramsync2x").eq(reset_ok)
+
return m