From 1cfea219802c2418a99487acf5a475bdd61a53e9 Mon Sep 17 00:00:00 2001 From: whitequark Date: Mon, 19 Aug 2019 21:46:44 +0000 Subject: [PATCH] vendor.lattice_ice40: use a local clock domain in create_missing_domain(). --- nmigen/vendor/lattice_ice40.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/nmigen/vendor/lattice_ice40.py b/nmigen/vendor/lattice_ice40.py index a104c69..1553bb4 100644 --- a/nmigen/vendor/lattice_ice40.py +++ b/nmigen/vendor/lattice_ice40.py @@ -147,15 +147,15 @@ class LatticeICE40Platform(TemplatedPlatform): m = Module() # Power-on-reset domain - m.domains += ClockDomain("ice40_por", reset_less=True) + m.domains += ClockDomain("por", reset_less=True, local=True) delay = int(15e-6 * self.default_clk_frequency) timer = Signal(max=delay) ready = Signal() - m.d.comb += ClockSignal("ice40_por").eq(clk_i) + m.d.comb += ClockSignal("por").eq(clk_i) with m.If(timer == delay): - m.d.ice40_por += ready.eq(1) + m.d.por += ready.eq(1) with m.Else(): - m.d.ice40_por += timer.eq(timer + 1) + m.d.por += timer.eq(timer + 1) # Primary domain m.domains += ClockDomain("sync") m.d.comb += ClockSignal("sync").eq(clk_i) -- 2.30.2