Modified the fix_device_models.py script to correct the bad diode
device perimeters in the standard cells caused by the magic version
used to create the original SPICE files (was fixed in magic version
8.3.319).
diff --git a/VERSION b/VERSION
index 6698d2c..6300eb8 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-1.0.327
+1.0.328
diff --git a/sky130/custom/scripts/fix_device_models.py b/sky130/custom/scripts/fix_device_models.py
index bbd9f06..e293ee3 100755
--- a/sky130/custom/scripts/fix_device_models.py
+++ b/sky130/custom/scripts/fix_device_models.py
@@ -6,6 +6,8 @@
 # not get the proper name conversion;  specifically, the "conb" cell has
 # resistor type "short" which should be "sky130_fd_pr__res_generic_po",
 # and the pw2nd device model name is missing the suffix "_05v5".
+# (Added 8/30/2022:  Correct for bad diode perimeter value, fixed in
+# magic in 8.3.319)
 #
 # This script is a filter to be run by setting the name of this script as
 # the value to "filter=" for the model install in the sky130 Makefile.
@@ -47,6 +49,7 @@
             fline = re.sub('^X', 'D', fline)
             fline = re.sub('a=', 'area=', fline)
             fline = re.sub('p=', 'pj=', fline)
+            fline = re.sub('pj=5.36', 'pj=2.64', fline)
             fixedlines.append(fline)
             modified = True
         elif nmatch: