fix failing test in ci

This commit is contained in:
Yilou Wang 2026-03-01 17:01:25 +01:00
parent dce9d2056c
commit b70e9344e5
2 changed files with 3 additions and 7 deletions

View File

@ -3344,7 +3344,7 @@ class RandomizeVisitor final : public VNVisitor {
FileLine* const fl = distp->fileline();
// Collect buckets and compute effective weights
struct BucketInfo {
struct BucketInfo final {
AstNodeExpr* rangep; // Points into distItem (will be cloned, not unlinked)
uint64_t effectiveWeight;
};

View File

@ -1,11 +1,7 @@
%Warning-CONSTRAINTIGN: t/t_randomize.v:22:14: Constraint expression ignored (imperfect distribution)
: ... note: In instance 't'
22 | length dist { [0:1], [2:5] :/ 2, 6 := 6, 7 := 10, 1};
| ^~~~
... For warning description see https://verilator.org/warn/CONSTRAINTIGN?v=latest
... Use "/* verilator lint_off CONSTRAINTIGN */" and lint_on around source to disable this message.
%Warning-CONSTRAINTIGN: t/t_randomize.v:43:23: Constraint expression ignored (imperfect distribution)
: ... note: In instance 't'
43 | constraint order { solve length before header; }
| ^~~~~
... For warning description see https://verilator.org/warn/CONSTRAINTIGN?v=latest
... Use "/* verilator lint_off CONSTRAINTIGN */" and lint_on around source to disable this message.
%Error: Exiting due to