Modified the magic techfile to implement the correct order of types
for the "surround-ok" spacing rules. This goes along with an update
to magic (8.3.173) to not try to implement the rule with the types
swapped, which is great for basic spacing rules but does not work
for surround_ok rules on different planes.
diff --git a/VERSION b/VERSION
index a3d10e9..0a3b55e 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-1.0.171
+1.0.172
diff --git a/sky130/magic/sky130.tech b/sky130/magic/sky130.tech
index 6d5eea6..626abf2 100644
--- a/sky130/magic/sky130.tech
+++ b/sky130/magic/sky130.tech
@@ -4075,7 +4075,7 @@
width dnwell 3000 "Deep N-well width < %d (dnwell.2)"
spacing dnwell dnwell 6300 touching_ok "Deep N-well spacing < %d (dnwell.3)"
- spacing dnwell allnwell 4500 surround_ok \
+ spacing allnwell dnwell 4500 surround_ok \
"Deep N-well spacing to N-well < %d (nwell.7)"
variants (full)
@@ -4616,7 +4616,7 @@
width metrdl 10000 "RDL width < %d (rdl.1)"
spacing metrdl metrdl 10000 touching_ok "RDL spacing < %d (rdl.2)"
surround glass metrdl 10750 absence_ok "RDL must surround glass cut by %d (rdl.3)"
- spacing metrdl padl 19660 surround_ok "RDL spacing to unrelated pad < %d (rdl.6)"
+ spacing padl metrdl 19660 surround_ok "RDL spacing to unrelated pad < %d (rdl.6)"
variants (fast),(full)