Created a new script that deals with the problem of parameter
names in the monte carlo parameter files that shadow names of
devices. ngspice does not handle this; this could be an ngspice
error, but the best practice is not to have confusing parameter
names, so the script modifies the names by stripping off the
leading sky130_fd_pr__ from the parameter name so that it no
longer conflicts with the device name.
diff --git a/sky130/Makefile.in b/sky130/Makefile.in
index 989e6c3..9bc14de 100644
--- a/sky130/Makefile.in
+++ b/sky130/Makefile.in
@@ -811,6 +811,8 @@
2>&1 | tee -a ${SKY130A}_make.log || true
./custom/scripts/process_params.py \
2>&1 | tee -a ${SKY130A}_make.log || true
+ ./custom/scripts/montecarlo_hack.py \
+ 2>&1 | tee -a ${SKY130A}_make.log || true
# Custom: Add "mc" section to sky130.lib.spice
head -n-1 ${STAGING_PATH}/${SKY130A}/libs.tech/ngspice/sky130.lib.spice \
| ${SED} -e '/^\.lib/a.param mc_pr_switch=0' \