Subversion Repositories Vertical

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 mjames 1
#!/bin/csh -f
2
# Arguments :
3
# First is entity
4
# Second is vhdl file
5
# third  is chip type
6
#
7
if ( $3 == "") then 
8
  echo "Purpose: to determine a possible pin fit without running Maxplus2" 
9
  echo "Usage: create_fit entity vhdlfile chiptype"
10
  echo "eg:    create_fit pll    pll.vhd  EPF10K50GC403"
11
  echo
12
  echo "creates a pin fit file that can be used with edit_acf script"
13
  echo "requires version of ACFread after V7.2"
14
  exit 1
15
endif
16
 
17
if ($VERTICAL_INIT == "") then
18
  setenv VERTICAL_INIT /user/mjames/alt_bb/setenv.scr 
19
endif
20
 
21
 
22
set acfread = "vertical.beta"
23
 
24
set entname  = $1
25
set vhdlname = $2
26
set chiptype = $3
27
 
28
if (! -e $vhdlname ) then
29
  echo "cant open $vhdlname"
30
  exit 1
31
endif
32
 
33
 
34
 
35
#########################
36
#strip out a VHDL entity
37
#########################
38
 
39
get_entity $entname < $vhdlname > $entname.tmp1.acfp
40
 
41
#####################################
42
#convert the entity to ACFplus format
43
#####################################
44
 
45
$acfread << END1 > acfread.log
46
 
47
debug 1
48
#force the ACFread system variables
49
setenv  vhdl_bus_format _%d_
50
setenv  TPATH /user/mjames/alt_bb/data/templates
51
 
52
read $entname.tmp1.acfp
53
set type $entname $chiptype
54
 
55
route
56
 
57
write acf  $entname.tmp2.acfp
58
quit
59
END1
60
 
61
#############################################################
62
#now apply the template to redefine all of the pins correctly
63
#############################################################
64
 
65
$acfread << END2 >> acfread.log
66
read $entname.tmp2.acfp
67
read \$(TPATH)/10k_templates
68
route
69
template
70
write fit $entname $entname.pins
71
quit
72
END2