Makefile 3.79 KB
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