1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
* I/O Port NMOS and Diode Protection

.include "models.sp"

.subckt testcase08 PAD1_OK PAD2_BAD PAD3_BAD PAD4_BAD
* OK with diode and nmos fet
D1 GND PAD1_OK diode
M1 PAD1_OK GND GND GND nch
M2 VDD PAD1_OK GND GND nch

* BAD without diode
M3 PAD2_BAD GND GND GND nch
M4 VDD PAD2_BAD GND GND nch

* BAD without NFET
D2 GND PAD3_BAD diode
M5 VDD PAD3_BAD GND GND nch

* BAD nothing
M6 VDD PAD4_BAD GND GND nch

.ends

.end