The wrapper of Instr (instruction).
More...
#include <ilang++.h>
The wrapper of Instr (instruction).
void ilang::InstrRef::ExportToVerilog |
( |
std::ostream & |
fout | ) |
const |
Export instruction without child-program as Verilog.
- Parameters
-
[in] | filename | the file name of the generated Verilog source |
void ilang::InstrRef::ExportToVerilogWithChild |
( |
std::ostream & |
fout | ) |
const |
Export instruction with the child-program as Verilog.
- Parameters
-
[in] | filename | the file name of the generated Verilog source |
ExprRef ilang::InstrRef::GetDecode |
( |
| ) |
const |
Get the decode function of the instruction.
- Returns
- the decode function wrapped in Expression reference.
Set the update function of the given state variable.
- Parameters
-
[in] | state | the state variable to set. |
- Returns
- the update function.
void ilang::InstrRef::SetDecode |
( |
const ExprRef & |
decode | ) |
|
Set the decode function of the instruction.
- Parameters
-
[in] | decode | the Boolean typed decode function. |
void ilang::InstrRef::SetProgram |
( |
const Ila & |
prog | ) |
|
Set the child-program of the instruction.
- Parameters
-
[in] | prog | the child-ILA representing the child-program. |
void ilang::InstrRef::SetUpdate |
( |
const ExprRef & |
state, |
|
|
const ExprRef & |
update |
|
) |
| |
Set the update function of the given state variable.
- Parameters
-
[in] | state | the state variable to set. |
[in] | update | the update function (should be the same type as state). |
The documentation for this class was generated from the following file: