Statistics
| Branch: | Tag: | Revision:

root / usrp2 / top / u1e / Makefile @ 19d476df

History | View | Annotate | Download (7.25 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 := u1e
34
export PROJ_FILE := $(BUILD_DIR)$(TOP_MODULE).ise
35

    
36
##################################################
37
# Project Properties
38
##################################################
39
export PROJECT_PROPERTIES := \
40
family "Spartan-3A DSP" \
41
device xc3sd1800a \
42
package cs484 \
43
speed -4 \
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_controller16.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/nsgpio16LE.v \
68
control_lib/ram_2port.v \
69
control_lib/ram_2port_mixed_width.v \
70
control_lib/ram_harv_cache.v \
71
control_lib/ram_loader.v \
72
control_lib/setting_reg.v \
73
control_lib/settings_bus_16LE.v \
74
control_lib/srl.v \
75
control_lib/system_control.v \
76
control_lib/wb_1master.v \
77
control_lib/wb_readback_mux.v \
78
control_lib/simple_uart.v \
79
control_lib/simple_uart_tx.v \
80
control_lib/simple_uart_rx.v \
81
control_lib/oneshot_2clk.v \
82
control_lib/sd_spi.v \
83
control_lib/sd_spi_wb.v \
84
control_lib/wb_bridge_16_32.v \
85
control_lib/reset_sync.v \
86
simple_gemac/simple_gemac_wrapper.v \
87
simple_gemac/simple_gemac.v \
88
simple_gemac/simple_gemac_wb.v \
89
simple_gemac/simple_gemac_tx.v \
90
simple_gemac/simple_gemac_rx.v \
91
simple_gemac/crc.v \
92
simple_gemac/delay_line.v \
93
simple_gemac/flow_ctrl_tx.v \
94
simple_gemac/flow_ctrl_rx.v \
95
simple_gemac/address_filter.v \
96
simple_gemac/ll8_to_txmac.v \
97
simple_gemac/rxmac_to_ll8.v \
98
simple_gemac/miim/eth_miim.v \
99
simple_gemac/miim/eth_clockgen.v \
100
simple_gemac/miim/eth_outputcontrol.v \
101
simple_gemac/miim/eth_shiftreg.v \
102
control_lib/newfifo/buffer_int.v \
103
control_lib/newfifo/buffer_pool.v \
104
control_lib/newfifo/fifo_2clock.v \
105
control_lib/newfifo/fifo_2clock_cascade.v \
106
control_lib/newfifo/ll8_shortfifo.v \
107
control_lib/newfifo/ll8_to_fifo36.v \
108
control_lib/newfifo/fifo_short.v \
109
control_lib/newfifo/fifo_long.v \
110
control_lib/newfifo/fifo_cascade.v \
111
control_lib/newfifo/fifo36_to_ll8.v \
112
control_lib/newfifo/fifo19_to_fifo36.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/simple_pic/rtl/simple_pic.v \
138
opencores/spi/rtl/verilog/spi_clgen.v \
139
opencores/spi/rtl/verilog/spi_defines.v \
140
opencores/spi/rtl/verilog/spi_shift.v \
141
opencores/spi/rtl/verilog/spi_top16.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
gpmc/gpmc.v \
179
gpmc/edge_sync.v \
180
gpmc/dbsm.v \
181
gpmc/gpmc_to_fifo.v \
182
gpmc/gpmc_wb.v \
183
top/u1e/u1e_core.v \
184
top/u1e/u1e.ucf \
185
top/u1e/u1e.v 
186

    
187
##################################################
188
# Process Properties
189
##################################################
190
export SYNTHESIZE_PROPERTIES := \
191
"Number of Clock Buffers" 6 \
192
"Pack I/O Registers into IOBs" Yes \
193
"Optimization Effort" High \
194
"Optimize Instantiated Primitives" TRUE \
195
"Register Balancing" Yes \
196
"Use Clock Enable" Auto \
197
"Use Synchronous Reset" Auto \
198
"Use Synchronous Set" Auto
199

    
200
export TRANSLATE_PROPERTIES := \
201
"Macro Search Path" "$(shell pwd)/../../coregen/"
202

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

    
214
export PLACE_ROUTE_PROPERTIES := \
215
"Place & Route Effort Level (Overall)" High 
216

    
217
export STATIC_TIMING_PROPERTIES := \
218
"Number of Paths in Error/Verbose Report" 10 \
219
"Report Type" "Error Report"
220

    
221
export GEN_PROG_FILE_PROPERTIES := \
222
"Configuration Rate" 6 \
223
"Create Binary Configuration File" TRUE \
224
"Done (Output Events)" 5 \
225
"Enable Bitstream Compression" TRUE \
226
"Enable Outputs (Output Events)" 6 \
227
"Unused IOB Pins" "Pull Up"
228

    
229
export SIM_MODEL_PROPERTIES := ""
230

    
231
##################################################
232
# Make Options
233
##################################################
234
all:
235
	@echo make proj, check, synth, bin, or clean
236

    
237
proj:
238
	PROCESS_RUN="" $(XTCLSH) $(ISE_HELPER)	
239

    
240
check:
241
	PROCESS_RUN="Check Syntax" $(XTCLSH) $(ISE_HELPER)	
242

    
243
synth:
244
	PROCESS_RUN="Synthesize - XST" $(XTCLSH) $(ISE_HELPER)	
245

    
246
bin:
247
	PROCESS_RUN="Generate Programming File" $(XTCLSH) $(ISE_HELPER)		
248

    
249
clean:
250
	rm -rf $(BUILD_DIR)
251

    
252