Update frontends/verific/verific.cc

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
This commit is contained in:
Akash Levy 2026-04-30 14:15:44 -07:00 committed by GitHub
parent 89a8250ae8
commit e1aade6a1f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 0 deletions

View File

@ -2817,6 +2817,11 @@ struct VerificExtNets
return nullptr;
}
// Handles the case where a net belongs to an external package or global scope
// (i.e., there is no common ancestor in the design hierarchy). Creates a fresh
// local net in `nl` and disconnects it from the original package/global net.
// For input ports the new net will be undriven; for output ports, writes will
// not be propagated back to the package/global object.
Net *localize_external_package_net(Netlist *nl, Net *net, Port *port)
{
string name = stringf("___extnets_%d", portname_cnt++);