From: whitequark Date: Mon, 19 Aug 2019 21:46:44 +0000 (+0000) Subject: vendor.lattice_ice40: use a local clock domain in create_missing_domain(). X-Git-Tag: locally_working~17 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=77012fc1438f6054334b031f3d1bc816a90c675a;p=nmigen.git vendor.lattice_ice40: use a local clock domain in create_missing_domain(). --- 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)