2023-03-02 17:43:26 -05:00
|
|
|
SHELL := /bin/bash
|
|
|
|
|
|
|
|
PYTHON_FILES = \
|
|
|
|
usb_test.py \
|
|
|
|
icenvcm.py \
|
2023-03-02 17:52:52 -05:00
|
|
|
icebin2nvcm.py \
|
|
|
|
encode_usb_strings.py \
|
|
|
|
reset.py
|
2023-03-02 12:17:11 -05:00
|
|
|
|
|
|
|
lint:
|
2023-03-02 17:43:26 -05:00
|
|
|
autopep8 --in-place --max-line-length 70 --aggressive --aggressive ${PYTHON_FILES}
|
|
|
|
mypy --disallow-untyped-defs ${PYTHON_FILES}
|
|
|
|
pycodestyle --max-line-length 70 ${PYTHON_FILES}
|
|
|
|
|
|
|
|
# Check that the NVCM generator gives a correct output for a known binary
|
|
|
|
verify-nvcm:
|
|
|
|
./icebin2nvcm.py nvcm_test/application_fpga.bin verify.nvcm
|
|
|
|
cmp verify.nvcm nvcm_test/application_fpga.nvcm
|
|
|
|
|
|
|
|
verify:
|
|
|
|
time ./icenvcm.py --verify nvcm_test/application_fpga.bin
|
|
|
|
|
|
|
|
program:
|
|
|
|
time ./icenvcm.py --my-design-is-good-enough --write ../application_fpga/application_fpga.bin --ignore-blank
|