next up previous contents index
Next: .subckt Line Up: WRspice Input Format Previous: .if, .elif, .else, and   Contents   Index


Subcircuits

A subcircuit that consists of WRspice elements can be defined and referenced in a fashion similar to device models. The subcircuit is defined in the input file by a grouping of element lines; the program then automatically inserts the group of elements wherever the subcircuit is referenced. There is no limit on the size or complexity of subcircuits, and subcircuits may contain other subcircuits. An example of subcircuit usage is given in A.3.



Subsections

Stephen R. Whiteley 2022-09-18