mirror of
https://github.com/verilator/verilator.git
synced 2025-01-23 06:44:02 +00:00
Add z to param values to avoid conflicts.
This commit is contained in:
parent
bf5dee955d
commit
c72ee41142
@ -139,7 +139,7 @@ private:
|
|||||||
char ch = varp->user4()&255;
|
char ch = varp->user4()&255;
|
||||||
string st = cvtToStr(ch);
|
string st = cvtToStr(ch);
|
||||||
while (index) {
|
while (index) {
|
||||||
st += cvtToStr(char((index%26)+'A'));
|
st += cvtToStr(char((index%25)+'A'));
|
||||||
index /= 26;
|
index /= 26;
|
||||||
}
|
}
|
||||||
return st;
|
return st;
|
||||||
@ -162,7 +162,8 @@ private:
|
|||||||
else { m_nextValueMap.insert(make_pair(bucket, offset + 1)); }
|
else { m_nextValueMap.insert(make_pair(bucket, offset + 1)); }
|
||||||
int num = bucket + offset * BUCKETS;
|
int num = bucket + offset * BUCKETS;
|
||||||
m_valueMap.insert(make_pair(nodep, num));
|
m_valueMap.insert(make_pair(nodep, num));
|
||||||
return cvtToStr(num);
|
// 'z' just to make sure we don't collide with a normal non-hashed number
|
||||||
|
return (string)"z"+cvtToStr(num);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
void relinkPins(VarCloneMap* clonemapp, AstPin* startpinp) {
|
void relinkPins(VarCloneMap* clonemapp, AstPin* startpinp) {
|
||||||
|
Loading…
Reference in New Issue
Block a user