Tests: Cleanup false used as 0. No functional change.

This commit is contained in:
Wilson Snyder 2020-02-29 08:56:49 -05:00
parent e98a380b44
commit a7bd934fe3
11 changed files with 16 additions and 16 deletions

View File

@ -1724,7 +1724,7 @@ sub _make_main {
} }
$fh->print("\n"); $fh->print("\n");
print $fh " delete topp; topp=NULL;\n"; print $fh " VL_DO_DANGLING(delete topp, topp);\n";
print $fh " exit(0L);\n"; print $fh " exit(0L);\n";
print $fh "}\n"; print $fh "}\n";
$fh->close(); $fh->close();

View File

@ -8,7 +8,7 @@
#include <verilated.h> #include <verilated.h>
#include VM_PREFIX_INCLUDE #include VM_PREFIX_INCLUDE
unsigned int main_time = false; unsigned int main_time = 0;
double sc_time_stamp() { return main_time; } double sc_time_stamp() { return main_time; }

View File

@ -114,7 +114,7 @@ void mon_eval() {
//====================================================================== //======================================================================
unsigned int main_time = false; unsigned int main_time = 0;
double sc_time_stamp() { return main_time; } double sc_time_stamp() { return main_time; }
int main(int argc, char** argv, char** env) { int main(int argc, char** argv, char** env) {

View File

@ -12,7 +12,7 @@
#include <verilated.h> #include <verilated.h>
#include "Vt_leak.h" #include "Vt_leak.h"
unsigned int main_time = false; unsigned int main_time = 0;
double sc_time_stamp() { return main_time; } double sc_time_stamp() { return main_time; }
long long get_memory_usage() { long long get_memory_usage() {

View File

@ -45,7 +45,7 @@ using namespace std;
#define TEST_MSG \ #define TEST_MSG \
if (0) printf if (0) printf
unsigned int main_time = false; unsigned int main_time = 0;
//====================================================================== //======================================================================

View File

@ -45,7 +45,7 @@ using namespace std;
#define DEBUG \ #define DEBUG \
if (0) printf if (0) printf
unsigned int main_time = false; unsigned int main_time = 0;
//====================================================================== //======================================================================

View File

@ -45,7 +45,7 @@ using namespace std;
#define DEBUG \ #define DEBUG \
if (0) printf if (0) printf
unsigned int main_time = false; unsigned int main_time = 0;
#define CHECK_RESULT_NZ(got) \ #define CHECK_RESULT_NZ(got) \
if (!(got)) { \ if (!(got)) { \

View File

@ -43,7 +43,7 @@ using namespace std;
#define TEST_MSG \ #define TEST_MSG \
if (0) printf if (0) printf
unsigned int main_time = false; unsigned int main_time = 0;
unsigned int callback_count_time1 = 3; unsigned int callback_count_time1 = 3;
unsigned int callback_count_time2 = 4; unsigned int callback_count_time2 = 4;
unsigned int callback_count_start_of_sim = 0; unsigned int callback_count_start_of_sim = 0;

View File

@ -32,8 +32,8 @@
#define DEBUG \ #define DEBUG \
if (0) printf if (0) printf
unsigned int main_time = false; unsigned int main_time = 0;
unsigned int callback_count = false; unsigned int callback_count = 0;
//====================================================================== //======================================================================

View File

@ -45,11 +45,11 @@ using namespace std;
#define TEST_MSG \ #define TEST_MSG \
if (0) printf if (0) printf
unsigned int main_time = false; unsigned int main_time = 0;
unsigned int callback_count = false; unsigned int callback_count = 0;
unsigned int callback_count_half = false; unsigned int callback_count_half = 0;
unsigned int callback_count_quad = false; unsigned int callback_count_quad = 0;
unsigned int callback_count_strs = false; unsigned int callback_count_strs = 0;
unsigned int callback_count_strs_max = 500; unsigned int callback_count_strs_max = 500;
//====================================================================== //======================================================================

View File

@ -43,7 +43,7 @@ using namespace std;
#define TEST_MSG \ #define TEST_MSG \
if (0) printf if (0) printf
unsigned int main_time = false; unsigned int main_time = 0;
unsigned int callback_count_zero_time = 0; unsigned int callback_count_zero_time = 0;
unsigned int callback_count_start_of_sim = 0; unsigned int callback_count_start_of_sim = 0;