Skip to content

Commit 57ff88e

Browse files
apply PR comments
1 parent 30d9dbf commit 57ff88e

21 files changed

+140
-143
lines changed

vpr/src/base/setup_noc.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ void create_noc_routers(const t_noc_inf& noc_info,
133133
const vtr::vector<int, t_noc_router_tile_position>& noc_router_tiles) {
134134
// keep track of the router assignments (store the user router id that was assigned to each physical router tile)
135135
// this is used in error checking, after determining the closest physical router for a user described router in the arch file,
136-
// the datastructure below can be used to check if that physical router was already assigned previously
136+
// the data structure below can be used to check if that physical router was already assigned previously
137137
std::vector<int> router_assignments;
138138
router_assignments.resize(noc_router_tiles.size(), PHYSICAL_ROUTER_NOT_ASSIGNED);
139139

vpr/src/base/setup_noc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ struct t_noc_router_tile_position {
5858
* @brief Based on the NoC information provided by the user in the architecture
5959
* description file, a NoC model is created. The model defines the
6060
* constraints of the NoC as well as its layout on the FPGA device.
61-
* The datastructure used to define the model is "NocStorage" and that
61+
* The data structure used to define the model is "NocStorage" and that
6262
* is created here and stored within the noc_ctx.
6363
*
6464
* @param arch Contains the parsed information from the architecture

vpr/src/base/vpr_api.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@ void vpr_setup_clock_networks(t_vpr_setup& vpr_setup, const t_arch& Arch) {
545545
* constraints. Additionally, the graphics state is updated
546546
* to include a NoC button to display it.
547547
*
548-
* @param vpr_setup A datastructure that stores all the user provided option
548+
* @param vpr_setup A data structure that stores all the user provided option
549549
* to vpr.
550550
* @param arch Contains the parsed information from the architecture
551551
* description file.
@@ -1318,7 +1318,7 @@ static void free_routing() {
13181318
}
13191319

13201320
/**
1321-
* @brief handles the deletion of NoC related datastructures.
1321+
* @brief handles the deletion of NoC related data structures.
13221322
*/
13231323
static void free_noc() {}
13241324

vpr/src/noc/bfs_routing.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ void BFSRouting::route_flow(NocRouterId src_router_id,
2828
/*
2929
* As the routing goes through the NoC, each router visited has a
3030
* corresponding link that was used to reach the router. This
31-
* datastructure stores the link that was used to visit each router in
31+
* data structure stores the link that was used to visit each router in
3232
* the NoC.
33-
* Once the destination router has been found. This datastructure can be used to
33+
* Once the destination router has been found. This data structure can be used to
3434
* trace the path back to the source router.
3535
*/
3636
std::unordered_map<NocRouterId, NocLinkId> router_parent_link;

vpr/src/noc/noc_data_types.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
/**
55
* @file
6-
* @brief This file contains datatype definitions which are used by the NoC datastructures.
6+
* @brief This file contains datatype definitions which are used by the NoC data structures.
77
*
88
*/
99

vpr/src/noc/noc_storage.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ class NocStorage {
7171
* in the architecture file. This ID system will be different than the
7272
* NocRouterIds assigned to each router. The user ID system will be
7373
* arbitrary but the internal ID system used here will start at 0 and
74-
* are dense since it is used to index the routers. The datastructure
74+
* are dense since it is used to index the routers. The data structure
7575
* below is a conversiont able that maps the user router IDs to the
7676
* corresponding internal ones.
7777
*/
@@ -82,12 +82,12 @@ class NocStorage {
8282
* location. During placement, when logical routers are moved to
8383
* different hard routers, only the grid location of where the
8484
* logical router was moved is known.
85-
* Using this datastructure, the grid location can be used to
85+
* Using this data structure, the grid location can be used to
8686
* identify the corresponding hard router block positioned at that grid
8787
* location. The NocROuterId uniquely identifies hard router blocks and
8888
* can be used to retrieve the hard router block information using
8989
* the router_storage data structure above. This can also be used to
90-
* access the connectivity graph datastructure above.
90+
* access the connectivity graph data structure above.
9191
*
9292
* It is important to know the specific hard router block because
9393
* without it we cannot determine the starting/end points of the traffic
@@ -97,7 +97,7 @@ class NocStorage {
9797
*
9898
* The intended use is when trying to re-route a traffic flow. The current
9999
* location of a logical router block can be used in conjunction with this
100-
* datastructure to identify the corresponding hard router block.
100+
* data structure to identify the corresponding hard router block.
101101
*
102102
*/
103103
std::unordered_map<int, NocRouterId> grid_location_to_router_id;
@@ -468,7 +468,7 @@ class NocStorage {
468468
void finished_building_noc();
469469

470470
/**
471-
* @brief Resets the NoC by clearing all internal datastructures.
471+
* @brief Resets the NoC by clearing all internal data structures.
472472
* This includes deleting all routers and links. Also all internal
473473
* IDs are removed (the is conversion table is cleared). It is
474474
* recommended to run this function before building the NoC.
@@ -493,7 +493,7 @@ class NocStorage {
493493
int convert_router_id(NocRouterId id) const;
494494

495495
/**
496-
* @brief The datastructure that stores the outgoing links to each
496+
* @brief The data structure that stores the outgoing links to each
497497
* router is an 2-D Vector. When processing the links, they can be
498498
* outgoing from any router in the NoC. Therefore the column size
499499
* of the 2-D vector needs to be the size of the number of routers
@@ -531,7 +531,7 @@ class NocStorage {
531531
* @brief Generates a unique integer using the x and y coordinates of a
532532
* hard router block that can be used to identify it. This should be
533533
* used to generate the keys for the 'grid_location_to_router_id'
534-
* datastructure.
534+
* data structure.
535535
*
536536
* The key will be generated as follows:
537537
* key = y * device_grid.width() + x

vpr/src/noc/noc_traffic_flows.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ void NocTrafficFlows::finished_noc_traffic_flows_setup() {
9595
}
9696

9797
void NocTrafficFlows::clear_traffic_flows() {
98-
// delete any information from internal datastructures
98+
// delete any information from internal data structures
9999
noc_traffic_flows.clear();
100100
noc_traffic_flows_ids.clear();
101101
router_cluster_in_netlist.clear();

vpr/src/noc/noc_traffic_flows.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
* wants to find traffic flows based on just the source or sink logical router.
1919
* The routes for the traffic flows are expected to change throughout placement
2020
* as routers will be moved within the chip. Therefore this class provides
21-
* a datastructure to keep track of which flows have been updated (re-routed).
21+
* a data structure to keep track of which flows have been updated (re-routed).
2222
*
2323
* Finally, this class also stores all router blocks (logical routers) in the
2424
* design.
@@ -94,7 +94,7 @@ class NocTrafficFlows {
9494
* router. If the source/destination routers are moved, then the traffic
9595
* flow needs tp be re-routed.
9696
*
97-
* This datastructure stores a vector of traffic flows that are associated
97+
* This data structure stores a vector of traffic flows that are associated
9898
* to each router cluster block. A traffic flow is associated to a router
9999
* cluster block if the router block is either the source or destination
100100
* router within the traffic flow.
@@ -127,7 +127,7 @@ class NocTrafficFlows {
127127
* @param traffic_flow_id A unique id that represents a traffic flow.
128128
* @param associated_router_id A ClusterBlockId that represents a
129129
* router block.
130-
* @param router_associated_traffic_flows A datastructure that stores
130+
* @param router_associated_traffic_flows A data structure that stores
131131
* a vector of traffic flows for a given router block where the traffic
132132
* flows have the router as a source or sink within the flow.
133133
*
@@ -209,7 +209,7 @@ class NocTrafficFlows {
209209
* flows in the design.
210210
*
211211
* Finally, the newly created traffic flow is
212-
* also added to internal datastructures that can be used to quickly
212+
* also added to internal data structures that can be used to quickly
213213
* look up which traffic flows contain a specific router cluster block.
214214
*
215215
* @param source_router_module_name A string that represents the
@@ -262,7 +262,7 @@ class NocTrafficFlows {
262262

263263
/**
264264
* @brief Resets the class by clearing internal
265-
* datastructures.
265+
* data structures.
266266
*/
267267
void clear_traffic_flows();
268268

@@ -288,7 +288,7 @@ class NocTrafficFlows {
288288

289289
/**
290290
* @brief Writes out the NocTrafficFlows class information to a file.
291-
* This includes printing out each internal datastructure information.
291+
* This includes printing out each internal data structure information.
292292
*
293293
* @param file_name The name of the file that contains the NoC
294294
* traffic flow information

vpr/src/noc/read_xml_noc_traffic_flows_file.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ void verify_traffic_flow_properties(double traffic_flow_bandwidth, double max_tr
164164
* @param router_module_name The name of the router module in the design for
165165
* which the corresponding block id needs to be found.
166166
* @param cluster_ctx Global variable that contains clustering information.
167-
* Contains a datastructure to convert a module name to
167+
* Contains a data structure to convert a module name to
168168
* a cluster block id.
169169
* @param single_flow_tag A xml tag that contains the traffic flow information.
170170
* Passed in for error logging.
@@ -197,7 +197,7 @@ ClusterBlockId get_router_module_cluster_id(const std::string& router_module_nam
197197
* @param loc_data Contains location data about the current line in the xml
198198
* file. Passed in for error logging.
199199
* @param cluster_ctx Global variable that contains clustering information.
200-
* Contains a datastructure to get the logical type of a
200+
* Contains a data structure to get the logical type of a
201201
* router cluster block.
202202
* @param noc_router_tile_type The physical type of a Noc router tile in the
203203
* FPGA. Used to check if the router block is
@@ -208,7 +208,7 @@ void check_traffic_flow_router_module_type(const std::string& router_module_name
208208
/**
209209
* @brief Retrieves the physical type of a noc router tile.
210210
*
211-
* @param device_ctx Contains the device information. Has a datastructure that
211+
* @param device_ctx Contains the device information. Has a data structure that
212212
* can determine a tile type based on grid position on the
213213
* FPGA.
214214
* @param noc_ctx Contains the NoC information. Used to get the grid position

0 commit comments

Comments
 (0)