#!/bin/sh # # A script to release the magic layouts to # Magic and Virtuso format # # run in osu_stdcells/source # with no parameters # # Johannes Grad, OSU sourceFile=magic.abstract/osu_stdcells.mag echo "Checking if $sourceFile exists..." if (test ! -f $sourceFile ) then echo $sourceFile does not exist! echo Please run in osu_stdcells/source directory exit 127 fi echo Creating Magic Directory... /usr/bin/rm -rf magic mkdir magic cd magic.abstract for name in `ls -1 *.mag` do grep -v "rlabel" $name > ../magic/$name done cd .. /usr/bin/rm -f magic/osu_stdcells.mag echo Creating Sue Directory... /usr/bin/rm -rf sue mkdir sue cp sue.abstract/*.sue sue /usr/bin/rm -f sue/osu_stdcells.sue echo Creating ICFB layouts... /usr/bin/rm -rf icfb mkdir icfb /usr/bin/rm -rf strmout cp -R magic strmout cp magic.abstract/osu_stdcells.mag strmout cd strmout echo Streaming out AMI 0.5um for ICFB... ( echo ":cif ostyle lambda=0.30()" echo :calma; echo :q; echo yes) | magic -T SCN3ME_SUBM.30 -d NULL osu_stdcells > NULL rm NULL cp osu_stdcells.strm ../icfb/osu05_stdcells.gds2 echo Streaming out AMI 0.35um for ICFB... ( echo ":cif ostyle lambda=0.20()" echo :calma; echo :q; echo yes) | magic -T SCN4M_SUBM.20.TSMC -d NULL osu_stdcells > NULL rm NULL cp osu_stdcells.strm ../icfb/osu035_stdcells.gds2 echo Streaming out TSMC 0.25um for ICFB... ( echo ":cif ostyle lambda=0.15()" echo :calma; echo :q; echo yes) | magic -T SCN5M_SUBM.15 -d NULL osu_stdcells > NULL rm NULL cp osu_stdcells.strm ../icfb/osu025_stdcells.gds2 echo Streaming out TSMC 0.18um for ICFB... ( echo ":cif ostyle lambda=0.10()" echo :calma; echo :q; echo yes) | magic -T SCN6M_SUBM.10 -d NULL osu_stdcells > NULL rm NULL cp osu_stdcells.strm ../icfb/osu018_stdcells.gds2 cd .. /usr/bin/rm -rf strmout cp -R pads_ami05 strmout cd strmout echo Streaming out AMI 0.5um Pads for ICFB... ( echo ":cif ostyle lambda=0.30()" echo :calma; echo :q; echo yes) | magic -T SCN3ME_SUBM.30 -d NULL osu_stdcells_pads > NULL rm NULL cp osu_stdcells_pads.strm ../icfb/osu05_pads.gds2 cd .. /usr/bin/rm -rf strmout cp -R pads_ami035 strmout cd strmout echo Streaming out AMI 0.35um Pads for ICFB... ( echo ":cif ostyle lambda=0.20()" echo :calma; echo :q; echo yes) | magic -T SCN4M_SUBM.20.TSMC -d NULL osu_stdcells_pads > NULL rm NULL cp osu_stdcells_pads.strm ../icfb/osu035_pads.gds2 cd .. /usr/bin/rm -rf strmout echo Done!