[#74021] add assert and fix comment
This commit is contained in:
parent
de25b70596
commit
93cc24b2f9
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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} {}
|
||||
|
|
|
|||
Loading…
Reference in New Issue