Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions checks/tech-files/sky130A.magicrc
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@
#
# SPDX-License-Identifier: Apache-2.0

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?).
Expand All @@ -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
Expand Down