Skip to content

Commit db801ce

Browse files
Moritz Schererthommythomaso
authored andcommitted
[Verilator] Add class to randomize for verilator support
1 parent d185edf commit db801ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rand_verif_pkg.sv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ package rand_verif_pkg;
1515
// Pick a random number from the interval [min, max] and wait for that number of clock cyles.
1616
task automatic rand_wait(input int unsigned min, max, ref logic clk);
1717
int unsigned rand_success, cycles;
18-
rand_success = randomize(cycles) with {
18+
rand_success = std::randomize(cycles) with {
1919
cycles >= min;
2020
cycles <= max;
2121
};

0 commit comments

Comments
 (0)