Skip to content

Commit 512da65

Browse files
[Spelling] Fixed Spelling in VPR Test, Draw, Place, and Timing
These folders in VPR had ok spelling. Route, power, and pack have a lot more spelling mistakes and will come in another PR.
1 parent a50b1c5 commit 512da65

39 files changed

+94
-94
lines changed

vpr/scripts/profile/parse_and_plot_detailed.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
import csv
1313
from datetime import datetime
1414

15-
# generate images wihtout having a window appear
15+
# generate images without having a window appear
1616
import matplotlib
1717

1818
matplotlib.use("Agg")

vpr/src/draw/breakpoint.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66
*
77
* This file holds the declaration of the breakpoint class, and also some of the breakpoint related functions.
88
*
9-
* This class holds the definiton of type Breakpoint as well as all related functions.
9+
* This class holds the definition of type Breakpoint as well as all related functions.
1010
* Breakpoints can be set through the GUI anytime during placement or routing. Breakpoints can also be activated,
1111
* deactivated, and deleted. Each breakpoint has a type (BT_MOVE_NUM, BT_TEMP_NUM, BT_FROM_BLOCK, BT_ROUTER_ITER, BT_ROUTE_NET_ID, BT_EXPRESSION) and holds the
1212
* values for corresponding to its type, as well as a boolean variable to activate and deactivate a breakpoint. It should be noted that each breakpoint can only have one type and hold one value corresponding to that type.
1313
* More complicated breakpoints are set using an expression. (e.g move_num > 3 && block_id == 11)
14-
* Breakpoints can be create using 3 constructors, the default contructor that doesn't identify the type and sets a breakpoint that is never reached,
15-
* a constructor that takes in the type and an int value, and lastly a constructor that takes in the type and the sting that holds the expression.
14+
* Breakpoints can be create using 3 constructors, the default constructor that doesn't identify the type and sets a breakpoint that is never reached,
15+
* a constructor that takes in the type and an int value, and lastly a constructor that takes in the type and the string that holds the expression.
1616
* (e.g Breakpoint(BT_MOVE_NUM, 4) or Breakpoint(BT_EXPRESSION, "move_num += 3")) The == operator has also been provided which returns true when two
1717
* breakpoints have the same type, and the same value corresponding to the type.
1818
*/
@@ -69,7 +69,7 @@ class Breakpoint {
6969
bt_route_net_id = breakpoint_value;
7070
}
7171

72-
//sets the breakpoint type to BT_EXPRESSION and sets the string member bt_expression to the expresssion the user inputted. e.g Breakpoint(BT_EXPRESSION, "move_num==3")
72+
//sets the breakpoint type to BT_EXPRESSION and sets the string member bt_expression to the expression the user inputted. e.g Breakpoint(BT_EXPRESSION, "move_num==3")
7373
//the user can set breakpoints, during routing or placement, using an expression with the available variables and operators
7474
Breakpoint(bp_type ty, std::string expr) {
7575
type = ty;
@@ -99,7 +99,7 @@ class Breakpoint {
9999
}
100100
};
101101

102-
//breakpoint realted functions to be called from draw.cpp, place.cpp and route_timing.cpp
102+
//breakpoint related functions to be called from draw.cpp, place.cpp and route_timing.cpp
103103

104104
//checks for all types of breakpoint and returns true if a breakpoint is encountered
105105
bool check_for_breakpoints(bool in_placer);

vpr/src/draw/draw.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1334,7 +1334,7 @@ ezgl::color get_block_type_color(t_physical_tile_type_ptr type) {
13341334
return color;
13351335
}
13361336

1337-
//Lightens a color's luminance [0, 1] by an aboslute 'amount'
1337+
//Lightens a color's luminance [0, 1] by an absolute 'amount'
13381338
ezgl::color lighten_color(ezgl::color color, float amount) {
13391339
constexpr double MAX_LUMINANCE = 0.95; //Clip luminance so it doesn't go full white
13401340
auto hsl = color2hsl(color);

vpr/src/draw/draw.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/**
33
* @file draw.h
44
*
5-
* The main drawing file. Contains the setup for ezgl application, ui setup, and graphis functions
5+
* The main drawing file. Contains the setup for ezgl application, ui setup, and graphics functions
66
*
77
* This is VPR's main graphics application program. The program interacts with ezgl/graphics.hpp,
88
* which provides an API for displaying graphics on both X11 and Win32. The most important

vpr/src/draw/draw_basic.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -520,13 +520,13 @@ void draw_routing_bb(ezgl::renderer* g) {
520520
//
521521
//In the graphics we represent this by drawing the BB so that legal RR node start/end points
522522
//are contained within the drawn box. Since VPR associates each x/y channel location to
523-
//the right/top of the tile with the same x/y cordinates, this means we draw the box so that:
523+
//the right/top of the tile with the same x/y coordinates, this means we draw the box so that:
524524
// * The left edge is to the left of the channel at bb xmin (including the channel at xmin)
525525
// * The bottom edge is to the below of the channel at bb ymin (including the channel at ymin)
526526
// * The right edge is to the right of the channel at bb xmax (including the channel at xmax)
527527
// * The top edge is to the right of the channel at bb ymax (including the channel at ymax)
528528
//Since tile_x/tile_y correspond to the drawing coordinates the block at grid x/y's bottom-left corner
529-
//this means we need to shift the top/right drawn co-ordinate one tile + channel width right/up so
529+
//this means we need to shift the top/right drawn coordinate one tile + channel width right/up so
530530
//the drawn box contains the top/right channels
531531
double draw_xlow = draw_coords->tile_x[bb->xmin];
532532
double draw_ylow = draw_coords->tile_y[bb->ymin];
@@ -617,7 +617,7 @@ void draw_routed_net(ParentNetId net_id, ezgl::renderer* g) {
617617
draw_state->draw_rr_node[inode].color = DEFAULT_RR_NODE_COLOR;
618618
}
619619

620-
// When drawing a new branch, add the parent node to the vector to ensure that the conenction is drawn.
620+
// When drawing a new branch, add the parent node to the vector to ensure that the connection is drawn.
621621
if (rr_nodes_to_draw.empty() && rt_node.parent().has_value()) {
622622
rr_nodes_to_draw.push_back(rt_node.parent().value().inode);
623623
}

vpr/src/draw/draw_basic.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ void draw_routed_timing_edge_connection(tatum::NodeId src_tnode,
127127
ezgl::renderer* g);
128128

129129
/* Draws any placement macros (e.g. carry chains, which require specific relative placements
130-
* between some blocks) if the Placement Macros (in the GUI) is seelected.
130+
* between some blocks) if the Placement Macros (in the GUI) is selected.
131131
*/
132132
void draw_placement_macros(ezgl::renderer* g);
133133

vpr/src/draw/draw_color.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ static constexpr ezgl::color blk_ALICEBLUE(0xF0, 0xF8, 0xFF);
165165
//The colours used to draw block types
166166
const std::vector<ezgl::color> block_colors{
167167
//This first set of colours is somewhat curated to yield
168-
//a nice colour pallette
168+
//a nice colour palette
169169
blk_BISQUE, //EMPTY type is usually the type with index 0, so this colour
170170
//usually unused
171171
blk_LIGHTGREY,

vpr/src/draw/draw_debug.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#include "draw_global.h"
55
#include "vtr_expr_eval.h"
66

7-
//keeps track of open windows to avoid reopenning windows that are alerady open
7+
//keeps track of open windows to avoid reopenning windows that are already open
88
struct open_windows {
99
bool debug_window = false;
1010
bool advanced_window = false;
@@ -31,7 +31,7 @@ class DrawDebuggerGlobals {
3131
}
3232
};
3333

34-
//the global variable that holds all global variables realted to breakpoint graphics
34+
//the global variable that holds all global variables related to breakpoint graphics
3535
DrawDebuggerGlobals draw_debug_glob_vars;
3636

3737
//draws main debugger window
@@ -360,7 +360,7 @@ void refresh_bpList() {
360360
gtk_widget_set_halign(checkbox, GTK_ALIGN_END);
361361
gtk_widget_set_valign(checkbox, GTK_ALIGN_CENTER);
362362

363-
//button seetings
363+
//button settings
364364
GtkWidget* deleteButton = gtk_button_new();
365365
GtkWidget* image = gtk_image_new_from_file("src/draw/trash.png");
366366
gtk_button_set_image((GtkButton*)deleteButton, image);

vpr/src/draw/draw_noc.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ void draw_noc(ezgl::renderer* g) {
3636
return;
3737
}
3838

39-
// check that the NoC tile has a capacity greater than 0 (can we assume it always will?) and if not then we cant draw anything as the NoC tile won't be drawn
39+
// check that the NoC tile has a capacity greater than 0 (can we assume it always will?) and if not then we can't draw anything as the NoC tile won't be drawn
4040
/* since the vector of routers all have a reference positions on the grid to the corresponding physical tile, just use the first router in the vector and get its position, then use this to get the capacity of a noc router tile
4141
*/
4242
const auto& type = device_ctx.grid.get_physical_type({router_list.begin()->get_router_grid_position_x(),
@@ -54,7 +54,7 @@ void draw_noc(ezgl::renderer* g) {
5454
// Now construct the coordinates for the markers that represent the connections between links (relative to the noc router tile position)
5555
ezgl::rectangle noc_connection_marker_bbox = get_noc_connection_marker_bbox(noc_router_logical_type);
5656

57-
// only draw the noc useage if the user selected the option
57+
// only draw the noc usage if the user selected the option
5858
if (draw_state->draw_noc == DRAW_NOC_LINK_USAGE) {
5959
draw_noc_usage(noc_link_colors);
6060

vpr/src/draw/draw_searchbar.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ void draw_highlight_fan_in_fan_out(const std::set<RRNodeId>& nodes);
5858
std::set<RRNodeId> draw_expand_non_configurable_rr_nodes(RRNodeId hit_node);
5959

6060
/* Sets the color of all clbs, nets and rr_nodes to the default.
61-
* as well as clearing the highlighed sub-block */
61+
* as well as clearing the highlighted sub-block */
6262
void deselect_all();
6363

6464
#endif /* NO_GRAPHICS */

0 commit comments

Comments
 (0)