Skip to content

Commit 6833d1c

Browse files
clean some doxygen comments
1 parent 25185f3 commit 6833d1c

File tree

3 files changed

+8
-17
lines changed

3 files changed

+8
-17
lines changed

libs/libarchfpga/src/switchblock_types.h

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,7 @@ inline const std::unordered_map<char, e_side> CHAR_SIDE_MAP = {
6464
constexpr std::array<e_side, NUM_2D_SIDES> TOTAL_2D_SIDES = {{TOP, RIGHT, BOTTOM, LEFT}}; // Set of all side orientations
6565
constexpr std::array<const char*, NUM_2D_SIDES> TOTAL_2D_SIDE_STRINGS = {{"TOP", "RIGHT", "BOTTOM", "LEFT"}}; // String versions of side orientations
6666

67-
/**
68-
* @brief Specifies what part of the FPGA a custom switchblock should be built in (i.e. perimeter, core, everywhere)
69-
*
70-
*/
67+
/// @brief Specifies what part of the FPGA a custom switchblock should be built in (i.e. perimeter, core, everywhere)
7168
enum class e_sb_location {
7269
E_PERIMETER = 0,
7370
E_CORNER,
@@ -96,7 +93,6 @@ struct t_sb_loc_spec {
9693

9794
/**
9895
* @brief represents a connection between two sides of a switchblock
99-
*
10096
*/
10197
class SBSideConnection {
10298
public:
@@ -141,7 +137,6 @@ enum class e_switch_point_order {
141137

142138
/**
143139
* @brief A collection of switchpoints associated with a segment
144-
*
145140
*/
146141
struct t_wire_switchpoints {
147142
std::string segment_name; ///< The type of segment
@@ -150,7 +145,6 @@ struct t_wire_switchpoints {
150145

151146
/**
152147
* @brief Used to list information about a set of track segments that should connect through a switchblock
153-
*
154148
*/
155149
struct t_wireconn_inf {
156150
std::vector<t_wire_switchpoints> from_switchpoint_set; ///< The set of segment/wirepoints representing the 'from' set (union of all t_wire_switchpoints in vector)

libs/librrgraph/src/base/rr_graph_view.h

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,10 @@
2525
* 5. A short (metal connection).
2626
*
2727
*
28-
* @note Despite the RRGraph containing millions of edges, there are only a few switch types. Therefore, all switch details, including R and C, are stored using a flyweight pattern (rr_switch_inf) rather than being directly embedded in the edge-related data of the RRGraph. Each edge stores the ID of its associated switch for easy lookup.
28+
* @note Despite the RRGraph containing millions of edges, there are only a few switch types.
29+
* Therefore, all switch details, including R and C, are stored using a flyweight pattern (rr_switch_inf)
30+
* rather than being directly embedded in the edge-related data of the RRGraph.
31+
* Each edge stores the ID of its associated switch for easy lookup.
2932
*
3033
*
3134
* \internal
@@ -225,21 +228,15 @@ class RRGraphView {
225228
return node_storage_.node_yhigh(node);
226229
}
227230

228-
/** @brief Return the layer num of a specified node.
229-
*/
230-
// inline short node_layer(RRNodeId node) const {
231-
// return node_storage_.node_layer(node);
232-
// }
233-
231+
/// @brief Returns the highest layer where a node is located at.
234232
inline short node_layer_high(RRNodeId node) const {
235233
return node_storage_.node_layer_high(node);
236234
}
237235

236+
/// @brief Returns the lowest layer where a node is located at.
238237
inline short node_layer_low(RRNodeId node) const {
239238
return node_storage_.node_layer_low(node);
240239
}
241-
242-
243240

244241
/**
245242
* @brief Return the bend start of a specified node.

vpr/src/route/rr_graph_generation/build_switchblocks.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ struct t_switchblock_edge {
8585
/// Destination wire ptc_num index in a channel
8686
short to_wire;
8787

88-
/// RR graph switch index that connects the source wire to the destination wire that connect two tracks in same layer
88+
/// RR graph switch index that connects the source wire to the destination wire that connect two tracks
8989
short switch_ind;
9090
};
9191

0 commit comments

Comments
 (0)