ilasynth  1.0
ILASynth: Template-based ILA Synthesis Engine
Public Types | Public Member Functions | Static Public Attributes | Protected Attributes | Private Member Functions | Friends | List of all members
ilasynth::CppVar Class Reference

#include <cppsimgen.hpp>

Public Types

typedef mp_int_t cppBvType
 

Public Member Functions

 CppVar (nptr_t nptr, const std::string &name="")
 
 CppVar (const Node *node, const std::string &name="")
 
 CppVar (int width)
 
 CppVar (const std::string &name, const std::string &val)
 
 CppVar (const CppVar *var)
 
 ~CppVar ()
 
std::string def () const
 
std::string refDef () const
 
std::string ctorDef () const
 
std::string vType () const
 
std::string use () const
 
std::string signedUse () const
 
std::string exactUse () const
 
std::string castUse () const
 

Static Public Attributes

static int varCnt
 
static std::string boolStr
 
static std::string bvStr
 
static std::string memStr
 
static std::string voidStr
 

Protected Attributes

std::string _type
 
std::string _name
 
std::string _val
 
int _width
 
int _idxwidth
 
bool _isConst
 

Private Member Functions

void init (nptr_t n)
 
void init (const Node *n)
 

Friends

class CppFun
 
class CppSimGen
 

Member Typedef Documentation

◆ cppBvType

Constructor & Destructor Documentation

◆ CppVar() [1/5]

ilasynth::CppVar::CppVar ( nptr_t  nptr,
const std::string &  name = "" 
)

◆ CppVar() [2/5]

ilasynth::CppVar::CppVar ( const Node node,
const std::string &  name = "" 
)

◆ CppVar() [3/5]

ilasynth::CppVar::CppVar ( int  width)

◆ CppVar() [4/5]

ilasynth::CppVar::CppVar ( const std::string &  name,
const std::string &  val 
)

◆ CppVar() [5/5]

ilasynth::CppVar::CppVar ( const CppVar var)

◆ ~CppVar()

ilasynth::CppVar::~CppVar ( )

Member Function Documentation

◆ castUse()

std::string ilasynth::CppVar::castUse ( ) const

◆ ctorDef()

std::string ilasynth::CppVar::ctorDef ( ) const

◆ def()

std::string ilasynth::CppVar::def ( ) const

◆ exactUse()

std::string ilasynth::CppVar::exactUse ( ) const

◆ init() [1/2]

void ilasynth::CppVar::init ( nptr_t  n)
private

◆ init() [2/2]

void ilasynth::CppVar::init ( const Node n)
private

◆ refDef()

std::string ilasynth::CppVar::refDef ( ) const

◆ signedUse()

std::string ilasynth::CppVar::signedUse ( ) const

◆ use()

std::string ilasynth::CppVar::use ( ) const

◆ vType()

std::string ilasynth::CppVar::vType ( ) const

Friends And Related Function Documentation

◆ CppFun

friend class CppFun
friend

◆ CppSimGen

friend class CppSimGen
friend

Member Data Documentation

◆ _idxwidth

int ilasynth::CppVar::_idxwidth
protected

◆ _isConst

bool ilasynth::CppVar::_isConst
protected

◆ _name

std::string ilasynth::CppVar::_name
protected

◆ _type

std::string ilasynth::CppVar::_type
protected

◆ _val

std::string ilasynth::CppVar::_val
protected

◆ _width

int ilasynth::CppVar::_width
protected

◆ boolStr

std::string ilasynth::CppVar::boolStr
static

◆ bvStr

std::string ilasynth::CppVar::bvStr
static

◆ memStr

std::string ilasynth::CppVar::memStr
static

◆ varCnt

int ilasynth::CppVar::varCnt
static

◆ voidStr

std::string ilasynth::CppVar::voidStr
static

The documentation for this class was generated from the following file: