Support rand_mode (#5273)

Signed-off-by: Krzysztof Bieganski <[email protected]>
This commit is contained in:
Krzysztof Bieganski
2024-07-31 22:30:48 +01:00
committed by GitHub
parent 403a197e23
commit 2f5c58b345
21 changed files with 762 additions and 189 deletions
+5
View File
@@ -79,6 +79,11 @@ private:
// Check local/protected status and complain
bool local = false;
bool prot = false;
if (!defp) {
// rand_mode() handled in V3Randomize
UASSERT_OBJ(nodep->name() == "rand_mode", nodep, "Only rand_mode() can have no def");
return;
}
if (const auto varp = VN_CAST(defp, Var)) {
local = varp->isHideLocal();
prot = varp->isHideProtected();