File: ex2.lib

package info (click to toggle)
ngspice 45.2%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 75,776 kB
  • sloc: ansic: 559,348; cpp: 17,869; xml: 9,372; makefile: 4,086; sh: 2,595; perl: 2,442; yacc: 1,549; tcl: 1,040; lex: 320; pascal: 241; python: 179; vhdl: 177
file content (28 lines) | stat: -rw-r--r-- 322 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
* -*- spice -*-

.LIB MOS

.subckt  sub1_in_lib  n1 n2
.LIB 'ex2.lib' RES
Xsub1  n1 n2  sub3_in_lib
R1a    n1 n2  4k
R1b    n1 n2  2k
.ends

.subckt  sub2_in_lib  n1 n2
.LIB 'ex2.lib' RES
Xsub2  n1 n2  sub3_in_lib
R2     n1 n2  4k
.ends

.ENDL MOS



.LIB RES

.subckt  sub3_in_lib  n1 n2
R3   n1 n2   4k
.ends

.ENDL RES