From 104fc4bbaf031bc08a8431e7b5f86b78a3b1d503 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Philipp=20G=C3=BChring?= <pg@futureware.at>
Date: Wed, 22 Feb 2023 23:48:28 +0100
Subject: [PATCH] Workaround for 50nm scalegrid of gf180mcu This should be
 changed into an additional magscale parameter in the .tech file instead

---
 lclayout/writer/magic_writer.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lclayout/writer/magic_writer.py b/lclayout/writer/magic_writer.py
index 9114b80..d82514f 100644
--- a/lclayout/writer/magic_writer.py
+++ b/lclayout/writer/magic_writer.py
@@ -126,6 +126,7 @@ def store_layout_to_magic_file(tech_name: str,
     mag_lines = ["magic",
                  "# Generated by librecell",
                  "tech {}".format(tech_name),
+                 "magscale 1 10" if tech_name=='gf180mcuC' else "magscale 1 1", 
                  "timestamp {}".format(int(time.time()))
                  ]
 
-- 
GitLab