Contents of iobuff.sp
.SUBCKT IO_IN OUT IN VDD VSSD1 IN VDD DD2 VSS IN DR1 IN 1 10
M1 OUT 1 VDD VDD pm L = 5U W = 120.00U
M2 OUT 1 VSS VSS nm L = 5U W = 50.00U .ENDS IO_IN
.SUBCKT IO_TEST_LOAD LOAD
VDATA 2 0 PULSE(0 5 0 10n 10n 50n)
*simulator lang = spectre
The main circuit is a test fixture and must be commented out.
Notes:
The demo “iobuff.sp” desn’t have the main circuit stuff in red.