vendor.lattice_ice40: fix instance of negedge FF due to a typo.
authorwhitequark <cz@m-labs.hk>
Fri, 28 Jun 2019 07:05:10 +0000 (07:05 +0000)
committerwhitequark <cz@m-labs.hk>
Fri, 28 Jun 2019 07:05:20 +0000 (07:05 +0000)
nmigen/vendor/lattice_ice40.py

index f298ece7b269071dccc088ab6ed213d72a63ae31..02c9459e25bcb83211251e958c9666ece9cce599 100644 (file)
@@ -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,