Skip to content

Commit 5261a2a

Browse files
committed
liberty min_pulse_width missing related_pin
Signed-off-by: James Cherry <[email protected]>
1 parent 9d25979 commit 5261a2a

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

liberty/LibertyBuilder.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -678,6 +678,8 @@ LibertyBuilder::makeMinPulseWidthArcs(LibertyCell *cell,
678678
TimingRole *role,
679679
TimingArcAttrsPtr attrs)
680680
{
681+
if (from_port == nullptr)
682+
from_port = to_port;
681683
TimingArcSet *arc_set = makeTimingArcSet(cell, from_port, to_port, related_out,
682684
role, attrs);
683685
for (auto to_rf : RiseFall::range()) {

liberty/LibertyReader.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4119,7 +4119,8 @@ LibertyReader::endTiming(LibertyGroup *group)
41194119
}
41204120
TimingType timing_type = timing_->attrs()->timingType();
41214121
if (timing_->relatedPortNames() == nullptr
4122-
&& !(timing_type == TimingType::min_clock_tree_path
4122+
&& !(timing_type == TimingType::min_pulse_width
4123+
|| timing_type == TimingType::min_clock_tree_path
41234124
|| timing_type == TimingType::max_clock_tree_path))
41244125
libWarn(1243, group, "timing group missing related_pin/related_bus_pin.");
41254126
}

0 commit comments

Comments
 (0)