From 8343488bdf6ef21844913bd1043e27541b0573c1 Mon Sep 17 00:00:00 2001 From: David Shah Date: Thu, 24 Oct 2019 10:43:18 +0100 Subject: sdf: Improve SDF output Signed-off-by: David Shah --- common/sdf.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'common') diff --git a/common/sdf.cc b/common/sdf.cc index 07773a6a..769728e4 100644 --- a/common/sdf.cc +++ b/common/sdf.cc @@ -253,9 +253,13 @@ void Context::writeSDF(std::ostream &out) const TimingPortClass cls = getPortTimingClass(ci, port.first, clockCount); if (cls == TMG_IGNORE) continue; + if (port.second.net == nullptr) + continue; // Ignore disconnected ports if (port.second.type != PORT_IN) { // Add combinational paths to this output (or inout) for (auto other : ci->ports) { + if (other.second.net == nullptr) + continue; if (other.second.type == PORT_OUT) continue; DelayInfo dly; -- cgit v1.2.3