mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-10-06 18:02:52 +02:00
Corrected a few aspects of LEF write: (1) Put BUSBITCHARS in the
header, (2) Use CLASS BLOCK in the macro if no class is defined, and (3) Add END LIBRARY to the end of the file.
This commit is contained in:
@@ -174,7 +174,9 @@ lefWriteHeader(def, f, lefTech)
|
||||
fprintf(f, "VERSION 5.3 ;\n");
|
||||
fprintf(f, " NAMESCASESENSITIVE ON ;\n");
|
||||
fprintf(f, " NOWIREEXTENSIONATPIN ON ;\n");
|
||||
fprintf(f, " NOWIREEXTENSIONATPIN ON ;\n");
|
||||
fprintf(f, " DIVIDERCHAR \"/\" ;\n");
|
||||
fprintf(f, " BUSBITCHARS \"[]\" ;\n");
|
||||
|
||||
/* As I understand it, this refers to the scalefactor of the GDS */
|
||||
/* file output. Magic does all GDS in nanometers, so the LEF */
|
||||
@@ -743,6 +745,11 @@ lefWriteMacro(def, f, scale, hide)
|
||||
fprintf(f, " CLASS %s\n", propvalue);
|
||||
class = propvalue;
|
||||
}
|
||||
else
|
||||
{
|
||||
/* Needs a class of some kind. Use BLOCK as default if not defined */
|
||||
fprintf(f, " CLASS BLOCK\n");
|
||||
}
|
||||
|
||||
propvalue = (char *)DBPropGet(def, "LEFsource", &propfound);
|
||||
if (propfound)
|
||||
@@ -1144,6 +1151,9 @@ LefWriteAll(rootUse, writeTopCell, lefTech)
|
||||
lefWriteMacro(def, f, scale);
|
||||
}
|
||||
|
||||
/* End the LEF file */
|
||||
fprintf(f, "END LIBRARY ;\n");
|
||||
|
||||
fclose(f);
|
||||
StackFree(lefDefStack);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user