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 Diode Protection
.include "models.sp"
.subckt testcase07 PAD1_OK PAD2_BAD PAD3_BAD PAD4_BAD
* OK, with both diodes
D1 GND PAD1_OK diode
D2 PAD1_OK VDD diode
M1 VDD PAD1_OK GND GND nch
* BAD, up diode missing
D3 GND PAD2_BAD diode
M2 VDD PAD2_BAD GND GND nch
* BAD, down diode missing
D4 PAD3_BAD VDD diode
M3 VDD PAD3_BAD GND GND nch
* BAD, both diodes missing
M4 VDD PAD4_BAD GND GND nch
.ends
.end