frontend,rtlil: fix search for cell-referenced $scopeinfo
$scopeinfo is referenced by name in object attributes:
- public objects use an
hdlname
attribute, - internal objects ues an
scopename
attribute.
In either case, reference is a list of space-separated names representing hiearchical scope name. Previously, the name of a $scopeinfo cell was used internally to store an info, but the name of a public cell is a backslash-prefixed dot-separated list of hierarchical name components. The mismatch caused an exception to be thrown.
The change consistently uses space-separated name components to store and reference $scopeinfo objects.
If a scope is nested, corresponding $scopeinfo has an hdlname
attribute with a list of space-separated name components. However,
top-level scopes miss an hdlname
attribute and are referenced by cell
name instead.
Signed-off-by: Artem Kotsynyak kotsynyak@ispras.ru