vhdlpp: "resize" function.
This commit is contained in:
parent
e33b8b4dde
commit
1de3fb1625
|
|
@ -560,8 +560,9 @@ int ExpFunc::emit(ostream&out, Entity*ent, ScopeBase*scope)
|
|||
{
|
||||
int errors = 0;
|
||||
|
||||
// SystemVerilog takes care of signs, depending on the lvalue
|
||||
if (name_ == "to_integer" && argv_.size()==1) {
|
||||
// SystemVerilog takes care of sign & width, depending on the lvalue type
|
||||
if ((name_ == "to_integer" && argv_.size() == 1) ||
|
||||
(name_ == "resize" && argv_.size() == 2)) {
|
||||
errors += argv_[0]->emit(out, ent, scope);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue