mirror of
https://github.com/verilator/verilator.git
synced 2026-10-02 16:13:34 +02:00
Fix Ubuntu 16.04 test failures.
This commit is contained in:
@@ -17,9 +17,7 @@ compile (
|
||||
stdout_filename => $stdout_filename,
|
||||
fails=>1,
|
||||
expect=>
|
||||
'%Error: t_pipe_exit_bad.pf: Intentional bad exit status...
|
||||
%Error: File not found: t/t_pipe_filter.v
|
||||
%Error: Exiting due to.*',
|
||||
'%Error: t_pipe_exit_bad.pf: Intentional bad exit status....*',
|
||||
);
|
||||
ok(1);
|
||||
|
||||
|
||||
@@ -16,9 +16,9 @@ bool check() {
|
||||
bool verbose = false;
|
||||
#endif
|
||||
|
||||
int Y = (tb->OE1 & !tb->OE2) ? tb->A1
|
||||
: (!tb->OE1 & tb->OE2) ? tb->A2
|
||||
: (tb->OE1 & tb->OE2) ? (tb->A1 | tb->A2)
|
||||
int Y = ((tb->OE1) & (!tb->OE2)) ? tb->A1
|
||||
: ((!tb->OE1) & (tb->OE2)) ? tb->A2
|
||||
: ((tb->OE1) & (tb->OE2)) ? (tb->A1 | tb->A2)
|
||||
: 3; // pullup
|
||||
|
||||
int W = (((tb->OE2) ? (tb->A2 & 0x1) : 0) << tb->A1)
|
||||
|
||||
@@ -377,17 +377,15 @@ sub rnd_const {
|
||||
my $val = Bit::Vector->new($width);
|
||||
if ($v<25) { # zero
|
||||
} elsif ($v<50) { # ones
|
||||
$val->Word_Store(0,~0);
|
||||
$val->Word_Store(1,~0) if $width>32;
|
||||
$val->Word_Store(2,~0) if $width>64;
|
||||
$val->Word_Store(3,~0) if $width>96;
|
||||
for (my $w=0; $w<$val->Word_Size; ++$w) {
|
||||
$val->Word_Store(0,~0);
|
||||
}
|
||||
} elsif ($v<60) { # one
|
||||
$val->Word_Store(0,1);
|
||||
} else { #random
|
||||
$val->Word_Store(0,rnd_int());
|
||||
$val->Word_Store(1,rnd_int()) if $width>32;
|
||||
$val->Word_Store(2,rnd_int()) if $width>64;
|
||||
$val->Word_Store(3,rnd_int()) if $width>96;
|
||||
for (my $w=0; $w<$val->Word_Size; ++$w) {
|
||||
$val->Word_Store($w,rnd_int());
|
||||
}
|
||||
}
|
||||
$treeref->{val} = $val;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user