mirror of
https://github.com/verilator/verilator.git
synced 2025-01-01 04:07:34 +00:00
Tests: Fix test stability (#5167 update).
This commit is contained in:
parent
221fecad0b
commit
6f0a36318e
@ -47,12 +47,12 @@ int main(int argc, char** argv) {
|
|||||||
|
|
||||||
// Simulate until $finish
|
// Simulate until $finish
|
||||||
while (!contextp->gotFinish()) {
|
while (!contextp->gotFinish()) {
|
||||||
contextp->timeInc(1);
|
|
||||||
top->clk = ~top->clk & 0x1;
|
top->clk = ~top->clk & 0x1;
|
||||||
top->eval();
|
top->eval();
|
||||||
#if VM_TRACE
|
#if VM_TRACE
|
||||||
if (tfp) tfp->dump(contextp->time());
|
if (tfp) tfp->dump(contextp->time());
|
||||||
#endif
|
#endif
|
||||||
|
contextp->timeInc(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Final model cleanup
|
// Final model cleanup
|
||||||
|
@ -2669,7 +2669,7 @@ void VerilatedContext::addModel(VerilatedModel* modelp) {
|
|||||||
// models might get added inside initial blocks.
|
// models might get added inside initial blocks.
|
||||||
if (VL_UNLIKELY(time()))
|
if (VL_UNLIKELY(time()))
|
||||||
VL_FATAL_MT(
|
VL_FATAL_MT(
|
||||||
__FILE__, __LINE__, "",
|
"", 0, "",
|
||||||
"Adding model when time is non-zero. ... Suggest check time(), or for restarting"
|
"Adding model when time is non-zero. ... Suggest check time(), or for restarting"
|
||||||
" model use a new VerilatedContext");
|
" model use a new VerilatedContext");
|
||||||
|
|
||||||
|
@ -2375,7 +2375,7 @@ sub files_identical {
|
|||||||
$l1[$l] =~ s/CPU Time: +[0-9.]+ seconds[^\n]+/CPU Time: ###/mig;
|
$l1[$l] =~ s/CPU Time: +[0-9.]+ seconds[^\n]+/CPU Time: ###/mig;
|
||||||
$l1[$l] =~ s/\?v=[0-9.]+/?v=latest/mig; # warning URL
|
$l1[$l] =~ s/\?v=[0-9.]+/?v=latest/mig; # warning URL
|
||||||
$l1[$l] =~ s/_h[0-9a-f]{8}_/_h########_/mg;
|
$l1[$l] =~ s/_h[0-9a-f]{8}_/_h########_/mg;
|
||||||
$l1[$l] =~ s!%Error: \./!%Error: !mg; # clang gives ./ while GCC does not
|
$l1[$l] =~ s!%Error: /[^: ]+/([^/:])!%Error: .../$1!mg; # avoid absolute paths
|
||||||
$l1[$l] =~ s/ \/[^ ]+\/verilated_std.sv/ verilated_std.sv/mg;
|
$l1[$l] =~ s/ \/[^ ]+\/verilated_std.sv/ verilated_std.sv/mg;
|
||||||
if ($l1[$l] =~ s/Exiting due to.*/Exiting due to/mig) {
|
if ($l1[$l] =~ s/Exiting due to.*/Exiting due to/mig) {
|
||||||
splice @l1, $l+1; # Trunc rest
|
splice @l1, $l+1; # Trunc rest
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
%Error: /svaha/wsnyder/SandBox/homecvs/v4/verilator/include/verilated.cpp:2672: Adding model when time is non-zero. ... Suggest check time(), or for restarting model use a new VerilatedContext
|
%Error: Adding model when time is non-zero. ... Suggest check time(), or for restarting model use a new VerilatedContext
|
||||||
Aborting...
|
Aborting...
|
||||||
|
Loading…
Reference in New Issue
Block a user