Skip to content

Commit

Permalink
Sta::isPropagatedClock
Browse files Browse the repository at this point in the history
Signed-off-by: James Cherry <[email protected]>
  • Loading branch information
jjcherry56 committed Aug 6, 2021
1 parent be0d78b commit 598842f
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions include/sta/ClkNetwork.hh
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ public:
bool isClock(const Pin *pin) const;
bool isClock(const Net *net) const;
bool isIdealClock(const Pin *pin) const;
bool isPropagatedClock(const Pin *pin) const;
const ClockSet *clocks(const Pin *pin);
const ClockSet *idealClocks(const Pin *pin);
const PinSet *pins(const Clock *clk);
Expand Down
1 change: 1 addition & 0 deletions include/sta/Sta.hh
Original file line number Diff line number Diff line change
Expand Up @@ -1168,6 +1168,7 @@ public:
bool isClock(const Pin *pin) const;
bool isClock(const Net *net) const;
bool isIdealClock(const Pin *pin) const;
bool isPropagatedClock(const Pin *pin) const;
const PinSet *pins(const Clock *clk);

////////////////////////////////////////////////////////////////
Expand Down
7 changes: 7 additions & 0 deletions search/ClkNetwork.cc
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,13 @@ ClkNetwork::isIdealClock(const Pin *pin) const
return pin_ideal_clks_map_.hasKey(pin);
}

bool
ClkNetwork::isPropagatedClock(const Pin *pin) const
{
return pin_clks_map_.hasKey(pin)
&& !pin_ideal_clks_map_.hasKey(pin);
}

const ClockSet *
ClkNetwork::clocks(const Pin *pin)
{
Expand Down
6 changes: 6 additions & 0 deletions search/Sta.cc
Original file line number Diff line number Diff line change
Expand Up @@ -5397,6 +5397,12 @@ Sta::isIdealClock(const Pin *pin) const
return clk_network_->isIdealClock(pin);
}

bool
Sta::isPropagatedClock(const Pin *pin) const
{
return clk_network_->isPropagatedClock(pin);
}

const PinSet *
Sta::pins(const Clock *clk)
{
Expand Down

0 comments on commit 598842f

Please sign in to comment.