2014-09-22 06:33:23 -04:00
|
|
|
MSCDIR = ../misoc
|
2015-01-16 16:49:34 -05:00
|
|
|
CURDIR = ../lite-sata
|
2014-09-22 06:33:23 -04:00
|
|
|
PYTHON = python3
|
2014-10-24 13:24:05 -04:00
|
|
|
TOOLCHAIN = vivado
|
2014-12-17 06:07:11 -05:00
|
|
|
PROGRAMMER = vivado
|
2014-09-22 06:33:23 -04:00
|
|
|
|
2015-01-16 17:52:41 -05:00
|
|
|
CMD = $(PYTHON) make.py -X $(CURDIR) -Op toolchain $(TOOLCHAIN) -Op programmer $(PROGRAMMER) -t bist_kc705
|
2014-09-22 06:33:23 -04:00
|
|
|
|
|
|
|
csv:
|
2014-10-24 13:24:05 -04:00
|
|
|
cd $(MSCDIR) && $(CMD) --csr_csv $(CURDIR)/test/csr.csv build-csr-csv -Ot export_mila True
|
2014-09-22 06:33:23 -04:00
|
|
|
cd $(CURDIR)
|
|
|
|
|
|
|
|
bit:
|
|
|
|
cd $(MSCDIR) && $(CMD) build-bitstream
|
|
|
|
cd $(CURDIR)
|
|
|
|
|
|
|
|
build: csv bit
|
|
|
|
|
|
|
|
load:
|
|
|
|
cd $(MSCDIR) && $(CMD) load-bitstream
|
|
|
|
cd $(CURDIR)
|
|
|
|
|
|
|
|
test:
|
|
|
|
cd test && $(PYTHON) test_regs.py
|
|
|
|
cd $(CURDIR)
|
|
|
|
|
|
|
|
all: build load test
|
|
|
|
|
|
|
|
.PHONY: load test all
|