Merge branch 'main' of https://github.com/mabrains/gf180_technology_dev into ull_ruledeck
diff --git a/ULL/klayout/lvs/gf180ull.lvs b/ULL/klayout/lvs/gf180ull.lvs
index 341633b..5063fc1 100644
--- a/ULL/klayout/lvs/gf180ull.lvs
+++ b/ULL/klayout/lvs/gf180ull.lvs
@@ -199,6 +199,37 @@
logger.info("MIM CAP selected: #{MIM_CAP}")
#================================================
+#------------- METAL LEVEL SWITCHES -------------
+#================================================
+
+case MIM_OPTION
+when 'A'
+ mim_0p85fF = 'mim_0p85fF_m2m3_noshield'
+ mim_1p0fF = 'mim_1p0fF_m2m3_noshield'
+ mim_1p5fF = 'mim_1p5fF_m2m3_noshield'
+ mim_2p0fF = 'mim_2p0fF_m2m3_noshield'
+
+when 'B'
+ case METAL_LEVEL
+ when '6LM'
+ mim_0p85fF_tm = 'mim_0p85fF_tm_m5m6_noshield'
+ mim_1p0fF_tm = 'mim_1p0fF_tm_m5m6_noshield'
+ mim_1p5fF_tm = 'mim_1p5fF_tm_m5m6_noshield'
+ mim_2p0fF_tm = 'mim_2p0fF_tm_m5m6_noshield'
+ when '5LM'
+ mim_0p85fF_tm = 'mim_0p85fF_tm_m4m5_noshield'
+ mim_1p0fF_tm = 'mim_1p0fF_tm_m4m5_noshield'
+ mim_1p5fF_tm = 'mim_1p5fF_tm_m4m5_noshield'
+ mim_2p0fF_tm = 'mim_2p0fF_tm_m4m5_noshield'
+ when '4LM'
+ mim_0p85fF_tm = 'mim_0p85fF_tm_m3m4_noshield'
+ mim_1p0fF_tm = 'mim_1p0fF_tm_m3m4_noshield'
+ mim_1p5fF_tm = 'mim_1p5fF_tm_m3m4_noshield'
+ mim_2p0fF_tm = 'mim_2p0fF_tm_m3m4_noshield'
+ end
+end
+
+#================================================
# --------------- CUSTOM CLASSES ----------------
#================================================
diff --git a/ULL/klayout/lvs/rule_decks/devices_connections.lvs b/ULL/klayout/lvs/rule_decks/devices_connections.lvs
index a0d119c..efd7f33 100644
--- a/ULL/klayout/lvs/rule_decks/devices_connections.lvs
+++ b/ULL/klayout/lvs/rule_decks/devices_connections.lvs
@@ -258,4 +258,20 @@
connect(pn_varactor_1p8_tp ,contact)
connect(pn_varactor_1p8_dw_tp ,contact)
connect(pn_varactor_6p0_tp ,contact)
-connect(pn_varactor_6p0_dw_tp ,contact)
\ No newline at end of file
+connect(pn_varactor_6p0_dw_tp ,contact)
+
+#==================================
+# ------ MIMCAP CONNECTIONS -------
+#==================================
+
+logger.info('Starting LVS MIMCAP CONNECTIONS')
+
+case MIM_OPTION
+when 'A'
+ connect(metal2, mim_virtual)
+ connect(fuse_cap, via2)
+
+when 'B'
+ connect(topmin1_metal, mimtm_virtual)
+ connect(fuse_cap, top_via)
+end
\ No newline at end of file