diff --git a/techlibs/lattice/cells_bb_ecp5.v b/techlibs/lattice/cells_bb_ecp5.v index 9c4d1fde4..fc22495e2 100644 --- a/techlibs/lattice/cells_bb_ecp5.v +++ b/techlibs/lattice/cells_bb_ecp5.v @@ -1580,7 +1580,6 @@ module EXTREFB (...); (* iopad_external_pin *) input REFCLKN; output REFCLKO; - output ; endmodule (* blackbox *) (* keep *) @@ -2172,6 +2171,5 @@ module DCUA (...); output D_COUT19; input D_REFCLKI; output D_FFS_PLOL; - output ; endmodule diff --git a/techlibs/lattice/cells_xtra.py b/techlibs/lattice/cells_xtra.py index fa4e38ace..c17281cc7 100644 --- a/techlibs/lattice/cells_xtra.py +++ b/techlibs/lattice/cells_xtra.py @@ -815,6 +815,8 @@ def xtract_cells_decl(device, cells, dirs, outf): if l.endswith((';', ',', ")")): l = l[:-1] l = l.replace(")","") + if l == "": + continue if ';' in l: print('Weird port line in {} [{}].'.format(fname, l)) sys.exit(1)