Added a rule to the magic DRC deck to check for low-voltage diffusion
inside a high-voltage nwell.
diff --git a/VERSION b/VERSION
index 5f6ecc9..f7a332f 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-1.0.264
+1.0.265
diff --git a/sky130/magic/sky130.tech b/sky130/magic/sky130.tech
index b2747f1..0a8563e 100644
--- a/sky130/magic/sky130.tech
+++ b/sky130/magic/sky130.tech
@@ -1719,6 +1719,11 @@
  templayer lvnwell nwell
  and-not mvnwell
 
+ # Check for low-voltage diffusion in high-voltage well
+ templayer lvdiff_in_mvnwell *pdiff,*pdiode,pdiffres,*nsd
+ or pfet,ppu,scpfet,scpfethvt,pfetlvt,pfetmvt,pfethvt
+ and mvnwell
+
  templayer nwell_with_tap
  bloat-all nsc,mvnsc nwell,pnp
 
@@ -4224,6 +4229,10 @@
 	"Spacing of HV nwell to LV nwell < 2.0um (nwell.8)"
  cifspacing mvnwell mvnwell 2000 touching_ok \
 	"Spacing of HV nwell to HV nwell < 2.0um (nwell.8)"
+
+ cifmaxwidth lvdiff_in_mvnwell 0 bend_illegal \
+	"All HV nwell can contain only HV diffusion (diff/tap.21)" 
+
  variants (fast),(full)
 
 #-----------------------------