mirror of
https://github.com/verilator/verilator.git
synced 2025-01-19 12:54:02 +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);
|
my $chooseweight = rnd($totweight);
|
||||||
$totweight = 0;
|
$totweight = 0;
|
||||||
foreach my $opref (values %Ops) {
|
foreach my $opref (sort {$a->{name} cmp $b->{name}} values %Ops) {
|
||||||
if (_rnd_op_ok($opref,$paramref)) {
|
if (_rnd_op_ok($opref,$paramref)) {
|
||||||
$totweight += $opref->{weight};
|
$totweight += $opref->{weight};
|
||||||
if ($chooseweight < $totweight) {
|
if ($chooseweight < $totweight) {
|
||||||
|
Loading…
Reference in New Issue
Block a user