We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 00811b8 commit fc0d7c6Copy full SHA for fc0d7c6
libs/libarchfpga/src/physical_types.h
@@ -1068,6 +1068,14 @@ struct t_pb_type {
1068
t_pb_type_power* pb_type_power = nullptr;
1069
1070
t_metadata_dict meta;
1071
+
1072
+ inline bool is_root() const {
1073
+ return parent_mode == nullptr;
1074
+ }
1075
1076
+ inline bool is_primitive() const {
1077
+ return num_modes == 0;
1078
1079
};
1080
1081
/** Describes an operational mode of a clustered logic block
0 commit comments