@@ -260,7 +260,8 @@ static int count_connections();
260
260
static void commit_td_cost (const t_pl_blocks_to_be_moved& blocks_affected,
261
261
PlacerContext& placer_ctx);
262
262
263
- static void revert_td_cost (const t_pl_blocks_to_be_moved& blocks_affected);
263
+ static void revert_td_cost (const t_pl_blocks_to_be_moved& blocks_affected,
264
+ PlacerTimingContext& p_timing_ctx);
264
265
265
266
static void invalidate_affected_connections (
266
267
const t_pl_blocks_to_be_moved& blocks_affected,
@@ -1536,7 +1537,7 @@ static e_move_result try_swap(const t_annealing_state* state,
1536
1537
1537
1538
if (place_algorithm == CRITICALITY_TIMING_PLACE) {
1538
1539
/* Unstage the values stored in proposed_* data structures */
1539
- revert_td_cost (blocks_affected);
1540
+ revert_td_cost (blocks_affected, placer_ctx. mutable_timing () );
1540
1541
}
1541
1542
1542
1543
if (proposed_action.logical_blk_type_index != -1 ) { // if the agent proposed the block type, then collect the block type stat
@@ -1788,7 +1789,8 @@ static void commit_td_cost(const t_pl_blocks_to_be_moved& blocks_affected,
1788
1789
1789
1790
// Reverts modifications to proposed_connection_delay and proposed_connection_timing_cost based on
1790
1791
// the move proposed in blocks_affected
1791
- static void revert_td_cost (const t_pl_blocks_to_be_moved& blocks_affected) {
1792
+ static void revert_td_cost (const t_pl_blocks_to_be_moved& blocks_affected,
1793
+ PlacerTimingContext& p_timing_ctx) {
1792
1794
#ifndef VTR_ASSERT_SAFE_ENABLED
1793
1795
static_cast <void >(blocks_affected);
1794
1796
#else
@@ -1797,7 +1799,6 @@ static void revert_td_cost(const t_pl_blocks_to_be_moved& blocks_affected) {
1797
1799
auto & cluster_ctx = g_vpr_ctx.clustering ();
1798
1800
auto & clb_nlist = cluster_ctx.clb_nlist ;
1799
1801
1800
- auto & p_timing_ctx = g_placer_ctx.mutable_timing ();
1801
1802
auto & proposed_connection_delay = p_timing_ctx.proposed_connection_delay ;
1802
1803
auto & proposed_connection_timing_cost = p_timing_ctx.proposed_connection_timing_cost ;
1803
1804
0 commit comments