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
* Resistor Protection of MOS devices

.include "models.sp"

.subckt testcase03
M1_OK n10 n1 GND GND nch
R1_OK VDD n1 100

M2_OK VDD n2 n11 VDD pch
R2_OK GND n2 100

* too small resistor to ground
M3_BAD n12 n3 GND GND nch
R3_BAD VDD n3 10

* too small resistor to power
M4_BAD VDD n4 n13 VDD pch
R4_BAD GND n4 10

* no resistor to ground
M5_BAD n14 VDD GND GND nch

* no resistor to power
M6_BAD VDD GND n15 VDD pch

.ends

.end