Skip to content

Commit 9a1ef9d

Browse files
rename copy_locs_to_global_state() to update_global_state()
1 parent 7fff850 commit 9a1ef9d

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

vpr/src/analytical_place/detailed_placer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ void AnnealerDetailedPlacer::optimize_placement() {
101101
placer_->place();
102102

103103
// Copy the placement solution into the global placement solution.
104-
placer_->copy_locs_to_global_state();
104+
placer_->update_global_state();
105105

106106
// Since the placement was modified, need to resynchronize the pins in the
107107
// clusters.

vpr/src/place/place.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ void try_place(const Netlist<>& net_list,
120120
* the global context directly. We need to copy its internal data structures
121121
* to the global placement context before it goes out of scope.
122122
*/
123-
placer.copy_locs_to_global_state();
123+
placer.update_global_state();
124124

125125
// Clean the variables in the placement context. This will deallocate memory
126126
// used by variables which were allocated in the placement context and are

vpr/src/place/placer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ void Placer::place() {
376376
log_printer_.print_post_placement_stats();
377377
}
378378

379-
void Placer::copy_locs_to_global_state() {
379+
void Placer::update_global_state() {
380380
auto& mutable_palce_ctx = g_vpr_ctx.mutable_placement();
381381
auto& mutable_routing_ctx = g_vpr_ctx.mutable_routing();
382382

vpr/src/place/placer.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,10 @@ class Placer {
6767
void place();
6868

6969
/**
70-
* @brief Copies the placement location variables into the given global placement context.
71-
*
70+
* @brief Copies the placement location variables into the global placement context.
7271
* This method also updates the global routing context with the estimated routing channel utilization.
7372
*/
74-
void copy_locs_to_global_state();
73+
void update_global_state();
7574

7675
private:
7776
/// Holds placement algorithm parameters

0 commit comments

Comments
 (0)