From 01847271c528c96d3d3c1642ddbbfde19c127c00 Mon Sep 17 00:00:00 2001 From: Robert Jordens Date: Wed, 28 Jun 2017 19:43:55 +0200 Subject: [PATCH] rtio: use reset_less signal for reset fanout --- artiq/gateware/rtio/core.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/artiq/gateware/rtio/core.py b/artiq/gateware/rtio/core.py index fcaf2e935..7b814ffcd 100644 --- a/artiq/gateware/rtio/core.py +++ b/artiq/gateware/rtio/core.py @@ -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), + self.cd_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):