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;
|
int errors = 0;
|
||||||
|
|
||||||
out << name_;
|
out << "\\" << name_ << " ";
|
||||||
if (index_) {
|
if (index_) {
|
||||||
out << "[";
|
out << "[";
|
||||||
errors += index_->emit(out, ent, arc);
|
errors += index_->emit(out, ent, arc);
|
||||||
|
|
|
||||||
|
|
@ -39,7 +39,7 @@ int VType::decl_t::emit(ostream&out, perm_string name) const
|
||||||
out << "signed ";
|
out << "signed ";
|
||||||
if (msb != lsb)
|
if (msb != lsb)
|
||||||
out << "[" << msb << ":" << lsb << "] ";
|
out << "[" << msb << ":" << lsb << "] ";
|
||||||
out << name;
|
out << "\\" << name << " ";
|
||||||
break;
|
break;
|
||||||
case VType::VBOOL:
|
case VType::VBOOL:
|
||||||
out << wire << " bool ";
|
out << wire << " bool ";
|
||||||
|
|
@ -47,7 +47,7 @@ int VType::decl_t::emit(ostream&out, perm_string name) const
|
||||||
out << "signed ";
|
out << "signed ";
|
||||||
if (msb != lsb)
|
if (msb != lsb)
|
||||||
out << "[" << msb << ":" << lsb << "] ";
|
out << "[" << msb << ":" << lsb << "] ";
|
||||||
out << name;
|
out << "\\" << name << " ";
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue