Includes: Move version to implementation only.
This commit is contained in:
parent
b7e4083e70
commit
9bc8d77f39
|
|
@ -24,7 +24,10 @@
|
||||||
//=========================================================================
|
//=========================================================================
|
||||||
|
|
||||||
#define _VERILATED_CPP_
|
#define _VERILATED_CPP_
|
||||||
|
|
||||||
#include "verilated_imp.h"
|
#include "verilated_imp.h"
|
||||||
|
#include "verilated_config.h"
|
||||||
|
|
||||||
#include <cctype>
|
#include <cctype>
|
||||||
#include <sys/stat.h> // mkdir
|
#include <sys/stat.h> // mkdir
|
||||||
|
|
||||||
|
|
@ -1721,6 +1724,13 @@ void Verilated::flushCall() VL_MT_SAFE {
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const char* Verilated::productName() VL_PURE {
|
||||||
|
return VERILATOR_PRODUCT;
|
||||||
|
}
|
||||||
|
const char* Verilated::productVersion() VL_PURE {
|
||||||
|
return VERILATOR_VERSION;
|
||||||
|
}
|
||||||
|
|
||||||
void Verilated::commandArgs(int argc, const char** argv) VL_MT_SAFE {
|
void Verilated::commandArgs(int argc, const char** argv) VL_MT_SAFE {
|
||||||
VerilatedLockGuard lock(s_args.m_argMutex);
|
VerilatedLockGuard lock(s_args.m_argMutex);
|
||||||
s_args.argc = argc;
|
s_args.argc = argc;
|
||||||
|
|
|
||||||
|
|
@ -28,15 +28,14 @@
|
||||||
#ifndef _VERILATED_H_
|
#ifndef _VERILATED_H_
|
||||||
#define _VERILATED_H_ 1 ///< Header Guard
|
#define _VERILATED_H_ 1 ///< Header Guard
|
||||||
|
|
||||||
#include "verilated_config.h"
|
|
||||||
#include "verilatedos.h"
|
#include "verilatedos.h"
|
||||||
|
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
#include <cmath>
|
||||||
#include <cstdarg>
|
#include <cstdarg>
|
||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
#include <cstdlib>
|
#include <cstdlib>
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
#include <cmath>
|
|
||||||
#ifdef VL_THREADED
|
#ifdef VL_THREADED
|
||||||
# include <atomic>
|
# include <atomic>
|
||||||
# include <mutex>
|
# include <mutex>
|
||||||
|
|
@ -448,8 +447,8 @@ public:
|
||||||
static const char* commandArgsPlusMatch(const char* prefixp) VL_MT_SAFE;
|
static const char* commandArgsPlusMatch(const char* prefixp) VL_MT_SAFE;
|
||||||
|
|
||||||
/// Produce name & version for (at least) VPI
|
/// Produce name & version for (at least) VPI
|
||||||
static const char* productName() VL_PURE { return VERILATOR_PRODUCT; }
|
static const char* productName() VL_PURE;
|
||||||
static const char* productVersion() VL_PURE { return VERILATOR_VERSION; }
|
static const char* productVersion() VL_PURE;
|
||||||
|
|
||||||
/// Convenience OS utilities
|
/// Convenience OS utilities
|
||||||
static void mkdir(const char* dirname) VL_MT_UNSAFE;
|
static void mkdir(const char* dirname) VL_MT_UNSAFE;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue