From 18fc3282893aa0506fe50001c4c02228a49eb451 Mon Sep 17 00:00:00 2001 From: Tim Edwards Date: Sun, 20 Nov 2022 13:32:40 -0500 Subject: [PATCH] Revised the last commit slightly to put the PIN entry as the first entry of a set of net connections in a DEF file, instead of the last entry. --- lef/defWrite.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lef/defWrite.c b/lef/defWrite.c index f3963f98..088ade10 100644 --- a/lef/defWrite.c +++ b/lef/defWrite.c @@ -711,6 +711,10 @@ defnodeVisit(node, res, cap, defdata) fprintf(f, " - %s", ndn); defdata->outcolumn = 5 + strlen(ndn); + /* 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); + /* Find all the node names that are port connections. */ /* For now, we will just use anything connecting one level */ /* down in the hierarchy. This is not definitive, however, */ @@ -734,10 +738,6 @@ 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;