mirror of https://github.com/m-labs/artiq.git
rtio: use reset_less signal for reset fanout
This commit is contained in:
parent
b9859cc0c3
commit
01847271c5
|
@ -287,13 +287,13 @@ class LogChannel:
|
||||||
class _RelaxedAsyncResetSynchronizer(Module):
|
class _RelaxedAsyncResetSynchronizer(Module):
|
||||||
def __init__(self, cd, async_reset):
|
def __init__(self, cd, async_reset):
|
||||||
self.clock_domains.cd_rst = ClockDomain()
|
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.specials += AsyncResetSynchronizer(self.cd_rst, async_reset)
|
||||||
self.comb += [
|
self.comb += [
|
||||||
self.cd_rst.clk.eq(cd.clk),
|
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):
|
class Core(Module, AutoCSR):
|
||||||
|
|
Loading…
Reference in New Issue