mirror of
https://github.com/verilator/verilator.git
synced 2026-09-06 08:57:23 +02:00
Support constraint_mode (#5338)
This commit is contained in:
@@ -80,8 +80,9 @@ private:
|
||||
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");
|
||||
// rand_mode() / constraint_mode() handled in V3Randomize
|
||||
UASSERT_OBJ(nodep->name() == "rand_mode" || nodep->name() == "constraint_mode", nodep,
|
||||
"Only rand_mode() and constraint_mode() can have no def");
|
||||
return;
|
||||
}
|
||||
if (const auto varp = VN_CAST(defp, Var)) {
|
||||
|
||||
Reference in New Issue
Block a user