diff --git a/elab_scope.cc b/elab_scope.cc index bd9065fd3..4b233348d 100644 --- a/elab_scope.cc +++ b/elab_scope.cc @@ -1322,6 +1322,8 @@ void PGenerate::elaborate_subscope_(Design*des, NetScope*scope) collect_scope_signals(scope, wires); + elaborate_scope_enumerations(des, scope, enum_sets); + // Run through the defparams for this scope and save the result // in a table for later final override. @@ -1662,6 +1664,8 @@ void PFunction::elaborate_scope(Design*des, NetScope*scope) const collect_scope_signals(scope, wires); + elaborate_scope_enumerations(des, scope, enum_sets); + // Scan through all the named events in this scope. elaborate_scope_events_(des, scope, events); @@ -1682,6 +1686,8 @@ void PTask::elaborate_scope(Design*des, NetScope*scope) const collect_scope_signals(scope, wires); + elaborate_scope_enumerations(des, scope, enum_sets); + // Scan through all the named events in this scope. elaborate_scope_events_(des, scope, events); @@ -1732,6 +1738,8 @@ void PBlock::elaborate_scope(Design*des, NetScope*scope) const collect_scope_signals(my_scope, wires); + elaborate_scope_enumerations(des, my_scope, enum_sets); + // Scan through all the named events in this scope. elaborate_scope_events_(des, my_scope, events); }