liberty min_pulse_width missing related_pin

Signed-off-by: James Cherry <cherry@parallaxsw.com>
This commit is contained in:
James Cherry 2024-08-09 15:40:21 -07:00
parent 9d259796ca
commit 5261a2a91b
2 changed files with 4 additions and 1 deletions

View File

@ -678,6 +678,8 @@ LibertyBuilder::makeMinPulseWidthArcs(LibertyCell *cell,
TimingRole *role,
TimingArcAttrsPtr attrs)
{
if (from_port == nullptr)
from_port = to_port;
TimingArcSet *arc_set = makeTimingArcSet(cell, from_port, to_port, related_out,
role, attrs);
for (auto to_rf : RiseFall::range()) {

View File

@ -4119,7 +4119,8 @@ LibertyReader::endTiming(LibertyGroup *group)
}
TimingType timing_type = timing_->attrs()->timingType();
if (timing_->relatedPortNames() == nullptr
&& !(timing_type == TimingType::min_clock_tree_path
&& !(timing_type == TimingType::min_pulse_width
|| timing_type == TimingType::min_clock_tree_path
|| timing_type == TimingType::max_clock_tree_path))
libWarn(1243, group, "timing group missing related_pin/related_bus_pin.");
}