Skip to content

Commit 39ad2b7

Browse files
[AP][Legalizer] Added Ability to Generate a Mass Report
While working on the mass abstraction in the partial legalizer of the globlal placer, found that I needed a lot more information on the device to be able to debug the mass calculations. Added a command-line option which will generate a mass report if requested. This mass report contains useful information on the device, the netlist, and the mass / capacities computed in the mass calculator.
1 parent 7933a6c commit 39ad2b7

17 files changed

+661
-55
lines changed

doc/src/vpr/command_line_usage.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1336,6 +1336,15 @@ Analytical Placement is generally split into three stages:
13361336

13371337
**Default:** ``1``
13381338

1339+
.. option:: --ap_generate_mass_report {on | off}
1340+
1341+
Controls whether to generate a report on how the partial legalizer
1342+
within the AP flow calculates the mass of primitives and the
1343+
capacity of tiles on the device. This report is useful when
1344+
debugging the partial legalizer.
1345+
1346+
**Default:** ``off``
1347+
13391348

13401349
.. _router_options:
13411350

vpr/src/analytical_place/analytical_placement_flow.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ static PartialPlacement run_global_placer(const t_ap_opts& ap_opts,
144144
device_ctx.physical_tile_types,
145145
pre_cluster_timing_manager,
146146
ap_opts.ap_timing_tradeoff,
147+
ap_opts.generate_mass_report,
147148
ap_opts.num_threads,
148149
ap_opts.log_verbosity);
149150
return global_placer->place();

0 commit comments

Comments
 (0)