forked from github/verilator
Tests: Cleanup false used as 0. No functional change.
This commit is contained in:
parent
e98a380b44
commit
a7bd934fe3
@ -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();
|
||||||
|
@ -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; }
|
||||||
|
|
||||||
|
@ -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) {
|
||||||
|
@ -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() {
|
||||||
|
@ -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;
|
||||||
|
|
||||||
//======================================================================
|
//======================================================================
|
||||||
|
|
||||||
|
@ -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;
|
||||||
|
|
||||||
//======================================================================
|
//======================================================================
|
||||||
|
|
||||||
|
@ -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)) { \
|
||||||
|
@ -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;
|
||||||
|
@ -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;
|
||||||
|
|
||||||
//======================================================================
|
//======================================================================
|
||||||
|
|
||||||
|
@ -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;
|
||||||
|
|
||||||
//======================================================================
|
//======================================================================
|
||||||
|
@ -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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user