5 all = core_tb simple_ram_behavioural_tb soc_reset_tb
7 # loadstore_tb fetch_tb
12 $(GHDL
) -a
$(GHDLFLAGS
) $<
14 common.o
: decode_types.o
15 core_tb.o
: common.o core.o soc.o
16 core.o
: common.o wishbone_types.o fetch1.o fetch2.o icache.o decode1.o decode2.o register_file.o cr_file.o execute1.o execute2.o loadstore1.o loadstore2.o multiply.o writeback.o
19 decode1.o
: common.o decode_types.o
20 decode2.o
: decode_types.o common.o helpers.o insn_helpers.o
22 execute1.o
: decode_types.o common.o helpers.o crhelpers.o ppc_fx_insns.o sim_console.o
23 execute2.o
: common.o crhelpers.o ppc_fx_insns.o
25 fetch2.o
: common.o wishbone_types.o
26 glibc_random_helpers.o
:
27 glibc_random.o
: glibc_random_helpers.o
29 icache.o
: common.o wishbone_types.o
31 loadstore1.o
: common.o
32 loadstore2.o
: common.o helpers.o wishbone_types.o
33 multiply_tb.o
: common.o glibc_random.o ppc_fx_insns.o multiply.o
34 multiply.o
: common.o decode_types.o ppc_fx_insns.o crhelpers.o
35 ppc_fx_insns.o
: helpers.o
36 register_file.o
: common.o
38 simple_ram_behavioural_helpers.o
:
39 simple_ram_behavioural_tb.o
: wishbone_types.o simple_ram_behavioural.o
40 simple_ram_behavioural.o
: wishbone_types.o simple_ram_behavioural_helpers.o
41 sim_uart.o
: wishbone_types.o sim_console.o
42 soc.o
: common.o wishbone_types.o core.o wishbone_arbiter.o sim_uart.o simple_ram_behavioural.o
43 wishbone_arbiter.o
: wishbone_types.o
46 fpga
/soc_reset_tb.o
: fpga
/soc_reset.o
48 soc_reset_tb
: fpga
/soc_reset_tb.o fpga
/soc_reset.o
49 $(GHDL
) -e
$(GHDLFLAGS
) soc_reset_tb
51 core_tb
: core_tb.o simple_ram_behavioural_helpers_c.o sim_console_c.o
52 $(GHDL
) -e
$(GHDLFLAGS
) -Wl
,simple_ram_behavioural_helpers_c.o
-Wl
,sim_console_c.o
$@
55 $(GHDL
) -e
$(GHDLFLAGS
) $@
57 loadstore_tb
: loadstore_tb.o
58 $(GHDL
) -e
$(GHDLFLAGS
) $@
60 simple_ram_tb
: simple_ram_tb.o
61 $(GHDL
) -e
$(GHDLFLAGS
) $@
63 simple_ram_behavioural_tb
: simple_ram_behavioural_helpers_c.o simple_ram_behavioural_tb.o
64 $(GHDL
) -e
$(GHDLFLAGS
) -Wl
,simple_ram_behavioural_helpers_c.o
$@
66 tests
= $(sort $(patsubst tests
/%.out
,%,$(wildcard tests
/*.out
)))
68 check: $(tests
) test_micropython test_micropython_long
70 check_light
: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 test_micropython test_micropython_long
73 @.
/scripts
/run_test.sh
$@
75 test_micropython
: core_tb
76 @.
/scripts
/test_micropython.py
78 test_micropython_long
: core_tb
79 @.
/scripts
/test_micropython_long.py
82 rm -f
*.o work-
*cf
$(all)