Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Numerous bug fixes, ending in clean full LVS for both caravel and caravan. #76

Merged
merged 4 commits into from
Apr 20, 2022
Merged
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ __ship:
property GDS_START 0; \
load mgmt_core_wrapper; \
property LEFview true; \
property GDS_FILE ../mgmt_core_wrapper/gds/mgmt_core_wrapper.gds; \
property GDS_FILE $(MCW_ROOT)/gds/mgmt_core_wrapper.gds; \
property GDS_START 0; \
load $(UPRJ_ROOT)/mag/user_id_programming; \
load $(UPRJ_ROOT)/mag/user_id_textblock; \
Expand Down Expand Up @@ -174,7 +174,7 @@ __truck:
property GDS_START 0; \
load mgmt_core_wrapper; \
property LEFview true; \
property GDS_FILE ../mgmt_core_wrapper/gds/mgmt_core_wrapper.gds; \
property GDS_FILE $(MCW_ROOT)/gds/mgmt_core_wrapper.gds; \
property GDS_START 0; \
load $(UPRJ_ROOT)/mag/user_id_programming; \
load $(UPRJ_ROOT)/mag/user_id_textblock; \
Expand Down
30 changes: 21 additions & 9 deletions mag/.magicrc
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,24 @@
#
# SPDX-License-Identifier: Apache-2.0

puts stdout "Sourcing design .magicrc for technology $::env(PDK) ..."
# Allow override of PDK path from environment variable PDKPATH. Failing
# that, fall back on definitions of PDK_ROOT and PDK. If either of those
# fails, substitute a default. If PDKPATH has been specified, then get
# PDK_VARIANT from the tail of PDKPATH.

if {[catch {set PDKPATH $env(PDKPATH)}]} {
if {[catch {set PDK_ROOT $env(PDK_ROOT)}]} {
set PDK_ROOT /usr/share/pdk
}
if {[catch {set PDK_VARIANT $env(PDK)}]} {
set PDK_VARIANT sky130A
}
set PDKPATH ${PDK_ROOT}/${PDK_VARIANT}
} else {
set PDK_VARIANT [file tail ${PDKPATH}]
}

puts stdout "Sourcing design .magicrc for technology $PDK_VARIANT ..."

# Put grid on 0.005 pitch. This is important, as some commands don't
# rescale the grid automatically (such as lef read?).
Expand All @@ -27,19 +44,14 @@ if {[lindex $scalefac 1] < 2} {
drc off
drc euclidean on

# Allow override of PDK path from environment variable PDKPATH
if {[catch {set PDKPATH $env(PDKPATH)}]} {
set PDKPATH "$::env(PDK_ROOT)/$::env(PDK)"
}

# loading technology
tech load $PDKPATH/libs.tech/magic/$::env(PDK).tech
tech load $PDKPATH/libs.tech/magic/${PDK_VARIANT}.tech

# load device generator
source $PDKPATH/libs.tech/magic/$::env(PDK).tcl
source $PDKPATH/libs.tech/magic/${PDK_VARIANT}.tcl

# load bind keys (optional)
# source $PDKPATH/libs.tech/magic/$::env(PDK)-BindKeys
# source $PDKPATH/libs.tech/magic/${PDK_VARIANT}-BindKeys

# set units to lambda grid
snap lambda
Expand Down
Loading