aboutsummaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorDavid Shah <dave@ds0.me>2019-10-24 10:43:18 +0100
committerDavid Shah <dave@ds0.me>2019-10-24 10:43:18 +0100
commit8343488bdf6ef21844913bd1043e27541b0573c1 (patch)
treee5e864f32d898a2619709b0b5d654139d65358bd /common
parent4775930e4943fef042b8a4c7e339fefeb1f251be (diff)
downloadnextpnr-8343488bdf6ef21844913bd1043e27541b0573c1.tar.gz
nextpnr-8343488bdf6ef21844913bd1043e27541b0573c1.tar.bz2
nextpnr-8343488bdf6ef21844913bd1043e27541b0573c1.zip
sdf: Improve SDF output
Signed-off-by: David Shah <dave@ds0.me>
Diffstat (limited to 'common')
-rw-r--r--common/sdf.cc4
1 files changed, 4 insertions, 0 deletions
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;