mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 01:54:01 +02:00
Fix internal signal names containing control characters (broke in 3.680).
Internally this means for signal names use __0{xdigit}{xdigit} and avoid
__0 in other cases.
This commit is contained in:
+3
-3
@@ -469,7 +469,7 @@ private:
|
||||
|
||||
// Index into our table
|
||||
AstVar* indexVarp = new AstVar (nodep->fileline(), AstVarType::BLOCKTEMP,
|
||||
"__Vtableidx_" + cvtToStr(m_modTables),
|
||||
"__Vtableidx" + cvtToStr(m_modTables),
|
||||
new AstRange (nodep->fileline(), m_inWidth-1, 0));
|
||||
m_modp->addStmtp(indexVarp);
|
||||
AstVarScope* indexVscp = new AstVarScope (indexVarp->fileline(), m_scopep, indexVarp);
|
||||
@@ -477,7 +477,7 @@ private:
|
||||
|
||||
// Change it variable
|
||||
AstVar* chgVarp = new AstVar (nodep->fileline(), AstVarType::MODULETEMP,
|
||||
"__Vtablechg_" + cvtToStr(m_modTables),
|
||||
"__Vtablechg" + cvtToStr(m_modTables),
|
||||
new AstRange (nodep->fileline(), m_outVarps.size()-1, 0),
|
||||
new AstRange (nodep->fileline(), VL_MASK_I(m_inWidth), 0));
|
||||
chgVarp->isConst(true);
|
||||
@@ -519,7 +519,7 @@ private:
|
||||
AstVar* outvarp = outvscp->varp();
|
||||
AstVar* tablevarp
|
||||
= new AstVar (nodep->fileline(), AstVarType::MODULETEMP,
|
||||
"__Vtable_" + cvtToStr(m_modTables) +"_"+outvarp->name(),
|
||||
"__Vtable" + cvtToStr(m_modTables) +"_"+outvarp->name(),
|
||||
new AstRange (nodep->fileline(), outvarp->widthMin()-1, 0),
|
||||
new AstRange (nodep->fileline(), VL_MASK_I(m_inWidth), 0));
|
||||
tablevarp->isConst(true);
|
||||
|
||||
Reference in New Issue
Block a user