diff --git a/include/verilated.cpp b/include/verilated.cpp index 43fa648c9..490c0d501 100644 --- a/include/verilated.cpp +++ b/include/verilated.cpp @@ -1901,7 +1901,6 @@ void VL_READMEM_N(bool hex, // Hex format, else binary QData start, // First array row address to read QData end // Last row address to read ) VL_MT_SAFE { - QData addr_max = array_lsb + depth - 1; if (start < static_cast(array_lsb)) start = array_lsb; VlReadMem rmem(hex, bits, filename, start, end);