OpenASIP
2.0
|
#include <GenerateProcessorDialog.hh>
Public Member Functions | |
GenerateProcessorDialog (wxWindow *parent, TTAMachine::Machine &machine, const IDF::MachineImplementation &impl) | |
virtual | ~GenerateProcessorDialog () |
Private Types | |
enum | { ID_GENERATE_BEM, ID_LOAD_BEM, ID_SAVE_BEM, ID_BROWSE_BEM_LOAD, ID_BEM_LOAD_PATH, ID_BROWSE_BEM_SAVE, ID_BEM_SAVE_PATH, ID_TARGET, ID_BROWSE_TARGET, ID_LINE, ID_VHDL, ID_VERILOG } |
Widget IDs. More... | |
Private Member Functions | |
void | onOK (wxCommandEvent &event) |
void | onBrowseBEMLoad (wxCommandEvent &event) |
void | onBrowseBEMSave (wxCommandEvent &event) |
void | onBrowseTargetDir (wxCommandEvent &event) |
ProGe::ICDecoderGeneratorPlugin * | loadICDecoderGeneratorPlugin (const std::string &pluginFile, const std::string &pluginName) |
wxSizer * | createContents (wxWindow *parent, bool call_fit, bool set_sizer) |
Private Attributes | |
TTAMachine::Machine & | machine_ |
Processor architecture. More... | |
const IDF::MachineImplementation & | impl_ |
Processor implementation definition. More... | |
BinaryEncoding * | bem_ |
Binary Encosing Map. More... | |
Dialog for generating processor implementation using ProGe.
Definition at line 56 of file GenerateProcessorDialog.hh.
|
private |
Widget IDs.
Enumerator | |
---|---|
ID_GENERATE_BEM | |
ID_LOAD_BEM | |
ID_SAVE_BEM | |
ID_BROWSE_BEM_LOAD | |
ID_BEM_LOAD_PATH | |
ID_BROWSE_BEM_SAVE | |
ID_BEM_SAVE_PATH | |
ID_TARGET | |
ID_BROWSE_TARGET | |
ID_LINE | |
ID_VHDL | |
ID_VERILOG |
Definition at line 84 of file GenerateProcessorDialog.hh.
GenerateProcessorDialog::GenerateProcessorDialog | ( | wxWindow * | parent, |
TTAMachine::Machine & | machine, | ||
const IDF::MachineImplementation & | impl | ||
) |
The Constructor.
paren | Parent window of the dialog. |
machine | Processor architecture. |
imp | Processor implementation definition. |
Definition at line 87 of file GenerateProcessorDialog.cc.
|
virtual |
|
private |
Craetes the dialog contents.
Definition at line 358 of file GenerateProcessorDialog.cc.
References ID_BEM_LOAD_PATH, ID_BEM_SAVE_PATH, ID_BROWSE_BEM_LOAD, ID_BROWSE_BEM_SAVE, ID_BROWSE_TARGET, ID_GENERATE_BEM, ID_LINE, ID_LOAD_BEM, ID_SAVE_BEM, ID_TARGET, ID_VERILOG, ID_VHDL, and TRUE.
|
private |
Loads the given IC/decoder generator plugin.
pluginFile | The file that implements the plugin. |
pluginName | Name of the plugin. |
Definition at line 318 of file GenerateProcessorDialog.cc.
References PluginTools::addSearchPath(), bem_, Exception::errorMessage(), Environment::icDecoderPluginPaths(), PluginTools::importSymbol(), machine_, PluginTools::registerModule(), and WxConversion::toWxString().
|
private |
Event handler for the ben loading Browse... button.
Definition at line 264 of file GenerateProcessorDialog.cc.
References bem_, Exception::errorMessage(), ID_BEM_LOAD_PATH, BEMSerializer::readBinaryEncoding(), XMLSerializer::setSourceFile(), WxConversion::toString(), and WxConversion::toWxString().
|
private |
Event handler for the bem saving Browse... button.
Definition at line 245 of file GenerateProcessorDialog.cc.
References ID_BEM_SAVE_PATH.
|
private |
Event handler for the target directory Browse... button.
Definition at line 300 of file GenerateProcessorDialog.cc.
References ID_TARGET.
|
private |
Event handler for the OK button.
Definition at line 111 of file GenerateProcessorDialog.cc.
References bem_, FileSystem::DIRECTORY_SEPARATOR, Exception::errorMessage(), FileSystem::fileExists(), FileSystem::fileIsDirectory(), BEMGenerator::generate(), ProGe::ProGeUI::generateProcessor(), ProGe::ProGeUI::generateScripts(), ProGe::ProGeUI::generateTestBench(), ID_BEM_SAVE_PATH, ID_GENERATE_BEM, ID_SAVE_BEM, ID_TARGET, ID_VHDL, impl_, ProGe::ProGeUI::loadBinaryEncoding(), ProGe::ProGeUI::loadMachine(), ProGe::ProGeUI::loadMachineImplementation(), machine_, options, XMLSerializer::setDestinationFile(), WxConversion::toString(), WxConversion::toWxString(), ProGe::Verilog, ProGe::VHDL, and BEMSerializer::writeBinaryEncoding().
|
private |
Binary Encosing Map.
Definition at line 81 of file GenerateProcessorDialog.hh.
Referenced by loadICDecoderGeneratorPlugin(), onBrowseBEMLoad(), onOK(), and ~GenerateProcessorDialog().
|
private |
Processor implementation definition.
Definition at line 79 of file GenerateProcessorDialog.hh.
Referenced by onOK().
|
private |
Processor architecture.
Definition at line 77 of file GenerateProcessorDialog.hh.
Referenced by loadICDecoderGeneratorPlugin(), and onOK().