Makefile 8.98 KB
# #!smake -J 1
###########################################################
#
#  rules for extracting vectors from iosim/simv.ipc
#
###########################################################

PRDEPTH = $(ROOT)/PR
include $(PRDEPTH)/PRdefs
include $(PRDEPTH)/PRrules

LDIRT = *.tab*

SIMVDIR = /var/tmp/tonyd
DIRECTED = $(ROOT)/PR/iosim/data/directed
IORANDDIR = $(ROOT)/PR/iosim/data/dma80
VIDIR = $(ROOT)/PR/rdpsim/backend/test/Iosim
RDPDIR = $(ROOT)/PR/rdpsim/test/rdp
ATTDIR = $(ROOT)/PR/apps/rdpatt
EWDIR = $(ROOT)/PR/apps/rdpew
TEXDIR = $(ROOT)/PR/apps/rdptex
MSDIR = $(ROOT)/PR/apps/rdpms

ROM_DATA = $(DIRECTED)/rom_4.data \
	   $(DIRECTED)/rom_8.data

PIF_DATA = $(DIRECTED)/pif.data

default: test000.tab.Z test001.tab.Z test002.tab.Z test003.tab.Z \
         test004.tab.Z test006.tab.Z test007.tab.Z test008.tab.Z \
         test009.tab.Z test010.tab.Z test011.tab.Z test012.tab.Z \
         test013.tab.Z test014.tab.Z test015.tab.Z

$(ROOT)/PR/iosim/src/iosim: $(_FORCE)
	cd $(ROOT)/PR/iosim/src; make iosim

$(ROOT)/PR/iosim/src/iorand: $(_FORCE)
	cd $(ROOT)/PR/iosim/src; make iorand

$(SIMVDIR)/simv.ipc: $(_FORCE)
	cd $(ROOT)/PR/hw/chip/sim; make ipc

$(DIRECTED)/iosim.rdram: $(_FORCE)
	cd $(ROOT)/PR/iosim/data/directed; make

$(IORANDDIR)iorand.rdram: $(_FORCE)
	cd $(IORANDDIR); make

$(VIDIR)/tri-small16.rdram: $(_FORCE)
	cd $(VIDIR); make tri-small16.rdram

$(VIDIR)/tri-small32.rdram: $(_FORCE)
	cd $(VIDIR); make tri-small32.rdram

$(VIDIR)/randtreev16.rdram: $(_FORCE)
	cd $(VIDIR); make randtreev16.rdram

$(VIDIR)/randtreeh16.rdram: $(_FORCE)
	cd $(VIDIR); make randtreeh16.rdram

$(ATTDIR)/InData/test031.31.rdram.Z: $(_FORCE)
	cd $(ATTDIR); make test031

$(EWDIR)/InData/test040.40.rdram.Z: $(_FORCE)
	cd $(EWDIR); make test040

$(TEXDIR)/InData/test050.50.rdram.Z: $(_FORCE)
	cd $(TEXDIR); make test050

$(MSDIR)/InData/test003.3.rdram.Z: $(_FORCE)
	cd $(MSDIR); make test003

####################################################################################
# pi directed
####################################################################################
test000.tab.Z: $(ROOT)/PR/iosim/test/pi.tst $(ROM_DATA) $(DIRECTED)/iosim.rdram
	- cd $(DIRECTED); \
	$(ROOT)/PR/iosim/src/iosim -f $(ROOT)/PR/iosim/test/pi.tst \
		-l $(ROOT)/PR/hw/chip/qsim/rcp/tab_files/pi.log \
		-s "$(SIMVDIR)/simv.ipc +load_rom +mmap_rdram=iosim +cyclelimit=200000 \
                +rcp_tab=/hosts/hurricane/usr/people/tonyd/mdevroot/PR/hw/chip/qsim/rcp/tab_files/test000.tab"; \
	compress -f $(ROOT)/PR/hw/chip/qsim/rcp/tab_files/test000.tab

####################################################################################
# ai directed
####################################################################################
test001.tab.Z: $(ROOT)/PR/iosim/test/ai.tst
	- cd $(DIRECTED); \
	$(ROOT)/PR/iosim/src/iosim -f $(ROOT)/PR/iosim/test/ai.tst \
		-l $(ROOT)/PR/hw/chip/qsim/rcp/tab_files/ai.log \
		-s "$(SIMVDIR)/simv.ipc +cyclelimit=200000 \
                +rcp_tab=/hosts/hurricane/usr/people/tonyd/mdevroot/PR/hw/chip/qsim/rcp/tab_files/test001.tab"; \
	compress -f $(ROOT)/PR/hw/chip/qsim/rcp/tab_files/test001.tab

####################################################################################
# si directed
####################################################################################
test002.tab.Z: $(ROOT)/PR/iosim/test/si.tst $(PIF_DATA)
	- cd $(DIRECTED); \
	$(ROOT)/PR/iosim/src/iosim -f $(ROOT)/PR/iosim/test/si.tst \
		-l $(ROOT)/PR/hw/chip/qsim/rcp/tab_files/si.log \
		-s "$(SIMVDIR)/simv.ipc +load_pif +cyclelimit=200000 \
                +rcp_tab=/hosts/hurricane/usr/people/tonyd/mdevroot/PR/hw/chip/qsim/rcp/tab_files/test002.tab"; \
	compress -f $(ROOT)/PR/hw/chip/qsim/rcp/tab_files/test002.tab

####################################################################################
# arb directed
####################################################################################
test003.tab.Z: $(IORANDDIR)iorand.rdram
	- cd $(IORANDDIR); \
	$(ROOT)/PR/iosim/src/iorand -t 1-12,14 -i 1 -r 1 -d 0x241 \
	-l $(ROOT)/PR/hw/chip/qsim/rcp/tab_files/arb.log \
	-s "$(SIMVDIR)/simv.ipc -l $(ROOT)/PR/hw/chip/qsim/rcp/tab_files/iorand.vlog +load_pif +load_rom +mmap_rdram=iorand +vitab=vi.tab +adac_mon +spandata_mon +cyclelimit=200000 \
                +rcp_tab=/hosts/hurricane/usr/people/tonyd/mdevroot/PR/hw/chip/qsim/rcp/tab_files/test003.tab"; \
	compress -f $(ROOT)/PR/hw/chip/qsim/rcp/tab_files/test003.tab

####################################################################################
# vi directed
####################################################################################
test004.tab.Z: $(VIDIR)/vi_lan1.tst $(VIDIR)/tri-small16.rdram
	- cd $(VIDIR); \
	$(ROOT)/PR/iosim/src/iosim -f vi_lan1.tst \
	   -l $(ROOT)/PR/hw/chip/qsim/rcp/tab_files/vi04.log \
	   -s "$(SIMVDIR)/simv.ipc +mmap_rdram=tri-small16 +cyclelimit=200000 \
                +rcp_tab=/hosts/hurricane/usr/people/tonyd/mdevroot/PR/hw/chip/qsim/rcp/tab_files/test004.tab"; \
	compress -f $(ROOT)/PR/hw/chip/qsim/rcp/tab_files/test004.tab

test009.tab.Z: $(VIDIR)/vi_lan2.tst $(VIDIR)/tri-small32.rdram
	- cd $(VIDIR); \
	$(ROOT)/PR/iosim/src/iosim -f vi_lan2.tst \
	   -l $(ROOT)/PR/hw/chip/qsim/rcp/tab_files/vi09.log \
	   -s "$(SIMVDIR)/simv.ipc +mmap_rdram=tri-small32 +cyclelimit=200000 \
                +rcp_tab=/hosts/hurricane/usr/people/tonyd/mdevroot/PR/hw/chip/qsim/rcp/tab_files/test009.tab"; \
	compress -f $(ROOT)/PR/hw/chip/qsim/rcp/tab_files/test009.tab

test010.tab.Z: $(VIDIR)/vi_lpn1.tst $(VIDIR)/tri-small16.rdram
	- cd $(VIDIR); \
	$(ROOT)/PR/iosim/src/iosim -f vi_lpn1.tst \
	   -l $(ROOT)/PR/hw/chip/qsim/rcp/tab_files/vi10.log \
	   -s "$(SIMVDIR)/simv.ipc +mmap_rdram=tri-small16 +cyclelimit=200000 \
                +rcp_tab=/hosts/hurricane/usr/people/tonyd/mdevroot/PR/hw/chip/qsim/rcp/tab_files/test010.tab"; \
	compress -f $(ROOT)/PR/hw/chip/qsim/rcp/tab_files/test010.tab

test011.tab.Z: $(VIDIR)/vi_han1.tst $(VIDIR)/tri-small16.rdram
	- cd $(VIDIR); \
	$(ROOT)/PR/iosim/src/iosim -f vi_han1.tst \
	   -l $(ROOT)/PR/hw/chip/qsim/rcp/tab_files/vi11.log \
	   -s "$(SIMVDIR)/simv.ipc +mmap_rdram=tri-small16 +cyclelimit=200000 \
                +rcp_tab=/hosts/hurricane/usr/people/tonyd/mdevroot/PR/hw/chip/qsim/rcp/tab_files/test011.tab"; \
	compress -f $(ROOT)/PR/hw/chip/qsim/rcp/tab_files/test011.tab

test012.tab.Z: $(VIDIR)/vi_hpf2.tst $(VIDIR)/tri-small32.rdram
	- cd $(VIDIR); \
	$(ROOT)/PR/iosim/src/iosim -f vi_hpf2.tst \
	   -l $(ROOT)/PR/hw/chip/qsim/rcp/tab_files/vi12.log \
	   -s "$(SIMVDIR)/simv.ipc +mmap_rdram=tri-small32 +cyclelimit=200000 \
                +rcp_tab=/hosts/hurricane/usr/people/tonyd/mdevroot/PR/hw/chip/qsim/rcp/tab_files/test012.tab"; \
	compress -f $(ROOT)/PR/hw/chip/qsim/rcp/tab_files/test012.tab

test013.tab.Z: $(VIDIR)/vi.32-240-18i.tst $(VIDIR)/randtreev16.rdram
	- cd $(VIDIR); \
	$(ROOT)/PR/iosim/src/iosim -f vi.32-240-18i.tst \
	   -l $(ROOT)/PR/hw/chip/qsim/rcp/tab_files/vi13.log \
	   -s "$(SIMVDIR)/simv.ipc +mmap_rdram=randtreev16 +cyclelimit=200000 \
                +rcp_tab=/hosts/hurricane/usr/people/tonyd/mdevroot/PR/hw/chip/qsim/rcp/tab_files/test013.tab"; \
	compress -f $(ROOT)/PR/hw/chip/qsim/rcp/tab_files/test013.tab

test014.tab.Z: $(VIDIR)/vi.320-32-18i.tst $(VIDIR)/randtreeh16.rdram
	- cd $(VIDIR); \
	$(ROOT)/PR/iosim/src/iosim -f vi.320-32-18i.tst \
	   -l $(ROOT)/PR/hw/chip/qsim/rcp/tab_files/vi14.log \
	   -s "$(SIMVDIR)/simv.ipc +mmap_rdram=randtreeh16 +cyclelimit=200000 \
                +rcp_tab=/hosts/hurricane/usr/people/tonyd/mdevroot/PR/hw/chip/qsim/rcp/tab_files/test014.tab"; \
	compress -f $(ROOT)/PR/hw/chip/qsim/rcp/tab_files/test014.tab

####################################################################################
# mi directed
####################################################################################
#test005.tab.Z: from cosim environment


####################################################################################
# rdp directed
####################################################################################
test006.tab.Z: $(ATTDIR)/InData/test031.31.rdram.Z
	- cd $(RDPDIR); \
	testit -n 031 -t att -s io; \
	mv $(ROOT)/PR/hw/chip/qsim/rcp/tab_files/test.tab $(ROOT)/PR/hw/chip/qsim/rcp/tab_files/test006.tab; \
	compress -f $(ROOT)/PR/hw/chip/qsim/rcp/tab_files/test006.tab

test007.tab.Z: $(EWDIR)/InData/test040.40.rdram.Z
	- cd $(RDPDIR); \
	testit -n 040 -t ew -s io; \
	mv $(ROOT)/PR/hw/chip/qsim/rcp/tab_files/test.tab $(ROOT)/PR/hw/chip/qsim/rcp/tab_files/test007.tab; \
	compress -f $(ROOT)/PR/hw/chip/qsim/rcp/tab_files/test007.tab

test008.tab.Z: $(TEXDIR)/InData/test050.50.rdram.Z
	- cd $(RDPDIR); \
	testit -n 050 -t tex -s io; \
	mv $(ROOT)/PR/hw/chip/qsim/rcp/tab_files/test.tab $(ROOT)/PR/hw/chip/qsim/rcp/tab_files/test008.tab; \
	compress -f $(ROOT)/PR/hw/chip/qsim/rcp/tab_files/test008.tab

test015.tab.Z: $(MSDIR)/InData/test003.3.rdram.Z
	- cd $(RDPDIR); \
	testit -n 003 -t ms -s io; \
	mv $(ROOT)/PR/hw/chip/qsim/rcp/tab_files/test.tab $(ROOT)/PR/hw/chip/qsim/rcp/tab_files/test015.tab; \
	compress -f $(ROOT)/PR/hw/chip/qsim/rcp/tab_files/test015.tab