Also corrected the "lef write" output to always put "END LIBRARY"

at the end of a macro output, even if it is not part of a library.
According to some commercial tools, this is what is expected, even
though the use of "END LIBRARY" is never explained in the LEF/DEF
spec.
This commit is contained in:
Tim Edwards 2020-07-19 22:10:19 -04:00
parent 9c4fb65a58
commit e453f130ee
1 changed files with 5 additions and 1 deletions

View File

@ -1900,7 +1900,7 @@ LefWriteAll(rootUse, writeTopCell, lefTech, lefHide, lefTopLayer, recurse)
}
/* End the LEF file */
fprintf(f, "END LIBRARY ;\n");
fprintf(f, "END LIBRARY\n\n");
fclose(f);
StackFree(lefDefStack);
@ -2001,6 +2001,10 @@ LefWriteCell(def, outName, isRoot, lefTech, lefHide, lefTopLayer)
HashKill(&siteHashTbl);
}
lefWriteMacro(def, f, scale, lefHide, lefTopLayer);
/* End the LEF file */
fprintf(f, "END LIBRARY\n\n");
fclose(f);
}