Vitit Kantabutra
02/09/2025, 5:07 AMTim Edwards
02/09/2025, 5:18 PM$PDK_ROOT
, then you want to have this in your testbench netlist: .lib $PDK_ROOT/sky130A/libs.tech/combined/sky130.lib.spice tt
(newer versions of ngspice will accept the environment variable in the expression; otherwise, substitute the actual path).Vitit Kantabutra
02/09/2025, 8:53 PMVitit Kantabutra
02/09/2025, 9:04 PMTim Edwards
02/09/2025, 9:08 PMVitit Kantabutra
02/09/2025, 9:17 PMVitit Kantabutra
02/11/2025, 4:06 AMTim Edwards
02/11/2025, 1:54 PMopen_pdks/sky130/sky130A
and you will find the models in open_pdks/sky130/sky130A/libs.tech/combined/sky130.lib.spice
, although that's the top level file that includes all sorts of other files; most of the MOSFET models are in open_pdks/sky130/sky130A/libs.tech/combined/continuous/models_fet.spice
. But you will find that SkyWater's device models are (unnecessarily) spread over a lot of files and directories.Vitit Kantabutra
02/11/2025, 4:09 PMVitit Kantabutra
02/11/2025, 4:34 PMVitit Kantabutra
02/11/2025, 4:39 PMVitit Kantabutra
02/11/2025, 4:41 PMTim Edwards
02/11/2025, 5:00 PMTim Edwards
02/11/2025, 5:02 PMsky130_fd_pr__nfet_01v8_lvt
is in the file models_fet.spice
that I mentioned above, at line 3423.Tim Edwards
02/11/2025, 5:04 PMVitit Kantabutra
02/11/2025, 5:32 PMVitit Kantabutra
02/11/2025, 5:44 PMTim Edwards
02/11/2025, 6:13 PMnlowvt_model
. About ten lines below that is the model itself, .model nlowvt_model.1 nmos
.Vitit Kantabutra
02/11/2025, 6:22 PMVitit Kantabutra
02/11/2025, 7:57 PMTim Edwards
02/11/2025, 9:31 PMVitit Kantabutra
02/12/2025, 12:13 AMVitit Kantabutra
02/15/2025, 9:11 PMTim Edwards
02/15/2025, 10:14 PM.lib /path/to/sky130A.lib.spice tt
, with the full path to sky130A.lib.spice
in the PDK as the second argument, and the name of the simulation corner as the last argument. To simulate the extracted layout or the schematic-captured circuit, just change the include statement to point to the correct netlist.Vitit Kantabutra
02/15/2025, 11:05 PMVitit Kantabutra
02/16/2025, 2:22 AMTim Edwards
02/16/2025, 2:56 AMtt
is a process corner designation. It means typical-typical
. The corner names are defined in sky130.lib.spice
. They follow the usual nomenclature for the usual process corners (tt
, ss
, ff
).