Tim Edwards
05/28/2021, 12:31 AM.lib <path_to>/sky130.lib.spice mc
. . . and that should be the only thing you need to do. However, all non-MC simulations have to set .param mc_mm_switch=0
or =1
to disallow or allow mismatch simulation (the reason being that any corner simulation can run either with mismatch enabled or with mismatch disabled, but mc
is mutually exclusive with all corner simulations). The only alternative I can think of is to duplicate all the entries in sky130.lib.spice
so that there is one corner with mismatch and one corner without mismatch, such as tt
and, say, mmtt
. I might do that if people have a hard time figuring out that they need to set the mc_mm_switch
parameter.