Library Files in Circuit Netlists

Library files contain one or more blocks of netlist statements. Each block in the library file has the format:

.LIBblock_name

lib_block_statements

.ENDL

The library file block can contain any valid netlist statements. LIB blocks are processed after all the other statements in the netlist have been processed, and the order of execution of LIB block statements cannot be predetermined.

To read and process in the statements from a library file block, the netlist uses a library call:

.LIBfile_referenceblock_name

The rules for file_reference are the ones given in the module on File References.

A .LIB block in a given library file can contain calls to blocks in the same library file or in other library files, but a .LIB block may not call a block with its own block name in its own file (that is, a .LIB block cannot call itself).