Expanded the fix_spice_includes.py script to add the missing device cap_var_hvt to the list of includes in all.spice, as pointed out by Stefan Schippers.
diff --git a/VERSION b/VERSION index b5d581a..2bae0e1 100644 --- a/VERSION +++ b/VERSION
@@ -1 +1 @@ -1.0.296 +1.0.297
diff --git a/sky130/custom/scripts/fix_spice_includes.py b/sky130/custom/scripts/fix_spice_includes.py index f70079b..3a53fbb 100755 --- a/sky130/custom/scripts/fix_spice_includes.py +++ b/sky130/custom/scripts/fix_spice_includes.py
@@ -12,8 +12,11 @@ import re import sys -newdevs = [] -newdevs.append('sky130_fd_pr__pnp_05v5_W3p40L3p40') +newbjts = [] +newbjts.append('sky130_fd_pr__pnp_05v5_W3p40L3p40') + +newvars = [] +newvars.append('sky130_fd_pr__cap_var_hvt') options = [] arguments = [] @@ -50,8 +53,14 @@ if 'pnp_05v5' in line: # Insert these additional lines - for newdev in newdevs: - newline = '.include "../../libs.ref/' + libpath + newdev + '.model.spice"\n' + for newbjt in newbjts: + newline = '.include "../../libs.ref/' + libpath + newbjt + '.model.spice"\n' + outfile.write(newline) + replaced_something = True + elif 'cap_var_lvt' in line: + # Insert these additional lines + for newvar in newvars: + newline = '.include "../../libs.ref/' + libpath + newvar + '.model.spice"\n' outfile.write(newline) replaced_something = True