[#74021] add assert and fix comment

This commit is contained in:
Mateusz Gancarz 2025-03-05 16:02:46 +01:00
parent de25b70596
commit 93cc24b2f9
2 changed files with 2 additions and 2 deletions

View File

@ -507,7 +507,7 @@ void VerilatedSaifActivityAccumulator::declare(uint32_t code, const std::string&
void VerilatedSaif::declare(const uint32_t code, uint32_t fidx, const char* name,
const char* wirep, const bool array, const int arraynum,
const bool bussed, const int msb, const int lsb) {
assert(m_activityAccumulators.size() > fidx);
VerilatedSaifActivityAccumulator& accumulator = *m_activityAccumulators.at(fidx);
const int bits = ((msb > lsb) ? (msb - lsb) : (lsb - msb)) + 1;

View File

@ -192,7 +192,7 @@ class VerilatedSaifBuffer VL_NOT_FINAL {
VerilatedSaif& m_owner; // Trace file owning this buffer. Required by subclasses.
uint32_t m_fidx; // Index of target activity accumulator
// CONSTRUCTOR
// CONSTRUCTORS
explicit VerilatedSaifBuffer(VerilatedSaif& owner)
: m_owner{owner}
, m_fidx{0} {}