Skip to content

Commit 79aa864

Browse files
[APPack] Fixed issue where density estimation was not used
1 parent 5c718b2 commit 79aa864

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

vpr/src/analytical_place/analytical_placement_flow.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,8 @@ void run_analytical_placement_flow(t_vpr_setup& vpr_setup) {
251251
// that downstream stages (e.g. RAM mapper, global placement) can query realistic
252252
// device dimensions before packing. The packer may later grow or shrink the device
253253
// size to match the actual resource requirements after packing completes.
254-
DeviceSizeEstimator device_size_estimator(vpr_setup, *device_ctx.arch, prepacker);
254+
DeviceSizeEstimator device_size_estimator(vpr_setup, *device_ctx.arch, prepacker,
255+
/*always_estimate_resource_requirement=*/ap_opts.full_legalizer_type == e_ap_full_legalizer::APPack);
255256

256257
// Set up the dedicated clock networks (if used) now that the device grid
257258
// exists. This must happen before any RR graph is built in this flow

vpr/src/pack/appack_context.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ void APPackContext::adjust_for_device_size_estimate(
6464

6565
if (any_type_needs_denser_packing) {
6666
VTR_LOG("Device size estimate predicts a tight packing; increased the max candidate distance threshold for the affected block type(s).\n");
67-
max_distance_threshold_manager.print_max_dist_thresholds(logical_block_types);
6867
}
6968

7069
// TODO: This should be capable of turning on unrelated clustering as well if the

vpr/src/pack/appack_max_dist_th_manager.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@ void APPackMaxDistThManager::init(const std::vector<std::string>& max_dist_ths,
3939

4040
// Set the initialized flag to true.
4141
is_initialized_ = true;
42-
43-
print_max_dist_thresholds(logical_block_types);
4442
}
4543

4644
void APPackMaxDistThManager::auto_set_max_distance_thresholds(const std::vector<t_logical_block_type>& logical_block_types,

vpr/src/pack/pack.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,8 @@ bool try_pack(const t_packer_opts& packer_opts,
358358
e_packer_state current_packer_state = e_packer_state::DEFAULT;
359359

360360
while (current_packer_state != e_packer_state::SUCCESS && current_packer_state != e_packer_state::FAILURE) {
361+
if (appack_ctx.appack_options.use_appack)
362+
appack_ctx.max_distance_threshold_manager.print_max_dist_thresholds(device_ctx.logical_block_types);
361363
VTR_LOG("Packing with pin utilization targets: %s\n", cluster_legalizer.get_target_external_pin_util().to_string().c_str());
362364
VTR_LOG("Packing with high fanout thresholds: %s\n", high_fanout_thresholds.to_string().c_str());
363365
//Cluster the netlist

0 commit comments

Comments
 (0)