mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-10-06 09:53:00 +02:00
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.
This commit is contained in:
+4
-4
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user