[lib] syntax

This commit is contained in:
tangxifan 2024-06-21 17:02:37 -07:00
parent 6c5988575c
commit 3ddaefc2a2
2 changed files with 5 additions and 3 deletions

View File

@ -636,7 +636,7 @@ bool ClockNetwork::validate_tree() const {
bool ClockNetwork::validate() const {
is_dirty_ = true;
if (default_segment_id_ && default_switch_id_ && validate_tree()) {
if (default_segment_id_ && default_tap_switch_id_ && default_driver_switch_id_ && validate_tree()) {
is_dirty_ = false;
}
return true;

View File

@ -73,8 +73,10 @@ class ClockNetwork {
* information from RRGraph */
RRSegmentId default_segment() const;
std::string default_segment_name() const;
RRSwitchId default_switch() const;
std::string default_switch_name() const;
RRSwitchId default_tap_switch() const;
std::string default_tap_switch_name() const;
RRSwitchId default_driver_switch() const;
std::string default_driver_switch_name() const;
std::string tree_name(const ClockTreeId& tree_id) const;
size_t tree_width(const ClockTreeId& tree_id) const;
size_t tree_depth(const ClockTreeId& tree_id) const;