Abhishek Anand
06/21/2023, 6:29 PMLuis Henrique Rodovalho
06/21/2023, 8:32 PM.param mc_mm_switch=1
The you run your sim multiple times with loop. You can save the results in an external file.Stefan Schippers
06/21/2023, 9:18 PMtt_mm
corner will enable mismatch. (will set mc_mm_switch=1
)
In the sky130.lib.spice
file:
...
...
* Typical corner with mismatch (tt_mm)
.lib tt_mm
.param mc_mm_switch=1
.param mc_pr_switch=0
* MOSFET
.include "corners/tt.spice"
* Resistor/Capacitor
.include "r+c/res_typical__cap_typical.spice"
.include "r+c/res_typical__cap_typical__lin.spice"
* Special cells
.include "corners/tt/specialized_cells.spice"
.endl tt_mm
...
...
Setting .param mc_mm_switch=1
and calling the .lib with tt
corner is risky since if the ,lib is sourced after the .param it will reset the mc_mm_switch parameter back to zero.
...
...
* Typical corner (tt)
.lib tt
.param mc_mm_switch=0
.param mc_pr_switch=0
* MOSFET
.include "corners/tt.spice"
* Resistor/Capacitor
.include "r+c/res_typical__cap_typical.spice"
.include "r+c/res_typical__cap_typical__lin.spice"
* Special cells
.include "corners/tt/specialized_cells.spice"
.endl tt
...
...
Luis Henrique Rodovalho
06/21/2023, 9:53 PM.param mc_pr_switch=0
is for process (global) mismatch. Lately I'm only simulating my circuits with GF180 PDK, and I usually set those parameters outside the '.lib' line. Is there a corner for global mismatch only, or both enabled at the same time, for SKY130 PDK?Stefan Schippers
06/21/2023, 10:37 PM.param mc_mm_switch=0
.param mc_pr_switch=1
this is for process (global) variation.
The **__mm corners (tt__mm, ss_mm, sf_mm, ....) have the opposite setting:
.param mc_mm_switch=1
.param mc_pr_switch=0
I don't see a corner where the two flags are both set to 1.Tim Edwards
06/22/2023, 8:04 PM.lib
file and define both flags. Usually, though, the mismatch analysis is done on corners, not with monte carlo analysis, which uses an entirely different set of include files and parameters.Abhishek Anand
06/30/2023, 5:48 PMStefan Schippers
06/30/2023, 6:00 PMAbhishek Anand
06/30/2023, 6:27 PMAbhishek Anand
06/30/2023, 7:29 PMStefan Schippers
06/30/2023, 8:21 PM