After the header line, all external libraries cells and exports must be declared. This allows the file reader to quickly find all libraries that will be needed for the design, and to reconstruct any missing cells and exports. The cells are listed under their libraries. The exports are listed under their cells. If there are multiple external library lines, they are sorted by library name; where there are multiple external cells in a library, they are sorted by their name; and where there are multiple external exports in a cell, they are sorted by their name.
The syntax of an external library reference is:
L<name> | <path> | |
<name> | the name of the external library. |
<path> | the full path to the disk file with the library. |
The name of the library is used in JELIB file to references to this library. The actual name of this library is obtained from the path.
The syntax of an external cell reference is:
R<name> | <lowX> | <highX> | <lowY> | <highY> | <creation> | <revision> | |
<name> | the name of the external cell. |
<lowX> | the low X bounds of the cell contents. |
<highX> | the high X bounds of the cell contents. |
<lowY> | the low Y bounds of the cell contents. |
<highY> | the high Y bounds of the cell contents. |
<creation> | the creation date of the cell (Java format). |
<revision> | the revision date of the cell (Java format). |
The Java format for dates (the creation and revision dates) is in milliseconds since the "epoch" (Midnight on January 1, 1970, GMT).
The syntax of an external export reference is:
F<name> | <centerX> | <centerY> | |
<name> | the name of the external export. |
<centerX> | the X coordinate of the center of export polygon. |
<centerY> | the Y coordinate of the center of export polygon. |
Examples:
Lspiceparts|/home/strubin/electric/spiceparts.jelib
Rgate;1{sch}|-4|4|0|2|1092185029000|1092185060000
Fout|0|2
Declares that an external library called "spiceparts" will be used by the current library, and that it can be found at "/home/strubin/electric/spiceparts.jelib". In that library is a cell called "gate;1{sch}" whose contents run from –4 to 4 in X and 0 to 2 in Y. In that cell is an export called "out" with center at (0,2).