From 79828c00b33251184dde26185ecc2a2a1d82e4de Mon Sep 17 00:00:00 2001 From: Tim Edwards Date: Tue, 7 Dec 2021 10:32:22 -0500 Subject: [PATCH] Revised the LVS run scripts to use $PDK_ROOT instead of a hard- coded path. --- mag/run_caravan_lvs.sh | 4 +++- mag/run_caravel_lvs.sh | 4 +++- mag/run_chip_io_alt_lvs.sh | 4 +++- mag/run_chip_io_lvs.sh | 4 +++- 4 files changed, 12 insertions(+), 4 deletions(-) diff --git a/mag/run_caravan_lvs.sh b/mag/run_caravan_lvs.sh index c5ab42dd..f3c5d0ad 100755 --- a/mag/run_caravan_lvs.sh +++ b/mag/run_caravan_lvs.sh @@ -1,7 +1,9 @@ #!/bin/bassh # +PDK_ROOT ?= /usr/share/pdk + if [ ! -f caravan.spice ]; then -magic -dnull -noconsole -rcfile /usr/share/pdk/sky130A/libs.tech/magic/sky130A.magicrc << EOF +magic -dnull -noconsole -rcfile $PDK_ROOT/sky130A/libs.tech/magic/sky130A.magicrc << EOF drc off crashbackups stop load caravan diff --git a/mag/run_caravel_lvs.sh b/mag/run_caravel_lvs.sh index 5c430bc7..70f8b059 100755 --- a/mag/run_caravel_lvs.sh +++ b/mag/run_caravel_lvs.sh @@ -1,7 +1,9 @@ #!/bin/bash # +PDK_ROOT ?= /usr/share/pdk + if [ ! -f caravel.spice ]; then -magic -dnull -noconsole -rcfile /usr/share/pdk/sky130A/libs.tech/magic/sky130A.magicrc << EOF +magic -dnull -noconsole -rcfile $PDK_ROOT/sky130A/libs.tech/magic/sky130A.magicrc << EOF drc off crashbackups stop load caravel diff --git a/mag/run_chip_io_alt_lvs.sh b/mag/run_chip_io_alt_lvs.sh index de0b0139..4d943fef 100755 --- a/mag/run_chip_io_alt_lvs.sh +++ b/mag/run_chip_io_alt_lvs.sh @@ -1,7 +1,9 @@ #!/bin/bash # +PDK_ROOT ?= /usr/share/pdk + if [ ! -f caravan.spice ]; then -magic -dnull -noconsole -rcfile /usr/share/pdk/sky130A/libs.tech/magic/sky130A.magicrc << EOF +magic -dnull -noconsole -rcfile $PDK_ROOT/sky130A/libs.tech/magic/sky130A.magicrc << EOF drc off crashbackups stop load caravan diff --git a/mag/run_chip_io_lvs.sh b/mag/run_chip_io_lvs.sh index 7adfc632..a598a5a1 100755 --- a/mag/run_chip_io_lvs.sh +++ b/mag/run_chip_io_lvs.sh @@ -1,7 +1,9 @@ #!/bin/bash # +PDK_ROOT ?= /usr/share/pdk + if [ ! -f caravel.spice ]; then -magic -dnull -noconsole -rcfile /usr/share/pdk/sky130A/libs.tech/magic/sky130A.magicrc << EOF +magic -dnull -noconsole -rcfile $PDK_ROOT/sky130A/libs.tech/magic/sky130A.magicrc << EOF drc off crashbackups stop load caravel