mirror of
https://github.com/verilator/verilator.git
synced 2025-01-06 06:37:45 +00:00
Tests: Add missing sc_time_stamp calls.
This commit is contained in:
parent
e44563fddc
commit
95b0e9eef2
@ -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()) {
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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);
|
||||
|
@ -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,
|
||||
|
@ -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)) { \
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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) {
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user