-
Notifications
You must be signed in to change notification settings - Fork 12
/
Makefile
31 lines (24 loc) · 903 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
31
# File : Makefile
# License : MIT license <Check LICENSE>
# Author : Anderson Ignacio da Silva (aignacio) <[email protected]>
# Date : 07.06.2022
# Last Modified Date: 05.05.2024
COV_REP := $(shell find run_dir -name 'coverage.dat')
# SPEC_TEST ?= -k test_dma_error
SPEC_TEST ?=
RUN_CMD := docker run --rm --name axi_dma \
-v $(abspath .):/rtldev -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