From 3f958a70dcc7a60ac3825f69dc4983308c30888c Mon Sep 17 00:00:00 2001 From: "D. Mitch Bailey" Date: Tue, 2 Aug 2022 20:02:20 -0700 Subject: [PATCH] precheck magic drc magicrc changes Removed invalid EF line Added sky130B capability Maybe filename should be changed from sky130A.magicrc to sky130.magicrc but that requires a change to the Makefile too. --- checks/tech-files/sky130A.magicrc | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/checks/tech-files/sky130A.magicrc b/checks/tech-files/sky130A.magicrc index b63a259..d6df9e2 100644 --- a/checks/tech-files/sky130A.magicrc +++ b/checks/tech-files/sky130A.magicrc @@ -13,8 +13,12 @@ # limitations under the License. # # SPDX-License-Identifier: Apache-2.0 -EF -puts stdout "Sourcing design .magicrc for technology sky130A ..." + +if {[catch {set PDK $env(PDK)}]} { + set PDK "sky130B" +} + +puts stdout "Sourcing design .magicrc for technology $PDK ..." # Put grid on 0.005 pitch. This is important, as some commands don't # rescale the grid automatically (such as lef read?). @@ -36,14 +40,14 @@ ext2spice scale off # Allow override of PDK path from environment variable PDKPATH if {[catch {set PDKPATH $env(PDKPATH)}]} { - set PDKPATH "$::env(PDK_PATH)" + set PDKPATH "$::env(PDK_PATH)/$PDK" } # loading technology -tech load $PDKPATH/libs.tech/magic/sky130A.tech +tech load $PDKPATH/libs.tech/magic/$PDK.tech # load device generator -source $PDKPATH/libs.tech/magic/sky130A.tcl +source $PDKPATH/libs.tech/magic/$PDK.tcl # load bind keys (optional) # source $PDKPATH/libs.tech/magic/sky130A-BindKeys