ROD firmware  1.0.5
ATLAS l1-calo - ROD_eFEX and ROD_jFEX firmware for the L1Calo ROD board

Back to ROD documentation
input_fifos.vhd
1 ----------------------------------------------------------------------------------
2 -- Company:
3 -- Engineer:
4 --
5 -- Create Date: 08.05.2019 16:34:34
6 -- Design Name:
7 -- Module Name: input_fifos - RTL
8 -- Project Name:
9 -- Target Devices:
10 -- Tool Versions:
11 -- Description:
12 --
13 -- Dependencies:
14 --
15 -- Revision:
16 -- Revision 0.01 - File Created
17 -- Additional Comments:
18 --
19 ----------------------------------------------------------------------------------
20 
21 
22 library IEEE;
23 use IEEE.STD_LOGIC_1164.ALL;
24 use work.ipbus.all;
25 --use work.ipbus_decode_rod_backplane.all;
26 use work.ipbus_decode_L1CaloHubRodBackplane.all;
27 -- Uncomment the following library declaration if using
28 -- arithmetic functions with Signed or Unsigned values
29 --use IEEE.NUMERIC_STD.ALL;
30 
31 -- Uncomment the following library declaration if instantiating
32 -- any Xilinx leaf cells in this code.
33 --library UNISIM;
34 --use UNISIM.VComponents.all;
35 
36 entity input_fifos is
37  generic (
38 
39  max_packet_length : std_logic_vector := x"02FF";
40  sim : integer := 0;
41  efex : integer := 0;
42  jfex : integer := 1;
43  debug : integer := 0;
44  bp_width : integer := 64
45 
46  );
47  Port (
48 
49  ipb_clk: in std_logic;
50  ipb_rst: in std_logic;
51  ipb_in: in ipb_wbus;
52  ipb_out: out ipb_rbus;
53 
54 
55  RESET : in std_logic;
56  pp_clock : in std_logic;
57  clk_40 : in std_logic;
58  clk_160 : in std_logic;
59  rt_clk : in std_logic;
60  backplane_control : out std_logic_vector(31 downto 0);
61  wdog_fifo_reset : in STD_LOGIC;
62  init_clk : in std_logic;
63  ck_pll_lock : in std_logic;
64  master_reset : in std_logic;
65 -- reset_all_channels : in std_logic;
66  L1A : in std_logic;
67  seq : in std_logic_vector(1 downto 0);
68  ro_status : in std_logic_vector(7 downto 0);
69  ro_user_clock : in std_logic;
70 
71  flx_backpressure : in std_logic_vector(11 downto 0);
72 
73  CK_INT : in STD_LOGIC;
74  SMBALERT_B : in STD_LOGIC;
75  T_WRN_B : in STD_LOGIC;
76 
77  ttc_status : in std_logic_vector(31 downto 0);
78  ttc_fifo_level : in std_logic_vector(15 downto 0);
79  L1ID_error : in std_logic;
80  CTTC_CRC_error : in std_logic;
81  cttc_user_clk : in std_logic;
82  ttc_reg : in STD_LOGIC_VECTOR(63 DOWNTO 0);
83  ttc_reset : out std_logic;
84  TTC_fifo_rst : out std_logic;
85  hub_link_reset : out std_logic;
86  chan_enable : out STD_LOGIC_VECTOR (23 downto 0);
87  first_chan : out STD_LOGIC_vector(4 downto 0);
88  last_chan : out STD_LOGIC_vector(4 downto 0);
89  ttc_ignore : out std_logic;
90  TTC_CRC_ignore : out std_logic;
91 
92  header_sequence : out STD_LOGIC_VECTOR (11 downto 0);
93  header_type : out STD_LOGIC_VECTOR (3 downto 0);
94  det_spec_evnt_sel : out STD_LOGIC_VECTOR (3 downto 0);
95 
96  multichannel_busy : out std_logic;
97  combined_busy : in std_logic;
98  event_sel : out STD_LOGIC_VECTOR (1 downto 0);
99  event_count : in STD_LOGIC_VECTOR(31 DOWNTO 0);
100  orbit_count : in STD_LOGIC_VECTOR(15 DOWNTO 0);
101  event_count_reset : out std_logic;
102  orbit_count_reset : out std_logic;
103  bcn_adjustment : out std_logic_vector(11 downto 0);
104  l1id_continuity_control : out std_logic_vector(31 downto 0);
105  l1id_continuity_status : in STD_LOGIC_vector (31 downto 0);
106  l1id_local_miss : in STD_LOGIC_vector (31 downto 0);
107  l1id_ttc_miss : in STD_LOGIC_vector (31 downto 0);
108  l1id_error_count : in STD_LOGIC_vector (31 downto 0);
109  timeout_threshold : out std_logic_vector(31 downto 0);
110  repeat_counter : in STD_LOGIC_vector(31 downto 0);
111  timeout_err : in std_logic;
112 --***************************************************************
113 --********** channel #0 *********************************
114 --***************************************************************
115 
116 -----aurora input bus --------------------------------------------------
117  aurora_user_clk_0 : in std_logic;
118  aurora_chan_stat_0 : in std_logic_vector(31 downto 0);
119  aurora_chan_control_0 : out std_logic_vector(31 downto 0);
120  s_axis_tvalid_0 : in std_logic;
121  s_axis_tlast_0 : in std_logic;
122  tob_s_tready_0 : out std_logic;
123  s_axis_tdata_0 : in std_logic_vector(63 downto 0);
124 
125 --tob output axi bus --------------------------------------
126  tob_poll_chan_0 : in std_logic;
127  tob_m_tvalid_0 : out std_logic;
128  tob_m_tlast_0 : out std_logic;
129  tob_m_tready_0 : in std_logic;
130  tob_m_tdata_0 : out std_logic_vector(63 downto 0);
131  tob_header_marker_0 : out std_logic;
132  tob_tail_marker_0 : out std_logic;
133  hdr_crc_tag_0 : out std_logic;
134  comb_error_tag_0 : out std_logic;
135 
136  --calo output axi bus --------------------------------------
137  calo_poll_chan_0 : in std_logic;
138  calo_m_tvalid_0 : out std_logic;
139  calo_m_fifo_tlast_0 : out std_logic;
140  calo_m_axis_tready_0 : in std_logic;
141  calo_s_axis_tready_0 : out std_logic;
142  calo_m_axis_tdata_0 : out std_logic_vector(63 downto 0);
143  calo_header_marker_0 : out std_logic;
144  calo_tail_marker_0 : out std_logic;
145 
146  --ufc message axi bus --------------------------------------
147  s_axi_ufc_rx_tdata_0 : in std_logic_vector(63 downto 0);
148  s_axi_ufc_rx_tvalid_0 : in std_logic;
149  s_axi_ufc_rx_tlast_0 : in std_logic;
150 
151 --***************************************************************
152 --********** channel #1 *********************************
153 --***************************************************************
154 
155  -----aurora input bus --------------------------------------------------
156 
157  aurora_user_clk_1 : in std_logic;
158  aurora_chan_stat_1 : in std_logic_vector(31 downto 0);
159  aurora_chan_control_1 : out std_logic_vector(31 downto 0);
160  s_axis_tvalid_1 : in std_logic;
161  s_axis_tlast_1 : in std_logic;
162  tob_s_tready_1 : out std_logic;
163  s_axis_tdata_1 : in std_logic_vector(63 downto 0);
164 
165 --tob output axi bus --------------------------------------
166  tob_poll_chan_1 : in std_logic;
167  tob_m_tvalid_1 : out std_logic;
168  tob_m_tlast_1 : out std_logic;
169  tob_m_tready_1 : in std_logic;
170  tob_m_tdata_1 : out std_logic_vector(63 downto 0);
171  tob_header_marker_1 : out std_logic;
172  tob_tail_marker_1 : out std_logic;
173  hdr_crc_tag_1 : out std_logic;
174  comb_error_tag_1 : out std_logic;
175 
176  --calo output axi bus --------------------------------------
177  calo_poll_chan_1 : in std_logic;
178  calo_m_tvalid_1 : out std_logic;
179  calo_m_fifo_tlast_1 : out std_logic;
180  calo_m_axis_tready_1 : in std_logic;
181  calo_s_axis_tready_1 : out std_logic;
182  calo_m_axis_tdata_1 : out std_logic_vector(63 downto 0);
183  calo_header_marker_1 : out std_logic;
184  calo_tail_marker_1 : out std_logic;
185 
186  --ufc message axi bus --------------------------------------
187  s_axi_ufc_rx_tdata_1 : in std_logic_vector(63 downto 0);
188  s_axi_ufc_rx_tvalid_1 : in std_logic;
189  s_axi_ufc_rx_tlast_1 : in std_logic;
190 
191 
192 
193  --***************************************************************
194  --********** channel #2 *********************************
195  --***************************************************************
196 
197 -----aurora input bus --------------------------------------------------
198 
199  aurora_user_clk_2 : in std_logic;
200  aurora_chan_stat_2 : in std_logic_vector(31 downto 0);
201  aurora_chan_control_2 : out std_logic_vector(31 downto 0);
202  s_axis_tvalid_2 : in std_logic;
203  s_axis_tlast_2 : in std_logic;
204  tob_s_tready_2 : out std_logic;
205  s_axis_tdata_2 : in std_logic_vector(63 downto 0);
206 
207 --tob output axi bus --------------------------------------
208  tob_poll_chan_2 : in std_logic;
209  tob_m_tvalid_2 : out std_logic;
210  tob_m_tlast_2 : out std_logic;
211  tob_m_tready_2 : in std_logic;
212  tob_m_tdata_2 : out std_logic_vector(63 downto 0);
213  tob_header_marker_2 : out std_logic;
214  tob_tail_marker_2 : out std_logic;
215  hdr_crc_tag_2 : out std_logic;
216  comb_error_tag_2 : out std_logic;
217  --calo output axi bus --------------------------------------
218  calo_poll_chan_2 : in std_logic;
219  calo_m_tvalid_2 : out std_logic;
220  calo_m_fifo_tlast_2 : out std_logic;
221  calo_m_axis_tready_2 : in std_logic;
222  calo_s_axis_tready_2 : out std_logic;
223  calo_m_axis_tdata_2 : out std_logic_vector(63 downto 0);
224  calo_header_marker_2 : out std_logic;
225  calo_tail_marker_2 : out std_logic;
226 
227  --ufc message axi bus --------------------------------------
228  s_axi_ufc_rx_tdata_2 : in std_logic_vector(63 downto 0);
229  s_axi_ufc_rx_tvalid_2 : in std_logic;
230  s_axi_ufc_rx_tlast_2 : in std_logic;
231 
232 
233  --***************************************************************
234  --********** channel #3 *********************************
235  --***************************************************************
236  -- aurora input bus ----------------------------------------
237  aurora_user_clk_3 : in std_logic;
238  aurora_chan_stat_3 : in std_logic_vector(31 downto 0);
239  aurora_chan_control_3 : out std_logic_vector(31 downto 0);
240  s_axis_tvalid_3 : in std_logic;
241  s_axis_tlast_3 : in std_logic;
242  tob_s_tready_3 : out std_logic;
243  s_axis_tdata_3 : in std_logic_vector(63 downto 0);
244 
245 --tob output axi bus --------------------------------------
246  tob_poll_chan_3 : in std_logic;
247  tob_m_tvalid_3 : out std_logic;
248  tob_m_tlast_3 : out std_logic;
249  tob_m_tready_3 : in std_logic;
250  tob_m_tdata_3 : out std_logic_vector(63 downto 0);
251  tob_header_marker_3 : out std_logic;
252  tob_tail_marker_3 : out std_logic;
253  hdr_crc_tag_3 : out std_logic;
254  comb_error_tag_3 : out std_logic;
255  --calo output axi bus --------------------------------------
256  calo_poll_chan_3 : in std_logic;
257  calo_m_tvalid_3 : out std_logic;
258  calo_m_fifo_tlast_3 : out std_logic;
259  calo_m_axis_tready_3 : in std_logic;
260  calo_s_axis_tready_3 : out std_logic;
261  calo_m_axis_tdata_3 : out std_logic_vector(63 downto 0);
262  calo_header_marker_3 : out std_logic;
263  calo_tail_marker_3 : out std_logic;
264 
265  --ufc message axi bus --------------------------------------
266  s_axi_ufc_rx_tdata_3 : in std_logic_vector(63 downto 0);
267  s_axi_ufc_rx_tvalid_3 : in std_logic;
268  s_axi_ufc_rx_tlast_3 : in std_logic;
269 
270 
271 
272 --***************************************************************
273 --********** channel #4 *********************************
274 --***************************************************************
275 
276 -----aurora input bus --------------------------------------------------
277 aurora_user_clk_4 : in std_logic;
278 aurora_chan_stat_4 : in std_logic_vector(31 downto 0);
279 aurora_chan_control_4 : out std_logic_vector(31 downto 0);
280 s_axis_tvalid_4 : in std_logic;
281 s_axis_tlast_4 : in std_logic;
282 tob_s_tready_4 : out std_logic;
283 s_axis_tdata_4 : in std_logic_vector(63 downto 0);
284 
285 --tob output axi bus --------------------------------------
286 tob_poll_chan_4 : in std_logic;
287 tob_m_tvalid_4 : out std_logic;
288 tob_m_tlast_4 : out std_logic;
289 tob_m_tready_4 : in std_logic;
290 tob_m_tdata_4 : out std_logic_vector(63 downto 0);
291 tob_header_marker_4 : out std_logic;
292 tob_tail_marker_4 : out std_logic;
293 hdr_crc_tag_4 : out std_logic;
294 comb_error_tag_4 : out std_logic;
295 --calo output axi bus --------------------------------------
296 calo_poll_chan_4 : in std_logic;
297 calo_m_tvalid_4 : out std_logic;
298 calo_m_fifo_tlast_4 : out std_logic;
299 calo_m_axis_tready_4 : in std_logic;
300 calo_s_axis_tready_4 : out std_logic;
301 calo_m_axis_tdata_4 : out std_logic_vector(63 downto 0);
302 calo_header_marker_4 : out std_logic;
303 calo_tail_marker_4 : out std_logic;
304 
305 --ufc message axi bus --------------------------------------
306  s_axi_ufc_rx_tdata_4 : in std_logic_vector(63 downto 0);
307  s_axi_ufc_rx_tvalid_4 : in std_logic;
308  s_axi_ufc_rx_tlast_4 : in std_logic;
309 
310 
311 
312 --***************************************************************
313 --********** channel #5 *********************************
314 --***************************************************************
315 
316 -----aurora input bus --------------------------------------------------
317 aurora_user_clk_5 : in std_logic;
318 aurora_chan_stat_5 : in std_logic_vector(31 downto 0);
319 aurora_chan_control_5 : out std_logic_vector(31 downto 0);
320 s_axis_tvalid_5 : in std_logic;
321 s_axis_tlast_5 : in std_logic;
322 tob_s_tready_5 : out std_logic;
323 s_axis_tdata_5 : in std_logic_vector(63 downto 0);
324 
325 --tob output axi bus --------------------------------------
326 tob_poll_chan_5 : in std_logic;
327 tob_m_tvalid_5 : out std_logic;
328 tob_m_tlast_5 : out std_logic;
329 tob_m_tready_5 : in std_logic;
330 tob_m_tdata_5 : out std_logic_vector((bp_width-1) downto 0);
331 tob_header_marker_5 : out std_logic;
332 tob_tail_marker_5 : out std_logic;
333 hdr_crc_tag_5 : out std_logic;
334 comb_error_tag_5 : out std_logic;
335 --calo output axi bus --------------------------------------
336 calo_poll_chan_5 : in std_logic;
337 calo_m_tvalid_5 : out std_logic;
338 calo_m_fifo_tlast_5 : out std_logic;
339 calo_m_axis_tready_5 : in std_logic;
340 calo_s_axis_tready_5 : out std_logic;
341 calo_m_axis_tdata_5 : out std_logic_vector((bp_width-1) downto 0);
342 calo_header_marker_5 : out std_logic;
343 calo_tail_marker_5 : out std_logic;
344 
345 
346  --ufc message axi bus --------------------------------------
347  s_axi_ufc_rx_tdata_5 : in std_logic_vector(63 downto 0);
348  s_axi_ufc_rx_tvalid_5 : in std_logic;
349  s_axi_ufc_rx_tlast_5 : in std_logic;
350 
351 --***************************************************************
352 --********** channel #6 *********************************
353 --***************************************************************
354 
355 -----aurora input bus --------------------------------------------------
356 aurora_user_clk_6 : in std_logic;
357 aurora_chan_stat_6 : in std_logic_vector(31 downto 0);
358 aurora_chan_control_6 : out std_logic_vector(31 downto 0);
359 s_axis_tvalid_6 : in std_logic;
360 s_axis_tlast_6 : in std_logic;
361 tob_s_tready_6 : out std_logic;
362 s_axis_tdata_6 : in std_logic_vector(63 downto 0);
363 
364 --tob output axi bus --------------------------------------
365 tob_poll_chan_6 : in std_logic;
366 tob_m_tvalid_6 : out std_logic;
367 tob_m_tlast_6 : out std_logic;
368 tob_m_tready_6 : in std_logic;
369 tob_m_tdata_6 : out std_logic_vector((bp_width-1) downto 0);
370 tob_header_marker_6 : out std_logic;
371 tob_tail_marker_6 : out std_logic;
372 hdr_crc_tag_6 : out std_logic;
373 comb_error_tag_6 : out std_logic;
374 --calo output axi bus --------------------------------------
375 calo_poll_chan_6 : in std_logic;
376 calo_m_tvalid_6 : out std_logic;
377 calo_m_fifo_tlast_6 : out std_logic;
378 calo_m_axis_tready_6 : in std_logic;
379 calo_s_axis_tready_6 : out std_logic;
380 calo_m_axis_tdata_6 : out std_logic_vector((bp_width-1) downto 0);
381 calo_header_marker_6 : out std_logic;
382 calo_tail_marker_6 : out std_logic;
383 
384 
385 --ufc message axi bus --------------------------------------
386  s_axi_ufc_rx_tdata_6 : in std_logic_vector(63 downto 0);
387  s_axi_ufc_rx_tvalid_6 : in std_logic;
388  s_axi_ufc_rx_tlast_6 : in std_logic;
389 
390 
391 --***************************************************************
392 --********** channel #7 *********************************
393 --***************************************************************
394 
395 -----aurora input bus --------------------------------------------------
396 aurora_user_clk_7 : in std_logic;
397 aurora_chan_stat_7 : in std_logic_vector(31 downto 0);
398 aurora_chan_control_7 : out std_logic_vector(31 downto 0);
399 s_axis_tvalid_7 : in std_logic;
400 s_axis_tlast_7 : in std_logic;
401 tob_s_tready_7 : out std_logic;
402 s_axis_tdata_7 : in std_logic_vector(63 downto 0);
403 
404 --tob output axi bus --------------------------------------
405 tob_poll_chan_7 : in std_logic;
406 tob_m_tvalid_7 : out std_logic;
407 tob_m_tlast_7 : out std_logic;
408 tob_m_tready_7 : in std_logic;
409 tob_m_tdata_7 : out std_logic_vector((bp_width-1) downto 0);
410 tob_header_marker_7 : out std_logic;
411 tob_tail_marker_7 : out std_logic;
412 hdr_crc_tag_7 : out std_logic;
413 comb_error_tag_7 : out std_logic;
414 --calo output axi bus --------------------------------------
415 calo_poll_chan_7 : in std_logic;
416 calo_m_tvalid_7 : out std_logic;
417 calo_m_fifo_tlast_7 : out std_logic;
418 calo_m_axis_tready_7 : in std_logic;
419 calo_s_axis_tready_7 : out std_logic;
420 calo_m_axis_tdata_7 : out std_logic_vector((bp_width-1) downto 0);
421 calo_header_marker_7 : out std_logic;
422 calo_tail_marker_7 : out std_logic;
423 
424 
425  --ufc message axi bus --------------------------------------
426  s_axi_ufc_rx_tdata_7 : in std_logic_vector(63 downto 0);
427  s_axi_ufc_rx_tvalid_7 : in std_logic;
428  s_axi_ufc_rx_tlast_7 : in std_logic;
429 
430 --***************************************************************
431 --********** channel #8 *********************************
432 --***************************************************************
433 
434 -----aurora input bus --------------------------------------------------
435 aurora_user_clk_8 : in std_logic;
436 aurora_chan_stat_8 : in std_logic_vector(31 downto 0);
437 aurora_chan_control_8 : out std_logic_vector(31 downto 0);
438 s_axis_tvalid_8 : in std_logic;
439 s_axis_tlast_8 : in std_logic;
440 tob_s_tready_8 : out std_logic;
441 s_axis_tdata_8 : in std_logic_vector(63 downto 0);
442 
443 --tob output axi bus --------------------------------------
444 tob_poll_chan_8 : in std_logic;
445 tob_m_tvalid_8 : out std_logic;
446 tob_m_tlast_8 : out std_logic;
447 tob_m_tready_8 : in std_logic;
448 tob_m_tdata_8 : out std_logic_vector((bp_width-1) downto 0);
449 tob_header_marker_8 : out std_logic;
450 tob_tail_marker_8 : out std_logic;
451 hdr_crc_tag_8 : out std_logic;
452 comb_error_tag_8 : out std_logic;
453 --calo output axi bus --------------------------------------
454 calo_poll_chan_8 : in std_logic;
455 calo_m_tvalid_8 : out std_logic;
456 calo_m_fifo_tlast_8 : out std_logic;
457 calo_m_axis_tready_8 : in std_logic;
458 calo_s_axis_tready_8 : out std_logic;
459 calo_m_axis_tdata_8 : out std_logic_vector((bp_width-1) downto 0);
460 calo_header_marker_8 : out std_logic;
461 calo_tail_marker_8 : out std_logic;
462 
463  --ufc message axi bus --------------------------------------
464  s_axi_ufc_rx_tdata_8 : in std_logic_vector(63 downto 0);
465  s_axi_ufc_rx_tvalid_8 : in std_logic;
466  s_axi_ufc_rx_tlast_8 : in std_logic;
467 
468 --***************************************************************
469 --********** channel #9 *********************************
470 --***************************************************************
471 
472 -----aurora input bus --------------------------------------------------
473 aurora_user_clk_9 : in std_logic;
474 aurora_chan_stat_9 : in std_logic_vector(31 downto 0);
475 aurora_chan_control_9 : out std_logic_vector(31 downto 0);
476 s_axis_tvalid_9 : in std_logic;
477 s_axis_tlast_9 : in std_logic;
478 tob_s_tready_9 : out std_logic;
479 s_axis_tdata_9 : in std_logic_vector(63 downto 0);
480 
481 --tob output axi bus --------------------------------------
482 tob_poll_chan_9 : in std_logic;
483 tob_m_tvalid_9 : out std_logic;
484 tob_m_tlast_9 : out std_logic;
485 tob_m_tready_9 : in std_logic;
486 tob_m_tdata_9 : out std_logic_vector((bp_width-1) downto 0);
487 tob_header_marker_9 : out std_logic;
488 tob_tail_marker_9 : out std_logic;
489 hdr_crc_tag_9 : out std_logic;
490 comb_error_tag_9 : out std_logic;
491 --calo output axi bus --------------------------------------
492 calo_poll_chan_9 : in std_logic;
493 calo_m_tvalid_9 : out std_logic;
494 calo_m_fifo_tlast_9 : out std_logic;
495 calo_m_axis_tready_9 : in std_logic;
496 calo_s_axis_tready_9 : out std_logic;
497 calo_m_axis_tdata_9 : out std_logic_vector((bp_width-1) downto 0);
498 calo_header_marker_9 : out std_logic;
499 calo_tail_marker_9 : out std_logic;
500 
501 
502  --ufc message axi bus --------------------------------------
503  s_axi_ufc_rx_tdata_9 : in std_logic_vector(63 downto 0);
504  s_axi_ufc_rx_tvalid_9 : in std_logic;
505  s_axi_ufc_rx_tlast_9 : in std_logic;
506 
507 --***************************************************************
508 --********** channel #10 *********************************
509 --***************************************************************
510 
511 -----aurora input bus --------------------------------------------------
512 aurora_user_clk_10 : in std_logic;
513 aurora_chan_stat_10 : in std_logic_vector(31 downto 0);
514 aurora_chan_control_10 : out std_logic_vector(31 downto 0);
515 s_axis_tvalid_10 : in std_logic;
516 s_axis_tlast_10 : in std_logic;
517 tob_s_tready_10 : out std_logic;
518 s_axis_tdata_10 : in std_logic_vector(63 downto 0);
519 
520 --tob output axi bus --------------------------------------
521 tob_poll_chan_10 : in std_logic;
522 tob_m_tvalid_10 : out std_logic;
523 tob_m_tlast_10 : out std_logic;
524 tob_m_tready_10 : in std_logic;
525 tob_m_tdata_10 : out std_logic_vector((bp_width-1) downto 0);
526 tob_header_marker_10 : out std_logic;
527 tob_tail_marker_10 : out std_logic;
528 hdr_crc_tag_10 : out std_logic;
529 comb_error_tag_10 : out std_logic;
530 --calo output axi bus --------------------------------------
531 calo_poll_chan_10 : in std_logic;
532 calo_m_tvalid_10 : out std_logic;
533 calo_m_fifo_tlast_10 : out std_logic;
534 calo_m_axis_tready_10 : in std_logic;
535 calo_s_axis_tready_10 : out std_logic;
536 calo_m_axis_tdata_10 : out std_logic_vector((bp_width-1) downto 0);
537 calo_header_marker_10 : out std_logic;
538 calo_tail_marker_10 : out std_logic;
539 
540  --ufc message axi bus --------------------------------------
541  s_axi_ufc_rx_tdata_10 : in std_logic_vector(63 downto 0);
542  s_axi_ufc_rx_tvalid_10 : in std_logic;
543  s_axi_ufc_rx_tlast_10 : in std_logic;
544 
545 
546 
547 --***************************************************************
548 --********** channel #11 *********************************
549 --***************************************************************
550 
551 -----aurora input bus --------------------------------------------------
552 aurora_user_clk_11 : in std_logic;
553 aurora_chan_stat_11 : in std_logic_vector(31 downto 0);
554 aurora_chan_control_11 : out std_logic_vector(31 downto 0);
555 s_axis_tvalid_11 : in std_logic;
556 s_axis_tlast_11 : in std_logic;
557 tob_s_tready_11 : out std_logic;
558 s_axis_tdata_11 : in std_logic_vector(63 downto 0);
559 
560 --tob output axi bus --------------------------------------
561 tob_poll_chan_11 : in std_logic;
562 tob_m_tvalid_11 : out std_logic;
563 tob_m_tlast_11 : out std_logic;
564 tob_m_tready_11 : in std_logic;
565 tob_m_tdata_11 : out std_logic_vector((bp_width-1) downto 0);
566 tob_header_marker_11 : out std_logic;
567 tob_tail_marker_11 : out std_logic;
568 hdr_crc_tag_11 : out std_logic;
569 comb_error_tag_11 : out std_logic;
570 --calo output axi bus --------------------------------------
571 calo_poll_chan_11 : in std_logic;
572 calo_m_tvalid_11 : out std_logic;
573 calo_m_fifo_tlast_11 : out std_logic;
574 calo_m_axis_tready_11 : in std_logic;
575 calo_s_axis_tready_11 : out std_logic;
576 calo_m_axis_tdata_11 : out std_logic_vector((bp_width-1) downto 0);
577 calo_header_marker_11 : out std_logic;
578 calo_tail_marker_11 : out std_logic;
579 
580 
581  --ufc message axi bus --------------------------------------
582  s_axi_ufc_rx_tdata_11 : in std_logic_vector(63 downto 0);
583  s_axi_ufc_rx_tvalid_11 : in std_logic;
584  s_axi_ufc_rx_tlast_11 : in std_logic;
585 
586 
587 
588 --***************************************************************
589 --********** channel #12 *********************************
590 --***************************************************************
591 
592 -----aurora input bus --------------------------------------------------
593 aurora_user_clk_12 : in std_logic;
594 aurora_chan_stat_12 : in std_logic_vector(31 downto 0);
595 aurora_chan_control_12 : out std_logic_vector(31 downto 0);
596 s_axis_tvalid_12 : in std_logic;
597 s_axis_tlast_12 : in std_logic;
598 tob_s_tready_12 : out std_logic;
599 s_axis_tdata_12 : in std_logic_vector(63 downto 0);
600 
601 --tob output axi bus --------------------------------------
602 tob_poll_chan_12 : in std_logic;
603 tob_m_tvalid_12 : out std_logic;
604 tob_m_tlast_12 : out std_logic;
605 tob_m_tready_12 : in std_logic;
606 tob_m_tdata_12 : out std_logic_vector((bp_width-1) downto 0);
607 tob_header_marker_12 : out std_logic;
608 tob_tail_marker_12 : out std_logic;
609 hdr_crc_tag_12 : out std_logic;
610 comb_error_tag_12 : out std_logic;
611 --calo output axi bus --------------------------------------
612 calo_poll_chan_12 : in std_logic;
613 calo_m_tvalid_12 : out std_logic;
614 calo_m_fifo_tlast_12 : out std_logic;
615 calo_m_axis_tready_12 : in std_logic;
616 calo_s_axis_tready_12 : out std_logic;
617 calo_m_axis_tdata_12 : out std_logic_vector((bp_width-1) downto 0);
618 calo_header_marker_12 : out std_logic;
619 calo_tail_marker_12 : out std_logic;
620 
621 
622  --ufc message axi bus --------------------------------------
623  s_axi_ufc_rx_tdata_12 : in std_logic_vector(63 downto 0);
624  s_axi_ufc_rx_tvalid_12 : in std_logic;
625  s_axi_ufc_rx_tlast_12 : in std_logic;
626 
627 
628 --***************************************************************
629 --********** channel #13 *********************************
630 --***************************************************************
631 
632 -----aurora input bus --------------------------------------------------
633 aurora_user_clk_13 : in std_logic;
634 aurora_chan_stat_13 : in std_logic_vector(31 downto 0);
635 aurora_chan_control_13 : out std_logic_vector(31 downto 0);
636 s_axis_tvalid_13 : in std_logic;
637 s_axis_tlast_13 : in std_logic;
638 tob_s_tready_13 : out std_logic;
639 s_axis_tdata_13 : in std_logic_vector(63 downto 0);
640 
641 --tob output axi bus --------------------------------------
642 tob_poll_chan_13 : in std_logic;
643 tob_m_tvalid_13 : out std_logic;
644 tob_m_tlast_13 : out std_logic;
645 tob_m_tready_13 : in std_logic;
646 tob_m_tdata_13 : out std_logic_vector((bp_width-1) downto 0);
647 tob_header_marker_13 : out std_logic;
648 tob_tail_marker_13 : out std_logic;
649 hdr_crc_tag_13 : out std_logic;
650 comb_error_tag_13 : out std_logic;
651 --calo output axi bus --------------------------------------
652 calo_poll_chan_13 : in std_logic;
653 calo_m_tvalid_13 : out std_logic;
654 calo_m_fifo_tlast_13 : out std_logic;
655 calo_m_axis_tready_13 : in std_logic;
656 calo_s_axis_tready_13 : out std_logic;
657 calo_m_axis_tdata_13 : out std_logic_vector((bp_width-1) downto 0);
658 calo_header_marker_13 : out std_logic;
659 calo_tail_marker_13 : out std_logic;
660 
661 
662  --ufc message axi bus --------------------------------------
663  s_axi_ufc_rx_tdata_13 : in std_logic_vector(63 downto 0);
664  s_axi_ufc_rx_tvalid_13 : in std_logic;
665  s_axi_ufc_rx_tlast_13 : in std_logic;
666 
667 
668 
669 --***************************************************************
670 --********** channel #14 *********************************
671 --***************************************************************
672 
673 -----aurora input bus --------------------------------------------------
674 aurora_user_clk_14 : in std_logic;
675 aurora_chan_stat_14 : in std_logic_vector(31 downto 0);
676 aurora_chan_control_14 : out std_logic_vector(31 downto 0);
677 s_axis_tvalid_14 : in std_logic;
678 s_axis_tlast_14 : in std_logic;
679 tob_s_tready_14 : out std_logic;
680 s_axis_tdata_14 : in std_logic_vector(63 downto 0);
681 
682 --tob output axi bus --------------------------------------
683 tob_poll_chan_14 : in std_logic;
684 tob_m_tvalid_14 : out std_logic;
685 tob_m_tlast_14 : out std_logic;
686 tob_m_tready_14 : in std_logic;
687 tob_m_tdata_14 : out std_logic_vector((bp_width-1) downto 0);
688 tob_header_marker_14 : out std_logic;
689 tob_tail_marker_14 : out std_logic;
690 hdr_crc_tag_14 : out std_logic;
691 comb_error_tag_14 : out std_logic;
692 --calo output axi bus --------------------------------------
693 calo_poll_chan_14 : in std_logic;
694 calo_m_tvalid_14 : out std_logic;
695 calo_m_fifo_tlast_14 : out std_logic;
696 calo_m_axis_tready_14 : in std_logic;
697 calo_s_axis_tready_14 : out std_logic;
698 calo_m_axis_tdata_14 : out std_logic_vector((bp_width-1) downto 0);
699 calo_header_marker_14 : out std_logic;
700 calo_tail_marker_14 : out std_logic;
701 
702 
703  --ufc message axi bus --------------------------------------
704  s_axi_ufc_rx_tdata_14 : in std_logic_vector(63 downto 0);
705  s_axi_ufc_rx_tvalid_14 : in std_logic;
706  s_axi_ufc_rx_tlast_14 : in std_logic;
707 
708 
709 
710 --***************************************************************
711 --********** channel #15 *********************************
712 --***************************************************************
713 
714 -----aurora input bus --------------------------------------------------
715 aurora_user_clk_15 : in std_logic;
716 aurora_chan_stat_15 : in std_logic_vector(31 downto 0);
717 aurora_chan_control_15 : out std_logic_vector(31 downto 0);
718 s_axis_tvalid_15 : in std_logic;
719 s_axis_tlast_15 : in std_logic;
720 tob_s_tready_15 : out std_logic;
721 s_axis_tdata_15 : in std_logic_vector(63 downto 0);
722 
723 --tob output axi bus --------------------------------------
724 tob_poll_chan_15 : in std_logic;
725 tob_m_tvalid_15 : out std_logic;
726 tob_m_tlast_15 : out std_logic;
727 tob_m_tready_15 : in std_logic;
728 tob_m_tdata_15 : out std_logic_vector((bp_width-1) downto 0);
729 tob_header_marker_15 : out std_logic;
730 tob_tail_marker_15 : out std_logic;
731 hdr_crc_tag_15 : out std_logic;
732 comb_error_tag_15 : out std_logic;
733 --calo output axi bus --------------------------------------
734 calo_poll_chan_15 : in std_logic;
735 calo_m_tvalid_15 : out std_logic;
736 calo_m_fifo_tlast_15 : out std_logic;
737 calo_m_axis_tready_15 : in std_logic;
738 calo_s_axis_tready_15 : out std_logic;
739 calo_m_axis_tdata_15 : out std_logic_vector((bp_width-1) downto 0);
740 calo_header_marker_15 : out std_logic;
741 calo_tail_marker_15 : out std_logic;
742 
743 
744  --ufc message axi bus --------------------------------------
745  s_axi_ufc_rx_tdata_15 : in std_logic_vector(63 downto 0);
746  s_axi_ufc_rx_tvalid_15 : in std_logic;
747  s_axi_ufc_rx_tlast_15 : in std_logic;
748 
749 
750 --***************************************************************
751 --********** channel #16 *********************************
752 --***************************************************************
753 
754 -----aurora input bus --------------------------------------------------
755 aurora_user_clk_16 : in std_logic;
756 aurora_chan_stat_16 : in std_logic_vector(31 downto 0);
757 aurora_chan_control_16 : out std_logic_vector(31 downto 0);
758 s_axis_tvalid_16 : in std_logic;
759 s_axis_tlast_16 : in std_logic;
760 tob_s_tready_16 : out std_logic;
761 s_axis_tdata_16 : in std_logic_vector(63 downto 0);
762 
763 --tob output axi bus --------------------------------------
764 tob_poll_chan_16 : in std_logic;
765 tob_m_tvalid_16 : out std_logic;
766 tob_m_tlast_16 : out std_logic;
767 tob_m_tready_16 : in std_logic;
768 tob_m_tdata_16 : out std_logic_vector((bp_width-1) downto 0);
769 tob_header_marker_16 : out std_logic;
770 tob_tail_marker_16 : out std_logic;
771 hdr_crc_tag_16 : out std_logic;
772 comb_error_tag_16 : out std_logic;
773 --calo output axi bus --------------------------------------
774 calo_poll_chan_16 : in std_logic;
775 calo_m_tvalid_16 : out std_logic;
776 calo_m_fifo_tlast_16 : out std_logic;
777 calo_m_axis_tready_16 : in std_logic;
778 calo_s_axis_tready_16 : out std_logic;
779 calo_m_axis_tdata_16 : out std_logic_vector((bp_width-1) downto 0);
780 calo_header_marker_16 : out std_logic;
781 calo_tail_marker_16 : out std_logic;
782 
783  --ufc message axi bus --------------------------------------
784  s_axi_ufc_rx_tdata_16 : in std_logic_vector(63 downto 0);
785  s_axi_ufc_rx_tvalid_16 : in std_logic;
786  s_axi_ufc_rx_tlast_16 : in std_logic;
787 
788 
789 
790 
791 --***************************************************************
792 --********** channel #17 *********************************
793 --***************************************************************
794 
795 -----aurora input bus --------------------------------------------------
796 aurora_user_clk_17 : in std_logic;
797 aurora_chan_stat_17 : in std_logic_vector(31 downto 0);
798 aurora_chan_control_17 : out std_logic_vector(31 downto 0);
799 s_axis_tvalid_17 : in std_logic;
800 s_axis_tlast_17 : in std_logic;
801 tob_s_tready_17 : out std_logic;
802 s_axis_tdata_17 : in std_logic_vector(63 downto 0);
803 
804 --tob output axi bus --------------------------------------
805 tob_poll_chan_17 : in std_logic;
806 tob_m_tvalid_17 : out std_logic;
807 tob_m_tlast_17 : out std_logic;
808 tob_m_tready_17 : in std_logic;
809 tob_m_tdata_17 : out std_logic_vector((bp_width-1) downto 0);
810 tob_header_marker_17 : out std_logic;
811 tob_tail_marker_17 : out std_logic;
812 hdr_crc_tag_17 : out std_logic;
813 comb_error_tag_17 : out std_logic;
814 --calo output axi bus --------------------------------------
815 calo_poll_chan_17 : in std_logic;
816 calo_m_tvalid_17 : out std_logic;
817 calo_m_fifo_tlast_17 : out std_logic;
818 calo_m_axis_tready_17 : in std_logic;
819 calo_s_axis_tready_17 : out std_logic;
820 calo_m_axis_tdata_17 : out std_logic_vector((bp_width-1) downto 0);
821 calo_header_marker_17 : out std_logic;
822 calo_tail_marker_17 : out std_logic;
823 
824  --ufc message axi bus --------------------------------------
825  s_axi_ufc_rx_tdata_17 : in std_logic_vector(63 downto 0);
826  s_axi_ufc_rx_tvalid_17 : in std_logic;
827  s_axi_ufc_rx_tlast_17 : in std_logic;
828 
829 
830 
831 
832 
833 --***************************************************************
834 --********** channel #18 *********************************
835 --***************************************************************
836 
837 -----aurora input bus --------------------------------------------------
838 aurora_user_clk_18 : in std_logic;
839 aurora_chan_stat_18 : in std_logic_vector(31 downto 0);
840 aurora_chan_control_18 : out std_logic_vector(31 downto 0);
841 s_axis_tvalid_18 : in std_logic;
842 s_axis_tlast_18 : in std_logic;
843 tob_s_tready_18 : out std_logic;
844 s_axis_tdata_18 : in std_logic_vector(63 downto 0);
845 
846 --tob output axi bus --------------------------------------
847 tob_poll_chan_18 : in std_logic;
848 tob_m_tvalid_18 : out std_logic;
849 tob_m_tlast_18 : out std_logic;
850 tob_m_tready_18 : in std_logic;
851 tob_m_tdata_18 : out std_logic_vector((bp_width-1) downto 0);
852 tob_header_marker_18 : out std_logic;
853 tob_tail_marker_18 : out std_logic;
854 hdr_crc_tag_18 : out std_logic;
855 comb_error_tag_18 : out std_logic;
856 --calo output axi bus --------------------------------------
857 calo_poll_chan_18 : in std_logic;
858 calo_m_tvalid_18 : out std_logic;
859 calo_m_fifo_tlast_18 : out std_logic;
860 calo_m_axis_tready_18 : in std_logic;
861 calo_s_axis_tready_18 : out std_logic;
862 calo_m_axis_tdata_18 : out std_logic_vector((bp_width-1) downto 0);
863 calo_header_marker_18 : out std_logic;
864 calo_tail_marker_18 : out std_logic;
865 
866  --ufc message axi bus --------------------------------------
867  s_axi_ufc_rx_tdata_18 : in std_logic_vector(63 downto 0);
868  s_axi_ufc_rx_tvalid_18 : in std_logic;
869  s_axi_ufc_rx_tlast_18 : in std_logic;
870 
871 
872 
873 
874 --***************************************************************
875 --********** channel #19 *********************************
876 --***************************************************************
877 
878 -----aurora input bus --------------------------------------------------
879 aurora_user_clk_19 : in std_logic;
880 aurora_chan_stat_19 : in std_logic_vector(31 downto 0);
881 aurora_chan_control_19 : out std_logic_vector(31 downto 0);
882 s_axis_tvalid_19 : in std_logic;
883 s_axis_tlast_19 : in std_logic;
884 tob_s_tready_19 : out std_logic;
885 s_axis_tdata_19 : in std_logic_vector(63 downto 0);
886 
887 --tob output axi bus --------------------------------------
888 tob_poll_chan_19 : in std_logic;
889 tob_m_tvalid_19 : out std_logic;
890 tob_m_tlast_19 : out std_logic;
891 tob_m_tready_19 : in std_logic;
892 tob_m_tdata_19 : out std_logic_vector((bp_width-1) downto 0);
893 tob_header_marker_19 : out std_logic;
894 tob_tail_marker_19 : out std_logic;
895 hdr_crc_tag_19 : out std_logic;
896 comb_error_tag_19 : out std_logic;
897 --calo output axi bus --------------------------------------
898 calo_poll_chan_19 : in std_logic;
899 calo_m_tvalid_19 : out std_logic;
900 calo_m_fifo_tlast_19 : out std_logic;
901 calo_m_axis_tready_19 : in std_logic;
902 calo_s_axis_tready_19 : out std_logic;
903 calo_m_axis_tdata_19 : out std_logic_vector((bp_width-1) downto 0);
904 calo_header_marker_19 : out std_logic;
905 calo_tail_marker_19 : out std_logic;
906 
907  --ufc message axi bus --------------------------------------
908  s_axi_ufc_rx_tdata_19 : in std_logic_vector(63 downto 0);
909  s_axi_ufc_rx_tvalid_19 : in std_logic;
910  s_axi_ufc_rx_tlast_19 : in std_logic;
911 
912 
913 
914 
915 --***************************************************************
916 --********** channel #20 *********************************
917 --***************************************************************
918 
919 -----aurora input bus --------------------------------------------------
920 aurora_user_clk_20 : in std_logic;
921 aurora_chan_stat_20 : in std_logic_vector(31 downto 0);
922 aurora_chan_control_20 : out std_logic_vector(31 downto 0);
923 s_axis_tvalid_20 : in std_logic;
924 s_axis_tlast_20 : in std_logic;
925 tob_s_tready_20 : out std_logic;
926 s_axis_tdata_20 : in std_logic_vector(63 downto 0);
927 
928 --tob output axi bus --------------------------------------
929 tob_poll_chan_20 : in std_logic;
930 tob_m_tvalid_20 : out std_logic;
931 tob_m_tlast_20 : out std_logic;
932 tob_m_tready_20 : in std_logic;
933 tob_m_tdata_20 : out std_logic_vector((bp_width-1) downto 0);
934 tob_header_marker_20 : out std_logic;
935 tob_tail_marker_20 : out std_logic;
936 hdr_crc_tag_20 : out std_logic;
937 comb_error_tag_20 : out std_logic;
938 --calo output axi bus --------------------------------------
939 calo_poll_chan_20 : in std_logic;
940 calo_m_tvalid_20 : out std_logic;
941 calo_m_fifo_tlast_20 : out std_logic;
942 calo_m_axis_tready_20 : in std_logic;
943 calo_s_axis_tready_20 : out std_logic;
944 calo_m_axis_tdata_20 : out std_logic_vector((bp_width-1) downto 0);
945 calo_header_marker_20 : out std_logic;
946 calo_tail_marker_20 : out std_logic;
947 
948  --ufc message axi bus --------------------------------------
949  s_axi_ufc_rx_tdata_20 : in std_logic_vector(63 downto 0);
950  s_axi_ufc_rx_tvalid_20 : in std_logic;
951  s_axi_ufc_rx_tlast_20 : in std_logic;
952 
953 
954 
955 
956 --***************************************************************
957 --********** channel #21 *********************************
958 --***************************************************************
959 
960 -----aurora input bus --------------------------------------------------
961 aurora_user_clk_21 : in std_logic;
962 aurora_chan_stat_21 : in std_logic_vector(31 downto 0);
963 aurora_chan_control_21 : out std_logic_vector(31 downto 0);
964 s_axis_tvalid_21 : in std_logic;
965 s_axis_tlast_21 : in std_logic;
966 tob_s_tready_21 : out std_logic;
967 s_axis_tdata_21 : in std_logic_vector(63 downto 0);
968 
969 --tob output axi bus --------------------------------------
970 tob_poll_chan_21 : in std_logic;
971 tob_m_tvalid_21 : out std_logic;
972 tob_m_tlast_21 : out std_logic;
973 tob_m_tready_21 : in std_logic;
974 tob_m_tdata_21 : out std_logic_vector((bp_width-1) downto 0);
975 tob_header_marker_21 : out std_logic;
976 tob_tail_marker_21 : out std_logic;
977 hdr_crc_tag_21 : out std_logic;
978 comb_error_tag_21 : out std_logic;
979 --calo output axi bus --------------------------------------
980 calo_poll_chan_21 : in std_logic;
981 calo_m_tvalid_21 : out std_logic;
982 calo_m_fifo_tlast_21 : out std_logic;
983 calo_m_axis_tready_21 : in std_logic;
984 calo_s_axis_tready_21 : out std_logic;
985 calo_m_axis_tdata_21 : out std_logic_vector((bp_width-1) downto 0);
986 calo_header_marker_21 : out std_logic;
987 calo_tail_marker_21 : out std_logic;
988 
989  --ufc message axi bus --------------------------------------
990  s_axi_ufc_rx_tdata_21 : in std_logic_vector(63 downto 0);
991  s_axi_ufc_rx_tvalid_21 : in std_logic;
992  s_axi_ufc_rx_tlast_21 : in std_logic;
993 
994 
995 
996 
997 --***************************************************************
998 --********** channel #22 *********************************
999 --***************************************************************
1000 
1001 -----aurora input bus --------------------------------------------------
1002 aurora_user_clk_22 : in std_logic;
1003 aurora_chan_stat_22 : in std_logic_vector(31 downto 0);
1004 aurora_chan_control_22 : out std_logic_vector(31 downto 0);
1005 s_axis_tvalid_22 : in std_logic;
1006 s_axis_tlast_22 : in std_logic;
1007 tob_s_tready_22 : out std_logic;
1008 s_axis_tdata_22 : in std_logic_vector(63 downto 0);
1009 
1010 --tob output axi bus --------------------------------------
1011 tob_poll_chan_22 : in std_logic;
1012 tob_m_tvalid_22 : out std_logic;
1013 tob_m_tlast_22 : out std_logic;
1014 tob_m_tready_22 : in std_logic;
1015 tob_m_tdata_22 : out std_logic_vector((bp_width-1) downto 0);
1016 tob_header_marker_22 : out std_logic;
1017 tob_tail_marker_22 : out std_logic;
1018 hdr_crc_tag_22 : out std_logic;
1019 comb_error_tag_22 : out std_logic;
1020 --calo output axi bus --------------------------------------
1021 calo_poll_chan_22 : in std_logic;
1022 calo_m_tvalid_22 : out std_logic;
1023 calo_m_fifo_tlast_22 : out std_logic;
1024 calo_m_axis_tready_22 : in std_logic;
1025 calo_s_axis_tready_22 : out std_logic;
1026 calo_m_axis_tdata_22 : out std_logic_vector((bp_width-1) downto 0);
1027 calo_header_marker_22 : out std_logic;
1028 calo_tail_marker_22 : out std_logic;
1029 
1030 --ufc message axi bus --------------------------------------
1031 s_axi_ufc_rx_tdata_22 : in std_logic_vector(63 downto 0);
1032 s_axi_ufc_rx_tvalid_22 : in std_logic;
1033 s_axi_ufc_rx_tlast_22 : in std_logic;
1034 
1035 
1036 
1037 --***************************************************************
1038 --********** channel #23 *********************************
1039 --***************************************************************
1040 
1041 -----aurora input bus --------------------------------------------------
1042 aurora_user_clk_23 : in std_logic;
1043 aurora_chan_stat_23 : in std_logic_vector(31 downto 0);
1044 aurora_chan_control_23 : out std_logic_vector(31 downto 0);
1045 s_axis_tvalid_23 : in std_logic;
1046 s_axis_tlast_23 : in std_logic;
1047 tob_s_tready_23 : out std_logic;
1048 s_axis_tdata_23 : in std_logic_vector(63 downto 0);
1049 
1050 --tob output axi bus --------------------------------------
1051 tob_poll_chan_23 : in std_logic;
1052 tob_m_tvalid_23 : out std_logic;
1053 tob_m_tlast_23 : out std_logic;
1054 tob_m_tready_23 : in std_logic;
1055 tob_m_tdata_23 : out std_logic_vector((bp_width-1) downto 0);
1056 tob_header_marker_23 : out std_logic;
1057 tob_tail_marker_23 : out std_logic;
1058 hdr_crc_tag_23 : out std_logic;
1059 comb_error_tag_23 : out std_logic;
1060 --calo output axi bus --------------------------------------
1061 calo_poll_chan_23 : in std_logic;
1062 calo_m_tvalid_23 : out std_logic;
1063 calo_m_fifo_tlast_23 : out std_logic;
1064 calo_m_axis_tready_23 : in std_logic;
1065 calo_s_axis_tready_23 : out std_logic;
1066 calo_m_axis_tdata_23 : out std_logic_vector((bp_width-1) downto 0);
1067 calo_header_marker_23 : out std_logic;
1068 calo_tail_marker_23 : out std_logic;
1069  --ufc message axi bus --------------------------------------
1070 s_axi_ufc_rx_tdata_23 : in std_logic_vector(63 downto 0);
1071 s_axi_ufc_rx_tvalid_23 : in std_logic;
1072 s_axi_ufc_rx_tlast_23 : in std_logic
1073 
1074 
1075 
1076  );
1077 end input_fifos;
1078 
1079 
1080 architecture RTL of input_fifos is
1081 
1082 component channel_fifo is
1083 generic (
1084  channel_num : STD_LOGIC_VECTOR (11 downto 0) := "000000000000";
1085  lmem : STD_LOGIC_VECTOR (3 downto 0) := "0000";
1086  max_packet_length : STD_LOGIC_VECTOR (15 downto 0) := x"02FF";
1087  sim : integer := 0;
1088  debug : integer := 1;
1089  axi_fifo : integer := 0;
1090  jfex : integer := 0;
1091  fifo_instr : integer := 0
1092  );
1093 Port (
1094 
1095  ipb_clk : in std_logic;
1096  ipb_rst : in std_logic;
1097  ipb_in : in ipb_wbus;
1098  ipb_out : out ipb_rbus;
1099 
1100  RESET : in std_logic;
1101  clk_160 : in std_logic;
1102  rt_clk : in std_logic;
1103  pp_clock : in std_logic;
1104  init_clk : in std_logic;
1105  bp_reg_reset : in std_logic;
1106  master_reset : in std_logic;
1107 ----inputs from Aurora ---------------------------------
1108  aurora_chan_stat : in STD_LOGIC_VECTOR (31 downto 0);
1109 
1110  tob_fifo_busy_threshold : in STD_LOGIC_VECTOR (15 downto 0); --synchronous to ipb_clk
1111  bulk_fifo_busy_threshold : in STD_LOGIC_VECTOR (15 downto 0); --synchronous to ipb_clk
1112  tob_fifo_xoff_threshold : in STD_LOGIC_VECTOR (15 downto 0); --synchronous to ipb_clk
1113  bulk_fifo_xoff_threshold : in STD_LOGIC_VECTOR (15 downto 0); --synchronous to ipb_clk
1114 
1115  time_count : in STD_LOGIC_VECTOR (31 downto 0); --synchronous to the pp_clock
1116 
1117  aurora_channel_control : out STD_LOGIC_VECTOR (31 downto 0); --synchronous to ipb_clk
1118  wdog_fifo_reset : in STD_LOGIC;
1119  backplane_control : in STD_LOGIC_VECTOR (31 downto 0);
1120  chan_disable : in std_logic;
1121 
1122 -- clock : in std_logic;
1123  aurora_user_clk : in std_logic;
1124  s_axis_tvalid : in std_logic;
1125  s_axis_tlast : in std_logic;
1126  tob_s_tready : out std_logic;
1127  s_axis_tdata : in std_logic_vector((bp_width-1) downto 0);
1128 
1129 --tob output axi bus --------------------------------------
1130  poll_chan : in std_logic;
1131  tob_m_tvalid : out std_logic;
1132  tob_m_tlast : out std_logic;
1133  tob_m_tready : in std_logic;
1134  tob_m_tdata : out std_logic_vector((bp_width-1) downto 0);
1135 -- m_header_marker : out std_logic;
1136 -- m_tail_marker : out std_logic;
1137  tob_header_marker : out std_logic;
1138  tob_tail_marker : out std_logic;
1139  hdr_crc_tag : out std_logic;
1140  comb_error_tag : out std_logic;
1141 
1142  --calo output axi bus --------------------------------------
1143  calo_poll_chan : in std_logic;
1144  calo_m_tvalid : out std_logic;
1145  calo_m_fifo_tlast : out std_logic;
1146  calo_m_axis_tready : in std_logic;
1147  calo_s_axis_tready : out std_logic;
1148 
1149  calo_m_axis_tdata : out std_logic_vector((bp_width-1) downto 0);
1150  calo_header_marker : out std_logic;
1151  calo_tail_marker : out std_logic;
1152 
1153  --ufc message axi bus --------------------------------------
1154  s_axi_ufc_rx_tdata : in std_logic_vector(63 downto 0);
1155  s_axi_ufc_rx_tvalid : in std_logic;
1156  s_axi_ufc_rx_tlast : in std_logic;
1157 
1158  channel_busy : out std_logic;
1159 
1160  timeout_err : in std_logic;
1161  L1A : in std_logic
1162 
1163  );
1164 end component;
1165 
1166 component backplane_regs
1167  Port (
1168  ipb_clk: in std_logic;
1169  ipb_rst: in std_logic;
1170  ipb_in: in ipb_wbus;
1171  ipb_out: out ipb_rbus;
1172 
1173  pp_clock : in std_logic;
1174  clk_40 : in std_logic;
1175  clk_160 : in std_logic;
1176  clk_125 : in std_logic;
1177  rt_clk : in std_logic;
1178  ck_pll_lock : in std_logic;
1179  timer_reset : in std_logic;
1180 
1181  CK_INT : in STD_LOGIC;
1182  SMBALERT_B : in STD_LOGIC;
1183  T_WRN_B : in STD_LOGIC;
1184 
1185  channel_up : in STD_LOGIC_VECTOR (23 downto 0);
1186  chan_enable : out STD_LOGIC_VECTOR (23 downto 0);
1187  first_chan : out STD_LOGIC_vector(4 downto 0);
1188  last_chan : out STD_LOGIC_vector(4 downto 0);
1189  ro_status : in STD_LOGIC_VECTOR (7 downto 0);
1190 
1191  time_count : out STD_LOGIC_VECTOR (31 downto 0); --synchronous to the pp_clock
1192  tob_fifo_busy_threshold : out STD_LOGIC_VECTOR (31 downto 0); --synchronous to ipb_clk
1193  bulk_fifo_busy_threshold : out STD_LOGIC_VECTOR (31 downto 0); --synchronous to ipb_clk
1194  tob_fifo_xoff_threshold : out STD_LOGIC_VECTOR (31 downto 0); --synchronous to ipb_clk
1195  bulk_fifo_xoff_threshold : out STD_LOGIC_VECTOR (31 downto 0); --synchronous to ipb_clk
1196  backplane_control : out STD_LOGIC_VECTOR (31 downto 0);
1197  chan_disable : out STD_LOGIC_VECTOR (31 downto 0);
1198  combined_busy : in std_logic;
1199  ro_user_clock : in std_logic
1200  );
1201 end component;
1202 
1203 component ttc_chan_regs
1204  Port (
1205  ipb_clk : in std_logic;
1206  ipb_rst : in std_logic;
1207  ipb_in : in ipb_wbus;
1208  ipb_out : out ipb_rbus;
1209 
1210  pp_clock : in std_logic;
1211  clk_125 : in std_logic;
1212  ttc_chan_stat : in STD_LOGIC_VECTOR (31 downto 0);
1213  ttc_fifo_level : in STD_LOGIC_VECTOR (15 downto 0); --synchronous to the pp_clock
1214  L1ID_error : in std_logic;
1215  CTTC_CRC_error : in std_logic;
1216  cttc_user_clk : in std_logic;
1217  seq : in STD_LOGIC_VECTOR (1 downto 0);
1218  L1A : in std_logic;
1219  ttc_reset : out std_logic;
1220  hub_link_reset : out std_logic;
1221  ttc_ignore : out std_logic;
1222  TTC_CRC_ignore : out std_logic;
1223  TTC_fifo_rst : out std_logic;
1224  header_sequence : out STD_LOGIC_VECTOR (11 downto 0);
1225  header_type : out STD_LOGIC_VECTOR (3 downto 0);
1226  det_spec_evnt_sel : out STD_LOGIC_VECTOR (3 downto 0);
1227  ttc_reg : in STD_LOGIC_VECTOR(63 DOWNTO 0);
1228  event_sel : out STD_LOGIC_VECTOR (2 downto 0);
1229  event_count : in STD_LOGIC_VECTOR(31 DOWNTO 0);
1230  orbit_count : in STD_LOGIC_VECTOR(15 DOWNTO 0);
1231  flx_backpressure : in std_logic_vector(11 downto 0);
1232  event_count_reset : out std_logic;
1233  orbit_count_reset : out std_logic;
1234  bcn_adjustment : out std_logic_vector(11 downto 0);
1235 
1236  l1id_continuity_control : out std_logic_vector(31 downto 0);
1237  l1id_continuity_status : in STD_LOGIC_vector (31 downto 0);
1238  l1id_local_miss : in STD_LOGIC_vector (31 downto 0);
1239  l1id_ttc_miss : in STD_LOGIC_vector (31 downto 0);
1240  l1id_error_count : in STD_LOGIC_vector (31 downto 0);
1241  timeout_threshold : out std_logic_vector(31 downto 0);
1242  repeat_counter : in STD_LOGIC_vector(31 downto 0)
1243  );
1244 end component;
1245 
1246 
1247 
1248 
1249 
1250 COMPONENT chan_map_ila
1251 
1252 PORT (
1253  clk : IN STD_LOGIC;
1254  probe0 : IN STD_LOGIC_VECTOR(23 DOWNTO 0);
1255  probe1 : IN STD_LOGIC_VECTOR(4 DOWNTO 0);
1256  probe2 : IN STD_LOGIC_VECTOR(4 DOWNTO 0)
1257 );
1258 END COMPONENT ;
1259 
1260 
1261 signal ipbw: ipb_wbus_array(N_SLAVES - 1 downto 0);
1262 signal ipbr: ipb_rbus_array(N_SLAVES - 1 downto 0);
1263 
1264 
1265 
1266 signal chan_enable_i : STD_LOGIC_VECTOR(23 DOWNTO 0);
1267 signal first_chan_i : STD_LOGIC_VECTOR(4 DOWNTO 0);
1268 signal last_chan_i : STD_LOGIC_VECTOR(4 DOWNTO 0);
1269 
1270 signal tob_fifo_busy_threshold : STD_LOGIC_VECTOR (31 downto 0); --synchronous to ipb_clk
1271 signal bulk_fifo_busy_threshold : STD_LOGIC_VECTOR (31 downto 0); --synchronous to ipb_clk
1272 signal tob_fifo_xoff_threshold : STD_LOGIC_VECTOR (31 downto 0); --synchronous to ipb_clk
1273 signal bulk_fifo_xoff_threshold : STD_LOGIC_VECTOR (31 downto 0);
1274 signal time_count : STD_LOGIC_VECTOR (31 downto 0);
1275 signal bp_reg_reset : std_logic;
1276 signal backplane_control_i : STD_LOGIC_VECTOR (31 downto 0);
1277 signal chan_disable : STD_LOGIC_VECTOR (31 downto 0);
1278 
1279 signal channel_busy : STD_LOGIC_VECTOR (23 downto 0);
1280 
1281 signal TTC_CRC_ignore_i : std_logic;
1282 signal det_spec_evnt_sel_i : std_logic_vector(3 downto 0);
1283 signal header_sequence_i : std_logic_vector(11 downto 0); -- 12-bit
1284 signal header_type_i : std_logic_vector(3 downto 0); -- 4-bit
1285 signal event_sel_i : std_logic_vector(1 downto 0); -- 2-bit
1286 signal ttc_ignore_i : std_logic;
1287 signal TTC_fifo_rst_i : std_logic;
1288 signal BCN_adjustment_i : std_logic_vector(11 downto 0);
1289 signal l1id_continuity_control_i: std_logic_vector(31 downto 0);
1290 signal timeout_threshold_i : std_logic_vector(31 downto 0);
1291 
1292 signal event_sel_dummy : std_logic;
1293 --signal reg_reset : STD_LOGIC;
1294 --signal backplane_control : std_logic_vector(31 downto 0);
1295 
1296 
1297 begin
1298 fabric: entity work.ipbus_fabric_sel
1299  generic map(
1300  NSLV => N_SLAVES,
1301  SEL_WIDTH => IPBUS_SEL_WIDTH)
1302  port map(
1303  ipb_in => ipb_in,
1304  ipb_out => ipb_out,
1305 -- sel => ipbus_decode_my_module(ipb_in.ipb_addr),
1306 -- sel => ipbus_sel_my_module(ipb_in.ipb_addr),
1307 -- sel => ipbus_sel_jfex_chan_regs(ipb_in.ipb_addr),
1308 -- sel => ipbus_sel_rod_backplane(ipb_in.ipb_addr),
1309  sel => ipbus_sel_L1CaloHubRodBackplane(ipb_in.ipb_addr),
1310  ipb_to_slaves => ipbw,
1311  ipb_from_slaves => ipbr
1312  );
1313 
1314 
1315 gen_reg: if SIM=0 generate
1316 registers : backplane_regs
1317  port map (
1318  ipb_clk => ipb_clk,
1319  ipb_rst => ipb_rst,
1320  ipb_in => ipbw(N_SLV_BP_REG_BLOCK),
1321  ipb_out => ipbr(N_SLV_BP_REG_BLOCK),
1322 
1323  pp_clock => pp_clock,
1324  clk_40 => clk_40,
1325  clk_160 => clk_160, --MGT ref clock
1326  clk_125 => init_clk, --make sure init_clk doesn't change to another clock frequency (125MHz)
1327  rt_clk => rt_clk,
1328  ck_pll_lock => ck_pll_lock,
1329  timer_reset => reset,
1330 
1331  CK_INT => CK_INT,
1332  SMBALERT_B => SMBALERT_B,
1333  T_WRN_B => T_WRN_B,
1334 
1335  channel_up(0) => aurora_chan_stat_0(0),
1336  channel_up(1) => aurora_chan_stat_1(0),
1337  channel_up(2) => aurora_chan_stat_2(0),
1338  channel_up(3) => aurora_chan_stat_3(0),
1339  channel_up(4) => aurora_chan_stat_4(0),
1340  channel_up(5) => aurora_chan_stat_5(0),
1341  channel_up(6) => aurora_chan_stat_6(0),
1342  channel_up(7) => aurora_chan_stat_7(0),
1343  channel_up(8) => aurora_chan_stat_8(0),
1344  channel_up(9) => aurora_chan_stat_9(0),
1345  channel_up(10) => aurora_chan_stat_10(0),
1346  channel_up(11) => aurora_chan_stat_11(0),
1347  channel_up(12) => aurora_chan_stat_12(0),
1348  channel_up(13) => aurora_chan_stat_13(0),
1349  channel_up(14) => aurora_chan_stat_14(0),
1350  channel_up(15) => aurora_chan_stat_15(0),
1351  channel_up(16) => aurora_chan_stat_16(0),
1352  channel_up(17) => aurora_chan_stat_17(0),
1353  channel_up(18) => aurora_chan_stat_18(0),
1354  channel_up(19) => aurora_chan_stat_19(0),
1355  channel_up(20) => aurora_chan_stat_20(0),
1356  channel_up(21) => aurora_chan_stat_21(0),
1357  channel_up(22) => aurora_chan_stat_22(0),
1358  channel_up(23) => aurora_chan_stat_23(0),
1359 
1360 
1361  chan_enable => chan_enable_i,
1362  first_chan => first_chan_i,
1363  last_chan => last_chan_i,
1364  ro_status => ro_status,
1365 
1366 
1367  time_count => time_count,
1368  tob_fifo_busy_threshold => tob_fifo_busy_threshold,
1369  bulk_fifo_busy_threshold => bulk_fifo_busy_threshold,
1370  tob_fifo_xoff_threshold => tob_fifo_xoff_threshold, --synchronous to ipb_clk
1371  bulk_fifo_xoff_threshold => bulk_fifo_xoff_threshold, --synchronous to ipb_clk
1372  backplane_control => backplane_control_i,
1373  chan_disable => chan_disable,
1374  combined_busy => combined_busy,
1375  ro_user_clock => ro_user_clock
1376 
1377  );
1378 
1379 
1380 --chan_enable <= chan_enable_i;
1381 --first_chan <= first_chan_i;
1382 --last_chan <= last_chan_i;
1383 
1384 chan_map_dbg: if debug=1 generate
1385 channel_map_ila : chan_map_ila
1386 PORT MAP (
1387  clk => pp_clock,
1388 
1389  probe0 => chan_enable_i,
1390  probe1 => first_chan_i,
1391  probe2 => last_chan_i
1392 );
1393 end generate chan_map_dbg;
1394 
1395 ttc_regs: ttc_chan_regs
1396  Port map (
1397  ipb_clk => ipb_clk,
1398  ipb_rst => ipb_rst,
1399  ipb_in => ipbw(N_SLV_TTC_REG_BLOCK),
1400  ipb_out => ipbr(N_SLV_TTC_REG_BLOCK),
1401 
1402  pp_clock => pp_clock,
1403  clk_125 => init_clk,
1404 
1405  ttc_chan_stat => ttc_status,
1406  ttc_fifo_level => ttc_fifo_level,
1407  L1ID_error => L1ID_error,
1408  CTTC_CRC_error => CTTC_CRC_error,
1409  cttc_user_clk => cttc_user_clk,
1410  seq => seq,
1411  L1A => L1A,
1412  ttc_reset => ttc_reset,
1413  hub_link_reset => hub_link_reset,
1414  ttc_ignore => ttc_ignore_i,
1415  TTC_CRC_ignore => TTC_CRC_ignore_i,
1416  TTC_fifo_rst => TTC_fifo_rst_i,
1417  header_sequence => header_sequence_i,
1418  header_type => header_type_i,
1419  det_spec_evnt_sel => det_spec_evnt_sel_i,
1420  ttc_reg => ttc_reg,
1421  event_sel(1 downto 0) => event_sel_i,
1422  event_sel(2) => event_sel_dummy,
1423  event_count => event_count,
1424  orbit_count => orbit_count,
1425  flx_backpressure => flx_backpressure,
1426  event_count_reset => event_count_reset,
1427  orbit_count_reset => orbit_count_reset,
1428  bcn_adjustment => bcn_adjustment_i,
1429  l1id_continuity_control => l1id_continuity_control_i,
1430  l1id_continuity_status => l1id_continuity_status,
1431  l1id_local_miss => l1id_local_miss,
1432  l1id_ttc_miss => l1id_ttc_miss,
1433  l1id_error_count => l1id_error_count,
1434  timeout_threshold => timeout_threshold_i,
1435  repeat_counter => repeat_counter
1436  );
1437 
1438 
1439 
1440 
1441 end generate gen_reg;
1442 
1443 
1444 TTC_CRC_ignore <= TTC_CRC_ignore_i;
1445 det_spec_evnt_sel <= det_spec_evnt_sel_i;
1446 header_sequence <= header_sequence_i; -- 12-bit
1447 header_type <= header_type_i; -- 4-bit
1448 event_sel <= event_sel_i; -- 2-bit
1449 ttc_ignore <= ttc_ignore_i;
1450 chan_enable <= chan_enable_i;
1451 first_chan <= first_chan_i;
1452 last_chan <= last_chan_i;
1453 TTC_fifo_rst <= TTC_fifo_rst_i;
1454 BCN_adjustment <= bcn_adjustment_i;
1455 l1id_continuity_control <= l1id_continuity_control_i;
1456 timeout_threshold <= timeout_threshold_i;
1457 
1458 --gen_tieoff: if SIM=1 generate
1459 --backplane_control_i <= (others => '0');
1460 --header_sequence <= x"AAA";
1461 --header_type <= x"5";
1462 --det_spec_evnt_sel <= x"0";
1463 --TTC_CRC_ignore <= '0';
1464 --event_sel <= "11";
1465 --end generate gen_tieoff;
1466 
1467 
1468  backplane_control <= backplane_control_i;
1469  bp_reg_reset <= backplane_control_i(1);
1470 
1471 ch0 : channel_fifo
1472  generic map (
1473  channel_num => x"000",
1474  lmem => x"0",
1475  max_packet_length => max_packet_length,
1476 
1477  sim => sim,
1478  debug => debug,
1479 -- debug => 1,
1480  axi_fifo => 0,
1481  jfex => jfex,
1482  fifo_instr => 0 --adds ILA between clock crossing and main fifo (to look for stalling ie jfex timeout)
1483  )
1484  port map (
1485 
1486  ipb_clk => ipb_clk,
1487  ipb_rst => ipb_rst,
1488  ipb_in => ipbw(N_SLV_CHANNEL_0),
1489  ipb_out => ipbr(N_SLV_CHANNEL_0),
1490 -- ipb_in => ipb_in,
1491 -- ipb_out => ipb_out,
1492 
1493  pp_clock => pp_clock,
1494  clk_160 => clk_160,
1495  rt_clk => rt_clk,
1496  init_clk => init_clk,
1497  master_reset => master_reset,
1498  bp_reg_reset => bp_reg_reset,
1499  wdog_fifo_reset => wdog_fifo_reset,
1500 
1501 
1502 
1503 
1504  tob_fifo_busy_threshold => tob_fifo_busy_threshold(15 downto 0),
1505  bulk_fifo_busy_threshold => bulk_fifo_busy_threshold(15 downto 0),
1506  tob_fifo_xoff_threshold => tob_fifo_xoff_threshold(15 downto 0),
1507  bulk_fifo_xoff_threshold => bulk_fifo_xoff_threshold(15 downto 0),
1508 
1509  time_count => time_count,
1510  RESET => reset,
1511  backplane_control => backplane_control,
1512  aurora_chan_stat => aurora_chan_stat_0,
1513  aurora_channel_control => aurora_chan_control_0,
1514  chan_disable => chan_disable(0),
1515  aurora_user_clk => aurora_user_clk_0,
1516  s_axis_tvalid => s_axis_tvalid_0,
1517  s_axis_tlast => s_axis_tlast_0,
1518  tob_s_tready => tob_s_tready_0,
1519  s_axis_tdata => s_axis_tdata_0,
1520 
1521  --tob output axi bus --------------------------------------
1522  poll_chan => tob_poll_chan_0,
1523  tob_m_tvalid => tob_m_tvalid_0,
1524  tob_m_tlast => tob_m_tlast_0,
1525  tob_m_tready => tob_m_tready_0,
1526  tob_m_tdata => tob_m_tdata_0,
1527  tob_header_marker => tob_header_marker_0,
1528  tob_tail_marker => tob_tail_marker_0,
1529  hdr_crc_tag => hdr_crc_tag_0,
1530  comb_error_tag => comb_error_tag_0,
1531 
1532  --calo output axi bus --------------------------------------
1533  calo_poll_chan => calo_poll_chan_0,
1534  calo_m_tvalid => calo_m_tvalid_0,
1535  calo_m_fifo_tlast => calo_m_fifo_tlast_0,
1536  calo_m_axis_tready => calo_m_axis_tready_0,
1537  calo_s_axis_tready => calo_s_axis_tready_0,
1538 
1539  calo_m_axis_tdata => calo_m_axis_tdata_0,
1540  calo_header_marker => calo_header_marker_0,
1541  calo_tail_marker => calo_tail_marker_0,
1542 
1543  s_axi_ufc_rx_tdata => s_axi_ufc_rx_tdata_0,
1544  s_axi_ufc_rx_tvalid => s_axi_ufc_rx_tvalid_0,
1545  s_axi_ufc_rx_tlast => s_axi_ufc_rx_tlast_0,
1546 
1547  channel_busy => channel_busy(0),
1548 
1549  timeout_err => timeout_err,
1550  L1A => L1A
1551 
1552  );
1553 
1554 
1555 
1556 ch1 : channel_fifo
1557  generic map (
1558  channel_num => x"001",
1559  lmem => x"0",
1560  max_packet_length => max_packet_length,
1561  sim => sim,
1562  debug => debug,
1563 -- debug => 1,
1564  axi_fifo => 0,
1565  jfex => jfex,
1566  fifo_instr => 0
1567  )
1568 
1569  port map (
1570  ipb_clk => ipb_clk,
1571  ipb_rst => ipb_rst,
1572  ipb_in => ipbw(N_SLV_CHANNEL_1),
1573  ipb_out => ipbr(N_SLV_CHANNEL_1),
1574 
1575  pp_clock => pp_clock,
1576  clk_160 => clk_160,
1577  rt_clk => rt_clk,
1578  init_clk => init_clk,
1579  master_reset => master_reset,
1580  bp_reg_reset => bp_reg_reset,
1581  wdog_fifo_reset => wdog_fifo_reset,
1582 
1583  tob_fifo_busy_threshold => tob_fifo_busy_threshold(15 downto 0),
1584  bulk_fifo_busy_threshold => bulk_fifo_busy_threshold(15 downto 0),
1585  tob_fifo_xoff_threshold => tob_fifo_xoff_threshold(15 downto 0),
1586  bulk_fifo_xoff_threshold => bulk_fifo_xoff_threshold(15 downto 0),
1587 
1588  time_count => time_count,
1589  RESET => reset,
1590  backplane_control => backplane_control,
1591  aurora_chan_stat => aurora_chan_stat_1,
1592  aurora_channel_control => aurora_chan_control_1,
1593  chan_disable => chan_disable(1),
1594  aurora_user_clk => aurora_user_clk_1,
1595  s_axis_tvalid => s_axis_tvalid_1,
1596  s_axis_tlast => s_axis_tlast_1,
1597  tob_s_tready => tob_s_tready_1,
1598  s_axis_tdata => s_axis_tdata_1,
1599 
1600  --tob output axi bus --------------------------------------
1601  poll_chan => tob_poll_chan_1,
1602  tob_m_tvalid => tob_m_tvalid_1,
1603  tob_m_tlast => tob_m_tlast_1,
1604  tob_m_tready => tob_m_tready_1,
1605  tob_m_tdata => tob_m_tdata_1,
1606  tob_header_marker => tob_header_marker_1,
1607  tob_tail_marker => tob_tail_marker_1,
1608  hdr_crc_tag => hdr_crc_tag_1,
1609  comb_error_tag => comb_error_tag_1,
1610  --calo output axi bus --------------------------------------
1611  calo_poll_chan => calo_poll_chan_1,
1612  calo_m_tvalid => calo_m_tvalid_1,
1613  calo_m_fifo_tlast => calo_m_fifo_tlast_1,
1614  calo_m_axis_tready => calo_m_axis_tready_1,
1615  calo_s_axis_tready => calo_s_axis_tready_1,
1616 
1617  calo_m_axis_tdata => calo_m_axis_tdata_1,
1618  calo_header_marker => calo_header_marker_1,
1619  calo_tail_marker => calo_tail_marker_1,
1620 
1621  s_axi_ufc_rx_tdata => s_axi_ufc_rx_tdata_1,
1622  s_axi_ufc_rx_tvalid => s_axi_ufc_rx_tvalid_1,
1623  s_axi_ufc_rx_tlast => s_axi_ufc_rx_tlast_1,
1624 
1625  channel_busy => channel_busy(1),
1626 
1627  timeout_err => '0',
1628  L1A => L1A
1629 
1630  );
1631 
1632 ch2 : channel_fifo
1633  generic map (
1634  channel_num => x"002",
1635  lmem => x"0",
1636  max_packet_length => max_packet_length,
1637  sim => sim,
1638  debug => debug,
1639  jfex => jfex,
1640  axi_fifo => 0,
1641  fifo_instr => 0)
1642  port map (
1643  ipb_clk => ipb_clk,
1644  ipb_rst => ipb_rst,
1645  ipb_in => ipbw(N_SLV_CHANNEL_2),
1646  ipb_out => ipbr(N_SLV_CHANNEL_2),
1647 
1648  pp_clock => pp_clock,
1649  clk_160 => clk_160,
1650  rt_clk => rt_clk,
1651  init_clk => init_clk,
1652  master_reset => master_reset,
1653  bp_reg_reset => bp_reg_reset,
1654  wdog_fifo_reset => wdog_fifo_reset,
1655 
1656  tob_fifo_busy_threshold => tob_fifo_busy_threshold(15 downto 0),
1657  bulk_fifo_busy_threshold => bulk_fifo_busy_threshold(15 downto 0),
1658  tob_fifo_xoff_threshold => tob_fifo_xoff_threshold(15 downto 0),
1659  bulk_fifo_xoff_threshold => bulk_fifo_xoff_threshold(15 downto 0),
1660 
1661  time_count => time_count,
1662  RESET => reset,
1663  backplane_control => backplane_control,
1664  aurora_chan_stat => aurora_chan_stat_2,
1665  aurora_channel_control => aurora_chan_control_2,
1666  chan_disable => chan_disable(2),
1667  aurora_user_clk => aurora_user_clk_2,
1668  s_axis_tvalid => s_axis_tvalid_2,
1669  s_axis_tlast => s_axis_tlast_2,
1670  tob_s_tready => tob_s_tready_2,
1671  s_axis_tdata => s_axis_tdata_2,
1672 
1673  --tob output axi bus --------------------------------------
1674  poll_chan => tob_poll_chan_2,
1675  tob_m_tvalid => tob_m_tvalid_2,
1676  tob_m_tlast => tob_m_tlast_2,
1677  tob_m_tready => tob_m_tready_2,
1678  tob_m_tdata => tob_m_tdata_2,
1679  tob_header_marker => tob_header_marker_2,
1680  tob_tail_marker => tob_tail_marker_2,
1681  hdr_crc_tag => hdr_crc_tag_2,
1682  comb_error_tag => comb_error_tag_2,
1683  --calo output axi bus --------------------------------------
1684  calo_poll_chan => calo_poll_chan_2,
1685  calo_m_tvalid => calo_m_tvalid_2,
1686  calo_m_fifo_tlast => calo_m_fifo_tlast_2,
1687  calo_m_axis_tready => calo_m_axis_tready_2,
1688  calo_s_axis_tready => calo_s_axis_tready_2,
1689 
1690  calo_m_axis_tdata => calo_m_axis_tdata_2,
1691  calo_header_marker => calo_header_marker_2,
1692  calo_tail_marker => calo_tail_marker_2,
1693 
1694  s_axi_ufc_rx_tdata => s_axi_ufc_rx_tdata_2,
1695  s_axi_ufc_rx_tvalid => s_axi_ufc_rx_tvalid_2,
1696  s_axi_ufc_rx_tlast => s_axi_ufc_rx_tlast_2,
1697 
1698  channel_busy => channel_busy(2),
1699  timeout_err => '0',
1700  L1A => L1A
1701 
1702  );
1703 
1704 
1705 
1706 ch3 : channel_fifo
1707  generic map (
1708  channel_num => x"003",
1709  lmem => x"0",
1710  max_packet_length => max_packet_length,
1711  sim => sim,
1712  debug => debug,
1713  -- debug => 1,
1714  jfex => jfex,
1715  axi_fifo => 0,
1716  fifo_instr => 0)
1717  port map (
1718  ipb_clk => ipb_clk,
1719  ipb_rst => ipb_rst,
1720  ipb_in => ipbw(N_SLV_CHANNEL_3),
1721  ipb_out => ipbr(N_SLV_CHANNEL_3),
1722 
1723  pp_clock => pp_clock,
1724  clk_160 => clk_160,
1725  rt_clk => rt_clk,
1726  init_clk => init_clk,
1727  master_reset => master_reset,
1728  bp_reg_reset => bp_reg_reset,
1729  wdog_fifo_reset => wdog_fifo_reset,
1730 
1731  tob_fifo_busy_threshold => tob_fifo_busy_threshold(15 downto 0),
1732  bulk_fifo_busy_threshold => bulk_fifo_busy_threshold(15 downto 0),
1733  tob_fifo_xoff_threshold => tob_fifo_xoff_threshold(15 downto 0),
1734  bulk_fifo_xoff_threshold => bulk_fifo_xoff_threshold(15 downto 0),
1735 
1736  time_count => time_count,
1737  RESET => reset,
1738  backplane_control => backplane_control,
1739  aurora_chan_stat => aurora_chan_stat_3,
1740  aurora_channel_control => aurora_chan_control_3,
1741  chan_disable => chan_disable(3),
1742  aurora_user_clk => aurora_user_clk_3,
1743  s_axis_tvalid => s_axis_tvalid_3,
1744  s_axis_tlast => s_axis_tlast_3,
1745  tob_s_tready => tob_s_tready_3,
1746  s_axis_tdata => s_axis_tdata_3,
1747 
1748  --tob output axi bus --------------------------------------
1749  poll_chan => tob_poll_chan_3,
1750  tob_m_tvalid => tob_m_tvalid_3,
1751  tob_m_tlast => tob_m_tlast_3,
1752  tob_m_tready => tob_m_tready_3,
1753  tob_m_tdata => tob_m_tdata_3,
1754  tob_header_marker => tob_header_marker_3,
1755  tob_tail_marker => tob_tail_marker_3,
1756  hdr_crc_tag => hdr_crc_tag_3,
1757  comb_error_tag => comb_error_tag_3,
1758  --calo output axi bus --------------------------------------
1759  calo_poll_chan => calo_poll_chan_3,
1760  calo_m_tvalid => calo_m_tvalid_3,
1761  calo_m_fifo_tlast => calo_m_fifo_tlast_3,
1762  calo_m_axis_tready => calo_m_axis_tready_3,
1763  calo_s_axis_tready => calo_s_axis_tready_3,
1764 
1765  calo_m_axis_tdata => calo_m_axis_tdata_3,
1766  calo_header_marker => calo_header_marker_3,
1767  calo_tail_marker => calo_tail_marker_3,
1768 
1769  s_axi_ufc_rx_tdata => s_axi_ufc_rx_tdata_3,
1770  s_axi_ufc_rx_tvalid => s_axi_ufc_rx_tvalid_3,
1771  s_axi_ufc_rx_tlast => s_axi_ufc_rx_tlast_3,
1772 
1773  channel_busy => channel_busy(3),
1774  timeout_err => '0',
1775  L1A => L1A
1776  );
1777 
1778 ch4 : channel_fifo
1779  generic map (
1780  channel_num => x"004",
1781  lmem => x"0",
1782  max_packet_length => max_packet_length,
1783  sim => sim,
1784 -- debug => debug)
1785  debug => 0,
1786  jfex => jfex,
1787  axi_fifo => 0,
1788  fifo_instr => 0)
1789  port map (
1790  ipb_clk => ipb_clk,
1791  ipb_rst => ipb_rst,
1792  ipb_in => ipbw(N_SLV_CHANNEL_4),
1793  ipb_out => ipbr(N_SLV_CHANNEL_4),
1794 
1795  pp_clock => pp_clock,
1796  clk_160 => clk_160,
1797  rt_clk => rt_clk,
1798  init_clk => init_clk,
1799  master_reset => master_reset,
1800  bp_reg_reset => bp_reg_reset,
1801  wdog_fifo_reset => wdog_fifo_reset,
1802 
1803  tob_fifo_busy_threshold => tob_fifo_busy_threshold(15 downto 0),
1804  bulk_fifo_busy_threshold => bulk_fifo_busy_threshold(15 downto 0),
1805  tob_fifo_xoff_threshold => tob_fifo_xoff_threshold(15 downto 0),
1806  bulk_fifo_xoff_threshold => bulk_fifo_xoff_threshold(15 downto 0),
1807 
1808  time_count => time_count,
1809  RESET => reset,
1810  backplane_control => backplane_control,
1811  aurora_chan_stat => aurora_chan_stat_4,
1812  aurora_channel_control => aurora_chan_control_4,
1813  chan_disable => chan_disable(4),
1814  aurora_user_clk => aurora_user_clk_4,
1815  s_axis_tvalid => s_axis_tvalid_4,
1816  s_axis_tlast => s_axis_tlast_4,
1817  tob_s_tready => tob_s_tready_4,
1818  s_axis_tdata => s_axis_tdata_4,
1819 
1820  --tob output axi bus --------------------------------------
1821  poll_chan => tob_poll_chan_4,
1822  tob_m_tvalid => tob_m_tvalid_4,
1823  tob_m_tlast => tob_m_tlast_4,
1824  tob_m_tready => tob_m_tready_4,
1825  tob_m_tdata => tob_m_tdata_4,
1826  tob_header_marker => tob_header_marker_4,
1827  tob_tail_marker => tob_tail_marker_4,
1828  hdr_crc_tag => hdr_crc_tag_4,
1829  comb_error_tag => comb_error_tag_4,
1830  --calo output axi bus --------------------------------------
1831  calo_poll_chan => calo_poll_chan_4,
1832  calo_m_tvalid => calo_m_tvalid_4,
1833  calo_m_fifo_tlast => calo_m_fifo_tlast_4,
1834  calo_m_axis_tready => calo_m_axis_tready_4,
1835  calo_s_axis_tready => calo_s_axis_tready_4,
1836 
1837  calo_m_axis_tdata => calo_m_axis_tdata_4,
1838  calo_header_marker => calo_header_marker_4,
1839  calo_tail_marker => calo_tail_marker_4,
1840 
1841  s_axi_ufc_rx_tdata => s_axi_ufc_rx_tdata_4,
1842  s_axi_ufc_rx_tvalid => s_axi_ufc_rx_tvalid_4,
1843  s_axi_ufc_rx_tlast => s_axi_ufc_rx_tlast_4,
1844 
1845  channel_busy => channel_busy(4),
1846  timeout_err => '0',
1847  L1A => L1A
1848  );
1849 
1850 
1851 ch5 : channel_fifo
1852  generic map (
1853  channel_num => x"005",
1854  lmem => x"0",
1855  max_packet_length => max_packet_length,
1856  sim => sim,
1857  debug => debug,
1858  jfex => jfex,
1859  axi_fifo => 0,
1860  fifo_instr => 0)
1861  port map (
1862  ipb_clk => ipb_clk,
1863  ipb_rst => ipb_rst,
1864  ipb_in => ipbw(N_SLV_CHANNEL_5),
1865  ipb_out => ipbr(N_SLV_CHANNEL_5),
1866 
1867  pp_clock => pp_clock,
1868  clk_160 => clk_160,
1869  rt_clk => rt_clk,
1870  init_clk => init_clk,
1871  master_reset => master_reset,
1872  bp_reg_reset => bp_reg_reset,
1873  wdog_fifo_reset => wdog_fifo_reset,
1874 
1875  tob_fifo_busy_threshold => tob_fifo_busy_threshold(15 downto 0),
1876  bulk_fifo_busy_threshold => bulk_fifo_busy_threshold(15 downto 0),
1877  tob_fifo_xoff_threshold => tob_fifo_xoff_threshold(15 downto 0),
1878  bulk_fifo_xoff_threshold => bulk_fifo_xoff_threshold(15 downto 0),
1879 
1880  time_count => time_count,
1881  RESET => reset,
1882  backplane_control => backplane_control,
1883  aurora_chan_stat => aurora_chan_stat_5,
1884  aurora_channel_control => aurora_chan_control_5,
1885  chan_disable => chan_disable(5),
1886  aurora_user_clk => aurora_user_clk_5,
1887  s_axis_tvalid => s_axis_tvalid_5,
1888  s_axis_tlast => s_axis_tlast_5,
1889  tob_s_tready => tob_s_tready_5,
1890  s_axis_tdata => s_axis_tdata_5,
1891 
1892  --tob output axi bus --------------------------------------
1893  poll_chan => tob_poll_chan_5,
1894  tob_m_tvalid => tob_m_tvalid_5,
1895  tob_m_tlast => tob_m_tlast_5,
1896  tob_m_tready => tob_m_tready_5,
1897  tob_m_tdata => tob_m_tdata_5,
1898  tob_header_marker => tob_header_marker_5,
1899  tob_tail_marker => tob_tail_marker_5,
1900  hdr_crc_tag => hdr_crc_tag_5,
1901  comb_error_tag => comb_error_tag_5,
1902  --calo output axi bus --------------------------------------
1903  calo_poll_chan => calo_poll_chan_5,
1904  calo_m_tvalid => calo_m_tvalid_5,
1905  calo_m_fifo_tlast => calo_m_fifo_tlast_5,
1906  calo_m_axis_tready => calo_m_axis_tready_5,
1907  calo_s_axis_tready => calo_s_axis_tready_5,
1908 
1909  calo_m_axis_tdata => calo_m_axis_tdata_5,
1910  calo_header_marker => calo_header_marker_5,
1911  calo_tail_marker => calo_tail_marker_5,
1912 
1913  s_axi_ufc_rx_tdata => s_axi_ufc_rx_tdata_5,
1914  s_axi_ufc_rx_tvalid => s_axi_ufc_rx_tvalid_5,
1915  s_axi_ufc_rx_tlast => s_axi_ufc_rx_tlast_5,
1916 
1917  channel_busy => channel_busy(5),
1918  timeout_err => '0',
1919  L1A => L1A
1920 
1921  );
1922 
1923 
1924 
1925 
1926 ch6 : channel_fifo
1927  generic map (
1928  channel_num => x"006",
1929  lmem => x"0",
1930  max_packet_length => max_packet_length,
1931  sim => sim,
1932  debug => debug,
1933  jfex => jfex,
1934  axi_fifo => 0,
1935  fifo_instr => 0)
1936  port map (
1937  ipb_clk => ipb_clk,
1938  ipb_rst => ipb_rst,
1939  ipb_in => ipbw(N_SLV_CHANNEL_6),
1940  ipb_out => ipbr(N_SLV_CHANNEL_6),
1941 
1942  pp_clock => pp_clock,
1943  clk_160 => clk_160,
1944  rt_clk => rt_clk,
1945  init_clk => init_clk,
1946  master_reset => master_reset,
1947  bp_reg_reset => bp_reg_reset,
1948  wdog_fifo_reset => wdog_fifo_reset,
1949 
1950  tob_fifo_busy_threshold => tob_fifo_busy_threshold(15 downto 0),
1951  bulk_fifo_busy_threshold => bulk_fifo_busy_threshold(15 downto 0),
1952  tob_fifo_xoff_threshold => tob_fifo_xoff_threshold(15 downto 0),
1953  bulk_fifo_xoff_threshold => bulk_fifo_xoff_threshold(15 downto 0),
1954 
1955  time_count => time_count,
1956  RESET => reset,
1957  backplane_control => backplane_control,
1958  aurora_chan_stat => aurora_chan_stat_6,
1959  aurora_channel_control => aurora_chan_control_6,
1960  chan_disable => chan_disable(6),
1961  aurora_user_clk => aurora_user_clk_6,
1962  s_axis_tvalid => s_axis_tvalid_6,
1963  s_axis_tlast => s_axis_tlast_6,
1964  tob_s_tready => tob_s_tready_6,
1965  s_axis_tdata => s_axis_tdata_6,
1966 
1967  --tob output axi bus --------------------------------------
1968  poll_chan => tob_poll_chan_6,
1969  tob_m_tvalid => tob_m_tvalid_6,
1970  tob_m_tlast => tob_m_tlast_6,
1971  tob_m_tready => tob_m_tready_6,
1972  tob_m_tdata => tob_m_tdata_6,
1973  tob_header_marker => tob_header_marker_6,
1974  tob_tail_marker => tob_tail_marker_6,
1975  hdr_crc_tag => hdr_crc_tag_6,
1976  comb_error_tag => comb_error_tag_6,
1977  --calo output axi bus --------------------------------------
1978  calo_poll_chan => calo_poll_chan_6,
1979  calo_m_tvalid => calo_m_tvalid_6,
1980  calo_m_fifo_tlast => calo_m_fifo_tlast_6,
1981  calo_m_axis_tready => calo_m_axis_tready_6,
1982  calo_s_axis_tready => calo_s_axis_tready_6,
1983 
1984  calo_m_axis_tdata => calo_m_axis_tdata_6,
1985  calo_header_marker => calo_header_marker_6,
1986  calo_tail_marker => calo_tail_marker_6,
1987 
1988  s_axi_ufc_rx_tdata => s_axi_ufc_rx_tdata_6,
1989  s_axi_ufc_rx_tvalid => s_axi_ufc_rx_tvalid_6,
1990  s_axi_ufc_rx_tlast => s_axi_ufc_rx_tlast_6,
1991 
1992  channel_busy => channel_busy(6),
1993  timeout_err => '0',
1994  L1A => L1A
1995 
1996  );
1997 
1998 
1999 
2000 
2001 ch7 : channel_fifo
2002  generic map (
2003  channel_num => x"007",
2004  lmem => x"0",
2005  max_packet_length => max_packet_length,
2006  sim => sim,
2007  debug => debug,
2008  jfex => jfex,
2009  axi_fifo => 0,
2010  fifo_instr => 0)
2011  port map (
2012  ipb_clk => ipb_clk,
2013  ipb_rst => ipb_rst,
2014  ipb_in => ipbw(N_SLV_CHANNEL_7),
2015  ipb_out => ipbr(N_SLV_CHANNEL_7),
2016 
2017  pp_clock => pp_clock,
2018  clk_160 => clk_160,
2019  rt_clk => rt_clk,
2020  init_clk => init_clk,
2021  master_reset => master_reset,
2022  bp_reg_reset => bp_reg_reset,
2023  wdog_fifo_reset => wdog_fifo_reset,
2024 
2025  tob_fifo_busy_threshold => tob_fifo_busy_threshold(15 downto 0),
2026  bulk_fifo_busy_threshold => bulk_fifo_busy_threshold(15 downto 0),
2027  tob_fifo_xoff_threshold => tob_fifo_xoff_threshold(15 downto 0),
2028  bulk_fifo_xoff_threshold => bulk_fifo_xoff_threshold(15 downto 0),
2029 
2030  time_count => time_count,
2031  RESET => reset,
2032  backplane_control => backplane_control,
2033  aurora_chan_stat => aurora_chan_stat_7,
2034  aurora_channel_control => aurora_chan_control_7,
2035  chan_disable => chan_disable(7),
2036  aurora_user_clk => aurora_user_clk_7,
2037  s_axis_tvalid => s_axis_tvalid_7,
2038  s_axis_tlast => s_axis_tlast_7,
2039  tob_s_tready => tob_s_tready_7,
2040  s_axis_tdata => s_axis_tdata_7,
2041 
2042  --tob output axi bus --------------------------------------
2043  poll_chan => tob_poll_chan_7,
2044  tob_m_tvalid => tob_m_tvalid_7,
2045  tob_m_tlast => tob_m_tlast_7,
2046  tob_m_tready => tob_m_tready_7,
2047  tob_m_tdata => tob_m_tdata_7,
2048  tob_header_marker => tob_header_marker_7,
2049  tob_tail_marker => tob_tail_marker_7,
2050  hdr_crc_tag => hdr_crc_tag_7,
2051  comb_error_tag => comb_error_tag_7,
2052  --calo output axi bus --------------------------------------
2053  calo_poll_chan => calo_poll_chan_7,
2054  calo_m_tvalid => calo_m_tvalid_7,
2055  calo_m_fifo_tlast => calo_m_fifo_tlast_7,
2056  calo_m_axis_tready => calo_m_axis_tready_7,
2057  calo_s_axis_tready => calo_s_axis_tready_7,
2058 
2059  calo_m_axis_tdata => calo_m_axis_tdata_7,
2060  calo_header_marker => calo_header_marker_7,
2061  calo_tail_marker => calo_tail_marker_7,
2062 
2063  s_axi_ufc_rx_tdata => s_axi_ufc_rx_tdata_7,
2064  s_axi_ufc_rx_tvalid => s_axi_ufc_rx_tvalid_7,
2065  s_axi_ufc_rx_tlast => s_axi_ufc_rx_tlast_7,
2066 
2067  channel_busy => channel_busy(7),
2068  timeout_err => '0',
2069  L1A => L1A
2070  );
2071 
2072 
2073 
2074 
2075 ch8 : channel_fifo
2076  generic map (
2077  channel_num => x"008",
2078  lmem => x"0",
2079  max_packet_length => max_packet_length,
2080  sim => sim,
2081  debug => 0,
2082  jfex => jfex,
2083  axi_fifo => 0,
2084  fifo_instr => 0)
2085  port map (
2086  ipb_clk => ipb_clk,
2087  ipb_rst => ipb_rst,
2088  ipb_in => ipbw(N_SLV_CHANNEL_8),
2089  ipb_out => ipbr(N_SLV_CHANNEL_8),
2090 
2091  pp_clock => pp_clock,
2092  clk_160 => clk_160,
2093  rt_clk => rt_clk,
2094  init_clk => init_clk,
2095  master_reset => master_reset,
2096  bp_reg_reset => bp_reg_reset,
2097  wdog_fifo_reset => wdog_fifo_reset,
2098 
2099 
2100  tob_fifo_busy_threshold => tob_fifo_busy_threshold(15 downto 0),
2101  bulk_fifo_busy_threshold => bulk_fifo_busy_threshold(15 downto 0),
2102  tob_fifo_xoff_threshold => tob_fifo_xoff_threshold(15 downto 0),
2103  bulk_fifo_xoff_threshold => bulk_fifo_xoff_threshold(15 downto 0),
2104 
2105  time_count => time_count,
2106  RESET => reset,
2107  backplane_control => backplane_control,
2108  aurora_chan_stat => aurora_chan_stat_8,
2109  aurora_channel_control => aurora_chan_control_8,
2110  chan_disable => chan_disable(8),
2111  aurora_user_clk => aurora_user_clk_8,
2112  s_axis_tvalid => s_axis_tvalid_8,
2113  s_axis_tlast => s_axis_tlast_8,
2114  tob_s_tready => tob_s_tready_8,
2115  s_axis_tdata => s_axis_tdata_8,
2116 
2117  --tob output axi bus --------------------------------------
2118  poll_chan => tob_poll_chan_8,
2119  tob_m_tvalid => tob_m_tvalid_8,
2120  tob_m_tlast => tob_m_tlast_8,
2121  tob_m_tready => tob_m_tready_8,
2122  tob_m_tdata => tob_m_tdata_8,
2123  tob_header_marker => tob_header_marker_8,
2124  tob_tail_marker => tob_tail_marker_8,
2125  hdr_crc_tag => hdr_crc_tag_8,
2126  comb_error_tag => comb_error_tag_8,
2127  --calo output axi bus --------------------------------------
2128  calo_poll_chan => calo_poll_chan_8,
2129  calo_m_tvalid => calo_m_tvalid_8,
2130  calo_m_fifo_tlast => calo_m_fifo_tlast_8,
2131  calo_m_axis_tready => calo_m_axis_tready_8,
2132  calo_s_axis_tready => calo_s_axis_tready_8,
2133 
2134  calo_m_axis_tdata => calo_m_axis_tdata_8,
2135  calo_header_marker => calo_header_marker_8,
2136  calo_tail_marker => calo_tail_marker_8,
2137 
2138  s_axi_ufc_rx_tdata => s_axi_ufc_rx_tdata_8,
2139  s_axi_ufc_rx_tvalid => s_axi_ufc_rx_tvalid_8,
2140  s_axi_ufc_rx_tlast => s_axi_ufc_rx_tlast_8,
2141 
2142  channel_busy => channel_busy(8),
2143  timeout_err => '0',
2144  L1A => L1A
2145  );
2146 
2147 
2148 
2149 
2150 ch9 : channel_fifo
2151  generic map (
2152  channel_num => x"009",
2153  lmem => x"0",
2154  max_packet_length => max_packet_length,
2155  sim => sim,
2156  debug => debug,
2157  jfex => jfex,
2158  axi_fifo => 0,
2159  fifo_instr => 0)
2160  port map (
2161  ipb_clk => ipb_clk,
2162  ipb_rst => ipb_rst,
2163  ipb_in => ipbw(N_SLV_CHANNEL_9),
2164  ipb_out => ipbr(N_SLV_CHANNEL_9),
2165 
2166  pp_clock => pp_clock,
2167  clk_160 => clk_160,
2168  rt_clk => rt_clk,
2169  init_clk => init_clk,
2170  master_reset => master_reset,
2171  bp_reg_reset => bp_reg_reset,
2172  wdog_fifo_reset => wdog_fifo_reset,
2173 
2174 
2175  tob_fifo_busy_threshold => tob_fifo_busy_threshold(15 downto 0),
2176  bulk_fifo_busy_threshold => bulk_fifo_busy_threshold(15 downto 0),
2177  tob_fifo_xoff_threshold => tob_fifo_xoff_threshold(15 downto 0),
2178  bulk_fifo_xoff_threshold => bulk_fifo_xoff_threshold(15 downto 0),
2179 
2180  time_count => time_count,
2181  RESET => reset,
2182  backplane_control => backplane_control,
2183  aurora_chan_stat => aurora_chan_stat_9,
2184  aurora_channel_control => aurora_chan_control_9,
2185  chan_disable => chan_disable(9),
2186  aurora_user_clk => aurora_user_clk_9,
2187  s_axis_tvalid => s_axis_tvalid_9,
2188  s_axis_tlast => s_axis_tlast_9,
2189  tob_s_tready => tob_s_tready_9,
2190  s_axis_tdata => s_axis_tdata_9,
2191 
2192  --tob output axi bus --------------------------------------
2193  poll_chan => tob_poll_chan_9,
2194  tob_m_tvalid => tob_m_tvalid_9,
2195  tob_m_tlast => tob_m_tlast_9,
2196  tob_m_tready => tob_m_tready_9,
2197  tob_m_tdata => tob_m_tdata_9,
2198  tob_header_marker => tob_header_marker_9,
2199  tob_tail_marker => tob_tail_marker_9,
2200  hdr_crc_tag => hdr_crc_tag_9,
2201  comb_error_tag => comb_error_tag_9,
2202  --calo output axi bus --------------------------------------
2203  calo_poll_chan => calo_poll_chan_9,
2204  calo_m_tvalid => calo_m_tvalid_9,
2205  calo_m_fifo_tlast => calo_m_fifo_tlast_9,
2206  calo_m_axis_tready => calo_m_axis_tready_9,
2207  calo_s_axis_tready => calo_s_axis_tready_9,
2208 
2209  calo_m_axis_tdata => calo_m_axis_tdata_9,
2210  calo_header_marker => calo_header_marker_9,
2211  calo_tail_marker => calo_tail_marker_9,
2212 
2213  s_axi_ufc_rx_tdata => s_axi_ufc_rx_tdata_9,
2214  s_axi_ufc_rx_tvalid => s_axi_ufc_rx_tvalid_9,
2215  s_axi_ufc_rx_tlast => s_axi_ufc_rx_tlast_9,
2216 
2217  channel_busy => channel_busy(9),
2218  timeout_err => '0',
2219  L1A => L1A
2220 
2221  );
2222 
2223 
2224 
2225 
2226 ch10 : channel_fifo
2227  generic map (
2228  channel_num => x"00A",
2229  lmem => x"0",
2230  max_packet_length => max_packet_length,
2231  sim => sim,
2232  debug => debug,
2233  jfex => jfex,
2234  axi_fifo => 0,
2235  fifo_instr => 0)
2236  port map (
2237  ipb_clk => ipb_clk,
2238  ipb_rst => ipb_rst,
2239  ipb_in => ipbw(N_SLV_CHANNEL_10),
2240  ipb_out => ipbr(N_SLV_CHANNEL_10),
2241 
2242  pp_clock => pp_clock,
2243  clk_160 => clk_160,
2244  rt_clk => rt_clk,
2245  init_clk => init_clk,
2246  master_reset => master_reset,
2247  bp_reg_reset => bp_reg_reset,
2248  wdog_fifo_reset => wdog_fifo_reset,
2249 
2250  tob_fifo_busy_threshold => tob_fifo_busy_threshold(15 downto 0),
2251  bulk_fifo_busy_threshold => bulk_fifo_busy_threshold(15 downto 0),
2252  tob_fifo_xoff_threshold => tob_fifo_xoff_threshold(15 downto 0),
2253  bulk_fifo_xoff_threshold => bulk_fifo_xoff_threshold(15 downto 0),
2254 
2255  time_count => time_count,
2256  RESET => reset,
2257  backplane_control => backplane_control,
2258  aurora_chan_stat => aurora_chan_stat_10,
2259  aurora_channel_control => aurora_chan_control_10,
2260  chan_disable => chan_disable(10),
2261  aurora_user_clk => aurora_user_clk_10,
2262  s_axis_tvalid => s_axis_tvalid_10,
2263  s_axis_tlast => s_axis_tlast_10,
2264  tob_s_tready => tob_s_tready_10,
2265  s_axis_tdata => s_axis_tdata_10,
2266 
2267  --tob output axi bus --------------------------------------
2268  poll_chan => tob_poll_chan_10,
2269  tob_m_tvalid => tob_m_tvalid_10,
2270  tob_m_tlast => tob_m_tlast_10,
2271  tob_m_tready => tob_m_tready_10,
2272  tob_m_tdata => tob_m_tdata_10,
2273  tob_header_marker => tob_header_marker_10,
2274  tob_tail_marker => tob_tail_marker_10,
2275  hdr_crc_tag => hdr_crc_tag_10,
2276  comb_error_tag => comb_error_tag_10,
2277  --calo output axi bus --------------------------------------
2278  calo_poll_chan => calo_poll_chan_10,
2279  calo_m_tvalid => calo_m_tvalid_10,
2280  calo_m_fifo_tlast => calo_m_fifo_tlast_10,
2281  calo_m_axis_tready => calo_m_axis_tready_10,
2282  calo_s_axis_tready => calo_s_axis_tready_10,
2283 
2284  calo_m_axis_tdata => calo_m_axis_tdata_10,
2285  calo_header_marker => calo_header_marker_10,
2286  calo_tail_marker => calo_tail_marker_10,
2287 
2288  s_axi_ufc_rx_tdata => s_axi_ufc_rx_tdata_10,
2289  s_axi_ufc_rx_tvalid => s_axi_ufc_rx_tvalid_10,
2290  s_axi_ufc_rx_tlast => s_axi_ufc_rx_tlast_10,
2291 
2292  channel_busy => channel_busy(10),
2293  timeout_err => '0',
2294  L1A => L1A
2295  );
2296 
2297 
2298 ch11 : channel_fifo
2299  generic map (
2300  channel_num => x"00B",
2301  lmem => x"0",
2302  max_packet_length => max_packet_length,
2303  sim => sim,
2304  debug => debug,
2305  jfex => jfex,
2306  axi_fifo => 0,
2307  fifo_instr => 0)
2308  port map (
2309  ipb_clk => ipb_clk,
2310  ipb_rst => ipb_rst,
2311  ipb_in => ipbw(N_SLV_CHANNEL_11),
2312  ipb_out => ipbr(N_SLV_CHANNEL_11),
2313 
2314  pp_clock => pp_clock,
2315  clk_160 => clk_160,
2316  rt_clk => rt_clk,
2317  init_clk => init_clk,
2318  master_reset => master_reset,
2319  bp_reg_reset => bp_reg_reset,
2320  wdog_fifo_reset => wdog_fifo_reset,
2321 
2322  tob_fifo_busy_threshold => tob_fifo_busy_threshold(15 downto 0),
2323  bulk_fifo_busy_threshold => bulk_fifo_busy_threshold(15 downto 0),
2324  tob_fifo_xoff_threshold => tob_fifo_xoff_threshold(15 downto 0),
2325  bulk_fifo_xoff_threshold => bulk_fifo_xoff_threshold(15 downto 0),
2326 
2327  time_count => time_count,
2328  RESET => reset,
2329  backplane_control => backplane_control,
2330  aurora_chan_stat => aurora_chan_stat_11,
2331  aurora_channel_control => aurora_chan_control_11,
2332  chan_disable => chan_disable(11),
2333  aurora_user_clk => aurora_user_clk_11,
2334  s_axis_tvalid => s_axis_tvalid_11,
2335  s_axis_tlast => s_axis_tlast_11,
2336  tob_s_tready => tob_s_tready_11,
2337  s_axis_tdata => s_axis_tdata_11,
2338 
2339  --tob output axi bus --------------------------------------
2340  poll_chan => tob_poll_chan_11,
2341  tob_m_tvalid => tob_m_tvalid_11,
2342  tob_m_tlast => tob_m_tlast_11,
2343  tob_m_tready => tob_m_tready_11,
2344  tob_m_tdata => tob_m_tdata_11,
2345  tob_header_marker => tob_header_marker_11,
2346  tob_tail_marker => tob_tail_marker_11,
2347  hdr_crc_tag => hdr_crc_tag_11,
2348  comb_error_tag => comb_error_tag_11,
2349  --calo output axi bus --------------------------------------
2350  calo_poll_chan => calo_poll_chan_11,
2351  calo_m_tvalid => calo_m_tvalid_11,
2352  calo_m_fifo_tlast => calo_m_fifo_tlast_11,
2353  calo_m_axis_tready => calo_m_axis_tready_11,
2354  calo_s_axis_tready => calo_s_axis_tready_11,
2355 
2356  calo_m_axis_tdata => calo_m_axis_tdata_11,
2357  calo_header_marker => calo_header_marker_11,
2358  calo_tail_marker => calo_tail_marker_11,
2359 
2360  s_axi_ufc_rx_tdata => s_axi_ufc_rx_tdata_11,
2361  s_axi_ufc_rx_tvalid => s_axi_ufc_rx_tvalid_11,
2362  s_axi_ufc_rx_tlast => s_axi_ufc_rx_tlast_11,
2363 
2364  channel_busy => channel_busy(11),
2365  timeout_err => '0',
2366  L1A => L1A
2367 
2368  );
2369 
2370 
2371 --channels 12-23 are only used on jfex and are therefore removed on efex -----
2372 gen_jfex_chan: if jfex=1 generate
2373 
2374 
2375 ch12 : channel_fifo
2376  generic map (
2377  channel_num => x"00C",
2378  lmem => x"0",
2379  max_packet_length => max_packet_length,
2380  sim => sim,
2381  debug => debug, --turn on debug for jfex build
2382  jfex => jfex,
2383  axi_fifo => 0,
2384  fifo_instr => 0) --adds ILA between clock crossing and main fifo (to look for stalling ie jfex timeout)
2385  port map (
2386  ipb_clk => ipb_clk,
2387  ipb_rst => ipb_rst,
2388  ipb_in => ipbw(N_SLV_CHANNEL_12),
2389  ipb_out => ipbr(N_SLV_CHANNEL_12),
2390 
2391  pp_clock => pp_clock,
2392  clk_160 => clk_160,
2393  rt_clk => rt_clk,
2394  init_clk => init_clk,
2395  master_reset => master_reset,
2396  bp_reg_reset => bp_reg_reset,
2397  wdog_fifo_reset => wdog_fifo_reset,
2398 
2399  tob_fifo_busy_threshold => tob_fifo_busy_threshold(15 downto 0),
2400  bulk_fifo_busy_threshold => bulk_fifo_busy_threshold(15 downto 0),
2401  tob_fifo_xoff_threshold => tob_fifo_xoff_threshold(15 downto 0),
2402  bulk_fifo_xoff_threshold => bulk_fifo_xoff_threshold(15 downto 0),
2403 
2404  time_count => time_count,
2405  RESET => reset,
2406  backplane_control => backplane_control,
2407  aurora_chan_stat => aurora_chan_stat_12,
2408  aurora_channel_control => aurora_chan_control_12,
2409  chan_disable => chan_disable(12),
2410  aurora_user_clk => aurora_user_clk_12,
2411  s_axis_tvalid => s_axis_tvalid_12,
2412  s_axis_tlast => s_axis_tlast_12,
2413  tob_s_tready => tob_s_tready_12,
2414  s_axis_tdata => s_axis_tdata_12,
2415 
2416  --tob output axi bus --------------------------------------
2417  poll_chan => tob_poll_chan_12,
2418  tob_m_tvalid => tob_m_tvalid_12,
2419  tob_m_tlast => tob_m_tlast_12,
2420  tob_m_tready => tob_m_tready_12,
2421  tob_m_tdata => tob_m_tdata_12,
2422  tob_header_marker => tob_header_marker_12,
2423  tob_tail_marker => tob_tail_marker_12,
2424  hdr_crc_tag => hdr_crc_tag_12,
2425  comb_error_tag => comb_error_tag_12,
2426  --calo output axi bus --------------------------------------
2427  calo_poll_chan => calo_poll_chan_12,
2428  calo_m_tvalid => calo_m_tvalid_12,
2429  calo_m_fifo_tlast => calo_m_fifo_tlast_12,
2430  calo_m_axis_tready => calo_m_axis_tready_12,
2431  calo_s_axis_tready => calo_s_axis_tready_12,
2432 
2433  calo_m_axis_tdata => calo_m_axis_tdata_12,
2434  calo_header_marker => calo_header_marker_12,
2435  calo_tail_marker => calo_tail_marker_12,
2436 
2437  s_axi_ufc_rx_tdata => s_axi_ufc_rx_tdata_12,
2438  s_axi_ufc_rx_tvalid => s_axi_ufc_rx_tvalid_12,
2439  s_axi_ufc_rx_tlast => s_axi_ufc_rx_tlast_12,
2440 
2441  channel_busy => channel_busy(12),
2442  timeout_err => timeout_err,
2443  L1A => L1A
2444  );
2445 
2446 
2447 
2448 
2449 ch13 : channel_fifo
2450  generic map (
2451  channel_num => x"00D",
2452  lmem => x"0",
2453  max_packet_length => max_packet_length,
2454  sim => sim,
2455  debug => debug,
2456  jfex => jfex,
2457  axi_fifo => 0,
2458  fifo_instr => 0)
2459  port map (
2460  ipb_clk => ipb_clk,
2461  ipb_rst => ipb_rst,
2462  ipb_in => ipbw(N_SLV_CHANNEL_13),
2463  ipb_out => ipbr(N_SLV_CHANNEL_13),
2464 
2465  pp_clock => pp_clock,
2466  clk_160 => clk_160,
2467  rt_clk => rt_clk,
2468  init_clk => init_clk,
2469  master_reset => master_reset,
2470  bp_reg_reset => bp_reg_reset,
2471  wdog_fifo_reset => wdog_fifo_reset,
2472 
2473  tob_fifo_busy_threshold => tob_fifo_busy_threshold(15 downto 0),
2474  bulk_fifo_busy_threshold => bulk_fifo_busy_threshold(15 downto 0),
2475  tob_fifo_xoff_threshold => tob_fifo_xoff_threshold(15 downto 0),
2476  bulk_fifo_xoff_threshold => bulk_fifo_xoff_threshold(15 downto 0),
2477 
2478  time_count => time_count,
2479  RESET => reset,
2480  backplane_control => backplane_control,
2481  aurora_chan_stat => aurora_chan_stat_13,
2482  aurora_channel_control => aurora_chan_control_13,
2483  chan_disable => chan_disable(13),
2484  aurora_user_clk => aurora_user_clk_13,
2485  s_axis_tvalid => s_axis_tvalid_13,
2486  s_axis_tlast => s_axis_tlast_13,
2487  tob_s_tready => tob_s_tready_13,
2488  s_axis_tdata => s_axis_tdata_13,
2489 
2490  --tob output axi bus --------------------------------------
2491  poll_chan => tob_poll_chan_13,
2492  tob_m_tvalid => tob_m_tvalid_13,
2493  tob_m_tlast => tob_m_tlast_13,
2494  tob_m_tready => tob_m_tready_13,
2495  tob_m_tdata => tob_m_tdata_13,
2496  tob_header_marker => tob_header_marker_13,
2497  tob_tail_marker => tob_tail_marker_13,
2498  hdr_crc_tag => hdr_crc_tag_13,
2499  comb_error_tag => comb_error_tag_13,
2500  --calo output axi bus --------------------------------------
2501  calo_poll_chan => calo_poll_chan_13,
2502  calo_m_tvalid => calo_m_tvalid_13,
2503  calo_m_fifo_tlast => calo_m_fifo_tlast_13,
2504  calo_m_axis_tready => calo_m_axis_tready_13,
2505  calo_s_axis_tready => calo_s_axis_tready_13,
2506 
2507  calo_m_axis_tdata => calo_m_axis_tdata_13,
2508  calo_header_marker => calo_header_marker_13,
2509  calo_tail_marker => calo_tail_marker_13,
2510 
2511  s_axi_ufc_rx_tdata => s_axi_ufc_rx_tdata_13,
2512  s_axi_ufc_rx_tvalid => s_axi_ufc_rx_tvalid_13,
2513  s_axi_ufc_rx_tlast => s_axi_ufc_rx_tlast_13,
2514 
2515  channel_busy => channel_busy(13),
2516  timeout_err => '0',
2517  L1A => L1A
2518  );
2519 
2520 
2521 
2522 ch14 : channel_fifo
2523  generic map (
2524  channel_num => x"00E",
2525  lmem => x"0",
2526  max_packet_length => max_packet_length,
2527  sim => sim,
2528  axi_fifo => 0,
2529  jfex => jfex,
2530  debug => debug,
2531  fifo_instr => 0)
2532  port map (
2533  ipb_clk => ipb_clk,
2534  ipb_rst => ipb_rst,
2535  ipb_in => ipbw(N_SLV_CHANNEL_14),
2536  ipb_out => ipbr(N_SLV_CHANNEL_14),
2537 
2538  pp_clock => pp_clock,
2539  clk_160 => clk_160,
2540  rt_clk => rt_clk,
2541  init_clk => init_clk,
2542  master_reset => master_reset,
2543  bp_reg_reset => bp_reg_reset,
2544  wdog_fifo_reset => wdog_fifo_reset,
2545 
2546  tob_fifo_busy_threshold => tob_fifo_busy_threshold(15 downto 0),
2547  bulk_fifo_busy_threshold => bulk_fifo_busy_threshold(15 downto 0),
2548  tob_fifo_xoff_threshold => tob_fifo_xoff_threshold(15 downto 0),
2549  bulk_fifo_xoff_threshold => bulk_fifo_xoff_threshold(15 downto 0),
2550 
2551  time_count => time_count,
2552  RESET => reset,
2553  backplane_control => backplane_control,
2554  aurora_chan_stat => aurora_chan_stat_14,
2555  aurora_channel_control => aurora_chan_control_14,
2556  chan_disable => chan_disable(14),
2557  aurora_user_clk => aurora_user_clk_14,
2558  s_axis_tvalid => s_axis_tvalid_14,
2559  s_axis_tlast => s_axis_tlast_14,
2560  tob_s_tready => tob_s_tready_14,
2561  s_axis_tdata => s_axis_tdata_14,
2562 
2563  --tob output axi bus --------------------------------------
2564  poll_chan => tob_poll_chan_14,
2565  tob_m_tvalid => tob_m_tvalid_14,
2566  tob_m_tlast => tob_m_tlast_14,
2567  tob_m_tready => tob_m_tready_14,
2568  tob_m_tdata => tob_m_tdata_14,
2569  tob_header_marker => tob_header_marker_14,
2570  tob_tail_marker => tob_tail_marker_14,
2571  hdr_crc_tag => hdr_crc_tag_14,
2572  comb_error_tag => comb_error_tag_14,
2573  --calo output axi bus --------------------------------------
2574  calo_poll_chan => calo_poll_chan_14,
2575  calo_m_tvalid => calo_m_tvalid_14,
2576  calo_m_fifo_tlast => calo_m_fifo_tlast_14,
2577  calo_m_axis_tready => calo_m_axis_tready_14,
2578  calo_s_axis_tready => calo_s_axis_tready_14,
2579 
2580  calo_m_axis_tdata => calo_m_axis_tdata_14,
2581  calo_header_marker => calo_header_marker_14,
2582  calo_tail_marker => calo_tail_marker_14,
2583 
2584  s_axi_ufc_rx_tdata => s_axi_ufc_rx_tdata_14,
2585  s_axi_ufc_rx_tvalid => s_axi_ufc_rx_tvalid_14,
2586  s_axi_ufc_rx_tlast => s_axi_ufc_rx_tlast_14,
2587 
2588 
2589  channel_busy => channel_busy(14),
2590  timeout_err => '0',
2591  L1A => L1A
2592  );
2593 
2594 
2595 
2596 
2597 
2598 ch15 : channel_fifo
2599  generic map (
2600  channel_num => x"00F",
2601  lmem => x"0",
2602  max_packet_length => max_packet_length,
2603  sim => sim,
2604  axi_fifo => 0,
2605  jfex => jfex,
2606  debug => 0,
2607  fifo_instr => 0)
2608  port map (
2609  ipb_clk => ipb_clk,
2610  ipb_rst => ipb_rst,
2611  ipb_in => ipbw(N_SLV_CHANNEL_15),
2612  ipb_out => ipbr(N_SLV_CHANNEL_15),
2613 
2614  pp_clock => pp_clock,
2615  clk_160 => clk_160,
2616  rt_clk => rt_clk,
2617  init_clk => init_clk,
2618  master_reset => master_reset,
2619  bp_reg_reset => bp_reg_reset,
2620  wdog_fifo_reset => wdog_fifo_reset,
2621 
2622  tob_fifo_busy_threshold => tob_fifo_busy_threshold(15 downto 0),
2623  bulk_fifo_busy_threshold => bulk_fifo_busy_threshold(15 downto 0),
2624  tob_fifo_xoff_threshold => tob_fifo_xoff_threshold(15 downto 0),
2625  bulk_fifo_xoff_threshold => bulk_fifo_xoff_threshold(15 downto 0),
2626 
2627  time_count => time_count,
2628  RESET => reset,
2629  backplane_control => backplane_control,
2630  aurora_chan_stat => aurora_chan_stat_15,
2631  aurora_channel_control => aurora_chan_control_15,
2632  chan_disable => chan_disable(15),
2633  aurora_user_clk => aurora_user_clk_15,
2634  s_axis_tvalid => s_axis_tvalid_15,
2635  s_axis_tlast => s_axis_tlast_15,
2636  tob_s_tready => tob_s_tready_15,
2637  s_axis_tdata => s_axis_tdata_15,
2638 
2639  --tob output axi bus --------------------------------------
2640  poll_chan => tob_poll_chan_15,
2641  tob_m_tvalid => tob_m_tvalid_15,
2642  tob_m_tlast => tob_m_tlast_15,
2643  tob_m_tready => tob_m_tready_15,
2644  tob_m_tdata => tob_m_tdata_15,
2645  tob_header_marker => tob_header_marker_15,
2646  tob_tail_marker => tob_tail_marker_15,
2647  hdr_crc_tag => hdr_crc_tag_15,
2648  comb_error_tag => comb_error_tag_15,
2649  --calo output axi bus --------------------------------------
2650  calo_poll_chan => calo_poll_chan_15,
2651  calo_m_tvalid => calo_m_tvalid_15,
2652  calo_m_fifo_tlast => calo_m_fifo_tlast_15,
2653  calo_m_axis_tready => calo_m_axis_tready_15,
2654  calo_s_axis_tready => calo_s_axis_tready_15,
2655 
2656  calo_m_axis_tdata => calo_m_axis_tdata_15,
2657  calo_header_marker => calo_header_marker_15,
2658  calo_tail_marker => calo_tail_marker_15,
2659 
2660  s_axi_ufc_rx_tdata => s_axi_ufc_rx_tdata_15,
2661  s_axi_ufc_rx_tvalid => s_axi_ufc_rx_tvalid_15,
2662  s_axi_ufc_rx_tlast => s_axi_ufc_rx_tlast_15,
2663 
2664  channel_busy => channel_busy(15),
2665  timeout_err => '0',
2666  L1A => L1A
2667  );
2668 
2669 
2670 
2671 
2672 
2673 
2674 ch16 : channel_fifo
2675  generic map (
2676  channel_num => x"010",
2677  lmem => x"0",
2678  max_packet_length => max_packet_length,
2679  sim => sim,
2680  axi_fifo => 0,
2681  jfex => jfex,
2682  debug => debug,
2683  fifo_instr => 0)
2684  port map (
2685  ipb_clk => ipb_clk,
2686  ipb_rst => ipb_rst,
2687  ipb_in => ipbw(N_SLV_CHANNEL_16),
2688  ipb_out => ipbr(N_SLV_CHANNEL_16),
2689 
2690  pp_clock => pp_clock,
2691  clk_160 => clk_160,
2692  rt_clk => rt_clk,
2693  init_clk => init_clk,
2694  master_reset => master_reset,
2695  bp_reg_reset => bp_reg_reset,
2696  wdog_fifo_reset => wdog_fifo_reset,
2697 
2698  tob_fifo_busy_threshold => tob_fifo_busy_threshold(15 downto 0),
2699  bulk_fifo_busy_threshold => bulk_fifo_busy_threshold(15 downto 0),
2700  tob_fifo_xoff_threshold => tob_fifo_xoff_threshold(15 downto 0),
2701  bulk_fifo_xoff_threshold => bulk_fifo_xoff_threshold(15 downto 0),
2702 
2703  time_count => time_count,
2704  RESET => reset,
2705  backplane_control => backplane_control,
2706  aurora_chan_stat => aurora_chan_stat_16,
2707  aurora_channel_control => aurora_chan_control_16,
2708  chan_disable => chan_disable(16),
2709  aurora_user_clk => aurora_user_clk_16,
2710  s_axis_tvalid => s_axis_tvalid_16,
2711  s_axis_tlast => s_axis_tlast_16,
2712  tob_s_tready => tob_s_tready_16,
2713  s_axis_tdata => s_axis_tdata_16,
2714 
2715  --tob output axi bus --------------------------------------
2716  poll_chan => tob_poll_chan_16,
2717  tob_m_tvalid => tob_m_tvalid_16,
2718  tob_m_tlast => tob_m_tlast_16,
2719  tob_m_tready => tob_m_tready_16,
2720  tob_m_tdata => tob_m_tdata_16,
2721  tob_header_marker => tob_header_marker_16,
2722  tob_tail_marker => tob_tail_marker_16,
2723  hdr_crc_tag => hdr_crc_tag_16,
2724  comb_error_tag => comb_error_tag_16,
2725  --calo output axi bus --------------------------------------
2726  calo_poll_chan => calo_poll_chan_16,
2727  calo_m_tvalid => calo_m_tvalid_16,
2728  calo_m_fifo_tlast => calo_m_fifo_tlast_16,
2729  calo_m_axis_tready => calo_m_axis_tready_16,
2730  calo_s_axis_tready => calo_s_axis_tready_16,
2731 
2732  calo_m_axis_tdata => calo_m_axis_tdata_16,
2733  calo_header_marker => calo_header_marker_16,
2734  calo_tail_marker => calo_tail_marker_16,
2735 
2736  s_axi_ufc_rx_tdata => s_axi_ufc_rx_tdata_16,
2737  s_axi_ufc_rx_tvalid => s_axi_ufc_rx_tvalid_16,
2738  s_axi_ufc_rx_tlast => s_axi_ufc_rx_tlast_16,
2739 
2740  channel_busy => channel_busy(16),
2741  timeout_err => '0',
2742  L1A => L1A
2743 
2744  );
2745 
2746 
2747 
2748 
2749 
2750 
2751 
2752 
2753 
2754 ch17 : channel_fifo
2755  generic map (
2756  channel_num => x"011",
2757  lmem => x"0",
2758  max_packet_length => max_packet_length,
2759  sim => sim,
2760  axi_fifo => 0,
2761  jfex => jfex,
2762  debug => debug,
2763  fifo_instr => 0)
2764  port map (
2765  ipb_clk => ipb_clk,
2766  ipb_rst => ipb_rst,
2767  ipb_in => ipbw(N_SLV_CHANNEL_17),
2768  ipb_out => ipbr(N_SLV_CHANNEL_17),
2769 
2770  pp_clock => pp_clock,
2771  clk_160 => clk_160,
2772  rt_clk => rt_clk,
2773  init_clk => init_clk,
2774  master_reset => master_reset,
2775  bp_reg_reset => bp_reg_reset,
2776  wdog_fifo_reset => wdog_fifo_reset,
2777 
2778  tob_fifo_busy_threshold => tob_fifo_busy_threshold(15 downto 0),
2779  bulk_fifo_busy_threshold => bulk_fifo_busy_threshold(15 downto 0),
2780  tob_fifo_xoff_threshold => tob_fifo_xoff_threshold(15 downto 0),
2781  bulk_fifo_xoff_threshold => bulk_fifo_xoff_threshold(15 downto 0),
2782 
2783  time_count => time_count,
2784  RESET => reset,
2785  backplane_control => backplane_control,
2786  aurora_chan_stat => aurora_chan_stat_17,
2787  aurora_channel_control => aurora_chan_control_17,
2788  chan_disable => chan_disable(17),
2789  aurora_user_clk => aurora_user_clk_17,
2790  s_axis_tvalid => s_axis_tvalid_17,
2791  s_axis_tlast => s_axis_tlast_17,
2792  tob_s_tready => tob_s_tready_17,
2793  s_axis_tdata => s_axis_tdata_17,
2794 
2795  --tob output axi bus --------------------------------------
2796  poll_chan => tob_poll_chan_17,
2797  tob_m_tvalid => tob_m_tvalid_17,
2798  tob_m_tlast => tob_m_tlast_17,
2799  tob_m_tready => tob_m_tready_17,
2800  tob_m_tdata => tob_m_tdata_17,
2801  tob_header_marker => tob_header_marker_17,
2802  tob_tail_marker => tob_tail_marker_17,
2803  hdr_crc_tag => hdr_crc_tag_17,
2804  comb_error_tag => comb_error_tag_17,
2805  --calo output axi bus --------------------------------------
2806  calo_poll_chan => calo_poll_chan_17,
2807  calo_m_tvalid => calo_m_tvalid_17,
2808  calo_m_fifo_tlast => calo_m_fifo_tlast_17,
2809  calo_m_axis_tready => calo_m_axis_tready_17,
2810  calo_s_axis_tready => calo_s_axis_tready_17,
2811 
2812  calo_m_axis_tdata => calo_m_axis_tdata_17,
2813  calo_header_marker => calo_header_marker_17,
2814  calo_tail_marker => calo_tail_marker_17,
2815 
2816  s_axi_ufc_rx_tdata => s_axi_ufc_rx_tdata_17,
2817  s_axi_ufc_rx_tvalid => s_axi_ufc_rx_tvalid_17,
2818  s_axi_ufc_rx_tlast => s_axi_ufc_rx_tlast_17,
2819 
2820  channel_busy => channel_busy(17),
2821  timeout_err => '0',
2822  L1A => L1A
2823  );
2824 
2825 
2826 
2827 
2828 
2829 
2830 ch18 : channel_fifo
2831  generic map (
2832  channel_num => x"012",
2833  lmem => x"0",
2834  max_packet_length => max_packet_length,
2835  sim => sim,
2836  axi_fifo => 0,
2837  jfex => jfex,
2838  debug => debug,
2839  fifo_instr => 0)
2840  port map (
2841  ipb_clk => ipb_clk,
2842  ipb_rst => ipb_rst,
2843  ipb_in => ipbw(N_SLV_CHANNEL_18),
2844  ipb_out => ipbr(N_SLV_CHANNEL_18),
2845 
2846  pp_clock => pp_clock,
2847  init_clk => init_clk,
2848  clk_160 => clk_160,
2849  rt_clk => rt_clk,
2850  master_reset => master_reset,
2851  bp_reg_reset => bp_reg_reset,
2852  wdog_fifo_reset => wdog_fifo_reset,
2853 
2854  tob_fifo_busy_threshold => tob_fifo_busy_threshold(15 downto 0),
2855  bulk_fifo_busy_threshold => bulk_fifo_busy_threshold(15 downto 0),
2856  tob_fifo_xoff_threshold => tob_fifo_xoff_threshold(15 downto 0),
2857  bulk_fifo_xoff_threshold => bulk_fifo_xoff_threshold(15 downto 0),
2858 
2859  time_count => time_count,
2860  RESET => reset,
2861  backplane_control => backplane_control,
2862  aurora_chan_stat => aurora_chan_stat_18,
2863  aurora_channel_control => aurora_chan_control_18,
2864  chan_disable => chan_disable(18),
2865  aurora_user_clk => aurora_user_clk_18,
2866  s_axis_tvalid => s_axis_tvalid_18,
2867  s_axis_tlast => s_axis_tlast_18,
2868  tob_s_tready => tob_s_tready_18,
2869  s_axis_tdata => s_axis_tdata_18,
2870 
2871  --tob output axi bus --------------------------------------
2872  poll_chan => tob_poll_chan_18,
2873  tob_m_tvalid => tob_m_tvalid_18,
2874  tob_m_tlast => tob_m_tlast_18,
2875  tob_m_tready => tob_m_tready_18,
2876  tob_m_tdata => tob_m_tdata_18,
2877  tob_header_marker => tob_header_marker_18,
2878  tob_tail_marker => tob_tail_marker_18,
2879  hdr_crc_tag => hdr_crc_tag_18,
2880  comb_error_tag => comb_error_tag_18,
2881  --calo output axi bus --------------------------------------
2882  calo_poll_chan => calo_poll_chan_18,
2883  calo_m_tvalid => calo_m_tvalid_18,
2884  calo_m_fifo_tlast => calo_m_fifo_tlast_18,
2885  calo_m_axis_tready => calo_m_axis_tready_18,
2886  calo_s_axis_tready => calo_s_axis_tready_18,
2887 
2888  calo_m_axis_tdata => calo_m_axis_tdata_18,
2889  calo_header_marker => calo_header_marker_18,
2890  calo_tail_marker => calo_tail_marker_18,
2891 
2892  s_axi_ufc_rx_tdata => s_axi_ufc_rx_tdata_18,
2893  s_axi_ufc_rx_tvalid => s_axi_ufc_rx_tvalid_18,
2894  s_axi_ufc_rx_tlast => s_axi_ufc_rx_tlast_18,
2895 
2896  channel_busy => channel_busy(18),
2897  timeout_err => '0',
2898  L1A => L1A
2899  );
2900 
2901 
2902 
2903 
2904 ch19 : channel_fifo
2905  generic map (
2906  channel_num => x"013",
2907  lmem => x"0",
2908  max_packet_length => max_packet_length,
2909  sim => sim,
2910  axi_fifo => 0,
2911  jfex => jfex,
2912  debug => debug,
2913  fifo_instr => 0)
2914  port map (
2915  ipb_clk => ipb_clk,
2916  ipb_rst => ipb_rst,
2917  ipb_in => ipbw(N_SLV_CHANNEL_19),
2918  ipb_out => ipbr(N_SLV_CHANNEL_19),
2919 
2920  pp_clock => pp_clock,
2921  init_clk => init_clk,
2922  clk_160 => clk_160,
2923  rt_clk => rt_clk,
2924  master_reset => master_reset,
2925  bp_reg_reset => bp_reg_reset,
2926  wdog_fifo_reset => wdog_fifo_reset,
2927 
2928  tob_fifo_busy_threshold => tob_fifo_busy_threshold(15 downto 0),
2929  bulk_fifo_busy_threshold => bulk_fifo_busy_threshold(15 downto 0),
2930  tob_fifo_xoff_threshold => tob_fifo_xoff_threshold(15 downto 0),
2931  bulk_fifo_xoff_threshold => bulk_fifo_xoff_threshold(15 downto 0),
2932 
2933  time_count => time_count,
2934  RESET => reset,
2935  backplane_control => backplane_control,
2936  aurora_chan_stat => aurora_chan_stat_19,
2937  aurora_channel_control => aurora_chan_control_19,
2938  chan_disable => chan_disable(19),
2939  aurora_user_clk => aurora_user_clk_19,
2940  s_axis_tvalid => s_axis_tvalid_19,
2941  s_axis_tlast => s_axis_tlast_19,
2942  tob_s_tready => tob_s_tready_19,
2943  s_axis_tdata => s_axis_tdata_19,
2944 
2945  --tob output axi bus --------------------------------------
2946  poll_chan => tob_poll_chan_19,
2947  tob_m_tvalid => tob_m_tvalid_19,
2948  tob_m_tlast => tob_m_tlast_19,
2949  tob_m_tready => tob_m_tready_19,
2950  tob_m_tdata => tob_m_tdata_19,
2951  tob_header_marker => tob_header_marker_19,
2952  tob_tail_marker => tob_tail_marker_19,
2953  hdr_crc_tag => hdr_crc_tag_19,
2954  comb_error_tag => comb_error_tag_19,
2955  --calo output axi bus --------------------------------------
2956  calo_poll_chan => calo_poll_chan_19,
2957  calo_m_tvalid => calo_m_tvalid_19,
2958  calo_m_fifo_tlast => calo_m_fifo_tlast_19,
2959  calo_m_axis_tready => calo_m_axis_tready_19,
2960  calo_s_axis_tready => calo_s_axis_tready_19,
2961 
2962  calo_m_axis_tdata => calo_m_axis_tdata_19,
2963  calo_header_marker => calo_header_marker_19,
2964  calo_tail_marker => calo_tail_marker_19,
2965 
2966  s_axi_ufc_rx_tdata => s_axi_ufc_rx_tdata_19,
2967  s_axi_ufc_rx_tvalid => s_axi_ufc_rx_tvalid_19,
2968  s_axi_ufc_rx_tlast => s_axi_ufc_rx_tlast_19,
2969 
2970  channel_busy => channel_busy(19),
2971  timeout_err => '0',
2972  L1A => L1A
2973  );
2974 
2975 
2976 
2977 
2978 
2979 ch20 : channel_fifo
2980  generic map (
2981  channel_num => x"014",
2982  lmem => x"0",
2983  max_packet_length => max_packet_length,
2984  sim => sim,
2985  axi_fifo => 0,
2986  jfex => jfex,
2987  debug => debug,
2988  fifo_instr => 0)
2989  port map (
2990  ipb_clk => ipb_clk,
2991  ipb_rst => ipb_rst,
2992  ipb_in => ipbw(N_SLV_CHANNEL_20),
2993  ipb_out => ipbr(N_SLV_CHANNEL_20),
2994 
2995  pp_clock => pp_clock,
2996  clk_160 => clk_160,
2997  rt_clk => rt_clk,
2998  init_clk => init_clk,
2999  master_reset => master_reset,
3000  bp_reg_reset => bp_reg_reset,
3001  wdog_fifo_reset => wdog_fifo_reset,
3002 
3003 
3004  tob_fifo_busy_threshold => tob_fifo_busy_threshold(15 downto 0),
3005  bulk_fifo_busy_threshold => bulk_fifo_busy_threshold(15 downto 0),
3006  tob_fifo_xoff_threshold => tob_fifo_xoff_threshold(15 downto 0),
3007  bulk_fifo_xoff_threshold => bulk_fifo_xoff_threshold(15 downto 0),
3008 
3009  time_count => time_count,
3010  RESET => reset,
3011  backplane_control => backplane_control,
3012  aurora_chan_stat => aurora_chan_stat_20,
3013  aurora_channel_control => aurora_chan_control_20,
3014  chan_disable => chan_disable(20),
3015  aurora_user_clk => aurora_user_clk_20,
3016  s_axis_tvalid => s_axis_tvalid_20,
3017  s_axis_tlast => s_axis_tlast_20,
3018  tob_s_tready => tob_s_tready_20,
3019  s_axis_tdata => s_axis_tdata_20,
3020 
3021  --tob output axi bus --------------------------------------
3022  poll_chan => tob_poll_chan_20,
3023  tob_m_tvalid => tob_m_tvalid_20,
3024  tob_m_tlast => tob_m_tlast_20,
3025  tob_m_tready => tob_m_tready_20,
3026  tob_m_tdata => tob_m_tdata_20,
3027  tob_header_marker => tob_header_marker_20,
3028  tob_tail_marker => tob_tail_marker_20,
3029  hdr_crc_tag => hdr_crc_tag_20,
3030  comb_error_tag => comb_error_tag_20,
3031  --calo output axi bus --------------------------------------
3032  calo_poll_chan => calo_poll_chan_20,
3033  calo_m_tvalid => calo_m_tvalid_20,
3034  calo_m_fifo_tlast => calo_m_fifo_tlast_20,
3035  calo_m_axis_tready => calo_m_axis_tready_20,
3036  calo_s_axis_tready => calo_s_axis_tready_20,
3037 
3038  calo_m_axis_tdata => calo_m_axis_tdata_20,
3039  calo_header_marker => calo_header_marker_20,
3040  calo_tail_marker => calo_tail_marker_20,
3041 
3042  s_axi_ufc_rx_tdata => s_axi_ufc_rx_tdata_20,
3043  s_axi_ufc_rx_tvalid => s_axi_ufc_rx_tvalid_20,
3044  s_axi_ufc_rx_tlast => s_axi_ufc_rx_tlast_20,
3045 
3046  channel_busy => channel_busy(20),
3047  timeout_err => '0',
3048  L1A => L1A
3049  );
3050 
3051 
3052 
3053 
3054 
3055 ch21 : channel_fifo
3056  generic map (
3057  channel_num => x"015",
3058  lmem => x"0",
3059  max_packet_length => max_packet_length,
3060  sim => sim,
3061  jfex => jfex,
3062  debug => debug,
3063  fifo_instr => 0)
3064  port map (
3065  ipb_clk => ipb_clk,
3066  ipb_rst => ipb_rst,
3067  ipb_in => ipbw(N_SLV_CHANNEL_21),
3068  ipb_out => ipbr(N_SLV_CHANNEL_21),
3069 
3070  pp_clock => pp_clock,
3071  clk_160 => clk_160,
3072  rt_clk => rt_clk,
3073  init_clk => init_clk,
3074  master_reset => master_reset,
3075  bp_reg_reset => bp_reg_reset,
3076  wdog_fifo_reset => wdog_fifo_reset,
3077 
3078  tob_fifo_busy_threshold => tob_fifo_busy_threshold(15 downto 0),
3079  bulk_fifo_busy_threshold => bulk_fifo_busy_threshold(15 downto 0),
3080  tob_fifo_xoff_threshold => tob_fifo_xoff_threshold(15 downto 0),
3081  bulk_fifo_xoff_threshold => bulk_fifo_xoff_threshold(15 downto 0),
3082 
3083  time_count => time_count,
3084  RESET => reset,
3085  backplane_control => backplane_control,
3086  aurora_chan_stat => aurora_chan_stat_21,
3087  aurora_channel_control => aurora_chan_control_21,
3088  chan_disable => chan_disable(21),
3089  aurora_user_clk => aurora_user_clk_21,
3090  s_axis_tvalid => s_axis_tvalid_21,
3091  s_axis_tlast => s_axis_tlast_21,
3092  tob_s_tready => tob_s_tready_21,
3093  s_axis_tdata => s_axis_tdata_21,
3094 
3095  --tob output axi bus --------------------------------------
3096  poll_chan => tob_poll_chan_21,
3097  tob_m_tvalid => tob_m_tvalid_21,
3098  tob_m_tlast => tob_m_tlast_21,
3099  tob_m_tready => tob_m_tready_21,
3100  tob_m_tdata => tob_m_tdata_21,
3101  tob_header_marker => tob_header_marker_21,
3102  tob_tail_marker => tob_tail_marker_21,
3103  hdr_crc_tag => hdr_crc_tag_21,
3104  comb_error_tag => comb_error_tag_21,
3105  --calo output axi bus --------------------------------------
3106  calo_poll_chan => calo_poll_chan_21,
3107  calo_m_tvalid => calo_m_tvalid_21,
3108  calo_m_fifo_tlast => calo_m_fifo_tlast_21,
3109  calo_m_axis_tready => calo_m_axis_tready_21,
3110  calo_s_axis_tready => calo_s_axis_tready_21,
3111 
3112  calo_m_axis_tdata => calo_m_axis_tdata_21,
3113  calo_header_marker => calo_header_marker_21,
3114  calo_tail_marker => calo_tail_marker_21,
3115 
3116  s_axi_ufc_rx_tdata => s_axi_ufc_rx_tdata_21,
3117  s_axi_ufc_rx_tvalid => s_axi_ufc_rx_tvalid_21,
3118  s_axi_ufc_rx_tlast => s_axi_ufc_rx_tlast_21,
3119 
3120  channel_busy => channel_busy(21),
3121  timeout_err => '0',
3122  L1A => L1A
3123 
3124  );
3125 
3126 
3127 
3128 
3129 ch22 : channel_fifo
3130  generic map (
3131  channel_num => x"016",
3132  lmem => x"0",
3133  max_packet_length => max_packet_length,
3134  sim => sim,
3135  jfex => jfex,
3136  debug => debug,
3137  fifo_instr => 0)
3138  port map (
3139  ipb_clk => ipb_clk,
3140  ipb_rst => ipb_rst,
3141  ipb_in => ipbw(N_SLV_CHANNEL_22),
3142  ipb_out => ipbr(N_SLV_CHANNEL_22),
3143 
3144  pp_clock => pp_clock,
3145  clk_160 => clk_160,
3146  rt_clk => rt_clk,
3147  init_clk => init_clk,
3148  master_reset => master_reset,
3149  bp_reg_reset => bp_reg_reset,
3150  wdog_fifo_reset => wdog_fifo_reset,
3151 
3152  tob_fifo_busy_threshold => tob_fifo_busy_threshold(15 downto 0),
3153  bulk_fifo_busy_threshold => bulk_fifo_busy_threshold(15 downto 0),
3154  tob_fifo_xoff_threshold => tob_fifo_xoff_threshold(15 downto 0),
3155  bulk_fifo_xoff_threshold => bulk_fifo_xoff_threshold(15 downto 0),
3156 
3157  time_count => time_count,
3158  RESET => reset,
3159  backplane_control => backplane_control,
3160  aurora_chan_stat => aurora_chan_stat_22,
3161  aurora_channel_control => aurora_chan_control_22,
3162  chan_disable => chan_disable(22),
3163  aurora_user_clk => aurora_user_clk_22,
3164  s_axis_tvalid => s_axis_tvalid_22,
3165  s_axis_tlast => s_axis_tlast_22,
3166  tob_s_tready => tob_s_tready_22,
3167  s_axis_tdata => s_axis_tdata_22,
3168 
3169  --tob output axi bus --------------------------------------
3170  poll_chan => tob_poll_chan_22,
3171  tob_m_tvalid => tob_m_tvalid_22,
3172  tob_m_tlast => tob_m_tlast_22,
3173  tob_m_tready => tob_m_tready_22,
3174  tob_m_tdata => tob_m_tdata_22,
3175  tob_header_marker => tob_header_marker_22,
3176  tob_tail_marker => tob_tail_marker_22,
3177  hdr_crc_tag => hdr_crc_tag_22,
3178  comb_error_tag => comb_error_tag_22,
3179  --calo output axi bus --------------------------------------
3180  calo_poll_chan => calo_poll_chan_22,
3181  calo_m_tvalid => calo_m_tvalid_22,
3182  calo_m_fifo_tlast => calo_m_fifo_tlast_22,
3183  calo_m_axis_tready => calo_m_axis_tready_22,
3184  calo_s_axis_tready => calo_s_axis_tready_22,
3185 
3186  calo_m_axis_tdata => calo_m_axis_tdata_22,
3187  calo_header_marker => calo_header_marker_22,
3188  calo_tail_marker => calo_tail_marker_22,
3189 
3190  s_axi_ufc_rx_tdata => s_axi_ufc_rx_tdata_22,
3191  s_axi_ufc_rx_tvalid => s_axi_ufc_rx_tvalid_22,
3192  s_axi_ufc_rx_tlast => s_axi_ufc_rx_tlast_22,
3193 
3194  channel_busy => channel_busy(22),
3195  timeout_err => '0',
3196  L1A => L1A
3197 
3198  );
3199 
3200 
3201 
3202 
3203 ch23 : channel_fifo
3204  generic map (
3205  channel_num => x"017",
3206  lmem => x"0",
3207  max_packet_length => max_packet_length,
3208  sim => sim,
3209  jfex => jfex,
3210  debug => debug,
3211  fifo_instr => 0)
3212  port map (
3213  ipb_clk => ipb_clk,
3214  ipb_rst => ipb_rst,
3215  ipb_in => ipbw(N_SLV_CHANNEL_23),
3216  ipb_out => ipbr(N_SLV_CHANNEL_23),
3217 
3218  pp_clock => pp_clock,
3219  clk_160 => clk_160,
3220  rt_clk => rt_clk,
3221  init_clk => init_clk,
3222  master_reset => master_reset,
3223  bp_reg_reset => bp_reg_reset,
3224  wdog_fifo_reset => wdog_fifo_reset,
3225 
3226  tob_fifo_busy_threshold => tob_fifo_busy_threshold(15 downto 0),
3227  bulk_fifo_busy_threshold => bulk_fifo_busy_threshold(15 downto 0),
3228  tob_fifo_xoff_threshold => tob_fifo_xoff_threshold(15 downto 0),
3229  bulk_fifo_xoff_threshold => bulk_fifo_xoff_threshold(15 downto 0),
3230 
3231  time_count => time_count,
3232  RESET => reset,
3233  backplane_control => backplane_control,
3234  aurora_chan_stat => aurora_chan_stat_23,
3235  aurora_channel_control => aurora_chan_control_23,
3236  chan_disable => chan_disable(23),
3237  aurora_user_clk => aurora_user_clk_23,
3238  s_axis_tvalid => s_axis_tvalid_23,
3239  s_axis_tlast => s_axis_tlast_23,
3240  tob_s_tready => tob_s_tready_23,
3241  s_axis_tdata => s_axis_tdata_23,
3242 
3243  --tob output axi bus --------------------------------------
3244  poll_chan => tob_poll_chan_23,
3245  tob_m_tvalid => tob_m_tvalid_23,
3246  tob_m_tlast => tob_m_tlast_23,
3247  tob_m_tready => tob_m_tready_23,
3248  tob_m_tdata => tob_m_tdata_23,
3249  tob_header_marker => tob_header_marker_23,
3250  tob_tail_marker => tob_tail_marker_23,
3251  hdr_crc_tag => hdr_crc_tag_23,
3252  comb_error_tag => comb_error_tag_23,
3253  --calo output axi bus --------------------------------------
3254  calo_poll_chan => calo_poll_chan_23,
3255  calo_m_tvalid => calo_m_tvalid_23,
3256  calo_m_fifo_tlast => calo_m_fifo_tlast_23,
3257  calo_m_axis_tready => calo_m_axis_tready_23,
3258  calo_s_axis_tready => calo_s_axis_tready_23,
3259 
3260  calo_m_axis_tdata => calo_m_axis_tdata_23,
3261  calo_header_marker => calo_header_marker_23,
3262  calo_tail_marker => calo_tail_marker_23,
3263 
3264  s_axi_ufc_rx_tdata => s_axi_ufc_rx_tdata_23,
3265  s_axi_ufc_rx_tvalid => s_axi_ufc_rx_tvalid_23,
3266  s_axi_ufc_rx_tlast => s_axi_ufc_rx_tlast_23,
3267 
3268  channel_busy => channel_busy(23),
3269  timeout_err => '0',
3270  L1A => L1A
3271  );
3272 
3273 
3274 end generate gen_jfex_chan;
3275 
3276 gen_efex_chan: if jfex=0 generate
3277 
3278 channel_busy(23 downto 12) <= (others => '0');
3279 
3280 end generate gen_efex_chan;
3281 
3282 multichannel_busy <= OR channel_busy;
3283 
3284 end RTL;
--------------------------------------------------- Backplane Control Bus bit Definitions -----------...