OpenASIP 2.2
|
#include <OTAOperationDialog.hh>
Public Member Functions | |
OTAOperationDialog (wxWindow *parent, TTAMachine::OperationTriggeredFormat *format) | |
virtual | ~OTAOperationDialog () |
Private Types | |
enum | { ID_LABEL_OTA_OPERATION = 10000 , ID_OTA_OPERATION , ID_LIST , ID_OP_FILTER , ID_LINE , ID_OP_FILTER_LABEL } |
Private Member Functions | |
wxSizer * | createContents (wxWindow *parent, bool call_fit, bool set_sizer) |
virtual bool | TransferDataToWindow () |
virtual bool | TransferDataFromWindow () |
void | onOK (wxCommandEvent &event) |
void | onOperationFilterChange (wxCommandEvent &event) |
void | onSelectOperation (wxCommandEvent &event) |
int | numberOfInputs () const |
int | numberOfOutputs () const |
bool | validFormatName () const |
std::set< TCEString > | addRISCVBaseOperations (std::set< TCEString > opset) const |
Private Attributes | |
TCEString | operation_ |
Name of the selected operation. | |
wxListBox * | operationList_ |
Operation list widget. | |
TCEString | opNameFilter_ = "" |
A string to filter opset list. | |
TTAMachine::OperationTriggeredFormat * | format_ |
Dialog for editing telplate slot properties.
Definition at line 42 of file OTAOperationDialog.hh.
|
private |
Enumerator | |
---|---|
ID_LABEL_OTA_OPERATION | |
ID_OTA_OPERATION | |
ID_LIST | |
ID_OP_FILTER | |
ID_LINE | |
ID_OP_FILTER_LABEL |
Definition at line 75 of file OTAOperationDialog.hh.
OTAOperationDialog::OTAOperationDialog | ( | wxWindow * | parent, |
TTAMachine::OperationTriggeredFormat * | format | ||
) |
The Constructor.
parent | Parent window of the dialog. |
format | OperationTriggeredFormat format to edit. |
operation | Operation to edit, NULL if a new operation is being added. |
Definition at line 70 of file OTAOperationDialog.cc.
|
virtual |
|
private |
Definition at line 141 of file OTAOperationDialog.cc.
References format_, TTAMachine::OperationTriggeredFormat::hasOperation(), TTAMachine::Machine::hasOperation(), TTAMachine::Component::machine(), TTAMachine::Component::name(), opNameFilter_, RISCVFields::RISCV_B_TYPE_NAME, RISCVFields::RISCV_I_TYPE_NAME, RISCVFields::RISCV_J_TYPE_NAME, RISCVFields::RISCV_R_TYPE_NAME, RISCVFields::RISCV_S_TYPE_NAME, RISCVFields::RISCV_U_TYPE_NAME, RISCVFields::RISCVBTypeOperations, RISCVFields::RISCVITypeOperations, RISCVFields::RISCVJTypeOperations, RISCVFields::RISCVOperationNameTable, RISCVFields::RISCVRTypeOperations, RISCVFields::RISCVSTypeOperations, and RISCVFields::RISCVUTypeOperations.
Referenced by TransferDataToWindow().
|
private |
Creates the dialog widgets.
parent | Parent window of the widgets. |
Definition at line 289 of file OTAOperationDialog.cc.
References ID_LINE, ID_LIST, ID_OP_FILTER, and ID_OP_FILTER_LABEL.
|
private |
Definition at line 90 of file OTAOperationDialog.cc.
References format_, TTAMachine::Component::name(), RISCVFields::RISCV_B_TYPE_NAME, RISCVFields::RISCV_I_TYPE_NAME, RISCVFields::RISCV_J_TYPE_NAME, RISCVFields::RISCV_R1_TYPE_NAME, RISCVFields::RISCV_R1R_TYPE_NAME, RISCVFields::RISCV_R3R_TYPE_NAME, RISCVFields::RISCV_R_TYPE_NAME, RISCVFields::RISCV_S_TYPE_NAME, and RISCVFields::RISCV_U_TYPE_NAME.
Referenced by TransferDataToWindow().
|
private |
Definition at line 112 of file OTAOperationDialog.cc.
References format_, TTAMachine::Component::name(), RISCVFields::RISCV_I_TYPE_NAME, RISCVFields::RISCV_J_TYPE_NAME, RISCVFields::RISCV_R1R_TYPE_NAME, RISCVFields::RISCV_R3R_TYPE_NAME, RISCVFields::RISCV_R_TYPE_NAME, and RISCVFields::RISCV_U_TYPE_NAME.
Referenced by TransferDataToWindow().
|
private |
Event handler for the OK button.
Definition at line 238 of file OTAOperationDialog.cc.
References TTAMachine::OperationTriggeredFormat::addOperation(), format_, TTAMachine::OperationTriggeredFormat::hasOperation(), operation_, operationList_, and TransferDataFromWindow().
|
private |
Event handler for opset filtering.
Definition at line 270 of file OTAOperationDialog.cc.
References TCEString::lower(), opNameFilter_, and TransferDataToWindow().
|
private |
Event handler for the operation list selections.
Enables and disables the OK button. Displays operation description and ports count.
Definition at line 259 of file OTAOperationDialog.cc.
References operation_, operationList_, and WxConversion::toString().
|
privatevirtual |
Reads user choices from the dialog widgets.
Definition at line 229 of file OTAOperationDialog.cc.
References operation_, operationList_, and WxConversion::toString().
Referenced by onOK().
|
privatevirtual |
Transfers data to the opset list.
Definition at line 180 of file OTAOperationDialog.cc.
References addRISCVBaseOperations(), MapTools::containsValue(), TTAMachine::Machine::Navigator< ComponentType >::count(), format_, TTAMachine::Machine::functionUnitNavigator(), TTAMachine::OperationTriggeredFormat::hasOperation(), TTAMachine::Machine::Navigator< ComponentType >::item(), TCEString::lower(), TTAMachine::Component::machine(), TTAMachine::HWOperation::name(), TTAMachine::Component::name(), TTAMachine::HWOperation::numberOfInputs(), numberOfInputs(), TTAMachine::HWOperation::numberOfOutputs(), numberOfOutputs(), TTAMachine::FunctionUnit::operation(), TTAMachine::FunctionUnit::operationCount(), operationList_, opNameFilter_, RISCVFields::RISCV_R1_TYPE_NAME, RISCVFields::RISCV_R1R_TYPE_NAME, RISCVFields::RISCV_R3R_TYPE_NAME, RISCVFields::RISCV_R_TYPE_NAME, RISCVFields::RISCVOperationNameTable, and WxConversion::toWxString().
Referenced by onOperationFilterChange().
|
private |
Definition at line 125 of file OTAOperationDialog.cc.
References format_, TTAMachine::Component::name(), RISCVFields::RISCV_B_TYPE_NAME, RISCVFields::RISCV_I_TYPE_NAME, RISCVFields::RISCV_J_TYPE_NAME, RISCVFields::RISCV_R1_TYPE_NAME, RISCVFields::RISCV_R1R_TYPE_NAME, RISCVFields::RISCV_R3R_TYPE_NAME, RISCVFields::RISCV_R_TYPE_NAME, RISCVFields::RISCV_S_TYPE_NAME, and RISCVFields::RISCV_U_TYPE_NAME.
|
private |
Definition at line 72 of file OTAOperationDialog.hh.
Referenced by addRISCVBaseOperations(), numberOfInputs(), numberOfOutputs(), onOK(), TransferDataToWindow(), and validFormatName().
|
private |
Name of the selected operation.
Definition at line 66 of file OTAOperationDialog.hh.
Referenced by onOK(), onSelectOperation(), and TransferDataFromWindow().
|
private |
Operation list widget.
Definition at line 68 of file OTAOperationDialog.hh.
Referenced by onOK(), onSelectOperation(), TransferDataFromWindow(), and TransferDataToWindow().
|
private |
A string to filter opset list.
Definition at line 70 of file OTAOperationDialog.hh.
Referenced by addRISCVBaseOperations(), onOperationFilterChange(), and TransferDataToWindow().