Fix VerilatedVpioVar vpiMemory/vpiReg accessor, bug1528.

Signed-off-by: Wilson Snyder <wsnyder@wsnyder.org>
This commit is contained in:
Stefan Wallentowitz 2019-09-27 00:01:09 -04:00 committed by Wilson Snyder
parent be4692772c
commit 99a8845a96

View File

@ -210,7 +210,6 @@ public:
vluint32_t entSize() const { return m_entSize; }
vluint32_t index() { return m_index; }
virtual vluint32_t type() const {
if (varp()->vldir() != vpiNoDirection) return vpiPort;
return (varp()->dims()>1) ? vpiMemory : vpiReg; // but might be wire, logic
}
virtual vluint32_t size() const { return get_range().elements(); }