Tests: Add missing sc_time_stamp calls.

This commit is contained in:
Wilson Snyder 2021-02-16 20:34:44 -05:00
parent e44563fddc
commit 95b0e9eef2
9 changed files with 18 additions and 0 deletions

View File

@ -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()) {

View File

@ -9,6 +9,8 @@
#include <verilated.h>
#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;

View File

@ -6,6 +6,8 @@
#include <verilated.h>
#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);

View File

@ -7,6 +7,8 @@
#include <verilated.h>
#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,

View File

@ -10,6 +10,8 @@
#include <verilated.h>
#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)) { \

View File

@ -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;

View File

@ -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;

View File

@ -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) {

View File

@ -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