1 # XXX Needs a proper multi-level build system
12 @echo
' make isasim -- run a software simulation of the test program'
13 @echo
' make rtlsim -- run a simulated the RTL on the test program'
15 @echo
"TESTPROG -- the program to run. Default is $(TESTPROG)"
16 @echo
"VERB -- Options for the simulator. Default is $(VERB)."
19 make
-C testcases
$(TESTPROG
)-prom.mips
20 make
-C yarisim FLAGS
=$(VERB
) TESTPROG
=..
/testcases
/$(TESTPROG
)-prom.mips run
23 make
-C testcases PROG
=$(TESTPROG
) promote
24 make
-C rtl
/target
/Icarus simulate
27 make
-C testcases PROG
=$(TESTPROG
) $(TESTPROG
)-prom.mips promote
28 make
-C rtl
/target
/Icarus simulate | \
29 make
-C yarisim FLAGS
="--cosim $(VERB)" TESTPROG
=..
/testcases
/$(TESTPROG
)-prom.mips run
33 -make
-C yarisim
clean
34 -make
-C testcases
clean
35 -make
-C gdbstub
clean
36 -make
-C firmware
clean
37 -make
-C rtl
/target
/Icarus
clean
40 -find .
-name \
*~|xargs
rm
41 -make
-C yarisim
realclean
42 -make
-C testcases
realclean
43 -make
-C gdbstub
realclean
44 -make
-C firmware
realclean
45 -make
-C rtl
/target
/Icarus
realclean
48 @grep
--perl
'\t' `find . -name \*.v` || echo All ok