2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-18 16:06:30 +08:00

rtio: forward rtio domain reset to rio and rio_phy domains

This commit is contained in:
Sebastien Bourdeauducq 2015-07-27 01:52:47 +08:00
parent 940aa815dd
commit f68d5cbd73

View File

@ -329,11 +329,15 @@ class RTIO(Module):
self.cd_rsys.rst.eq(self.kcsrs.reset.storage) self.cd_rsys.rst.eq(self.kcsrs.reset.storage)
] ]
self.comb += self.cd_rio.clk.eq(ClockSignal("rtio")) self.comb += self.cd_rio.clk.eq(ClockSignal("rtio"))
self.specials += AsyncResetSynchronizer(self.cd_rio, self.specials += AsyncResetSynchronizer(
self.kcsrs.reset.storage) self.cd_rio,
self.kcsrs.reset.storage | ResetSignal("rtio",
allow_resetless=True))
self.comb += self.cd_rio_phy.clk.eq(ClockSignal("rtio")) self.comb += self.cd_rio_phy.clk.eq(ClockSignal("rtio"))
self.specials += AsyncResetSynchronizer(self.cd_rio_phy, self.specials += AsyncResetSynchronizer(
self.kcsrs.reset_phy.storage) self.cd_rio_phy,
self.kcsrs.reset_phy.storage | ResetSignal("rtio",
allow_resetless=True))
# Managers # Managers
self.submodules.counter = _RTIOCounter(full_ts_width - fine_ts_width) self.submodules.counter = _RTIOCounter(full_ts_width - fine_ts_width)