mirror of
https://github.com/steveicarus/iverilog.git
synced 2026-08-22 13:57:18 +02:00
Distinguish bit selects of entity ports from function calls.
Besides variables and signals, a name with a bit select may be an entity port. Distinguish these from function calls.
This commit is contained in:
+7
-1
@@ -119,7 +119,7 @@ class ActiveScope : public ScopeBase {
|
||||
|
||||
public:
|
||||
ActiveScope() { }
|
||||
ActiveScope(ActiveScope*par) : ScopeBase(*par) { }
|
||||
ActiveScope(ActiveScope*par) : ScopeBase(*par), context_entity_(0) { }
|
||||
|
||||
~ActiveScope() { }
|
||||
|
||||
@@ -171,10 +171,16 @@ class ActiveScope : public ScopeBase {
|
||||
new_constants_[name] = new const_t(obj, val);
|
||||
}
|
||||
|
||||
void bind(Entity*ent)
|
||||
{ context_entity_ = ent; }
|
||||
|
||||
void destroy_global_scope()
|
||||
{
|
||||
cleanup();
|
||||
}
|
||||
|
||||
private:
|
||||
Entity*context_entity_;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user