vendor.lattice_ecp5: don't leave LUT inputs disconnected.
This causes YosysHQ/nextpnr#301. Fixes #136.
This commit is contained in:
parent
da1f58b7ae
commit
cb02a452e9
6
nmigen/vendor/lattice_ecp5.py
vendored
6
nmigen/vendor/lattice_ecp5.py
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue