From 26f4b5a69a23c6b13ca3b7c8122691a1437d1530 Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Sat, 12 Jan 2013 16:26:26 -0500 Subject: [PATCH] Stats: Count only unpacked --- src/V3Stats.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/V3Stats.cpp b/src/V3Stats.cpp index 22859e8f1..94591c9a3 100644 --- a/src/V3Stats.cpp +++ b/src/V3Stats.cpp @@ -93,7 +93,7 @@ private: nodep->iterateChildren(*this); if (m_counting && nodep->dtypep()) { if (nodep->isUsedClock()) ++m_statVarClock; - if (nodep->dtypeSkipRefp()->castPackArrayDType()) ++m_statVarArray; + if (nodep->dtypeSkipRefp()->castUnpackArrayDType()) ++m_statVarArray; else m_statVarBytes += nodep->dtypeSkipRefp()->widthTotalBytes(); if (int(m_statVarWidths.size()) <= nodep->width()) { m_statVarWidths.resize(nodep->width()+5); @@ -197,7 +197,7 @@ public: V3Stats::addStat(m_stage, "Instruction count, TOTAL", m_statInstr); V3Stats::addStat(m_stage, "Instruction count, fast", m_statInstrFast); // Vars - V3Stats::addStat(m_stage, "Vars, packed arrayed", m_statVarArray); + V3Stats::addStat(m_stage, "Vars, unpacked arrayed", m_statVarArray); V3Stats::addStat(m_stage, "Vars, clock attribute", m_statVarClock); V3Stats::addStat(m_stage, "Var space, non-arrays, bytes", m_statVarBytes); if (m_statVarScpBytes) {