Statistics
| Branch: | Tag: | Revision:

root / usrp2 / top / u2_rev3 / Makefile @ de21671b

History | View | Annotate | Download (7.11 KB)

1
#
2
# Copyright 2008 Ettus Research LLC
3
# 
4
# This file is part of GNU Radio
5
# 
6
# GNU Radio is free software; you can redistribute it and/or modify
7
# it under the terms of the GNU General Public License as published by
8
# the Free Software Foundation; either version 3, or (at your option)
9
# any later version.
10
# 
11
# GNU Radio is distributed in the hope that it will be useful,
12
# but WITHOUT ANY WARRANTY; without even the implied warranty of
13
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
# GNU General Public License for more details.
15
# 
16
# You should have received a copy of the GNU General Public License
17
# along with GNU Radio; see the file COPYING.  If not, write to
18
# the Free Software Foundation, Inc., 51 Franklin Street,
19
# Boston, MA 02110-1301, USA.
20
# 
21

    
22
##################################################
23
# xtclsh Shell and tcl Script Path
24
##################################################
25
#XTCLSH := /opt/Xilinx/10.1/ISE/bin/lin/xtclsh
26
XTCLSH := xtclsh
27
ISE_HELPER := ../tcl/ise_helper.tcl
28

    
29
##################################################
30
# Project Setup
31
##################################################
32
BUILD_DIR := build/
33
export TOP_MODULE := u2_rev3
34
export PROJ_FILE := $(BUILD_DIR)$(TOP_MODULE).ise
35

    
36
##################################################
37
# Project Properties
38
##################################################
39
export PROJECT_PROPERTIES := \
40
family Spartan3 \
41
device xc3s2000 \
42
package fg456 \
43
speed -5 \
44
top_level_module_type "HDL" \
45
synthesis_tool "XST (VHDL/Verilog)" \
46
simulator "ISE Simulator (VHDL/Verilog)" \
47
"Preferred Language" "Verilog" \
48
"Enable Message Filtering" FALSE \
49
"Display Incremental Messages" FALSE 
50

    
51
##################################################
52
# Sources
53
##################################################
54
export SOURCE_ROOT := ../../../
55
export SOURCES := \
56
control_lib/CRC16_D16.v \
57
control_lib/atr_controller.v \
58
control_lib/bin2gray.v \
59
control_lib/dcache.v \
60
control_lib/decoder_3_8.v \
61
control_lib/dpram32.v \
62
control_lib/gray2bin.v \
63
control_lib/gray_send.v \
64
control_lib/icache.v \
65
control_lib/mux4.v \
66
control_lib/mux8.v \
67
control_lib/nsgpio.v \
68
control_lib/ram_2port.v \
69
control_lib/ram_harv_cache.v \
70
control_lib/ram_loader.v \
71
control_lib/setting_reg.v \
72
control_lib/settings_bus.v \
73
control_lib/srl.v \
74
control_lib/system_control.v \
75
control_lib/wb_1master.v \
76
control_lib/wb_readback_mux.v \
77
control_lib/simple_uart.v \
78
control_lib/simple_uart_tx.v \
79
control_lib/simple_uart_rx.v \
80
control_lib/oneshot_2clk.v \
81
control_lib/sd_spi.v \
82
control_lib/sd_spi_wb.v \
83
control_lib/wb_bridge_16_32.v \
84
control_lib/reset_sync.v \
85
control_lib/priority_enc.v \
86
control_lib/pic.v \
87
simple_gemac/simple_gemac_wrapper.v \
88
simple_gemac/simple_gemac.v \
89
simple_gemac/simple_gemac_wb.v \
90
simple_gemac/simple_gemac_tx.v \
91
simple_gemac/simple_gemac_rx.v \
92
simple_gemac/crc.v \
93
simple_gemac/delay_line.v \
94
simple_gemac/flow_ctrl_tx.v \
95
simple_gemac/flow_ctrl_rx.v \
96
simple_gemac/address_filter.v \
97
simple_gemac/ll8_to_txmac.v \
98
simple_gemac/rxmac_to_ll8.v \
99
simple_gemac/miim/eth_miim.v \
100
simple_gemac/miim/eth_clockgen.v \
101
simple_gemac/miim/eth_outputcontrol.v \
102
simple_gemac/miim/eth_shiftreg.v \
103
control_lib/newfifo/buffer_int.v \
104
control_lib/newfifo/buffer_pool.v \
105
control_lib/newfifo/fifo_2clock.v \
106
control_lib/newfifo/fifo_2clock_cascade.v \
107
control_lib/newfifo/ll8_shortfifo.v \
108
control_lib/newfifo/ll8_to_fifo36.v \
109
control_lib/newfifo/fifo_short.v \
110
control_lib/newfifo/fifo_long.v \
111
control_lib/newfifo/fifo_cascade.v \
112
control_lib/newfifo/fifo36_to_ll8.v \
113
control_lib/longfifo.v \
114
control_lib/shortfifo.v \
115
control_lib/medfifo.v \
116
coregen/fifo_xlnx_2Kx36_2clk.v \
117
coregen/fifo_xlnx_2Kx36_2clk.xco \
118
coregen/fifo_xlnx_512x36_2clk.v \
119
coregen/fifo_xlnx_512x36_2clk.xco \
120
coregen/fifo_xlnx_64x36_2clk.v \
121
coregen/fifo_xlnx_64x36_2clk.xco \
122
extram/wb_zbt16_b.v \
123
opencores/8b10b/decode_8b10b.v \
124
opencores/8b10b/encode_8b10b.v \
125
opencores/aemb/rtl/verilog/aeMB_bpcu.v \
126
opencores/aemb/rtl/verilog/aeMB_core_BE.v \
127
opencores/aemb/rtl/verilog/aeMB_ctrl.v \
128
opencores/aemb/rtl/verilog/aeMB_edk32.v \
129
opencores/aemb/rtl/verilog/aeMB_ibuf.v \
130
opencores/aemb/rtl/verilog/aeMB_regf.v \
131
opencores/aemb/rtl/verilog/aeMB_xecu.v \
132
opencores/i2c/rtl/verilog/i2c_master_bit_ctrl.v \
133
opencores/i2c/rtl/verilog/i2c_master_byte_ctrl.v \
134
opencores/i2c/rtl/verilog/i2c_master_defines.v \
135
opencores/i2c/rtl/verilog/i2c_master_top.v \
136
opencores/i2c/rtl/verilog/timescale.v \
137
opencores/spi/rtl/verilog/spi_clgen.v \
138
opencores/spi/rtl/verilog/spi_defines.v \
139
opencores/spi/rtl/verilog/spi_shift.v \
140
opencores/spi/rtl/verilog/spi_top.v \
141
opencores/spi/rtl/verilog/timescale.v \
142
sdr_lib/acc.v \
143
sdr_lib/add2.v \
144
sdr_lib/add2_and_round.v \
145
sdr_lib/add2_and_round_reg.v \
146
sdr_lib/add2_reg.v \
147
sdr_lib/cic_dec_shifter.v \
148
sdr_lib/cic_decim.v \
149
sdr_lib/cic_int_shifter.v \
150
sdr_lib/cic_interp.v \
151
sdr_lib/cic_strober.v \
152
sdr_lib/clip.v \
153
sdr_lib/clip_reg.v \
154
sdr_lib/cordic.v \
155
sdr_lib/cordic_z24.v \
156
sdr_lib/cordic_stage.v \
157
sdr_lib/dsp_core_rx.v \
158
sdr_lib/dsp_core_tx.v \
159
sdr_lib/hb_dec.v \
160
sdr_lib/hb_interp.v \
161
sdr_lib/round.v \
162
sdr_lib/round_reg.v \
163
sdr_lib/rx_control.v \
164
sdr_lib/rx_dcoffset.v \
165
sdr_lib/sign_extend.v \
166
sdr_lib/small_hb_dec.v \
167
sdr_lib/small_hb_int.v \
168
sdr_lib/tx_control.v \
169
serdes/serdes.v \
170
serdes/serdes_fc_rx.v \
171
serdes/serdes_fc_tx.v \
172
serdes/serdes_rx.v \
173
serdes/serdes_tx.v \
174
timing/time_receiver.v \
175
timing/time_sender.v \
176
timing/time_sync.v \
177
timing/timer.v \
178
top/u2_core/u2_core.v \
179
top/u2_rev3/u2_rev3.ucf \
180
top/u2_rev3/u2_rev3.v 
181

    
182
##################################################
183
# Process Properties
184
##################################################
185
export SYNTHESIZE_PROPERTIES := \
186
"Number of Clock Buffers" 8 \
187
"Pack I/O Registers into IOBs" Yes \
188
"Optimization Effort" High \
189
"Optimize Instantiated Primitives" TRUE \
190
"Register Balancing" Yes \
191
"Use Clock Enable" Auto \
192
"Use Synchronous Reset" Auto \
193
"Use Synchronous Set" Auto
194

    
195
export TRANSLATE_PROPERTIES := \
196
"Macro Search Path" "$(shell pwd)/../../coregen/"
197

    
198
export MAP_PROPERTIES := \
199
"Allow Logic Optimization Across Hierarchy" TRUE \
200
"Map to Input Functions" 4 \
201
"Optimization Strategy (Cover Mode)" Speed \
202
"Pack I/O Registers/Latches into IOBs" "For Inputs and Outputs" \
203
"Perform Timing-Driven Packing and Placement" TRUE \
204
"Map Effort Level" High \
205
"Extra Effort" Normal \
206
"Combinatorial Logic Optimization" TRUE \
207
"Register Duplication" TRUE
208

    
209
export PLACE_ROUTE_PROPERTIES := \
210
"Place & Route Effort Level (Overall)" High 
211

    
212
export STATIC_TIMING_PROPERTIES := \
213
"Number of Paths in Error/Verbose Report" 10 \
214
"Report Type" "Error Report"
215

    
216
export GEN_PROG_FILE_PROPERTIES := \
217
"Configuration Rate" 6 \
218
"Create Binary Configuration File" TRUE \
219
"Done (Output Events)" 5 \
220
"Enable Bitstream Compression" TRUE \
221
"Enable Outputs (Output Events)" 6 
222

    
223
export SIM_MODEL_PROPERTIES := ""
224

    
225
##################################################
226
# Make Options
227
##################################################
228
all:
229
	@echo make proj, check, synth, bin, or clean
230

    
231
proj:
232
	PROCESS_RUN="" $(XTCLSH) $(ISE_HELPER)	
233

    
234
check:
235
	PROCESS_RUN="Check Syntax" $(XTCLSH) $(ISE_HELPER)	
236

    
237
synth:
238
	PROCESS_RUN="Synthesize - XST" $(XTCLSH) $(ISE_HELPER)	
239

    
240
bin:
241
	PROCESS_RUN="Generate Programming File" $(XTCLSH) $(ISE_HELPER)		
242

    
243
clean:
244
	rm -rf $(BUILD_DIR)
245

    
246