CIRCT 24.0.0git
Loading...
Searching...
No Matches
driver.cpp File Reference
#include <CONCAT3(V,TOP_MODULE,.h)>
#include "verilated_fst_c.h"
#include "signal.h"
#include <iostream>
#include <thread>
Include dependency graph for driver.cpp:

Go to the source code of this file.

Macros

#define TOP_MODULE   ESI_Cosim_Top
#define STRINGIFY_MACRO(x)
#define STR(x)
#define EXPAND(x)
#define CONCAT3(n1, n2, n3)
#define TOKENPASTE(x, y)
#define CLASSNAME(x, y)

Functions

void handle_sigint (int)
double sc_time_stamp ()
int main (int argc, char **argv)

Variables

vluint64_t timeStamp
volatile bool stopSimulation = false

Macro Definition Documentation

◆ CLASSNAME

#define CLASSNAME ( x,
y )
Value:
#define TOKENPASTE(x, y)
Definition driver.cpp:27

Definition at line 28 of file driver.cpp.

Referenced by main().

◆ CONCAT3

#define CONCAT3 ( n1,
n2,
n3 )
Value:
#define STRINGIFY_MACRO(x)
Definition driver.cpp:23
#define EXPAND(x)
Definition driver.cpp:25

Definition at line 26 of file driver.cpp.

◆ EXPAND

#define EXPAND ( x)
Value:
x

Definition at line 25 of file driver.cpp.

◆ STR

#define STR ( x)
Value:
#x

Definition at line 24 of file driver.cpp.

◆ STRINGIFY_MACRO

#define STRINGIFY_MACRO ( x)
Value:
STR(x)
#define STR(x)
Definition driver.cpp:24

Definition at line 23 of file driver.cpp.

◆ TOKENPASTE

#define TOKENPASTE ( x,
y )
Value:
x ## y

Definition at line 27 of file driver.cpp.

◆ TOP_MODULE

#define TOP_MODULE   ESI_Cosim_Top

Definition at line 15 of file driver.cpp.

Referenced by main().

Function Documentation

◆ handle_sigint()

void handle_sigint ( int )

Definition at line 43 of file driver.cpp.

References stopSimulation.

Referenced by main().

◆ main()

int main ( int argc,
char ** argv )

Definition at line 48 of file driver.cpp.

References CLASSNAME, handle_sigint(), stopSimulation, timeStamp, and TOP_MODULE.

◆ sc_time_stamp()

double sc_time_stamp ( )

Definition at line 46 of file driver.cpp.

References timeStamp.

Variable Documentation

◆ stopSimulation

volatile bool stopSimulation = false

Definition at line 42 of file driver.cpp.

Referenced by handle_sigint(), and main().

◆ timeStamp

vluint64_t timeStamp

Definition at line 39 of file driver.cpp.

Referenced by main(), and sc_time_stamp().