CIRCT  20.0.0git
Macros | Functions | Variables
driver.cpp File Reference
#include "VEXPAND(ESI_Cosim_Top).h"
#include "verilated_vcd_c.h"
#include "signal.h"
#include <iostream>
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)   STR(x)
 
#define STR(x)   #x
 
#define EXPAND(x)   x
 
#define CONCAT3(n1, n2, n3)   STRINGIFY_MACRO(EXPAND(n1)EXPAND(n2)EXPAND(n3))
 
#define TOKENPASTE(x, y)   x ## y
 
#define CLASSNAME(x, y)   TOKENPASTE(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,
 
)    TOKENPASTE(x, y)

Definition at line 28 of file driver.cpp.

◆ CONCAT3

#define CONCAT3 (   n1,
  n2,
  n3 
)    STRINGIFY_MACRO(EXPAND(n1)EXPAND(n2)EXPAND(n3))

Definition at line 26 of file driver.cpp.

◆ EXPAND

#define EXPAND (   x)    x

Definition at line 25 of file driver.cpp.

◆ STR

#define STR (   x)    #x

Definition at line 24 of file driver.cpp.

◆ STRINGIFY_MACRO

#define STRINGIFY_MACRO (   x)    STR(x)

Definition at line 23 of file driver.cpp.

◆ TOKENPASTE

#define TOKENPASTE (   x,
 
)    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.

Function Documentation

◆ handle_sigint()

void handle_sigint ( int  )

Definition at line 42 of file driver.cpp.

References stopSimulation.

Referenced by main().

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 47 of file driver.cpp.

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

◆ sc_time_stamp()

double sc_time_stamp ( )

Definition at line 45 of file driver.cpp.

References timeStamp.

Variable Documentation

◆ stopSimulation

volatile bool stopSimulation = false

Definition at line 41 of file driver.cpp.

Referenced by handle_sigint(), and main().

◆ timeStamp

vluint64_t timeStamp

Definition at line 38 of file driver.cpp.

Referenced by main(), and sc_time_stamp().