GNUmakefile 1.75 KB
#!smake
#
# $Revision: 1.4 $
#

PRDEPTH = ../../..
include $(PRDEPTH)/PRdefs

TARGETS = golden.spandata iorand.rdram
SIMV=${ROOT}/PR/hw2/chip/vsim/sim.ipc

default: $(TARGETS)

include $(PRDEPTH)/PRrules

iorand.rdram: app.data iorand.data vi.data sp.data $(_FORCE)
	cat app.data iorand.data vi.data sp.data mi.data | $(DATA2RDRAM) -r 2 > iorand.rdram

golden.spandata:
	uncompress golden.spandata.Z

app.data:
	uncompress app.data.Z

tests:
	@echo "Check if IOSIM_SERVER and IOSIM_PORT are specified"
	test "${IOSIM_SERVER}" != ""
	test "${IOSIM_PORT}" != ""
	/home/whs/bb/rf/sw/root/PR/iosim/src/iorand -n IORAND -d 0x241 -l iorand.log \
	-s "${ROOT}/PR/hw2/chip/sim/simv2.ipc -l verilog.log +load_imem +load_dmem +load_pif +load_rom +mmap_rdram=iorand +vitab=vi.tab"

vitest: mln1test mln2test mlp1test mhn1test mhf2test dth2test
	
mln1test:
	(cd ../../../hw2/chip/vsim; export IOSIM_PORT=9000; ./sim.ipc &)
	export IOSIM_PORT=9000; ../../src/iorand -f ../../test/bcp_iorand.tst -t 15,8,16

mln2test:	
	(cd ../../../hw2/chip/vsim; export IOSIM_PORT=9001; ./sim.ipc &)	
	export IOSIM_PORT=9001;../../src/iorand -f ../../test/bcp_iorand.tst -t 15,8,17 

mlp1test:
	(cd ../../../hw2/chip/vsim; export IOSIM_PORT=9002; ./sim.ipc &)	
	export IOSIM_PORT=9002; ../../src/iorand -f ../../test/bcp_iorand.tst -t 15,8,18 

mhn1test:
	(cd ../../../hw2/chip/vsim; export IOSIM_PORT=9003; ./sim.ipc &) 
	export IOSIM_PORT=9003;	../../src/iorand -f ../../test/bcp_iorand.tst -t 15,8,19 

mhf2test:
	(cd ../../../hw2/chip/vsim; export IOSIM_PORT=9004; ./sim.ipc &) 
	export IOSIM_PORT=9004;	../../src/iorand -f ../../test/bcp_iorand.tst -t 15,8,20 

dth2test:
	(cd ../../../hw2/chip/vsim; export IOSIM_PORT=9005; ./sim.ipc &) 
	export IOSIM_PORT=9005;	../../src/iorand -f ../../test/bcp_iorand.tst -t 9