OpenASIP
2.0
|
#include <CompiledSimMove.hh>
Public Member Functions | |
CompiledSimMove (const TTAProgram::Move &move, const std::string &guardSymbol, const CompiledSimSymbolGenerator &symbolGenerator) | |
CompiledSimMove (const CompiledSimMove &) | |
CompiledSimMove & | operator= (const CompiledSimMove &) |
std::string | copyToBusCode () const |
std::string | copyFromBusCode () const |
const TTAProgram::Terminal & | destination () const |
Private Attributes | |
const TTAProgram::Move * | move_ |
The move. More... | |
const TTAProgram::Terminal * | source_ |
Source of move. More... | |
const TTAProgram::Terminal * | destination_ |
Destination of move. More... | |
const TTAMachine::Bus * | bus_ |
Bus. More... | |
std::string | guardSymbol_ |
guard symbol used for move More... | |
const CompiledSimSymbolGenerator & | symbolGenerator_ |
the symbol generator More... | |
A class that handles copying values to/from a bus in the compiled simulation
Definition at line 53 of file CompiledSimMove.hh.
CompiledSimMove::CompiledSimMove | ( | const TTAProgram::Move & | move, |
const std::string & | guardSymbol, | ||
const CompiledSimSymbolGenerator & | symbolGenerator | ||
) |
The Constructor
move | The original move |
guardSymbol | Symbolname of the guard or "" if no guard is used |
Definition at line 49 of file CompiledSimMove.cc.
CompiledSimMove::CompiledSimMove | ( | const CompiledSimMove & | move | ) |
std::string CompiledSimMove::copyFromBusCode | ( | ) | const |
Generates C/C++ code that copies data from bus variable to a move destination
Definition at line 107 of file CompiledSimMove.cc.
References bus_, CompiledSimSymbolGenerator::busSymbol(), destination(), destination_, guardSymbol_, move_, CompiledSimSymbolGenerator::moveOperandSymbol(), and symbolGenerator_.
std::string CompiledSimMove::copyToBusCode | ( | ) | const |
Generates C/C++ code that copies data from move source to a bus variable
Definition at line 95 of file CompiledSimMove.cc.
References bus_, CompiledSimSymbolGenerator::busSymbol(), move_, CompiledSimSymbolGenerator::moveOperandSymbol(), source_, and symbolGenerator_.
Referenced by CompiledSimCodeGenerator::generateInstruction().
|
inline |
Definition at line 64 of file CompiledSimMove.hh.
References destination_.
Referenced by copyFromBusCode().
CompiledSimMove & CompiledSimMove::operator= | ( | const CompiledSimMove & | move | ) |
Assignmnent operator
move | the move |
Definition at line 80 of file CompiledSimMove.cc.
References bus_, destination_, guardSymbol_, and source_.
|
private |
Bus.
Definition at line 76 of file CompiledSimMove.hh.
Referenced by copyFromBusCode(), copyToBusCode(), and operator=().
|
private |
Destination of move.
Definition at line 73 of file CompiledSimMove.hh.
Referenced by copyFromBusCode(), destination(), and operator=().
|
private |
guard symbol used for move
Definition at line 79 of file CompiledSimMove.hh.
Referenced by copyFromBusCode(), and operator=().
|
private |
The move.
Definition at line 67 of file CompiledSimMove.hh.
Referenced by copyFromBusCode(), and copyToBusCode().
|
private |
Source of move.
Definition at line 70 of file CompiledSimMove.hh.
Referenced by copyToBusCode(), and operator=().
|
private |
the symbol generator
Definition at line 82 of file CompiledSimMove.hh.
Referenced by copyFromBusCode(), and copyToBusCode().