@Stefan Schippers do you have an example of a multi corner spice simulation?
t
Tim Edwards
06/30/2022, 7:39 PM
In the xschem example testbenches, you'll find "code" blocks labeled, e.g., "TT_MODELS". This is running one command in ngspice,
.lib $::SKYWATER_MODELS/sky130.lib.spice tt
. This line loads all of the device models, and the
tt
selects the corner. The available corners are
tt
,
sf
,
fs
,
ss
, and
ff
. Because the corner is selected from the
.lib
statement, I do not think it is possible to run multiple corners in a single simulation, but you would need to run N simulations for N corners and aggregate the data afterward.
s
Steven Kiss
06/30/2022, 9:02 PM
Thank you, this was very helpful.
s
Stefan Schippers
07/01/2022, 8:54 PM
@Steven Kiss I wish there was such a 'alter' like command in ngspice to change corner, enabling multiple runs with different corners. Unfortunately to ky knowledge it is not possible to change the process corner. It is possible to change single model parameters, but this is of no help. As @Tim Edwards suggested you should setup multiple runs, one for each corner, the advantage is that you can fully parallelize (on different cores/ different computers) the simulation jobs.
Linen is a search-engine friendly community platform. We offer integrations with existing Slack/Discord communities and make those conversations Google-searchable.