YARISIM: Simulate a framebuffer
[yari.git] / Makefile
blobbf954ffb75ca9be7f344ec4e3fc0aa12f20c3ff4
1 # XXX Needs a proper multi-level build system
3 # No suffix or path!!
4 TESTPROG=testall
5 #TESTPROG=testicache
6 #TESTPROG=testeret
8 VERB=--verb
10 usage:
11 @echo Usage:
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'
14 @echo Make variables:
15 @echo "TESTPROG -- the program to run. Default is $(TESTPROG)"
16 @echo "VERB -- Options for the simulator. Default is $(VERB)."
18 isasim:
19 make -C testcases $(TESTPROG)-prom.mips
20 make -C yarisim FLAGS=$(VERB) TESTPROG=../testcases/$(TESTPROG)-prom.mips run
22 rtlsim:
23 make -C testcases PROG=$(TESTPROG) promote
24 make -C rtl/target/Icarus simulate
26 cosim:
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
32 clean:
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
39 realclean:
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
47 tabcheck:
48 @grep --perl '\t' `find . -name \*.v` || echo All ok