mirror of
https://github.com/verilator/verilator.git
synced 2026-08-31 10:04:40 +02:00
Support rand_mode (#5273)
Signed-off-by: Krzysztof Bieganski <[email protected]>
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user