From 95b0e9eef2eb3805a5a4d3284a11f5b6894cda2c Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Tue, 16 Feb 2021 20:34:44 -0500 Subject: [PATCH] Tests: Add missing sc_time_stamp calls. --- test_regress/t/t_dpi_accessors.cpp | 2 ++ test_regress/t/t_func_rand.cpp | 2 ++ test_regress/t/t_math_imm2.cpp | 2 ++ test_regress/t/t_mem_slot.cpp | 2 ++ test_regress/t/t_multitop_sig.cpp | 2 ++ test_regress/t/t_order_multidriven.cpp | 2 ++ test_regress/t/t_param_public.cpp | 2 ++ test_regress/t/t_trace_c_api.cpp | 2 ++ test_regress/t/t_x_assign.cpp | 2 ++ 9 files changed, 18 insertions(+) diff --git a/test_regress/t/t_dpi_accessors.cpp b/test_regress/t/t_dpi_accessors.cpp index c20c81745..57b58a7df 100644 --- a/test_regress/t/t_dpi_accessors.cpp +++ b/test_regress/t/t_dpi_accessors.cpp @@ -26,6 +26,8 @@ using std::hex; using std::setfill; using std::setw; +double sc_time_stamp() { return 0; } + // Convenience function to check we didn't finish unexpectedly static void checkFinish(const char* msg) { if (Verilated::gotFinish()) { diff --git a/test_regress/t/t_func_rand.cpp b/test_regress/t/t_func_rand.cpp index 6a93db0ff..c3b43a385 100644 --- a/test_regress/t/t_func_rand.cpp +++ b/test_regress/t/t_func_rand.cpp @@ -9,6 +9,8 @@ #include #include "Vt_func_rand.h" +double sc_time_stamp() { return 0; } + int main(int argc, char* argv[]) { Vt_func_rand* topp = new Vt_func_rand; diff --git a/test_regress/t/t_math_imm2.cpp b/test_regress/t/t_math_imm2.cpp index 163e797b7..191b4eafa 100644 --- a/test_regress/t/t_math_imm2.cpp +++ b/test_regress/t/t_math_imm2.cpp @@ -6,6 +6,8 @@ #include #include "Vt_math_imm2.h" +double sc_time_stamp() { return 0; } + QData MaskVal(int lbit, int hbit) { QData val; for (val = 0; lbit <= hbit; lbit++) val |= (1ULL << lbit); diff --git a/test_regress/t/t_mem_slot.cpp b/test_regress/t/t_mem_slot.cpp index 501c9113f..02f228c9b 100644 --- a/test_regress/t/t_mem_slot.cpp +++ b/test_regress/t/t_mem_slot.cpp @@ -7,6 +7,8 @@ #include #include "Vt_mem_slot.h" +double sc_time_stamp() { return 0; } + unsigned int Array[3]; unsigned int StepSim(Vt_mem_slot* sim, unsigned int slot, unsigned int bit, unsigned int val, diff --git a/test_regress/t/t_multitop_sig.cpp b/test_regress/t/t_multitop_sig.cpp index e89b40853..4cdca1235 100644 --- a/test_regress/t/t_multitop_sig.cpp +++ b/test_regress/t/t_multitop_sig.cpp @@ -10,6 +10,8 @@ #include #include "Vt_multitop_sig.h" +double sc_time_stamp() { return 0; } + // Use cout to avoid issues with %d/%lx etc #define CHECK_RESULT(got, exp) \ if ((got) != (exp)) { \ diff --git a/test_regress/t/t_order_multidriven.cpp b/test_regress/t/t_order_multidriven.cpp index 5f6003e4b..9a5993967 100644 --- a/test_regress/t/t_order_multidriven.cpp +++ b/test_regress/t/t_order_multidriven.cpp @@ -8,6 +8,8 @@ #include "verilated.h" #include "verilated_vcd_c.h" +double sc_time_stamp() { return 0; } + Vt_order_multidriven* vcore; VerilatedVcdC* vcd; vluint64_t vtime; diff --git a/test_regress/t/t_param_public.cpp b/test_regress/t/t_param_public.cpp index f2e158a78..c206441e3 100644 --- a/test_regress/t/t_param_public.cpp +++ b/test_regress/t/t_param_public.cpp @@ -12,6 +12,8 @@ #include "Vt_param_public_p.h" #include "Vt_param_public_t.h" +double sc_time_stamp() { return 0; } + int main(int argc, char* argv[]) { Vt_param_public* topp = new Vt_param_public; diff --git a/test_regress/t/t_trace_c_api.cpp b/test_regress/t/t_trace_c_api.cpp index 5b8e5dbc7..d2d3f0921 100644 --- a/test_regress/t/t_trace_c_api.cpp +++ b/test_regress/t/t_trace_c_api.cpp @@ -11,6 +11,8 @@ #include VM_PREFIX_INCLUDE +double sc_time_stamp() { return 0; } + extern void vcdTestMain(const char* filenamep); int main(int argc, char** argv, char** env) { diff --git a/test_regress/t/t_x_assign.cpp b/test_regress/t/t_x_assign.cpp index 502301c7c..9ab268a4f 100644 --- a/test_regress/t/t_x_assign.cpp +++ b/test_regress/t/t_x_assign.cpp @@ -14,6 +14,8 @@ #include "verilated.h" #include VM_PREFIX_INCLUDE +double sc_time_stamp() { return 0; } + // clang-format off #if defined(T_X_ASSIGN_0) # define EXPECTED 0