soc/cores/sdram/phy: fix S6QuarterRateDDRPHY
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Tue, 29 Mar 2016 12:59:30 +0000 (14:59 +0200)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Tue, 29 Mar 2016 12:59:30 +0000 (14:59 +0200)
litex/soc/cores/sdram/phy/s6ddrphy.py

index 4678864dae37fbaf0dac9da96458153d3ec26444..71148bb6a729073638c949576c1a6e9c138dc952 100644 (file)
@@ -21,6 +21,7 @@ from operator import or_
 
 from litex.gen import *
 from litex.gen.genlib.record import *
+from litex.gen.fhdl.decorators import ClockDomainsRenamer
 
 from litex.soc.interconnect.dfi import *
 from litex.soc.cores.sdram import settings as sdram_settings
@@ -399,7 +400,7 @@ class S6HalfRateDDRPHY(Module):
 class S6QuarterRateDDRPHY(Module):
     def __init__(self, pads, rd_bitslip, wr_bitslip, dqs_ddr_alignment):
         half_rate_phy = S6HalfRateDDRPHY(pads, "DDR3", rd_bitslip, wr_bitslip, dqs_ddr_alignment)
-        self.submodules += RenameClockDomains(half_rate_phy, {"sys" : "sys2x"})
+        self.submodules += ClockDomainsRenamer("sys2x")(half_rate_phy)
 
         addressbits = len(pads.a)
         bankbits = len(pads.ba)