diff options
author | ZipCPU <dgisselq@ieee.org> | 2018-06-07 09:52:32 -0400 |
---|---|---|
committer | ZipCPU <dgisselq@ieee.org> | 2018-06-07 09:52:32 -0400 |
commit | c13c15badaaf68de6c28df44b02afc2f74eb8186 (patch) | |
tree | cd4c0ca994a7576488690c2581a3358de5a22c25 /common/rulecheck.cc | |
parent | 1d39924c1417295c8c24598d362293f0eff2af89 (diff) | |
parent | c352f6536b8f9eb4ad8d108e692a149348284723 (diff) | |
download | nextpnr-c13c15badaaf68de6c28df44b02afc2f74eb8186.tar.gz nextpnr-c13c15badaaf68de6c28df44b02afc2f74eb8186.tar.bz2 nextpnr-c13c15badaaf68de6c28df44b02afc2f74eb8186.zip |
Set the default log to stdout
Diffstat (limited to 'common/rulecheck.cc')
-rw-r--r-- | common/rulecheck.cc | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/common/rulecheck.cc b/common/rulecheck.cc index 28d4b6b7..11e57b8b 100644 --- a/common/rulecheck.cc +++ b/common/rulecheck.cc @@ -21,12 +21,17 @@ bool check_all_nets_driven(Design *design) { port_entry.first.c_str(), port.name.c_str()); assert(port.name.compare(port_entry.first)==0); - assert(port.net); assert(port.name.size() > 0); - if (debug) log_info(" Checking for a net named \'%s\'\n", - port.net->name.c_str()); - assert(design->nets.count(port.net->name)>0); - // assert(design->nets[port.net->name]->driver.cell); + + if (port.net == NULL) { + if (debug) log_warning(" Port \'%s\' in cell \'%s\' is unconnected\n", + port.name.c_str(), cell->name.c_str()); + } else { + assert(port.net); + if (debug) log_info(" Checking for a net named \'%s\'\n", + port.net->name.c_str()); + assert(design->nets.count(port.net->name)>0); + } } } |