1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
* Power Supply Port Protection

.include "models.sp"

.subckt RC_Clamp IN GND
.ends

.subckt Circuit VDD GND
.ends

.subckt testcase02 VDD_OK VDD_BAD
* OK: RC_Clamp at power port
X1 VDD_OK GND Circuit
X2 VDD_OK GND RC_Clamp

* BAD: no RC_Clamp at power port
X3 VDD_BAD GND Circuit
.ends

.end