Added pin connection to the list of NET connections in a DEF file

when doing "def write", which was missing.
This commit is contained in:
Tim Edwards 2022-11-20 13:30:19 -05:00
parent 65ef9a1ad3
commit 44af9aaf9f
2 changed files with 6 additions and 2 deletions

View File

@ -1 +1 @@
8.3.343
8.3.344

View File

@ -661,6 +661,7 @@ defnodeVisit(node, res, cap, defdata)
HierName *hierName;
char *ndn;
char ndn2[256];
char locndn[256];
FILE *f = defdata->f;
CellDef *def = defdata->def;
float oscale = defdata->scale;
@ -718,7 +719,6 @@ defnodeVisit(node, res, cap, defdata)
for (thisnn = node->efnode_name; thisnn != NULL; thisnn = thisnn->efnn_next)
{
char locndn[256];
hierName = thisnn->efnn_hier;
if (hierName->hn_parent && !hierName->hn_parent->hn_parent)
{
@ -734,6 +734,10 @@ defnodeVisit(node, res, cap, defdata)
}
}
/* If this net is marked as a PORT, then connect to the associated PIN */
if (node->efnode_flags & EF_TOP_PORT)
fprintf(f, " ( PIN %s )", ndn);
/* TT_SPACE indicates that a layer name must be the */
/* next thing to be written to the DEF file. */
defdata->type = TT_SPACE;