Tests: Add common use_libvpi for multiple simulators
This commit is contained in:
parent
fe0a42eaa8
commit
828fa80afa
|
|
@ -1219,7 +1219,7 @@ sub execute {
|
||||||
@{$param{iv_run_flags}},
|
@{$param{iv_run_flags}},
|
||||||
@{$param{all_run_flags}},
|
@{$param{all_run_flags}},
|
||||||
);
|
);
|
||||||
if ($param{iv_pli}) {
|
if ($param{use_libvpi}) {
|
||||||
# don't enter command line on $stop, include vpi
|
# don't enter command line on $stop, include vpi
|
||||||
unshift @cmd, "vvp -n -m $self->{obj_dir}/libvpi.so";
|
unshift @cmd, "vvp -n -m $self->{obj_dir}/libvpi.so";
|
||||||
}
|
}
|
||||||
|
|
@ -1233,7 +1233,7 @@ sub execute {
|
||||||
}
|
}
|
||||||
elsif ($param{ms}) {
|
elsif ($param{ms}) {
|
||||||
my @pli_opt=();
|
my @pli_opt=();
|
||||||
if ($param{ms_pli}) {
|
if ($param{use_libvpi}) {
|
||||||
unshift @pli_opt, "-pli $self->{obj_dir}/libvpi.so";
|
unshift @pli_opt, "-pli $self->{obj_dir}/libvpi.so";
|
||||||
}
|
}
|
||||||
$self->_run(logfile=>"$self->{obj_dir}/ms_sim.log",
|
$self->_run(logfile=>"$self->{obj_dir}/ms_sim.log",
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,6 @@ if ($Self->{vlt_all}) {
|
||||||
execute(
|
execute(
|
||||||
check_finished => 1,
|
check_finished => 1,
|
||||||
expect_filename => $Self->{golden_filename},
|
expect_filename => $Self->{golden_filename},
|
||||||
ms_pli => 0
|
|
||||||
);
|
);
|
||||||
|
|
||||||
ok(1);
|
ok(1);
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,6 @@ if ($Self->{vlt_all}) {
|
||||||
|
|
||||||
execute(
|
execute(
|
||||||
check_finished => 1,
|
check_finished => 1,
|
||||||
ms_pli => 0
|
|
||||||
);
|
);
|
||||||
|
|
||||||
ok(1);
|
ok(1);
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,6 @@ if ($Self->{vlt_all}) {
|
||||||
execute(
|
execute(
|
||||||
check_finished => 1,
|
check_finished => 1,
|
||||||
expect_filename => $Self->{golden_filename},
|
expect_filename => $Self->{golden_filename},
|
||||||
ms_pli => 0
|
|
||||||
);
|
);
|
||||||
|
|
||||||
ok(1);
|
ok(1);
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,6 @@ if ($Self->{vlt_all}) {
|
||||||
|
|
||||||
execute(
|
execute(
|
||||||
check_finished => 1,
|
check_finished => 1,
|
||||||
ms_pli => 0
|
|
||||||
);
|
);
|
||||||
|
|
||||||
ok(1);
|
ok(1);
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,6 @@ if ($Self->{vlt_all}) {
|
||||||
execute(
|
execute(
|
||||||
check_finished => 1,
|
check_finished => 1,
|
||||||
expect_filename => $Self->{golden_filename},
|
expect_filename => $Self->{golden_filename},
|
||||||
ms_pli => 0
|
|
||||||
);
|
);
|
||||||
|
|
||||||
ok(1);
|
ok(1);
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,6 @@ if ($Self->{vlt_all}) {
|
||||||
|
|
||||||
execute(
|
execute(
|
||||||
check_finished => 1,
|
check_finished => 1,
|
||||||
ms_pli => 0
|
|
||||||
);
|
);
|
||||||
|
|
||||||
ok(1);
|
ok(1);
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,6 @@ compile(
|
||||||
|
|
||||||
execute(
|
execute(
|
||||||
check_finished => 1,
|
check_finished => 1,
|
||||||
ms_pli => 0
|
|
||||||
);
|
);
|
||||||
|
|
||||||
ok(1);
|
ok(1);
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,6 @@ if ($Self->{vlt_all}) {
|
||||||
execute(
|
execute(
|
||||||
check_finished => 1,
|
check_finished => 1,
|
||||||
expect_filename => $Self->{golden_filename},
|
expect_filename => $Self->{golden_filename},
|
||||||
ms_pli => 0
|
|
||||||
);
|
);
|
||||||
|
|
||||||
ok(1);
|
ok(1);
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@ compile(
|
||||||
);
|
);
|
||||||
|
|
||||||
execute(
|
execute(
|
||||||
iv_pli => 1,
|
use_libvpi => 1,
|
||||||
check_finished => 1
|
check_finished => 1
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@ compile(
|
||||||
);
|
);
|
||||||
|
|
||||||
execute(
|
execute(
|
||||||
iv_pli => 1,
|
use_libvpi => 1,
|
||||||
check_finished => 1
|
check_finished => 1
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@ compile(
|
||||||
);
|
);
|
||||||
|
|
||||||
execute(
|
execute(
|
||||||
iv_pli => 1,
|
use_libvpi => 1,
|
||||||
check_finished => 1
|
check_finished => 1
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@ compile(
|
||||||
);
|
);
|
||||||
|
|
||||||
execute(
|
execute(
|
||||||
iv_pli => 1,
|
use_libvpi => 1,
|
||||||
check_finished => 1
|
check_finished => 1
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@ compile(
|
||||||
);
|
);
|
||||||
|
|
||||||
execute(
|
execute(
|
||||||
iv_pli => 1,
|
use_libvpi => 1,
|
||||||
check_finished => 1
|
check_finished => 1
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -21,8 +21,7 @@ compile(
|
||||||
);
|
);
|
||||||
|
|
||||||
execute(
|
execute(
|
||||||
iv_pli => 1,
|
use_libvpi => 1,
|
||||||
ms_pli => 1,
|
|
||||||
check_finished => 1,
|
check_finished => 1,
|
||||||
all_run_flags => ['+PLUS +INT=1234 +STRSTR']
|
all_run_flags => ['+PLUS +INT=1234 +STRSTR']
|
||||||
);
|
);
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@ compile(
|
||||||
);
|
);
|
||||||
|
|
||||||
execute(
|
execute(
|
||||||
iv_pli => 1,
|
use_libvpi => 1,
|
||||||
check_finished => 1,
|
check_finished => 1,
|
||||||
all_run_flags => ['+PLUS +INT=1234 +STRSTR']
|
all_run_flags => ['+PLUS +INT=1234 +STRSTR']
|
||||||
);
|
);
|
||||||
|
|
|
||||||
|
|
@ -21,8 +21,7 @@ compile(
|
||||||
);
|
);
|
||||||
|
|
||||||
execute(
|
execute(
|
||||||
iv_pli => 1,
|
use_libvpi => 1,
|
||||||
ms_pli => 1,
|
|
||||||
check_finished => 1,
|
check_finished => 1,
|
||||||
all_run_flags => ['+PLUS +INT=1234 +STRSTR']
|
all_run_flags => ['+PLUS +INT=1234 +STRSTR']
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue