Skip to content

Commit ad7d6cb

Browse files
add a few more doxygen comments. PR comments are all addressed
1 parent fe1ee45 commit ad7d6cb

File tree

4 files changed

+12
-6
lines changed

4 files changed

+12
-6
lines changed

vpr/src/draw/draw.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -570,11 +570,8 @@ void free_draw_structs() {
570570
#endif /* NO_GRAPHICS */
571571
}
572572

573-
void init_draw_coords(float width_val, const BlkLocRegistry& blk_loc_registry) {
573+
void init_draw_coords(float clb_width, const BlkLocRegistry& blk_loc_registry) {
574574
#ifndef NO_GRAPHICS
575-
/* Load the arrays containing the left and bottom coordinates of the clbs *
576-
* forming the FPGA. tile_width_val sets the width and height of a drawn *
577-
* clb. */
578575
t_draw_state* draw_state = get_draw_state_vars();
579576
t_draw_coords* draw_coords = get_draw_coords_vars();
580577
const auto& device_ctx = g_vpr_ctx.device();
@@ -598,7 +595,7 @@ void init_draw_coords(float width_val, const BlkLocRegistry& blk_loc_registry) {
598595
draw_state->draw_rr_node[inode].node_highlighted = false;
599596
}
600597
}
601-
draw_coords->tile_width = width_val;
598+
draw_coords->tile_width = clb_width;
602599
draw_coords->pin_size = 0.3;
603600
for (const auto& type : device_ctx.physical_tile_types) {
604601
auto num_pins = type.num_pins;

vpr/src/draw/draw.h

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,14 @@ extern ezgl::application application;
4444

4545
void update_screen(ScreenUpdatePriority priority, const char* msg, enum pic_type pic_on_screen_val, std::shared_ptr<SetupTimingInfo> timing_info);
4646

47-
//Initializes the drawing locations.
4847
//FIXME: Currently broken if no rr-graph is loaded
48+
/**
49+
* @brief Load the arrays containing the left and bottom coordinates of the clbs.
50+
* forming the FPGA.
51+
*
52+
* @param clb_width The width and height of a drawn clb.
53+
* @param blk_loc_registry A reference to placement location information.
54+
*/
4955
void init_draw_coords(float clb_width, const BlkLocRegistry& blk_loc_registry);
5056

5157
/* Sets the static show_graphics and gr_automode variables to the *

vpr/src/draw/draw_global.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ static t_draw_coords draw_coords;
2828

2929
/**
3030
* @brief Stores a reference to a PlaceLocVars to be used in the graphics code.
31+
* @details This reference let us pass in a currently-being-optimized placement state,
32+
* rather than using the global placement state in placement context that is valid only once placement is done
3133
*/
3234
static std::optional<std::reference_wrapper<const BlkLocRegistry>> blk_loc_registry_ref;
3335

vpr/src/timing/VprTimingGraphResolver.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ class VprTimingGraphResolver : public tatum::TimingGraphNameResolver {
3737
const AnalysisDelayCalculator& delay_calc_;
3838
e_timing_report_detail detail_level_ = e_timing_report_detail::NETLIST;
3939
bool is_flat_;
40+
///@brief contains information about the placement of clustered blocks.
4041
const BlkLocRegistry& blk_loc_registry_;
4142
};
4243

0 commit comments

Comments
 (0)