Skip to content

Commit

Permalink
fix generated blackboxes for ecp5
Browse files Browse the repository at this point in the history
  • Loading branch information
mmicko committed Aug 28, 2023
1 parent 2f82e8e commit b168ff9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 0 additions & 2 deletions techlibs/lattice/cells_bb_ecp5.v
Original file line number Diff line number Diff line change
Expand Up @@ -1580,7 +1580,6 @@ module EXTREFB (...);
(* iopad_external_pin *)
input REFCLKN;
output REFCLKO;
output ;
endmodule

(* blackbox *) (* keep *)
Expand Down Expand Up @@ -2172,6 +2171,5 @@ module DCUA (...);
output D_COUT19;
input D_REFCLKI;
output D_FFS_PLOL;
output ;
endmodule

2 changes: 2 additions & 0 deletions techlibs/lattice/cells_xtra.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b168ff9

Please sign in to comment.