We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5de62c2 commit fbe6a40Copy full SHA for fbe6a40
libs/libarchfpga/src/physical_types.h
@@ -1069,10 +1069,21 @@ struct t_pb_type {
1069
1070
t_metadata_dict meta;
1071
1072
+ /**
1073
+ * @brief Check if t_pb_type is the root of the pb graph. Root pb_types correspond to a single top level block type and map to a particular type
1074
+ * of location in the FPGA device grid (e.g. Logic, DSP, RAM etc.)
1075
+ *
1076
+ * @return if t_pb_type is root ot not
1077
+ */
1078
inline bool is_root() const {
1079
return parent_mode == nullptr;
1080
}
1081
1082
1083
+ * @brief Check if t_pb_type is a primitive block or equivalently a leaf of the pb graph.
1084
1085
+ * @return if t_pb_type is primitive/leaf ot not
1086
1087
inline bool is_primitive() const {
1088
return num_modes == 0;
1089
0 commit comments