mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 01:54:01 +02:00
IMPORTANT: Major internal changes for supporting complex data types.
Adds dtype() to every node, keep global table of dtypes and remove duplicates. Final merge from dtype branch.
This commit is contained in:
+2
-1
@@ -74,7 +74,8 @@ private:
|
||||
if (m_lowerHash.isIllegal()) {
|
||||
nodep->v3fatalSrc("sameHash function undefined (returns 0) for node under CFunc.");
|
||||
}
|
||||
m_lowerHash = V3Hash(m_lowerHash, V3Hash(nodep->type()<<6 | nodep->width()));
|
||||
// For identical nodes, the type should be the same thus dtypep should be the same too
|
||||
m_lowerHash = V3Hash(m_lowerHash, V3Hash(nodep->type()<<6, V3Hash(nodep->dtypep())));
|
||||
// Now update m_lowerHash for our children's (and next children) contributions
|
||||
nodep->iterateChildren(*this);
|
||||
// Store the hash value
|
||||
|
||||
Reference in New Issue
Block a user