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:
Stephen Williams
2011-09-11 15:28:58 -07:00
parent 563d73e7d9
commit 3497e2e663
8 changed files with 80 additions and 25 deletions
+7 -1
View File
@@ -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