forked from timvideos/HDMI2USB-jahanzeb-firmware
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
116 lines (102 loc) · 3.34 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
# We use the special PIPESTATUS which is bash only below.
SHELL := /bin/bash
COLORMAKETOOL = "../tools/colormake.pl"
INTSTYLE = ise
# INTSTYLE = silent
BUILD_DIR = build # build directiry for temp files
# Top Level
all: syn tran map par trce bit
syn:
@echo "========================================================="
@echo " Synthesizing "
@echo "========================================================="
@mkdir -p $(BUILD_DIR)
@cd $(BUILD_DIR); \
xst \
-intstyle $(INTSTYLE) \
-filter "../ise/iseconfig/filter.filter" \
-ifn "../ise/hdmi2usb.xst" \
-ofn "hdmi2usb.syr" \
| $(COLORMAKETOOL); (exit $${PIPESTATUS[0]})
tran:
@echo "========================================================="
@echo " Translate "
@echo "========================================================="
@cd $(BUILD_DIR); \
ngdbuild \
-filter "../ise/iseconfig/filter.filter" \
-intstyle $(INTSTYLE) \
-dd _ngo \
-sd ../ipcore_dir \
-nt timestamp \
-uc ../ucf/hdmi2usb.ucf \
-p xc6slx45-csg324-3 hdmi2usb.ngc hdmi2usb.ngd \
| $(COLORMAKETOOL); (exit $${PIPESTATUS[0]})
map:
@echo "========================================================="
@echo " Map "
@echo "========================================================="
@cd $(BUILD_DIR); \
map \
-filter "../ise/iseconfig/filter.filter" \
-intstyle $(INTSTYLE) \
-p xc6slx45-csg324-3 \
-w -logic_opt off \
-ol high \
-xe n \
-t 1 \
-xt 0 \
-register_duplication off \
-r 4 \
-global_opt off \
-mt off -ir off \
-pr b -lc off \
-power off \
-o hdmi2usb_map.ncd hdmi2usb.ngd hdmi2usb.pcf \
| $(COLORMAKETOOL); (exit $${PIPESTATUS[0]})
par:
@echo "========================================================="
@echo " Place & Route "
@echo "========================================================="
@cd $(BUILD_DIR); \
par \
-filter "../ise/iseconfig/filter.filter" -w \
-intstyle $(INTSTYLE) \
-ol high \
-xe n \
-mt off hdmi2usb_map.ncd hdmi2usb.ncd hdmi2usb.pcf \
| $(COLORMAKETOOL); (exit $${PIPESTATUS[0]})
trce:
@echo "========================================================="
@echo " Trace "
@echo "========================================================="
@cd $(BUILD_DIR); \
trce \
-filter "../ise/iseconfig/filter.filter" \
-intstyle $(INTSTYLE) \
-v 3 \
-s 3 \
-n 3 \
-fastpaths \
-xml hdmi2usb.twx hdmi2usb.ncd \
-o hdmi2usb.twr hdmi2usb.pcf \
| $(COLORMAKETOOL); (exit $${PIPESTATUS[0]})
bit:
@echo "========================================================="
@echo " Bitgen "
@echo "========================================================="
@cd $(BUILD_DIR); \
bitgen \
-filter "../ise/iseconfig/filter.filter" \
-intstyle $(INTSTYLE) \
-f ../ise/hdmi2usb.ut hdmi2usb.ncd \
| $(COLORMAKETOOL); (exit $${PIPESTATUS[0]})
xsvf:
@echo "========================================================="
@echo " xsvf file "
@echo "========================================================="
@cd $(BUILD_DIR); \
impact -batch ../ucf/hdmi2usb.batch \
| $(COLORMAKETOOL); (exit $${PIPESTATUS[0]})
clean:
rm -R $(BUILD_DIR)