File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -1069,10 +1069,21 @@ struct t_pb_type {
1069
1069
1070
1070
t_metadata_dict meta;
1071
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
+ */
1072
1078
inline bool is_root () const {
1073
1079
return parent_mode == nullptr ;
1074
1080
}
1075
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
+ */
1076
1087
inline bool is_primitive () const {
1077
1088
return num_modes == 0 ;
1078
1089
}
You can’t perform that action at this time.
0 commit comments