#include <cppsimgen.hpp>
|
| CppSimGen (const std::string &prefix) |
|
| ~CppSimGen () |
|
CppVar * | addInput (const std::string &name, nptr_t node, bool ms=false) |
|
CppVar * | addState (const std::string &name, nptr_t node, bool ms=false) |
|
CppFun * | addFun (const std::string &name, bool ms=false) |
|
CppVar * | addFuncVar (const std::string &name, nptr_t node, bool ms=false) |
|
void | operator() (const Node *n) |
|
void | buildFun (CppFun *f, nptr_t nptr) |
|
void | setFunReturn (CppFun *f, nptr_t nptr) |
|
void | addFunUpdate (CppFun *f, nptr_t lhs, nptr_t rhs) |
|
void | addFunUpdate (CppFun *f, nptr_t lhs, CppVar *rhs) |
|
void | endFun (CppFun *f) |
|
CppVar * | appFun (CppFun *appFun, CppFun *envFun) |
|
void | exportAllToFile (const std::string &fileName) const |
|
void | exportAllToDir (const std::string &dirName) const |
|
◆ CppFunMap
◆ CppVarMap
◆ CppSimGen()
ilasynth::CppSimGen::CppSimGen |
( |
const std::string & |
prefix | ) |
|
◆ ~CppSimGen()
ilasynth::CppSimGen::~CppSimGen |
( |
| ) |
|
◆ addFun()
CppFun* ilasynth::CppSimGen::addFun |
( |
const std::string & |
name, |
|
|
bool |
ms = false |
|
) |
| |
◆ addFuncVar()
CppVar* ilasynth::CppSimGen::addFuncVar |
( |
const std::string & |
name, |
|
|
nptr_t |
node, |
|
|
bool |
ms = false |
|
) |
| |
◆ addFunUpdate() [1/2]
◆ addFunUpdate() [2/2]
◆ addInput()
CppVar* ilasynth::CppSimGen::addInput |
( |
const std::string & |
name, |
|
|
nptr_t |
node, |
|
|
bool |
ms = false |
|
) |
| |
◆ addState()
CppVar* ilasynth::CppSimGen::addState |
( |
const std::string & |
name, |
|
|
nptr_t |
node, |
|
|
bool |
ms = false |
|
) |
| |
◆ appFun()
◆ buildFun()
void ilasynth::CppSimGen::buildFun |
( |
CppFun * |
f, |
|
|
nptr_t |
nptr |
|
) |
| |
◆ checkAndInsert()
template<class T >
void ilasynth::CppSimGen::checkAndInsert |
( |
std::map< std::string, T *> & |
mp, |
|
|
const std::string & |
name, |
|
|
T * |
var, |
|
|
bool |
force = false |
|
) |
| |
|
private |
◆ createCommon()
void ilasynth::CppSimGen::createCommon |
( |
std::ostream & |
out | ) |
const |
|
private |
◆ defMemClass()
void ilasynth::CppSimGen::defMemClass |
( |
std::ostream & |
out | ) |
const |
|
private |
◆ defUnitpFunc()
void ilasynth::CppSimGen::defUnitpFunc |
( |
std::ostream & |
out | ) |
const |
|
private |
◆ depthFirstTraverse()
void ilasynth::CppSimGen::depthFirstTraverse |
( |
nptr_t |
n | ) |
|
|
private |
◆ endFun()
void ilasynth::CppSimGen::endFun |
( |
CppFun * |
f | ) |
|
◆ exportAllToDir()
void ilasynth::CppSimGen::exportAllToDir |
( |
const std::string & |
dirName | ) |
const |
◆ exportAllToFile()
void ilasynth::CppSimGen::exportAllToFile |
( |
const std::string & |
fileName | ) |
const |
◆ findVar()
CppVar* ilasynth::CppSimGen::findVar |
( |
CppVarMap & |
mp, |
|
|
const std::string & |
name |
|
) |
| |
|
private |
◆ genModel()
void ilasynth::CppSimGen::genModel |
( |
std::ostream & |
out | ) |
const |
|
private |
◆ getBoolConstCpp()
◆ getBoolOpCpp()
CppVar* ilasynth::CppSimGen::getBoolOpCpp |
( |
const BoolOp * |
n | ) |
|
|
private |
◆ getBoolVarCpp()
◆ getBvConstCpp()
◆ getBvOpCpp()
◆ getBvVarCpp()
◆ getFuncVarCpp()
◆ getMemConstCpp()
◆ getMemOpCpp()
CppVar* ilasynth::CppSimGen::getMemOpCpp |
( |
const MemOp * |
n | ) |
|
|
private |
◆ getMemVarCpp()
CppVar* ilasynth::CppSimGen::getMemVarCpp |
( |
const MemVar * |
n | ) |
|
|
private |
◆ getSignedCppCode()
std::string ilasynth::CppSimGen::getSignedCppCode |
( |
CppVar * |
var | ) |
|
|
private |
◆ isITE()
bool ilasynth::CppSimGen::isITE |
( |
nptr_t |
n | ) |
|
|
private |
◆ operator()()
void ilasynth::CppSimGen::operator() |
( |
const Node * |
n | ) |
|
◆ setFunReturn()
void ilasynth::CppSimGen::setFunReturn |
( |
CppFun * |
f, |
|
|
nptr_t |
nptr |
|
) |
| |
◆ setMemConst()
void ilasynth::CppSimGen::setMemConst |
( |
std::ostream & |
out | ) |
const |
|
private |
◆ _curFun
CppFun* ilasynth::CppSimGen::_curFun |
|
private |
◆ _curVar
CppVar* ilasynth::CppSimGen::_curVar |
|
private |
◆ _curVarMap
◆ _funMap
◆ _inputs
◆ _masks
◆ _memConst
◆ _modelName
std::string ilasynth::CppSimGen::_modelName |
|
private |
◆ _states
◆ _unitpFuncMap
◆ _unitpFuncVarMap
CppVarMap ilasynth::CppSimGen::_unitpFuncVarMap |
|
private |
◆ _varInFun
The documentation for this class was generated from the following file: