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
1 changed files with 8 additions and 4 deletions

View File

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