The following lines are inserted at the start of each SPICE file along with the models above. These provide the global voltage and parameter adjustment lines needed by the subcircuits above.
.OPTIONS DEFL=10U DEFW=10U .OP VDD 1 0 5.0 MMIRROR1 4 4 0 0 MN IMIRROR1 1 4 3.75U MMIRROR2 5 5 1 1 MP IMIRROR2 5 0 1.75U MBIAS 6 6 1 1 MP IBIAS 6 0 1.2U MMIRROR3 7 7 0 0 MN IMIRROR3 1 7 0.6U MMIRROR4 8 8 1 1 MP IMIRROR4 8 0 0.3U
The subcircuits can then be invoked with lines such as the following:
XA0102 1 20102 20202 4 5 6 30102 40102 RFN11 XB0102 1 30102 30202 7 8 INTCONN