GNUmakefile
1.75 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#!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