in monte calro simulation , when I use MC hint in ...
# analog-design
a
in monte calro simulation , when I use MC hint in model , I get this error and when I use tt hint with these lines , it is fine .param MC_MM_SWITCH=1 .param mc_pr_switch=1 IS it ok ??
l
a
I use a dimension in the bins and get the same error
@Tim Edwards @Bradley Minch
l
.lib "/usr/share/pdk/sky130A/libs.tech/ngspice/sky130.lib.spice" tt .param mc_mm_switch=1 I'm using this and it is working
a
okay
t
@Amr_Tawfik: FYI, the "MC_PR" parameter is for monte carlo process variation, and the "MC_MM" parameter is for mismatch variation. Typically one does not do both at the same time. The parameters are set up to be used with the sky130.lib.spice file, but not set explicitly. If you want to simulate with process variation, use
Copy code
.lib /usr/share/pdk/sky130A/libs.tech/ngspice/sky130.lib.spice mc
and if you want to simulate with mismatch at a specific corner, then use (e.g., for typical corner)
Copy code
.lib /usr/share/pdk/sky130A/libs.tech/ngspice/sky130.lib.spice tt_mm
(Although what Luis did also works.)
j
Hello, @Tim Edwards, one question, I'm trying to search for MC but I can't find it, should I download it additionally?
t
(see the comment in the other thread)