mirror of
https://github.com/verilator/verilator.git
synced 2026-09-01 18:36:28 +02:00
Add warning on dist in constraints (#5264)
This commit is contained in:
@@ -328,6 +328,11 @@ class ConstraintExprVisitor final : public VNVisitor {
|
||||
// Fall back to "(ite cond then else)"
|
||||
visit(static_cast<AstNodeTriop*>(nodep));
|
||||
}
|
||||
void visit(AstDist* nodep) override {
|
||||
nodep->v3warn(CONSTRAINTIGN, "Constraint expression ignored (unsupported)");
|
||||
nodep->replaceWith(new AstSFormatF{nodep->fileline(), "true", false, nullptr});
|
||||
VL_DO_DANGLING(nodep->deleteTree(), nodep);
|
||||
}
|
||||
void visit(AstReplicate* nodep) override {
|
||||
// Biop, but RHS is harmful
|
||||
if (editFormat(nodep)) return;
|
||||
|
||||
Reference in New Issue
Block a user