From 2561121b22c384d2f71680344b0ee84f43f7400c Mon Sep 17 00:00:00 2001 From: Eddie Hung Date: Wed, 4 Mar 2020 10:31:06 -0800 Subject: [PATCH] sta: ignore timing arc if no input port --- passes/cmds/sta.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/passes/cmds/sta.cc b/passes/cmds/sta.cc index 7c8448593..d71e71716 100644 --- a/passes/cmds/sta.cc +++ b/passes/cmds/sta.cc @@ -111,7 +111,8 @@ struct StaWorker if (it == t.arrival.end()) continue; const auto &s = it->second.second; - data[cell->getPort(s.name)[s.offset]].fanouts.emplace_back(bit,it->second.first,s.name); + if (cell->hasPort(s.name)) + data[cell->getPort(s.name)[s.offset]].fanouts.emplace_back(bit,it->second.first,s.name); } } }