From 7dc6832ec69c6c0e78f416511be09bf1576d27ac Mon Sep 17 00:00:00 2001 From: whitequark Date: Fri, 28 Jun 2019 07:05:10 +0000 Subject: [PATCH] vendor.lattice_ice40: fix instance of negedge FF due to a typo. --- nmigen/vendor/lattice_ice40.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nmigen/vendor/lattice_ice40.py b/nmigen/vendor/lattice_ice40.py index f298ece..02c9459 100644 --- a/nmigen/vendor/lattice_ice40.py +++ b/nmigen/vendor/lattice_ice40.py @@ -128,7 +128,7 @@ class LatticeICE40Platform(TemplatedPlatform): def _get_io_buffer(self, m, pin, port, attrs, i_invert=None, o_invert=None): def get_dff(clk, d, q): m.submodules += Instance("$dff", - p_CLK_POLARITY=0, + p_CLK_POLARITY=1, p_WIDTH=len(d), i_CLK=clk, i_D=d, -- 2.30.2