1 |
4 |
idiolatrie |
#------------------------------------------------------------------------------#
|
2 |
|
|
# Xilinx Makefile #
|
3 |
|
|
#------------------------------------------------------------------------------#
|
4 |
|
|
# Copyright (C) 2012 Mathias Hoertnagl, mathias.hoertnagl@gmail.com #
|
5 |
|
|
# #
|
6 |
|
|
# This program is free software; you can redistribute it and/or modify it #
|
7 |
|
|
# under the terms of the GNU General Public License as published by the Free #
|
8 |
|
|
# Software Foundation; either version 3 of the License, or (at your option) #
|
9 |
|
|
# any later version. #
|
10 |
|
|
# This program is distributed in the hope that it will be useful, but WITHOUT #
|
11 |
|
|
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or #
|
12 |
|
|
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for #
|
13 |
|
|
# more details. #
|
14 |
|
|
# You should have received a copy of the GNU General Public License along with #
|
15 |
|
|
# this program; if not, see . #
|
16 |
|
|
#------------------------------------------------------------------------------#
|
17 |
|
|
TOOL_DIR = /cygdrive/c/Xilinx/13.1/ISE_DS/ISE/bin/nt/
|
18 |
|
|
|
19 |
|
|
XST = $(TOOL_DIR)xst.exe
|
20 |
|
|
NGDBUILD = $(TOOL_DIR)ngdbuild.exe
|
21 |
|
|
MAP = $(TOOL_DIR)map.exe
|
22 |
|
|
PAR = $(TOOL_DIR)par.exe
|
23 |
|
|
TRCE = $(TOOL_DIR)trce.exe
|
24 |
|
|
BITGEN = $(TOOL_DIR)bitgen.exe
|
25 |
|
|
IMPACT = $(TOOL_DIR)impact.exe
|
26 |
|
|
|
27 |
|
|
upload : layer2.bit
|
28 |
5 |
idiolatrie |
$(IMPACT) -batch upload.cmds
|
29 |
4 |
idiolatrie |
|
30 |
5 |
idiolatrie |
prom : layer2.bit
|
31 |
|
|
$(IMPACT) -batch prom.cmds
|
32 |
4 |
idiolatrie |
|
33 |
5 |
idiolatrie |
build :
|
34 |
4 |
idiolatrie |
$(XST) -ifn layer2.xst -ofn layer2.syr -intstyle ise
|
35 |
|
|
$(NGDBUILD) -intstyle ise -dd ngdbuild -nt timestamp -uc layer2.ucf \
|
36 |
|
|
-p xc3s500e-fg320-4 layer2.ngc layer2.ngd
|
37 |
|
|
$(MAP) -intstyle ise -p xc3s500e-fg320-4 -cm area -ir off -pr off -c 100 \
|
38 |
|
|
-o layer2_map.ncd layer2.ngd layer2.pcf
|
39 |
|
|
$(PAR) -w -intstyle ise -ol high -t 1 layer2_map.ncd layer2.ncd layer2.pcf
|
40 |
|
|
$(TRCE) -intstyle ise -v 3 -s 4 -n 3 -fastpaths -xml layer2.twx layer2.ncd \
|
41 |
|
|
-o layer2.twr layer2.pcf -ucf layer2.ucf
|
42 |
|
|
$(BITGEN) -intstyle ise -f layer2.ut layer2.ncd
|
43 |
|
|
|
44 |
|
|
.PHONY: clean
|
45 |
|
|
clean :
|
46 |
|
|
-@$(RM) *.bgn *.bld *.drc *.cmd_log *.lso *.ncd *.ngc *.ngd *.ngr *.pad \
|
47 |
|
|
*.par *.pcf *.ptwx *.stx *.syr *.twr *.twx *.unroutes *.xpi *.xwbt \
|
48 |
5 |
idiolatrie |
*.map *.mrp *.xrpt *.csv *.txt *.xml *.html *.log *.ngm *.prm *.cfi *.sig
|