9ebc7067563ff5bb960b60eb9221ca6e9c397729
[litex.git] / Makefile
1 PYTHON=python3
2
3 all: build/soc.bit
4
5 # We need to change to the build directory because the Xilinx tools
6 # tend to dump a mess of various files in the current directory.
7
8 build/soc.prj build/soc.ucf:
9 $(PYTHON) build.py
10
11 build/soc.ngc: build/soc.prj
12 cd build && xst -ifn ../soc.xst
13
14 build/soc.ngd: build/soc.ngc build/soc.ucf
15 cd build && ngdbuild -uc soc.ucf soc.ngc
16
17 build/soc.ncd: build/soc.ngd
18 cd build && map -ol high -w soc.ngd
19
20 build/soc-routed.ncd: build/soc.ncd
21 cd build && par -ol high -w soc.ncd soc-routed.ncd
22
23 build/soc.bit build/soc.bin: build/soc-routed.ncd
24 cd build && bitgen -g Binary:Yes -g INIT_9K:Yes -w soc-routed.ncd soc.bit
25
26 load: build/soc.bit
27 jtag -n load.jtag
28
29 clean:
30 rm -rf build/*
31
32 .PHONY: load clean