开云体育

ctrl + shift + ? for shortcuts
© 2025 开云体育

.include vs .lib directives


 

Hello guys,
I'd like to ask how ngspice, under the hood of Kicad, actually manages library files.?
?
From ngspice manual, there are two ways to include .models or .subckt, namely using .include vs .lib directive.
?
.include <filename> literally includes the content of <filename> where the directive is located (e.g. within a .cir netlist). It works, let's say, just like the #include pre-processing directive in C language.
?
.lib instead actually includes only parts from library referenced in the file where the .lib directive is. The manual says that. lib directive has the following format: .lib <filename> libname. The latter should be the name of a "section" within the <filename> library file.
?
If the above is correct, what are the "markers" of sections within the library files ?
?
Thanks.
?

Join [email protected] to automatically receive all group messages.