Corrected lefWrite, which was not initializing the count of items
written, so that a LEF output with no ports would fail to write the OBS ... END around the obstruction geometry.
This commit is contained in:
parent
76411004b5
commit
aab318176b
|
|
@ -987,9 +987,9 @@ calmaElementText()
|
|||
{
|
||||
idx = sl->lab_flags & PORT_NUM_MASK;
|
||||
if (idx > i) i = idx;
|
||||
if ((sl != lab) && !strcmp(sl->lab_text, textbody))
|
||||
if ((idx > 0) && (sl != lab) && !strcmp(sl->lab_text, textbody))
|
||||
{
|
||||
i = (sl->lab_flags & PORT_NUM_MASK) - 1;
|
||||
i = idx - 1;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -836,6 +836,7 @@ lefWriteMacro(def, f, scale, hide)
|
|||
/* List of pins (ports) (to be refined?) */
|
||||
|
||||
lc.lefMode = LEF_MODE_PORT;
|
||||
lc.numWrites = 0;
|
||||
|
||||
/* Determine the maximum port number, then output ports in order */
|
||||
maxport = -1;
|
||||
|
|
|
|||
Loading…
Reference in New Issue