forked from M-Labs/artiq
1
0
Fork 0

rtio: use reset_less signal for reset fanout

This commit is contained in:
Robert Jördens 2017-06-28 19:43:55 +02:00
parent b9859cc0c3
commit 01847271c5
1 changed files with 4 additions and 4 deletions

View File

@ -287,13 +287,13 @@ class LogChannel:
class _RelaxedAsyncResetSynchronizer(Module):
def __init__(self, cd, async_reset):
self.clock_domains.cd_rst = ClockDomain()
self.clock_domains.cd_no_rst = ClockDomain(reset_less=True)
rst_fan = Signal(reset_less=True)
self.specials += AsyncResetSynchronizer(self.cd_rst, async_reset)
self.comb += [
self.cd_rst.clk.eq(cd.clk),
self.cd_no_rst.clk.eq(cd.clk),
cd.rst.eq(rst_fan),
]
self.sync.no_rst += cd.rst.eq(self.cd_rst.rst)
self.sync.rst += rst_fan.eq(self.cd_rst.rst)
class Core(Module, AutoCSR):