mirror of
https://github.com/verilator/verilator.git
synced 2025-01-01 04:07:34 +00:00
Make vgen.pl deterministic
This commit is contained in:
parent
c1665818b9
commit
10b4678ee6
@ -322,7 +322,7 @@ sub rnd_op {
|
||||
}
|
||||
my $chooseweight = rnd($totweight);
|
||||
$totweight = 0;
|
||||
foreach my $opref (values %Ops) {
|
||||
foreach my $opref (sort {$a->{name} cmp $b->{name}} values %Ops) {
|
||||
if (_rnd_op_ok($opref,$paramref)) {
|
||||
$totweight += $opref->{weight};
|
||||
if ($chooseweight < $totweight) {
|
||||
|
Loading…
Reference in New Issue
Block a user