CONSTANTc_burst_phy_nof_block:NATURAL:=c_usr_nof_streams_per_bus;-- burst of 4 usr blocks per t0 per phy lane
CONSTANTc_phy_block_len:NATURAL:=g_usr_block_len;-- no data packing so phy frame is about as long as the user frame (expect for few overhead words)
CONSTANTc_phy_rx_fifo_len:NATURAL:=c_phy_block_len*1;-- assume only need to store less than one block in practise
CONSTANTc_phy_rx_fifo_size:NATURAL:=ceil_value(c_phy_rx_fifo_len,c_bram_m9k_fifo_depth);-- use tr_nonbonded Rx dual clock FIFO to buffer for dp_distribute
CONSTANTc_rx_output_fifo_fill:NATURAL:=g_usr_block_len;-- keep a full block in the FIFO to ensure that dp_bsn_align gets input without data not valid gaps when the lane rate is slower (as with tr_nonbonded)
-- . BSN aligner timeouts
CONSTANTc_sop_timeout:NATURAL:=(c_burst_bsn_latency+1)*g_usr_block_per;-- wait for sop for some block periods
g_nof_bus=>c_unb1_board_nof_bn,-- 4 to 4 nodes in mesh
-- User
g_usr_use_complex=>TRUE,
g_usr_data_w=>g_usr_data_w,
g_usr_frame_len=>g_usr_block_len,
g_usr_nof_streams=>c_usr_nof_streams_per_bus,
-- Phy
g_phy_nof_serial=>g_mesh_nof_serial,
g_phy_gx_mbps=>g_mesh_gx_mbps,
g_phy_rx_fifo_size=>c_phy_rx_fifo_size,
g_phy_ena_reorder=>g_mesh_ena_reorder,
-- Tx
g_use_tx=>g_mesh_use_tx,-- optionally do support diag Tx
g_tx_input_use_fifo=>FALSE,-- no user Tx
-- Rx
g_use_rx=>TRUE,-- user Rx must be TRUE for DB in FN,
g_rx_output_use_fifo=>TRUE,-- Rx output provides FIFOs to ensure that dp_distribute does not get blocked due to substantial backpressure on another output
g_rx_output_fifo_size=>c_rx_output_fifo_size,
g_rx_output_fifo_fill=>c_rx_output_fifo_fill,
g_rx_timeout_w=>c_rx_timeout_w,
-- Monitoring
g_mon_select=>g_mesh_mon_select,
g_mon_nof_words=>g_mesh_mon_nof_words,
g_mon_use_sync=>g_mesh_mon_use_sync
)
PORTMAP(
chip_id=>chip_id,
mm_rst=>mm_rst,
mm_clk=>mm_clk,
dp_rst=>dp_rst,
dp_clk=>dp_clk,
dp_sync=>dp_pps,
tr_clk=>tr_mesh_clk,
cal_clk=>cal_clk,
-- User interface (4 nodes)(4 input streams)
rx_usr_siso_2arr=>rx_usr_siso_2arr,
rx_usr_sosi_2arr=>rx_usr_sosi_2arr,-- Rx (user Tx from FN to BN is unused)