blob: fccb0a8b81a16e52a67b839e12f4803ec2f1b1d5 [file] [log] [blame]
#!/bin/sh
#
# generate_lef_views.sh ---
#
# Read all of the cell names from "topcells.txt" and generate LEF views
# from them. Then write those files to the ../lef directory.
#
allcells=`cat topcells.txt`
magic -dnull -noconsole -rcfile /usr/share/pdk/sky130A/libs.tech/magic/sky130A.magicrc << EOF
drc off
crashbackups stop
set cells $allcells
foreach cell \$cells {
load \$cell
lef write -hide
}
quit -noprompt
EOF
mv *.lef ../lef/
exit 0