vhdlpp: Disabled evaluation for ExpTime.

It was always evaluated to a value expressed in femtoseconds,
which not always might be the case.
This commit is contained in:
Maciej Suminski 2015-12-04 11:38:19 +01:00
parent 96a0a84e6c
commit 7cebed7382
2 changed files with 4 additions and 4 deletions

View File

@ -891,8 +891,8 @@ class ExpTime : public Expression {
int elaborate_expr(Entity*ent, ScopeBase*scope, const VType*ltype);
void write_to_stream(std::ostream&) const;
int emit(ostream&out, Entity*ent, ScopeBase*scope);
bool evaluate(ScopeBase*scope, int64_t&val) const;
bool evaluate(Entity*ent, ScopeBase*scope, int64_t&val) const;
//bool evaluate(ScopeBase*scope, int64_t&val) const;
//bool evaluate(Entity*ent, ScopeBase*scope, int64_t&val) const;
void dump(ostream&out, int indent = 0) const;
private:

View File

@ -252,7 +252,7 @@ bool ExpShift::evaluate(ScopeBase*scope, int64_t&val) const
return true;
}
bool ExpTime::evaluate(ScopeBase*, int64_t&val) const
/*bool ExpTime::evaluate(ScopeBase*, int64_t&val) const
{
double v = to_fs();
@ -269,4 +269,4 @@ bool ExpTime::evaluate(ScopeBase*, int64_t&val) const
bool ExpTime::evaluate(Entity*, ScopeBase*, int64_t&val) const
{
return evaluate(NULL, val);
}
}*/