-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
50 lines (44 loc) · 1.8 KB
/
makefile
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
TOP_DIR = .
COMMON_DIR = ${TOP_DIR}/common
BASE = soc
SRC = ./soc.sv ./cpu.sv \
./fetch/fetch.sv ./fetch/pc_ctl.sv ./fetch/stage_if_id.sv ./fetch/dbg_fetch.sv \
./decode/decode.sv ./decode/dbg_decode.sv ./decode/stage_id_ex.sv \
./decode/dec32.sv ./decode/dec16.sv ./decode/dec_sel.sv \
./execute/execute.sv ./execute/stage_ex_ma.sv ./execute/alu.sv \
./execute/jmp_br.sv ./execute/csr_ecall.sv ./execute/dbg_execute.sv \
./access/access.sv ./access/stage_ma_wb.sv ./access/dataagent.sv \
./access/dbg_access.sv \
./instcache/instcache.sv ./instcache/dbg_instcache.sv \
./datacache/datacache.sv ./datacache/dbg_datacache.sv \
./rom/stub/rom_stub.sv ./rom/stub/dbg_rom.sv \
./ram/ram.sv ./ram/dbg_ram.sv \
./mmio_blk/mmio_blk.sv ./mmio_blk/dbg_mmio_blk.sv \
./uart/stub/uart_stub.sv ./uart/stub/uart.c \
./crossbar/crossbar.sv ./crossbar/arbiter.sv ./crossbar/pma.sv \
./crossbar/crossbar_ctl.sv ./crossbar/crossbar_dp.sv \
./crossbar/dbg_crossbar_dp.sv \
${COMMON_DIR}/regfile.sv ${COMMON_DIR}/dbg_regfile.sv \
${COMMON_DIR}/clk_rst.sv ${COMMON_DIR}/dff.sv ${COMMON_DIR}/tilelink.sv \
${COMMON_DIR}/zero_page.sv \
${COMMON_DIR}/forward.sv \
${COMMON_DIR}/csr.sv ${COMMON_DIR}/dbg_csr.sv \
${COMMON_DIR}/mmu.sv ${COMMON_DIR}/tlb.sv ${COMMON_DIR}/dbg_mmu.sv \
${COMMON_DIR}/alu_ops.sv ${COMMON_DIR}/io_ops.sv \
${COMMON_DIR}/bj_ops.sv ${COMMON_DIR}/sys_ops.sv \
${COMMON_DIR}/load.c ${COMMON_DIR}/debug.c ${COMMON_DIR}/memory.c
include ${TOP_DIR}/makefile.common
head:
make -C data
build: head
test: build
make -C tests
#TEST=tests/calc_add ${SIM}
#TEST=tests/mem_sw_lw ${SIM}
#TEST=tests/bj_ge ${SIM}
#TEST=tests/j ${SIM}
#TEST=tests/rom_load ${SIM}
#TEST=tests/uart_wr ${SIM}
#TEST=tests/paging ${SIM}
#TEST=tests/lr_sc ${SIM}
TEST=tests/amo ${SIM}