MultiReg: remove idomain
[litex.git] / Makefile
index f1696a3bc1e4bd0faf310ef8c8a980efeb023966..f97f84bf15024dc0bf66db6016596eae57c8292e 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,29 +1,13 @@
-PYTHON=python3
+all: build/top.bit build/top.fpg
 
-all: build/soc.bit
+build/top.bit build/top.bin:
+       ./build.py
 
-# We need to change to the build directory because the Xilinx tools
-# tend to dump a mess of various files in the current directory.
+build/top.fpg: build/top.bin
+       make -C tools
+       tools/byteswap $< $@
 
-build/soc.prj build/soc.ucf:
-       $(PYTHON) build.py
-
-build/soc.ngc: build/soc.prj
-       cd build && xst -ifn ../soc.xst
-
-build/soc.ngd: build/soc.ngc build/soc.ucf
-       cd build && ngdbuild -uc soc.ucf soc.ngc
-
-build/soc.ncd: build/soc.ngd
-       cd build && map -ol high -w soc.ngd
-
-build/soc-routed.ncd: build/soc.ncd
-       cd build && par -ol high -w soc.ncd soc-routed.ncd
-
-build/soc.bit build/soc.bin: build/soc-routed.ncd
-       cd build && bitgen -g LCK_cycle:6 -g Binary:Yes -g INIT_9K:Yes -w soc-routed.ncd soc.bit
-
-load: build/soc.bit
+load: build/top.bit
        jtag -n load.jtag
 
 clean: