Internals: V3Simulate refactoring prep for future work. No functional change.

This commit is contained in:
Wilson Snyder
2018-10-05 20:06:08 -04:00
parent 47a2e2aeb9
commit 159c653b4b
2 changed files with 14 additions and 8 deletions
+3 -1
View File
@@ -292,7 +292,9 @@ private:
for (std::deque<AstVarScope*>::iterator it = m_inVarps.begin(); it!=m_inVarps.end(); ++it) {
AstVarScope* invscp = *it;
// LSB is first variable, so extract it that way
simvis.newNumber(invscp, VL_MASK_I(invscp->width()) & (inValue>>shift));
simvis.newNumber(invscp,
V3Number(invscp->fileline(), invscp->width(),
VL_MASK_I(invscp->width()) & (inValue>>shift)));
shift += invscp->width();
// We're just using32 bit arithmetic, because there's no way the input table can be 2^32 bytes!
if (shift>31) nodep->v3fatalSrc("shift overflow");