litex/Makefile

31 lines
555 B
Makefile
Raw Normal View History

2014-09-22 06:33:23 -04:00
MSCDIR = ../misoc
CURDIR = ../k7sataphy
PYTHON = python3
TOOLCHAIN = ise
PLATFORM = kc705
PROGRAMMER = impact
2014-09-22 06:33:23 -04:00
CMD = $(PYTHON) make.py -X $(CURDIR) -Op toolchain $(TOOLCHAIN) -Op programmer $(PROGRAMMER) -p $(PLATFORM) -t test
2014-09-22 06:33:23 -04:00
csv:
2014-09-30 05:04:36 -04:00
cd $(MSCDIR) && $(CMD) --csr_csv $(CURDIR)/test/csr.csv build-csr-csv
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