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:
parent
96a0a84e6c
commit
7cebed7382
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
}*/
|
||||
|
|
|
|||
Loading…
Reference in New Issue