closes #132 spef net missing escapes

Signed-off-by: James Cherry <cherry@parallaxsw.com>
This commit is contained in:
James Cherry 2024-12-22 17:11:21 -07:00
parent b3b4fc9bbf
commit 3cf999c344
1 changed files with 6 additions and 1 deletions

View File

@ -168,7 +168,12 @@ SpefReader::findInstanceRelative(const char *name)
Net *
SpefReader::findNetRelative(const char *name)
{
return network_->findNetRelative(instance_, name);
Net *net = network_->findNetRelative(instance_, name);
// Relax spef escaping requirement because some commercial tools
// don't follow the rules.
if (net == nullptr)
net = sdc_network_->findNetRelative(instance_, name);
return net;
}
Pin *