2023-06-15 12:24:35 -04:00
|
|
|
# Copyright 2023 (C) Peter McGoron
|
|
|
|
#
|
|
|
|
# This file is a part of Upsilon, a free and open source software project.
|
|
|
|
# For license terms, refer to the files in `doc/copying` in the Upsilon
|
|
|
|
# source distribution.
|
|
|
|
#
|
2023-04-06 19:28:12 -04:00
|
|
|
.PHONY: cpu clean rtl_codegen
|
2022-07-12 15:22:14 -04:00
|
|
|
|
|
|
|
DEVICETREE_GEN_DIR=.
|
2022-07-13 14:11:56 -04:00
|
|
|
|
2024-02-20 10:28:51 -05:00
|
|
|
all: build/digilent_arty/digilent_arty.bit arty.dtb mmio.py
|
2023-08-23 22:09:34 -04:00
|
|
|
|
2023-05-30 16:01:32 -04:00
|
|
|
csr.json build/digilent_arty/digilent_arty.bit: soc.py
|
2024-02-17 21:34:37 -05:00
|
|
|
cd rtl && make
|
2024-01-18 10:41:51 -05:00
|
|
|
python3 soc.py
|
2023-08-23 22:09:34 -04:00
|
|
|
|
2024-02-20 10:28:51 -05:00
|
|
|
mmio.py: csr.json csr2mp.py
|
2024-02-26 22:48:22 -05:00
|
|
|
python3 csr2mp.py > mmio.py
|
2024-02-20 10:28:51 -05:00
|
|
|
|
2022-07-12 13:29:26 -04:00
|
|
|
clean:
|
2023-06-22 15:59:06 -04:00
|
|
|
rm -rf build csr.json arty.dts arty.dtb mmio.py
|
2023-05-30 16:01:32 -04:00
|
|
|
|
|
|
|
arty.dts: csr.json
|
2023-05-30 16:50:30 -04:00
|
|
|
litex_json2dts_linux csr.json > arty.dts
|
2023-08-23 22:09:34 -04:00
|
|
|
|
2023-05-30 16:01:32 -04:00
|
|
|
arty.dtb: arty.dts
|
|
|
|
dtc -O dtb -o arty.dtb arty.dts
|