From: whitequark Date: Sun, 7 Jul 2019 02:30:56 +0000 (+0000) Subject: vendor.lattice_ecp5: don't leave LUT inputs disconnected. X-Git-Tag: locally_working~103 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cb02a452e9c8be1c3eb52831c9143f69d79d0e97;p=nmigen.git vendor.lattice_ecp5: don't leave LUT inputs disconnected. This causes YosysHQ/nextpnr#301. Fixes #136. --- diff --git a/nmigen/vendor/lattice_ecp5.py b/nmigen/vendor/lattice_ecp5.py index b65a628..843f848 100644 --- a/nmigen/vendor/lattice_ecp5.py +++ b/nmigen/vendor/lattice_ecp5.py @@ -192,6 +192,9 @@ class LatticeECP5Platform(TemplatedPlatform): m.submodules += Instance("LUT4", p_INIT=0x5555 if invert else 0xaaaa, i_A=a[bit], + i_B=Const(0), + i_C=Const(0), + i_D=Const(0), o_Z=z[bit] ) return a @@ -205,6 +208,9 @@ class LatticeECP5Platform(TemplatedPlatform): m.submodules += Instance("LUT4", p_INIT=0x5555 if invert else 0xaaaa, i_A=a[bit], + i_B=Const(0), + i_C=Const(0), + i_D=Const(0), o_Z=z[bit] ) return z