From 605ebc2522a0bbbd1bf886dea6185668e38bceb2 Mon Sep 17 00:00:00 2001 From: Aleksander Kiryk Date: Tue, 28 Nov 2023 08:58:00 +0100 Subject: [PATCH] Add comments --- include/verilated_types.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/verilated_types.h b/include/verilated_types.h index 6a1736bd2b..307248ccb3 100644 --- a/include/verilated_types.h +++ b/include/verilated_types.h @@ -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; }