rsp_edf2nls
632 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#!/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
#