blob: bc579858b166c9d3920ee407f7e6a541a03edb6c [file] [log] [blame]
Tim Edwardsc0cd7c22020-11-24 20:36:36 -05001* Simple testbench mainly to check SPICE model conversion from CDL
2* Plots the transient response of the smallest inverter in the HD standard cell library
3
4.lib "/home/tim/projects/efabless/tech/SW/sky130A/libs.tech/ngspice/sky130.lib.spice" tt
5.include "/home/tim/projects/efabless/tech/SW/sky130A/libs.ref/sky130_fd_sc_hd/spice/sky130_fd_sc_hd.spice"
6
7* .option TEMP=27
8
9X0 in vss vss vdd vdd out sky130_fd_sc_hd__inv_1
10
11V0 vdd vss PWL(0n 0.0 30n 1.8)
12V1 vss 0 0.0
13
14Vin in vss PWL(0n 0.0 100n 0.0 500n 1.8)
15
16* Transient analysis
17.control
18tran 1n 1u
19plot V(in) V(out)
20.endc
21.end