Skip to content
Snippets Groups Projects
Commit cd5c444f authored by Eric Kooistra's avatar Eric Kooistra
Browse files

Clarify range of p.nof_cycles_dly.

parent 2bb8152b
No related branches found
No related tags found
1 merge request!273Use t_parameters and t_input to register the statistics info. Make sure that...
Pipeline #34728 passed
...@@ -333,15 +333,17 @@ BEGIN ...@@ -333,15 +333,17 @@ BEGIN
END PROCESS; END PROCESS;
-- Derive and pipeline dynamic parameters that depend on node id and MM, but are otherwise fixed -- Derive and pipeline dynamic parameters that depend on node id and MM, but are otherwise fixed
-- . c_sdp_offload_time = 600000 * 5 ns = 3 ms, so max gn_index = 31 starts
-- after 93 ms, to just fit within XST T_int min is 100 ms.
p_reg_parameters : PROCESS(dp_clk) p_reg_parameters : PROCESS(dp_clk)
BEGIN BEGIN
IF rising_edge(dp_clk) THEN IF rising_edge(dp_clk) THEN
p.gn_index <= gn_index; p.gn_index <= gn_index; -- gn_index is in 0:31 range
p.pn_index <= func_sdp_gn_index_to_pn_index(p.gn_index); p.pn_index <= func_sdp_gn_index_to_pn_index(p.gn_index);
p.offset_rn <= TO_UINT(ring_info.O_rn); p.offset_rn <= TO_UINT(ring_info.O_rn);
p.rn_index <= p.gn_index - p.offset_rn; p.rn_index <= p.gn_index - p.offset_rn;
p.local_si_offset <= p.pn_index * c_sdp_S_pn; p.local_si_offset <= p.pn_index * c_sdp_S_pn;
p.nof_cycles_dly <= p.gn_index * g_offload_time; p.nof_cycles_dly <= p.gn_index * g_offload_time; -- max gn_index = 31
p.nof_rn <= TO_UINT(ring_info.N_rn); p.nof_rn <= TO_UINT(ring_info.N_rn);
p.nof_used_P_sq <= smallest(p.nof_rn / 2 + 1, g_P_sq); p.nof_used_P_sq <= smallest(p.nof_rn / 2 + 1, g_P_sq);
p.remote_rn <= func_ring_nof_hops_to_source_rn(r.instance_count, p.rn_index, p.nof_rn, g_crosslets_direction); p.remote_rn <= func_ring_nof_hops_to_source_rn(r.instance_count, p.rn_index, p.nof_rn, g_crosslets_direction);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment