Skip to content

Commit

Permalink
fix failure in vtr_reg_strong/strong_graphics_commands
Browse files Browse the repository at this point in the history
  • Loading branch information
soheilshahrouz committed Nov 20, 2024
1 parent d923d75 commit c616254
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion vpr/src/base/read_options.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1377,7 +1377,7 @@ argparse::ArgumentParser create_arg_parser(const std::string& prog_name, t_optio
" * set_nets <int>\n"
" Sets the net drawing state\n"
" * set_cpd <int>\n"
" Sets the criticla path delay drawing state\n"
" Sets the critical path delay drawing state\n"
" * set_routing_util <int>\n"
" Sets the routing utilization drawing state\n"
" * set_clip_routing_util <int>\n"
Expand Down
9 changes: 0 additions & 9 deletions vpr/src/place/place.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,15 +95,6 @@ void try_place(const Netlist<>& net_list,

Placer placer(net_list, placer_opts, analysis_opts, noc_opts, directs, place_delay_model, cube_bb, is_flat, /*quiet=*/false);

#ifndef NO_GRAPHICS
if (placer.noc_cost_handler().has_value()) {
get_draw_state_vars()->set_noc_link_bandwidth_usages_ref(placer.noc_cost_handler()->get_link_bandwidth_usages());
}
#endif

const int width_fac = placer_opts.place_chan_width;
init_draw_coords((float)width_fac, placer.placer_state().blk_loc_registry());

placer.place();

free_placement_structs();
Expand Down
11 changes: 11 additions & 0 deletions vpr/src/place/placer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,17 @@ Placer::Placer(const Netlist<>& net_list,
blk_loc_registry.place_sync_external_block_connections(block_id);
}

if (!quiet) {
#ifndef NO_GRAPHICS
if (noc_cost_handler_.has_value()) {
get_draw_state_vars()->set_noc_link_bandwidth_usages_ref(noc_cost_handler_->get_link_bandwidth_usages());
}
#endif

const int width_fac = placer_opts.place_chan_width;
init_draw_coords((float)width_fac, placer_state_.blk_loc_registry());
}

// Allocate here because it goes into timing critical code where each memory allocation is expensive
pb_gpin_lookup_ = IntraLbPbPinLookup(device_ctx.logical_block_types);
// Enables fast look-up of atom pins connect to CLB pins
Expand Down
2 changes: 0 additions & 2 deletions vpr/src/place/placer.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,6 @@ class Placer {

std::unique_ptr<PlacementAnnealer> annealer_;



t_timing_analysis_profile_info pre_place_timing_stats_;
t_timing_analysis_profile_info pre_quench_timing_stats_;
t_timing_analysis_profile_info post_quench_timing_stats_;
Expand Down

0 comments on commit c616254

Please sign in to comment.