summaryrefslogtreecommitdiff
path: root/Makefile
blob: 4586ff31383fddc0db8d495da1a3032b581b0f34 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21

HDL_FOLDER = ./hdl
HDL = $(wildcard $(HDL_FOLDER)/*.py)

sim: $(HDL)
	python3 $< sim

cc: $(HDL)
	python3 $< cc $(basename $< .py)

v: $(HDL)
	python3 $< v

test:
	py.test --disable-pytest-warnings -v $(HDL)

test-w:
	py.test -v $(HDL)

clean: 
	$(RM) -rf $(HDL_FOLDER)/*.cc $(HDL_FOLDER)/*.v $(HDL_FOLDER)/*.vcd $(HDL_FOLDER)/*.pyc $(HDL_FOLDER)/*.out $(HDL_FOLDER)/*.bak