rsp_edf2nls 632 Bytes
#!/bin/csh -f
#
# usage:  edf2nls input
#
# "input".edf must exist, this may be a hierarchical netlist
#
# Notes:
#   must be run in the same Compass directory as "input".edf

# parse the arguments

if ($#argv != 1) then
	echo "Wrong number of arguments."
	echo 
	echo "Usage:  edf2nls input"
	exit 1
endif

set input = $argv[$#argv]

if (!(-e $input.edf)) then
	echo "$input.edf does not exist."
	exit 1
endif


#
# CALL COMPASS TOOLS
#
vlsishell << EOF
set echo on
utility netlist

read (onelevel) [edf]$input

write (top) [nls]$input


# read (tv) [nls]rsp

# flatten (precomputer)

# write [nls]rsp_f_timing

exit
exit
EOF
#