Forced spectre_to_spice.py to translate spectre model types "resistor" and "r2" to SPICE semicondutor resistor model type "r". The former is almost certainly correct; the latter, I'm unsure of.
diff --git a/common/spectre_to_spice.py b/common/spectre_to_spice.py index 0bba1c6..a89cdd4 100755 --- a/common/spectre_to_spice.py +++ b/common/spectre_to_spice.py
@@ -312,7 +312,9 @@ # Continue to "if inmodel == 1" block below else: fmtline, ispassed = parse_param_line(mmatch.group(3), True, False, True, ispassed) - modellines.append('.model ' + mmatch.group(1) + ' ' + mmatch.group(2) + ' ' + fmtline) + if isspectre and (modtype == 'resistor' or modtype == 'r2'): + modtype = 'r' + modellines.append('.model ' + modname + ' ' + modtype + ' ' + fmtline) if fmtline != '': inparam = True