-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (26 loc) · 1.07 KB
/
Makefile
File metadata and controls
37 lines (26 loc) · 1.07 KB
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
BUILD_DIR = ./generated-src
PACKAGE ?= vivado-ips
DESIGN ?= vivadoips.MinimalArty100T
MILL_PATH ?= ./toolchains/mill
verilog:
mkdir -p $(BUILD_DIR)
$(MILL_PATH) -i package-$(PACKAGE).runMain builder.buildVerilog --target-dir $(BUILD_DIR) --design-name $(DESIGN)
project: verilog
$(MILL_PATH) -i package-$(PACKAGE).runMain builder.buildProject --target-dir $(BUILD_DIR) --design-name $(DESIGN)
bitstream: project
$(MILL_PATH) -i package-$(PACKAGE).runMain builder.buildBitstream --target-dir $(BUILD_DIR) --design-name $(DESIGN)
test:
$(MILL_PATH) -i package-$(PACKAGE).Test
clean:
rm -rf $(BUILD_DIR)
rm -rf ./out
RISCV = /home/tk/Documents/chipyard/.conda-env/riscv-tools
isa-test:
mkdir -p ./isa-tests/
cd ./isa-tests/ && \
~/Downloads/riscv-tests/configure --prefix=${RISCV}/target && \
make && \
make install
# spike --isa=rv32i ./isa-tests/isa/rv32ui-p-add
riscv64-unknown-elf-objcopy -O binary ./isa-tests/isa/rv32ui-p-add ./isa-tests/isa/rv32ui-p-add.bin
python ./firmware/bintohex.py ./isa-tests/isa/rv32ui-p-add.bin ./isa-tests/isa/rv32ui-p-add.hex --data_width 32