inverter_xschem.spice 884 B

1234567891011121314151617181920212223242526
  1. ** sch_path: /home/jam/Desktop/Project/cmosInverter/inverter.sch
  2. **.subckt inverter
  3. XM1 Vout Vin GND GND sky130_fd_pr__nfet_01v8 L=0.15 W=2 nf=1 ad='int((nf+1)/2) * W/nf * 0.29' as='int((nf+2)/2) * W/nf * 0.29' pd='2*int((nf+1)/2) * (W/nf + 0.29)'
  4. + ps='2*int((nf+2)/2) * (W/nf + 0.29)' nrd='0.29 / W' nrs='0.29 / W' sa=0 sb=0 sd=0 mult=1 m=1
  5. XM2 Vout Vin Vdd Vdd sky130_fd_pr__pfet_01v8 L=0.15 W=5 nf=1 ad='int((nf+1)/2) * W/nf * 0.29' as='int((nf+2)/2) * W/nf * 0.29' pd='2*int((nf+1)/2) * (W/nf + 0.29)'
  6. + ps='2*int((nf+2)/2) * (W/nf + 0.29)' nrd='0.29 / W' nrs='0.29 / W' sa=0 sb=0 sd=0 mult=1 m=1
  7. Vdd Vdd GND 1.8
  8. Vin Vin GND pulse(0 1.8 0 1ns 1ns 4ns 10ns)
  9. C1 Vout GND 1p m=1
  10. **** begin user architecture code
  11. .lib /usr/local/share/pdk/sky130A/libs.tech/ngspice/sky130.lib.spice tt
  12. .tran 100ps 20ns
  13. .save all
  14. .end
  15. **** end user architecture code
  16. **.ends
  17. .GLOBAL GND
  18. .end