Skip to content

Commit

Permalink
Add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
kiryk committed Nov 28, 2023
1 parent 4f6a1c7 commit 605ebc2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/verilated_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,9 @@ class VlQueue final {
if (VL_LIKELY(index >= 0 && index < m_deque.size()))
m_deque.erase(m_deque.begin() + index);
}
// Randomize elements
IData randomize(VlRNG& rngr) {
// TODO: Random resize once constraints are supported (IEEE 1800-2017 18.4)
for (auto& i : m_deque) {
if (VL_RANDOMIZE(i, rngr) == 0) return 0;
}
Expand Down

0 comments on commit 605ebc2

Please sign in to comment.