caravel/scripts/update_power_routing_views.sh

19 lines
523 B
Bash
Executable File

#!/bin/bash
# run this script from caravel root
echo ${PDK_ROOT:=/usr/share/pdk} > /dev/null
echo ${PDK:=sky130A} > /dev/null
echo "Run this script from caravel root"
echo "Writing caravel_power_routing lef and mag view from gds"
magic -dnull -noconsole -rcfile $PDK_ROOT/$PDK/libs.tech/magic/$PDK.magicrc << EOF
drc off
gds read ./gds/caravel_power_routing.gds
load caravel_power_routing
property FIXED_BBOX "0 0 717600 1037600"
lef write ./lef/caravel_power_routing.lef
save ./mag/caravel_power_routing.mag
EOF
exit 0