Makefile
3.79 KB
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
PRDEPTH=../../../../..
include $(PRDEPTH)/PRdefs
include $(PRDEPTH)/PRrules
LDIRT = *.db *.edf *.nls *.*log *.rpp *.scr *.idx *.atr *.boo
# QTV makefile
#################
# block definition and target
BLOCK = rsp
SUBBLOCK_NLS = data_unit.nls iu.nls rspbusses.nls io_cmd_dma.nls io_mem_dma.nls vu.nls
SUBBLOCK_EDF = data_unit.edf iu.edf rspbusses.edf io_cmd_dma.edf io_mem_dma.edf vu.edf
#############################
# generic definitions
SYNDIR = ../syn
REALITYBIN = /ecad/reality/bin
COMPASS_FILES = qtv.db vlsi.idx vlsi.atr vlsi.boo
LIBPATH = qtv lib_patches ne35hd130d ne35dp120d nece01_sgid ne35io120d vsnl000x vlogdp010d cmosch000x vcc6ro2d
#############################
# default targets
default: $(BLOCK).qtvlog $(BLOCK).scrlog
#############################
# compass files
qtv.db:
@/sbin/echo "Creating ./qtv.db ..."
@/sbin/echo "v1(0,qtv)" > qtv.db
vlsi.idx:
@/sbin/echo "Creating ./vlsi.idx ..."
@/sbin/echo "qtv" > vlsi.idx
vlsi.atr:
@/sbin/echo "Creating ./vlsi.atr ..."
@/sbin/echo '\"7-Jun-94\" \"8:42\"' > vlsi.atr
@/sbin/echo "anyone" >> vlsi.atr
@/sbin/echo "working" >> vlsi.atr
@/sbin/echo "2" >> vlsi.atr
vlsi.boo:
@/sbin/echo "Creating ./vlsi.boo ..."
@/sbin/echo "# layout directory vlsi.boo" > vlsi.boo
@/sbin/echo "" >> vlsi.boo
@/sbin/echo "cell_library qtv ." >> vlsi.boo
@/sbin/echo "search_path $(LIBPATH)" >> vlsi.boo
@/sbin/echo "" >> vlsi.boo
#############################
# create links to top level rsp modules
rsp.links:
rm *.edf
ln -s /hosts/jax/a/Reality/mdevroot/PR/hw/chip/rcp/rsp/syn/data_unit.edf .
ln -s /hosts/jax/a/Reality/mdevroot/PR/hw/chip/rcp/rsp/syn/iu.edf .
ln -s /hosts/jax/a/Reality/mdevroot/PR/hw/chip/rcp/io/syn/io_cmd_dma.edf .
ln -s /hosts/jax/a/Reality/mdevroot/PR/hw/chip/rcp/io/syn/io_mem_dma.edf .
ln -s /hosts/jax/a/Reality/mdevroot/PR/hw/chip/rcp/sb/syn/rspbusses.edf .
ln -s /hosts/jax/a/Reality/mdevroot/PR/hw/chip/rcp/vu/syn/vu.edf .
ln -s /hosts/jax/a/Reality/mdevroot/PR/hw/chip/rcp/su/syn/su.edf .
ln -s /hosts/jax/a/Reality/mdevroot/PR/hw/chip/rcp/rsp/syn/rsp.edf .
#############################
# copy synthesized netlist
$(BLOCK).edf: $(SYNDIR)/$(BLOCK).edf
-/sbin/rm -f $(BLOCK).edf
cp $(SYNDIR)/$(BLOCK).edf .
rsp_nomem.edf: $(SYNDIR)/rsp_nomem.edf
-/sbin/rm -f rsp_nomem.edf
cp $(SYNDIR)/rsp_nomem.edf .
#############################
# compass netlists
#############################
#############################
# convert top level modules within rsp from edif to nls
#############################
data_unit.nls: ../syn/data_unit.edf $(COMPASS_FILES)
$(REALITYBIN)/edf2nls data_unit | tee data_unit.nlslog
iu.nls: ../syn/iu.edf $(COMPASS_FILES)
$(REALITYBIN)/edf2nls iu | tee iu.nlslog
su.nls: su.edf $(COMPASS_FILES)
$(REALITYBIN)/edf2nls su | tee $(BLOCK).nlslog
rspbusses.nls: rspbusses.edf $(COMPASS_FILES)
$(REALITYBIN)/edf2nls rspbusses | tee rspbusses.nlslog
io_cmd_dma.nls: io_cmd_dma.edf $(COMPASS_FILES)
$(REALITYBIN)/edf2nls io_cmd_dma | tee io_cmd_dma.nlslog
io_mem_dma.nls: io_mem_dma.edf $(COMPASS_FILES)
$(REALITYBIN)/edf2nls io_mem_dma | tee io_mem_dma.nlslog
vu.nls: vu.edf $(COMPASS_FILES)
$(REALITYBIN)/edf2nls vu | tee vu.nlslog
rsp_nomem.nls: rsp_nomem.edf
rsp_nomem_edf2nls rsp_nomem | tee rsp_nomem.nlslog
$(BLOCK).nls: $(BLOCK).edf $(SUBBLOCK_NLS) $(COMPASS_FILES)
sudp_edf2nls | tee sudp.nlslog
vudp_edf2nls | tee vudp.nlslog
rsp_edf2nls $(BLOCK) | tee $(BLOCK).nlslog
#############################
# block timing (qtv)
$(BLOCK).qtvlog : $(BLOCK).qtvscr $(BLOCK).nls $(SUBBLOCK_NLS) $(COMPASS_FILES)
-/sbin/rm -f $(BLOCK).qtvlog
csh $(BLOCK).qtvscr | tee $(BLOCK).qtvlog
#############################
# design rules / fanouts (screener)
$(BLOCK).scrlog : $(BLOCK).scrscr $(BLOCK).nls $(COMPASS_FILES)
-/sbin/rm -f $(BLOCK).scrlog
csh $(BLOCK).scrscr | tee $(BLOCK).scrlog