mirror of
https://github.com/verilator/verilator.git
synced 2025-04-25 10:06:54 +00:00
Fix tracing with --pins-bv 1, bug195
This commit is contained in:
parent
57dd9c9e01
commit
7a81dd3378
2
Changes
2
Changes
@ -36,6 +36,8 @@ indicates the contributor was also the author of the fix; Thanks!
|
|||||||
|
|
||||||
**** Fix creating implicit variables for expressions, bug196. [Byron Bradley]
|
**** Fix creating implicit variables for expressions, bug196. [Byron Bradley]
|
||||||
|
|
||||||
|
**** Fix tracing with --pins-bv 1, bug195. [Michael S]
|
||||||
|
|
||||||
**** Fix MinGW compilation, bug184. [by Shankar Giri]
|
**** Fix MinGW compilation, bug184. [by Shankar Giri]
|
||||||
|
|
||||||
**** Fix `define argument mis-replacing system task of same name, bug191.
|
**** Fix `define argument mis-replacing system task of same name, bug191.
|
||||||
|
@ -1989,7 +1989,7 @@ class EmitCTrace : EmitCStmts {
|
|||||||
+ ((arrayindex<0) ? 0 : (arrayindex*nodep->declp()->widthWords()))));
|
+ ((arrayindex<0) ? 0 : (arrayindex*nodep->declp()->widthWords()))));
|
||||||
puts(",");
|
puts(",");
|
||||||
emitTraceValue(nodep, arrayindex);
|
emitTraceValue(nodep, arrayindex);
|
||||||
if (nodep->declp()->msbEndianed() || nodep->declp()->lsbEndianed()) {
|
if (nodep->declp()->msbEndianed() || nodep->declp()->lsbEndianed() || emitTraceIsScBv(nodep)) {
|
||||||
puts(","+cvtToStr(nodep->declp()->widthMin()));
|
puts(","+cvtToStr(nodep->declp()->widthMin()));
|
||||||
}
|
}
|
||||||
puts(");\n");
|
puts(");\n");
|
||||||
|
@ -10,7 +10,7 @@ if (!$::Driver) { use FindBin; exec("$FindBin::Bin/bootstrap.pl", @ARGV, $0); di
|
|||||||
top_filename("t/t_var_pinsizes.v");
|
top_filename("t/t_var_pinsizes.v");
|
||||||
|
|
||||||
compile (
|
compile (
|
||||||
v_flags2 => ["-sp -pins-bv 1 --exe $Self->{t_dir}/t_var_pinsizes.cpp"],
|
v_flags2 => ["-sp -pins-bv 1 --trace --exe $Self->{t_dir}/t_var_pinsizes.cpp"],
|
||||||
make_main => 0,
|
make_main => 0,
|
||||||
) if $Self->{v3};
|
) if $Self->{v3};
|
||||||
|
|
||||||
@ -30,5 +30,7 @@ if ($Self->{v3}) {
|
|||||||
file_grep ("$Self->{obj_dir}/$Self->{VM_PREFIX}.sp", qr/sc_out<sc_bv<65>\s> \s+ o65;/x);
|
file_grep ("$Self->{obj_dir}/$Self->{VM_PREFIX}.sp", qr/sc_out<sc_bv<65>\s> \s+ o65;/x);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
execute();
|
||||||
|
|
||||||
ok(1);
|
ok(1);
|
||||||
1;
|
1;
|
||||||
|
@ -10,7 +10,7 @@ if (!$::Driver) { use FindBin; exec("$FindBin::Bin/bootstrap.pl", @ARGV, $0); di
|
|||||||
top_filename("t/t_var_pinsizes.v");
|
top_filename("t/t_var_pinsizes.v");
|
||||||
|
|
||||||
compile (
|
compile (
|
||||||
v_flags2 => ["-sp -pins-bv 2 --exe $Self->{t_dir}/t_var_pinsizes.cpp"],
|
v_flags2 => ["-sp -pins-bv 2 --trace --exe $Self->{t_dir}/t_var_pinsizes.cpp"],
|
||||||
make_main => 0,
|
make_main => 0,
|
||||||
) if $Self->{v3};
|
) if $Self->{v3};
|
||||||
|
|
||||||
@ -30,5 +30,7 @@ if ($Self->{v3}) {
|
|||||||
file_grep ("$Self->{obj_dir}/$Self->{VM_PREFIX}.sp", qr/sc_out<sc_bv<65>\s> \s+ o65;/x);
|
file_grep ("$Self->{obj_dir}/$Self->{VM_PREFIX}.sp", qr/sc_out<sc_bv<65>\s> \s+ o65;/x);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
execute();
|
||||||
|
|
||||||
ok(1);
|
ok(1);
|
||||||
1;
|
1;
|
||||||
|
@ -10,7 +10,7 @@ if (!$::Driver) { use FindBin; exec("$FindBin::Bin/bootstrap.pl", @ARGV, $0); di
|
|||||||
top_filename("t/t_var_pinsizes.v");
|
top_filename("t/t_var_pinsizes.v");
|
||||||
|
|
||||||
compile (
|
compile (
|
||||||
v_flags2 => ["-sp -no-pins64 --exe $Self->{t_dir}/t_var_pinsizes.cpp"],
|
v_flags2 => ["-sp -no-pins64 --trace --exe $Self->{t_dir}/t_var_pinsizes.cpp"],
|
||||||
make_main => 0,
|
make_main => 0,
|
||||||
) if $Self->{v3};
|
) if $Self->{v3};
|
||||||
|
|
||||||
@ -30,5 +30,7 @@ if ($Self->{v3}) {
|
|||||||
file_grep ("$Self->{obj_dir}/$Self->{VM_PREFIX}.sp", qr/sc_out<sc_bv<65>\s> \s+ o65;/x);
|
file_grep ("$Self->{obj_dir}/$Self->{VM_PREFIX}.sp", qr/sc_out<sc_bv<65>\s> \s+ o65;/x);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
execute();
|
||||||
|
|
||||||
ok(1);
|
ok(1);
|
||||||
1;
|
1;
|
||||||
|
@ -10,7 +10,7 @@ if (!$::Driver) { use FindBin; exec("$FindBin::Bin/bootstrap.pl", @ARGV, $0); di
|
|||||||
top_filename("t/t_var_pinsizes.v");
|
top_filename("t/t_var_pinsizes.v");
|
||||||
|
|
||||||
compile (
|
compile (
|
||||||
v_flags2 => ["-sp -pins64 --exe $Self->{t_dir}/t_var_pinsizes.cpp"],
|
v_flags2 => ["-sp -pins64 --trace --exe $Self->{t_dir}/t_var_pinsizes.cpp"],
|
||||||
make_main => 0,
|
make_main => 0,
|
||||||
) if $Self->{v3};
|
) if $Self->{v3};
|
||||||
|
|
||||||
@ -30,5 +30,7 @@ if ($Self->{v3}) {
|
|||||||
file_grep ("$Self->{obj_dir}/$Self->{VM_PREFIX}.sp", qr/sc_out<sc_bv<65>\s> \s+ o65;/x);
|
file_grep ("$Self->{obj_dir}/$Self->{VM_PREFIX}.sp", qr/sc_out<sc_bv<65>\s> \s+ o65;/x);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
execute();
|
||||||
|
|
||||||
ok(1);
|
ok(1);
|
||||||
1;
|
1;
|
||||||
|
@ -10,7 +10,7 @@ if (!$::Driver) { use FindBin; exec("$FindBin::Bin/bootstrap.pl", @ARGV, $0); di
|
|||||||
top_filename("t/t_var_pinsizes.v");
|
top_filename("t/t_var_pinsizes.v");
|
||||||
|
|
||||||
compile (
|
compile (
|
||||||
v_flags2 => ["--trace -sp -pins-uint8 --exe $Self->{t_dir}/t_var_pinsizes.cpp"],
|
v_flags2 => ["-sp -pins-uint8 --trace --exe $Self->{t_dir}/t_var_pinsizes.cpp"],
|
||||||
make_main => 0,
|
make_main => 0,
|
||||||
) if $Self->{v3};
|
) if $Self->{v3};
|
||||||
|
|
||||||
@ -30,5 +30,7 @@ if ($Self->{v3}) {
|
|||||||
file_grep ("$Self->{obj_dir}/$Self->{VM_PREFIX}.sp", qr/sc_out<sc_bv<65>\s> \s+ o65;/x);
|
file_grep ("$Self->{obj_dir}/$Self->{VM_PREFIX}.sp", qr/sc_out<sc_bv<65>\s> \s+ o65;/x);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
execute();
|
||||||
|
|
||||||
ok(1);
|
ok(1);
|
||||||
1;
|
1;
|
||||||
|
Loading…
Reference in New Issue
Block a user