Skip to content

Parsing Initial Placement WL and CPD #2938

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Mar 19, 2025
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions vpr/src/place/placement_log_printer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,10 @@ void PlacementLogPrinter::print_post_placement_stats() const {
VTR_LOG("Swaps called: %d\n", swap_stats.num_ts_called);
placer_.annealer_->get_move_abortion_logger().report_aborted_moves();

VTR_LOG("\n");
double expected_wirelength = placer_.net_cost_handler_.get_total_wirelength_estimate();
VTR_LOG("BB estimate of min-dist (placement) wire length: %.0f\n", expected_wirelength);

if (placer_.placer_opts_.place_algorithm.is_timing_driven()) {
//Final timing estimate
VTR_ASSERT(placer_.timing_info_);
Expand Down
2 changes: 0 additions & 2 deletions vpr/src/place/placer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -261,8 +261,6 @@ int Placer::check_placement_costs_() {
double timing_cost_check;

const auto [bb_cost_check, expected_wirelength] = net_cost_handler_.comp_bb_cost(e_cost_methods::CHECK);
VTR_LOGV(!log_printer_.quiet(),
"\nBB estimate of min-dist (placement) wire length: %.0f\n", expected_wirelength);

if (fabs(bb_cost_check - costs_.bb_cost) > costs_.bb_cost * PL_INCREMENTAL_COST_TOLERANCE) {
VTR_LOG_ERROR(
Expand Down
1 change: 1 addition & 0 deletions vtr_flow/parse/parse_config/common/vpr.place.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#VPR Place Metrics
initial_placed_wirelength_est;vpr.out;Initial placement BB estimate of wirelength:\s*(\d+)
placed_wirelength_est;vpr.out;BB estimate of min-dist \(placement\) wire length: (\d+)

#VPR Number of heap operations
Expand Down
1 change: 1 addition & 0 deletions vtr_flow/parse/parse_config/timing/vpr.place.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
%include "../common/vpr.place.txt"

#VPR Place Timing Metrics
initial_placed_CPD_est;vpr.out;Initial placement estimated Critical Path Delay \(CPD\): (.*) ns
placed_CPD_est;vpr.out;Placement estimated critical path delay \(least slack\): (.*) ns
placed_setup_TNS_est;vpr.out;Placement estimated setup Total Negative Slack \(sTNS\): (.*) ns
placed_setup_WNS_est;vpr.out;Placement estimated setup Worst Negative Slack \(sWNS\): (.*) ns
Expand Down