forked from aignacio/axi_dma
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
30 lines (23 loc) · 871 Bytes
/
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
# File : Makefile
# License : MIT license <Check LICENSE>
# Author : Anderson Ignacio da Silva (aignacio) <[email protected]>
# Date : 07.06.2022
# Last Modified Date: 13.10.2022
COV_REP := $(shell find run_dir -name 'coverage.dat')
SPEC_TEST ?=
RUN_CMD := docker run --rm --name axi_dma \
-v $(abspath .):/axi_dma -w \
/axi_dma aignacio/axi_dma
.PHONY: run cov clean
all: run
say ">Test run finished, please check the terminal"
run: csr_out/csr_dma.v
$(RUN_CMD) tox -- $(SPEC_TEST)
csr_out/csr_dma.v:
$(RUN_CMD) rggen --plugin rggen-verilog --plugin rggen-c-header -c config_csr.yml -o csr_out csr_dma.xlsx
coverage.info:
$(RUN_CMD) verilator_coverage $(COV_REP) --write-info coverage.info
cov: coverage.info
$(RUN_CMD) genhtml $< -o output_lcov
clean:
$(RUN_CMD) rm -rf run_dir csr_out