Makefile
813 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
#!smake
SRC = ri_rac000.tab
MODULE = ri_rac
EDIFDIR = ../../rcp/ri/syn
.SUFFIXES : .tab.Z .tab .sim .trc
.PRECIOUS: $*.trc
all: $(SRC:.tab=.trc)
PRDEPTH = ../../../..
include $(ROOT)/usr/include/make/commonrules
include $(ROOT)/usr/include/make/commondefs
LDIRT = *.sim* *.trc* *.edf* *.nls* *.log*
# create the nls for the ri_rac model
$(MODULE).nls: $(EDIFDIR)/ri.edf $(MODULE).v
dc_shell -x " \
read -f edif $(EDIFDIR)/ri.edf; \
read -f verilog ri_rac.v; \
write -f edif -o ri_rac.edf -hier; \
quit;"
/ecad/reality/bin/edf2nls $(MODULE)
.tab.Z.tab:
uncompress $*.tab.Z
.tab.sim:
$(PRDEPTH)/rdpsim/tools/tab2sim -o $*.sim -c $*.tab
fix_sim $*.sim
.sim.trc: do_sim $(MODULE).nls
do_sim $* | tee $*.simlog
rm $*.sim
compress -f $*.tab
compress -f $*.trc
compress -f $*.simlog