Skip to content

Commit a6fe3fa

Browse files
doxygen comment for Direction
1 parent 161f605 commit a6fe3fa

File tree

1 file changed

+12
-13
lines changed

1 file changed

+12
-13
lines changed

libs/librrgraph/src/base/rr_node_types.h

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -23,31 +23,30 @@
2323
enum class e_rr_type : unsigned char {
2424
SOURCE = 0, ///<A dummy node that is a logical output within a block -- i.e., the gate that generates a signal.
2525
SINK, ///<A dummy node that is a logical input within a block -- i.e. the gate that needs a signal.
26-
IPIN, ///Input pin to a block
27-
OPIN, ///Output pin of a block
28-
CHANX, ///x-directed routing wire, or an x-directed segment of a channel for global routing
29-
CHANY, ///y-directed routing wire, or a y-directed segment of a channel for global routing
26+
IPIN, ///<Input pin to a block
27+
OPIN, ///<Output pin of a block
28+
CHANX, ///<x-directed routing wire, or an x-directed segment of a channel for global routing
29+
CHANY, ///<y-directed routing wire, or a y-directed segment of a channel for global routing
3030
NUM_RR_TYPES
3131
};
3232

3333
constexpr std::array<e_rr_type, (size_t)e_rr_type::NUM_RR_TYPES> RR_TYPES = {{e_rr_type::SOURCE, e_rr_type::SINK, e_rr_type::IPIN,
3434
e_rr_type::OPIN, e_rr_type::CHANX, e_rr_type::CHANY}};
3535
constexpr std::array<const char*, (size_t)e_rr_type::NUM_RR_TYPES> rr_node_typename{{"SOURCE", "SINK", "IPIN", "OPIN", "CHANX", "CHANY"}};
3636

37-
/*
38-
* Direction::INC: wire driver is positioned at the low-coordinate end of the wire.
39-
* Direction::DEC: wire_driver is positioned at the high-coordinate end of the wire.
40-
* Direction::BIDIR: wire has multiple drivers, so signals can travel either way along the wire
41-
* Direction::NONE: node does not have a direction, such as IPIN/OPIN
37+
/**
38+
* @enum Direction
39+
* @brief Represents the wire direction for a routing resource node.
4240
*/
4341
enum class Direction : unsigned char {
44-
INC = 0,
45-
DEC = 1,
46-
BIDIR = 2,
47-
NONE = 3,
42+
INC = 0, ///< wire driver is positioned at the low-coordinate end of the wire.
43+
DEC = 1, ///< wire_driver is positioned at the high-coordinate end of the wire.
44+
BIDIR = 2, ///< wire has multiple drivers, so signals can travel either way along the wire
45+
NONE = 3, ///< node does not have a direction, such as IPIN/OPIN
4846
NUM_DIRECTIONS
4947
};
5048

49+
5150
constexpr std::array<const char*, static_cast<int>(Direction::NUM_DIRECTIONS)> DIRECTION_STRING = {{"INC_DIRECTION", "DEC_DIRECTION", "BI_DIRECTION", "NONE"}};
5251

5352
//this array is used in rr_graph_storage.cpp so that node_direction_string() can return a const std::string&

0 commit comments

Comments
 (0)