From 97c90054daa9cb371951d0af869a170b0236a2e7 Mon Sep 17 00:00:00 2001 From: Jens Ahrensfeld Date: Wed, 20 May 2015 22:47:16 +0000 Subject: [PATCH] - added git-svn-id: http://moon:8086/svn/vhdl/trunk@1133 cc03376c-175c-47c8-b038-4cd826a8556b --- projects/mips_sys/ise101/mips_sys/Makefile | 46 ++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 projects/mips_sys/ise101/mips_sys/Makefile diff --git a/projects/mips_sys/ise101/mips_sys/Makefile b/projects/mips_sys/ise101/mips_sys/Makefile new file mode 100644 index 0000000..453b950 --- /dev/null +++ b/projects/mips_sys/ise101/mips_sys/Makefile @@ -0,0 +1,46 @@ +.PHONY: clean + +all: netlist + +PRJ := mips_sys +PREQ := $(PRJ).prj $(PRJ).xst $(PRJ).lso +DEVICE := "xc4vsx35-ff668-10" +DIRS := ./xst/tmp + +netlist: $(PRJ).ngc +translate: $(PRJ).ngd +map: $(PRJ)_map.ncd +par: $(PRJ).ncd +bitfile: $(PRJ).bit + + +$(PRJ).ngc: $(DIRS) $(PREQ) + xst -intstyle xflow -ifn $(PRJ).xst + +$(PRJ).ngd: netlist ./ucf/$(PRJ).ucf + ngdbuild -p $(DEVICE) -sd "../../../../lib/CPUs/MIPS/syn/ise101" -dd _ngo -nt timestamp -uc ./ucf/$(PRJ).ucf $(PRJ).ngc $(PRJ).ngd + cp $(PRJ).ngd $(PRJ)_map.ngd + +$(PRJ)_map.ncd: translate + map -intstyle xflow -p $(DEVICE) -timing -logic_opt on -ol high -xe n -t 1 -register_duplication -global_opt on -retiming on -equivalent_register_removal on -cm area -pr b -k 4 -power off -o $(PRJ)_map.ncd $(PRJ)_map.ngd $(PRJ).pcf + +$(PRJ).ncd: map + par -w -intstyle xflow -ol high -xe n -t 1 $(PRJ)_map.ncd $(PRJ).ncd $(PRJ).pcf + +$(PRJ).bit: par $(PRJ).ut + bitgen -intstyle xflow -f $(PRJ).ut + +$(DIRS): + mkdir -p $(DIRS) + +clean: + rm -rf ./xst + rm -rf ./xlnx_auto_0_xdb + rm -f xlnx_auto_0.ise + rm -f $(PRJ).ngc + rm -f $(PRJ).ngr + rm -f $(PRJ).srp + rm -f $(PRJ)_xst.xrpt + + +