Makefile 813 Bytes
#!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