From 3ddaefc2a2af2f5460b65df3ae592d3b7e9d27e0 Mon Sep 17 00:00:00 2001 From: tangxifan Date: Fri, 21 Jun 2024 17:02:37 -0700 Subject: [PATCH] [lib] syntax --- libs/libclkarchopenfpga/src/base/clock_network.cpp | 2 +- libs/libclkarchopenfpga/src/base/clock_network.h | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/libs/libclkarchopenfpga/src/base/clock_network.cpp b/libs/libclkarchopenfpga/src/base/clock_network.cpp index 7ae5b9a4f..eea5c8dbf 100644 --- a/libs/libclkarchopenfpga/src/base/clock_network.cpp +++ b/libs/libclkarchopenfpga/src/base/clock_network.cpp @@ -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; diff --git a/libs/libclkarchopenfpga/src/base/clock_network.h b/libs/libclkarchopenfpga/src/base/clock_network.h index ad8d5e61f..3873eae50 100644 --- a/libs/libclkarchopenfpga/src/base/clock_network.h +++ b/libs/libclkarchopenfpga/src/base/clock_network.h @@ -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;