From c72ee41142b4e21d0a258996e2f3f669f3154f97 Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Thu, 5 Nov 2015 07:00:04 -0500 Subject: [PATCH] Add z to param values to avoid conflicts. --- src/V3Param.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/V3Param.cpp b/src/V3Param.cpp index f2aec761b..522832840 100644 --- a/src/V3Param.cpp +++ b/src/V3Param.cpp @@ -139,7 +139,7 @@ private: char ch = varp->user4()&255; string st = cvtToStr(ch); while (index) { - st += cvtToStr(char((index%26)+'A')); + st += cvtToStr(char((index%25)+'A')); index /= 26; } return st; @@ -162,7 +162,8 @@ private: else { m_nextValueMap.insert(make_pair(bucket, offset + 1)); } int num = bucket + offset * BUCKETS; 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) {