Nelson Rodriguez
11/23/2022, 6:14 PM/home/nelson/cad/share/pdk/sky130A/libs.tech/ngspice/ ) it runs without any trouble (fig 3). I installed my pdk using the open_pdks script and also have declared the environment variable PDK_ROOT but I think that variable is only used by xschem and not by ngspice (fig 4). Could you give me lights with this issue?
2. Second question has to be with the import of models. When I import SKY130A models, I always use .lib command but reading this post in the ngspice forum, I learned that .include command is faster that the first one (fig5 ). Do you know another reason to use the latter one rather than the first?
Thanks in advance.Stefan Schippers
11/23/2022, 11:28 PM.lib /usr/local/share/pdk/sky130A/libs.tech/ngspice/sky130.lib.spice tt
also ensure a .spiceinit file exists in the directory where ngspice runs, with following content:
set ngbehavior=hsa
set ng_nomodcheck
Also only use the skywater pdk spice models provided by open_pdks, do not directly use the skywater-pdk repository. @Tim Edwards has done a vast amount of fixes to cleanup the models and adapt to ngspice.Stefan Schippers
11/24/2022, 12:07 AM.param mc_mm_switch=0
.param mc_pr_switch=0
.include /home/schippes/share/pdk/sky130A/libs.tech/ngspice/corners/tt.spice
.include /home/schippes/share/pdk/sky130A/libs.tech/ngspice/r+c/res_typical__cap_typical.spice
.include /home/schippes/share/pdk/sky130A/libs.tech/ngspice/r+c/res_typical__cap_typical__lin.spice
.include /home/schippes/share/pdk/sky130A/libs.tech/ngspice/corners/tt/specialized_cells.spice
Of course you need to adjust the paths according to your installation.Nelson Rodriguez
11/24/2022, 10:26 PM.lib /usr/local/share/pdk/sky130A/libs.tech/ngspice/sky130.lib.spice tt
well, I added .lib /home/nelson/cad/share/pdk/sky130A/libs.tech/ngspice/sky130.lib.spice tt as you can see in the images in previous messages.
For the file `.spiceinit`that file doesn't exist in my system. I run find command but it yielded nothing (fig 2)
And finally, I don't understand what you refer saying use only the skywater models.Stefan Schippers
11/24/2022, 11:39 PM.spiceinit file, it is not installed by anyone.
Use a text editor, write the two lines and save as .spiceinit in the directory where ngspice runs (usually ~/.xschem/simulations)
For the '_use only skywater..._' I meant use the skywater spice models by installing open_pdks, but looking at your pictures you did exactly that, so you are OK.Nelson Rodriguez
11/25/2022, 12:00 AMset ngbehavior=hsa , set ng_nomodcheckStefan Schippers
11/25/2022, 12:08 AMStefan Schippers
11/25/2022, 12:12 AMLinen is a search-engine friendly community platform. We offer integrations with existing Slack/Discord communities and make those conversations Google-searchable.
Powered by