1 |
145 |
lanttu |
# TCL File Generated by Component Editor 10.0sp1
|
2 |
|
|
# Mon Feb 28 13:30:16 EET 2011
|
3 |
|
|
# DO NOT MODIFY
|
4 |
|
|
|
5 |
|
|
|
6 |
|
|
# +-----------------------------------
|
7 |
|
|
# |
|
8 |
|
|
# | n2h2_chan "n2h2_chan" v1.0
|
9 |
|
|
# | null 2011.02.28.13:30:16
|
10 |
|
|
# |
|
11 |
|
|
# |
|
12 |
|
|
# | D:/user/lehton87/work/n2h2/vhd/n2h2_chan.vhd
|
13 |
|
|
# |
|
14 |
|
|
# | ./n2h2_chan.vhd syn, sim
|
15 |
|
|
# | ./n2h2_rx_chan.vhd syn, sim
|
16 |
|
|
# | ./n2h2_rx_channels.vhd syn, sim
|
17 |
|
|
# | ./n2h2_tx_vl.vhd syn, sim
|
18 |
|
|
# | ./one_hot_mux.vhd syn, sim
|
19 |
|
|
# | ./step_counter2.vhd syn, sim
|
20 |
|
|
# |
|
21 |
|
|
# +-----------------------------------
|
22 |
|
|
|
23 |
|
|
# +-----------------------------------
|
24 |
|
|
# | request TCL package from ACDS 10.0
|
25 |
|
|
# |
|
26 |
|
|
package require -exact sopc 10.0
|
27 |
|
|
# |
|
28 |
|
|
# +-----------------------------------
|
29 |
|
|
|
30 |
|
|
# +-----------------------------------
|
31 |
|
|
# | module n2h2_chan
|
32 |
|
|
# |
|
33 |
|
|
set_module_property NAME n2h2_chan
|
34 |
|
|
set_module_property VERSION 1.0
|
35 |
|
|
set_module_property INTERNAL false
|
36 |
|
|
set_module_property GROUP Other
|
37 |
|
|
set_module_property DISPLAY_NAME n2h2_chan
|
38 |
|
|
set_module_property TOP_LEVEL_HDL_FILE n2h2_chan.vhd
|
39 |
|
|
set_module_property TOP_LEVEL_HDL_MODULE n2h2
|
40 |
|
|
set_module_property INSTANTIATE_IN_SYSTEM_MODULE true
|
41 |
|
|
set_module_property EDITABLE true
|
42 |
|
|
set_module_property ANALYZE_HDL TRUE
|
43 |
|
|
# |
|
44 |
|
|
# +-----------------------------------
|
45 |
|
|
|
46 |
|
|
# +-----------------------------------
|
47 |
|
|
# | files
|
48 |
|
|
# |
|
49 |
|
|
add_file n2h2_chan.vhd {SYNTHESIS SIMULATION}
|
50 |
|
|
add_file n2h2_rx_chan.vhd {SYNTHESIS SIMULATION}
|
51 |
|
|
add_file n2h2_rx_channels.vhd {SYNTHESIS SIMULATION}
|
52 |
|
|
add_file n2h2_tx_vl.vhd {SYNTHESIS SIMULATION}
|
53 |
|
|
add_file one_hot_mux.vhd {SYNTHESIS SIMULATION}
|
54 |
|
|
add_file step_counter2.vhd {SYNTHESIS SIMULATION}
|
55 |
|
|
# |
|
56 |
|
|
# +-----------------------------------
|
57 |
|
|
|
58 |
|
|
# +-----------------------------------
|
59 |
|
|
# | parameters
|
60 |
|
|
# |
|
61 |
|
|
add_parameter data_width_g INTEGER 32
|
62 |
|
|
set_parameter_property data_width_g DEFAULT_VALUE 32
|
63 |
|
|
set_parameter_property data_width_g DISPLAY_NAME data_width_g
|
64 |
|
|
set_parameter_property data_width_g TYPE INTEGER
|
65 |
|
|
set_parameter_property data_width_g UNITS None
|
66 |
|
|
set_parameter_property data_width_g ALLOWED_RANGES -2147483648:2147483647
|
67 |
|
|
set_parameter_property data_width_g AFFECTS_GENERATION false
|
68 |
|
|
set_parameter_property data_width_g HDL_PARAMETER true
|
69 |
|
|
add_parameter addr_width_g INTEGER 32
|
70 |
|
|
set_parameter_property addr_width_g DEFAULT_VALUE 32
|
71 |
|
|
set_parameter_property addr_width_g DISPLAY_NAME addr_width_g
|
72 |
|
|
set_parameter_property addr_width_g TYPE INTEGER
|
73 |
|
|
set_parameter_property addr_width_g UNITS None
|
74 |
|
|
set_parameter_property addr_width_g ALLOWED_RANGES -2147483648:2147483647
|
75 |
|
|
set_parameter_property addr_width_g AFFECTS_GENERATION false
|
76 |
|
|
set_parameter_property addr_width_g HDL_PARAMETER true
|
77 |
|
|
add_parameter amount_width_g INTEGER 16
|
78 |
|
|
set_parameter_property amount_width_g DEFAULT_VALUE 16
|
79 |
|
|
set_parameter_property amount_width_g DISPLAY_NAME amount_width_g
|
80 |
|
|
set_parameter_property amount_width_g TYPE INTEGER
|
81 |
|
|
set_parameter_property amount_width_g UNITS None
|
82 |
|
|
set_parameter_property amount_width_g ALLOWED_RANGES -2147483648:2147483647
|
83 |
|
|
set_parameter_property amount_width_g AFFECTS_GENERATION false
|
84 |
|
|
set_parameter_property amount_width_g HDL_PARAMETER true
|
85 |
|
|
add_parameter n_chans_g INTEGER 8
|
86 |
|
|
set_parameter_property n_chans_g DEFAULT_VALUE 8
|
87 |
|
|
set_parameter_property n_chans_g DISPLAY_NAME n_chans_g
|
88 |
|
|
set_parameter_property n_chans_g TYPE INTEGER
|
89 |
|
|
set_parameter_property n_chans_g UNITS None
|
90 |
|
|
set_parameter_property n_chans_g ALLOWED_RANGES -2147483648:2147483647
|
91 |
|
|
set_parameter_property n_chans_g AFFECTS_GENERATION false
|
92 |
|
|
set_parameter_property n_chans_g HDL_PARAMETER true
|
93 |
|
|
add_parameter n_chans_bits_g INTEGER 3
|
94 |
|
|
set_parameter_property n_chans_bits_g DEFAULT_VALUE 3
|
95 |
|
|
set_parameter_property n_chans_bits_g DISPLAY_NAME n_chans_bits_g
|
96 |
|
|
set_parameter_property n_chans_bits_g TYPE INTEGER
|
97 |
|
|
set_parameter_property n_chans_bits_g UNITS None
|
98 |
|
|
set_parameter_property n_chans_bits_g ALLOWED_RANGES -2147483648:2147483647
|
99 |
|
|
set_parameter_property n_chans_bits_g AFFECTS_GENERATION false
|
100 |
|
|
set_parameter_property n_chans_bits_g HDL_PARAMETER true
|
101 |
|
|
add_parameter hibi_addr_cmp_lo_g INTEGER 8
|
102 |
|
|
set_parameter_property hibi_addr_cmp_lo_g DEFAULT_VALUE 8
|
103 |
|
|
set_parameter_property hibi_addr_cmp_lo_g DISPLAY_NAME hibi_addr_cmp_lo_g
|
104 |
|
|
set_parameter_property hibi_addr_cmp_lo_g TYPE INTEGER
|
105 |
|
|
set_parameter_property hibi_addr_cmp_lo_g UNITS None
|
106 |
|
|
set_parameter_property hibi_addr_cmp_lo_g ALLOWED_RANGES -2147483648:2147483647
|
107 |
|
|
set_parameter_property hibi_addr_cmp_lo_g AFFECTS_GENERATION false
|
108 |
|
|
set_parameter_property hibi_addr_cmp_lo_g HDL_PARAMETER true
|
109 |
|
|
add_parameter hibi_addr_cmp_hi_g INTEGER 31
|
110 |
|
|
set_parameter_property hibi_addr_cmp_hi_g DEFAULT_VALUE 31
|
111 |
|
|
set_parameter_property hibi_addr_cmp_hi_g DISPLAY_NAME hibi_addr_cmp_hi_g
|
112 |
|
|
set_parameter_property hibi_addr_cmp_hi_g TYPE INTEGER
|
113 |
|
|
set_parameter_property hibi_addr_cmp_hi_g UNITS None
|
114 |
|
|
set_parameter_property hibi_addr_cmp_hi_g ALLOWED_RANGES -2147483648:2147483647
|
115 |
|
|
set_parameter_property hibi_addr_cmp_hi_g AFFECTS_GENERATION false
|
116 |
|
|
set_parameter_property hibi_addr_cmp_hi_g HDL_PARAMETER true
|
117 |
|
|
# |
|
118 |
|
|
# +-----------------------------------
|
119 |
|
|
|
120 |
|
|
# +-----------------------------------
|
121 |
|
|
# | display items
|
122 |
|
|
# |
|
123 |
|
|
# |
|
124 |
|
|
# +-----------------------------------
|
125 |
|
|
|
126 |
|
|
# +-----------------------------------
|
127 |
|
|
# | connection point avalon_slave_0
|
128 |
|
|
# |
|
129 |
|
|
add_interface avalon_slave_0 avalon end
|
130 |
|
|
set_interface_property avalon_slave_0 addressAlignment DYNAMIC
|
131 |
|
|
set_interface_property avalon_slave_0 associatedClock clock_sink
|
132 |
|
|
set_interface_property avalon_slave_0 burstOnBurstBoundariesOnly false
|
133 |
|
|
set_interface_property avalon_slave_0 explicitAddressSpan 0
|
134 |
|
|
set_interface_property avalon_slave_0 holdTime 0
|
135 |
|
|
set_interface_property avalon_slave_0 isMemoryDevice false
|
136 |
|
|
set_interface_property avalon_slave_0 isNonVolatileStorage false
|
137 |
|
|
set_interface_property avalon_slave_0 linewrapBursts false
|
138 |
|
|
set_interface_property avalon_slave_0 maximumPendingReadTransactions 0
|
139 |
|
|
set_interface_property avalon_slave_0 printableDevice false
|
140 |
|
|
set_interface_property avalon_slave_0 readLatency 0
|
141 |
|
|
set_interface_property avalon_slave_0 readWaitTime 1
|
142 |
|
|
set_interface_property avalon_slave_0 setupTime 0
|
143 |
|
|
set_interface_property avalon_slave_0 timingUnits Cycles
|
144 |
|
|
set_interface_property avalon_slave_0 writeWaitTime 0
|
145 |
|
|
|
146 |
|
|
set_interface_property avalon_slave_0 ASSOCIATED_CLOCK clock_sink
|
147 |
|
|
set_interface_property avalon_slave_0 ENABLED true
|
148 |
|
|
|
149 |
|
|
add_interface_port avalon_slave_0 avalon_cfg_addr_in address Input n_chans_bits_g+4
|
150 |
|
|
add_interface_port avalon_slave_0 avalon_cfg_we_in write Input 1
|
151 |
|
|
add_interface_port avalon_slave_0 avalon_cfg_re_in read Input 1
|
152 |
|
|
add_interface_port avalon_slave_0 avalon_cfg_cs_in chipselect Input 1
|
153 |
|
|
add_interface_port avalon_slave_0 avalon_cfg_waitrequest_out waitrequest Output 1
|
154 |
|
|
add_interface_port avalon_slave_0 avalon_cfg_writedata_in writedata Input addr_width_g
|
155 |
|
|
add_interface_port avalon_slave_0 avalon_cfg_readdata_out readdata Output addr_width_g
|
156 |
|
|
# |
|
157 |
|
|
# +-----------------------------------
|
158 |
|
|
|
159 |
|
|
# +-----------------------------------
|
160 |
|
|
# | connection point conduit_end
|
161 |
|
|
# |
|
162 |
|
|
add_interface conduit_end conduit end
|
163 |
|
|
|
164 |
|
|
set_interface_property conduit_end ENABLED true
|
165 |
|
|
|
166 |
|
|
add_interface_port conduit_end hibi_data_in export Input data_width_g
|
167 |
|
|
add_interface_port conduit_end hibi_av_in export Input 1
|
168 |
|
|
add_interface_port conduit_end hibi_empty_in export Input 1
|
169 |
|
|
add_interface_port conduit_end hibi_comm_in export Input 5
|
170 |
|
|
add_interface_port conduit_end hibi_re_out export Output 1
|
171 |
|
|
add_interface_port conduit_end hibi_data_out export Output data_width_g
|
172 |
|
|
add_interface_port conduit_end hibi_av_out export Output 1
|
173 |
|
|
add_interface_port conduit_end hibi_full_in export Input 1
|
174 |
|
|
add_interface_port conduit_end hibi_comm_out export Output 5
|
175 |
|
|
add_interface_port conduit_end hibi_we_out export Output 1
|
176 |
|
|
# |
|
177 |
|
|
# +-----------------------------------
|
178 |
|
|
|
179 |
|
|
# +-----------------------------------
|
180 |
|
|
# | connection point clock_sink
|
181 |
|
|
# |
|
182 |
|
|
add_interface clock_sink clock end
|
183 |
|
|
|
184 |
|
|
set_interface_property clock_sink ENABLED true
|
185 |
|
|
|
186 |
|
|
add_interface_port clock_sink clk_cfg clk Input 1
|
187 |
|
|
# |
|
188 |
|
|
# +-----------------------------------
|
189 |
|
|
|
190 |
|
|
# +-----------------------------------
|
191 |
|
|
# | connection point clock_sink_reset
|
192 |
|
|
# |
|
193 |
|
|
add_interface clock_sink_reset reset end
|
194 |
|
|
set_interface_property clock_sink_reset associatedClock clock_sink
|
195 |
|
|
set_interface_property clock_sink_reset synchronousEdges DEASSERT
|
196 |
|
|
|
197 |
|
|
set_interface_property clock_sink_reset ASSOCIATED_CLOCK clock_sink
|
198 |
|
|
set_interface_property clock_sink_reset ENABLED true
|
199 |
|
|
|
200 |
|
|
add_interface_port clock_sink_reset rst_n reset_n Input 1
|
201 |
|
|
# |
|
202 |
|
|
# +-----------------------------------
|
203 |
|
|
|
204 |
|
|
# +-----------------------------------
|
205 |
|
|
# | connection point clock_sink_1
|
206 |
|
|
# |
|
207 |
|
|
add_interface clock_sink_1 clock end
|
208 |
|
|
|
209 |
|
|
set_interface_property clock_sink_1 ENABLED true
|
210 |
|
|
|
211 |
|
|
add_interface_port clock_sink_1 clk_tx clk Input 1
|
212 |
|
|
# |
|
213 |
|
|
# +-----------------------------------
|
214 |
|
|
|
215 |
|
|
# +-----------------------------------
|
216 |
|
|
# | connection point clock_sink_2
|
217 |
|
|
# |
|
218 |
|
|
add_interface clock_sink_2 clock end
|
219 |
|
|
|
220 |
|
|
set_interface_property clock_sink_2 ENABLED true
|
221 |
|
|
|
222 |
|
|
add_interface_port clock_sink_2 clk_rx clk Input 1
|
223 |
|
|
# |
|
224 |
|
|
# +-----------------------------------
|
225 |
|
|
|
226 |
|
|
# +-----------------------------------
|
227 |
|
|
# | connection point interrupt_sender
|
228 |
|
|
# |
|
229 |
|
|
add_interface interrupt_sender interrupt end
|
230 |
|
|
set_interface_property interrupt_sender associatedAddressablePoint avalon_slave_0
|
231 |
|
|
set_interface_property interrupt_sender associatedClock clock_sink
|
232 |
|
|
set_interface_property interrupt_sender associatedReset clock_sink_reset
|
233 |
|
|
|
234 |
|
|
set_interface_property interrupt_sender ASSOCIATED_CLOCK clock_sink
|
235 |
|
|
set_interface_property interrupt_sender ENABLED true
|
236 |
|
|
|
237 |
|
|
add_interface_port interrupt_sender rx_irq_out irq Output 1
|
238 |
|
|
# |
|
239 |
|
|
# +-----------------------------------
|
240 |
|
|
|
241 |
|
|
# +-----------------------------------
|
242 |
|
|
# | connection point avalon_master
|
243 |
|
|
# |
|
244 |
|
|
add_interface avalon_master avalon start
|
245 |
|
|
set_interface_property avalon_master associatedClock clock_sink_1
|
246 |
|
|
set_interface_property avalon_master burstOnBurstBoundariesOnly false
|
247 |
|
|
set_interface_property avalon_master doStreamReads false
|
248 |
|
|
set_interface_property avalon_master doStreamWrites false
|
249 |
|
|
set_interface_property avalon_master linewrapBursts false
|
250 |
|
|
|
251 |
|
|
set_interface_property avalon_master ASSOCIATED_CLOCK clock_sink_1
|
252 |
|
|
set_interface_property avalon_master ENABLED true
|
253 |
|
|
|
254 |
|
|
add_interface_port avalon_master avalon_addr_out_rx address Output addr_width_g
|
255 |
|
|
add_interface_port avalon_master avalon_we_out_rx write Output 1
|
256 |
|
|
add_interface_port avalon_master avalon_be_out_rx byteenable Output data_width_g/8
|
257 |
|
|
add_interface_port avalon_master avalon_writedata_out_rx writedata Output data_width_g
|
258 |
|
|
add_interface_port avalon_master avalon_waitrequest_in_rx waitrequest Input 1
|
259 |
|
|
# |
|
260 |
|
|
# +-----------------------------------
|
261 |
|
|
|
262 |
|
|
# +-----------------------------------
|
263 |
|
|
# | connection point avalon_master_1
|
264 |
|
|
# |
|
265 |
|
|
add_interface avalon_master_1 avalon start
|
266 |
|
|
set_interface_property avalon_master_1 associatedClock clock_sink_2
|
267 |
|
|
set_interface_property avalon_master_1 burstOnBurstBoundariesOnly false
|
268 |
|
|
set_interface_property avalon_master_1 doStreamReads false
|
269 |
|
|
set_interface_property avalon_master_1 doStreamWrites false
|
270 |
|
|
set_interface_property avalon_master_1 linewrapBursts false
|
271 |
|
|
|
272 |
|
|
set_interface_property avalon_master_1 ASSOCIATED_CLOCK clock_sink_2
|
273 |
|
|
set_interface_property avalon_master_1 ENABLED true
|
274 |
|
|
|
275 |
|
|
add_interface_port avalon_master_1 avalon_readdatavalid_in_tx readdatavalid Input 1
|
276 |
|
|
add_interface_port avalon_master_1 avalon_waitrequest_in_tx waitrequest Input 1
|
277 |
|
|
add_interface_port avalon_master_1 avalon_readdata_in_tx readdata Input data_width_g
|
278 |
|
|
add_interface_port avalon_master_1 avalon_re_out_tx read Output 1
|
279 |
|
|
add_interface_port avalon_master_1 avalon_addr_out_tx address Output addr_width_g
|
280 |
|
|
# |
|
281 |
|
|
# +-----------------------------------
|