Emit VHDL symbols as escaped identifiers
This commit is contained in:
parent
78788d17fe
commit
a46c66130b
|
|
@ -294,7 +294,7 @@ int ExpName::emit(ostream&out, Entity*ent, Architecture*arc)
|
|||
{
|
||||
int errors = 0;
|
||||
|
||||
out << name_;
|
||||
out << "\\" << name_ << " ";
|
||||
if (index_) {
|
||||
out << "[";
|
||||
errors += index_->emit(out, ent, arc);
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ int VType::decl_t::emit(ostream&out, perm_string name) const
|
|||
out << "signed ";
|
||||
if (msb != lsb)
|
||||
out << "[" << msb << ":" << lsb << "] ";
|
||||
out << name;
|
||||
out << "\\" << name << " ";
|
||||
break;
|
||||
case VType::VBOOL:
|
||||
out << wire << " bool ";
|
||||
|
|
@ -47,7 +47,7 @@ int VType::decl_t::emit(ostream&out, perm_string name) const
|
|||
out << "signed ";
|
||||
if (msb != lsb)
|
||||
out << "[" << msb << ":" << lsb << "] ";
|
||||
out << name;
|
||||
out << "\\" << name << " ";
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue