-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (23 loc) · 703 Bytes
/
Makefile
File metadata and controls
28 lines (23 loc) · 703 Bytes
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
SBT = sbt
TARGET = fpga/chisel_generated
INCLUDE=src/sw/
ASM_TARGET = test
ASM_DIR = src/sw
include src/sw/common.mk
include src/sw/common2.mk
.DEFAULT_GOAL := test
# Generate Verilog code
hdl:
$(SBT) 'runMain core.kyogenrv --target-dir $(TARGET)'
test: $(ASM_DIR)/$(ASM_TARGET).hex
$(SBT) 'runMain core.Test'
clean: c_clean
rm -rf $(TARGET)/*.json $(TARGET)/*.fir $(TARGET)/*.v $(TARGET)/*.hex $(ASM_DIR)/$(ASM_TARGET).elf $(ASM_DIR)/$(ASM_TARGET).bin $(ASM_DIR)/*.hex $(ASM_DIR)/*.log
riscv-tests:
python3 build_riscv_tests.py
$(SBT) 'test:testOnly core.TestCoreAll'
tester-gen:
python3 build_riscv_tests.py
sdk: clean c_all hdl #tester-gen
python3 build_asm.py
python3 mk_intel_hex.py