OpenASIP
2.0
|
#include <RFEntry.hh>
Public Member Functions | |
RFEntry () | |
virtual | ~RFEntry () |
virtual bool | hasImplementation () const |
void | setImplementation (RFImplementation *implementation) |
RFImplementation & | implementation () const |
virtual bool | hasArchitecture () const |
void | setArchitecture (RFArchitecture *architecture) |
RFArchitecture & | architecture () const |
Public Member Functions inherited from HDB::HDBEntry | |
virtual | ~HDBEntry () |
bool | hasID () const |
void | setID (RowID id) |
RowID | id () const |
bool | hasCostFunction () const |
CostFunctionPlugin & | costFunction () const |
void | setCostFunction (CostFunctionPlugin *costFunction) |
std::string | hdbFile () const |
void | setHDBFile (const std::string &file) |
Private Attributes | |
RFArchitecture * | architecture_ |
Architecture of the entry. More... | |
RFImplementation * | implementation_ |
Implementation of the entry. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from HDB::HDBEntry | |
HDBEntry () | |
Represents an RF entry in HDB.
Definition at line 47 of file RFEntry.hh.
HDB::RFEntry::RFEntry | ( | ) |
The constructor.
Creates an empty RF entry without ID, architecture, implementation and cost function.
Definition at line 50 of file RFEntry.cc.
|
virtual |
The destructor.
Definition at line 58 of file RFEntry.cc.
References architecture_, hasArchitecture(), hasImplementation(), and implementation_.
RFArchitecture & HDB::RFEntry::architecture | ( | ) | const |
Returns the architecture of the entry.
NotAvailable | If the entry doesn't have an architecture. |
Definition at line 145 of file RFEntry.cc.
References architecture_, and hasArchitecture().
Referenced by ProGe::NetlistGenerator::addBaseRFToNetlist(), CostDatabase::buildRegisterFiles(), ImplementationTester::canTestRF(), Automagic::checkForSelectableIU(), ProGeTools::checkForSelectableIU(), Automagic::checkForSelectableRF(), ProGeTools::checkForSelectableRF(), ProGe::ProcessorGenerator::checkIULatencies(), RFTestbenchGenerator::generateTestbench(), BlockImplementationDialog::onHDBSelection(), HDBToHtml::rfEntryToHtml(), setArchitecture(), and HDBBrowserWindow::update().
|
virtual |
Tells whether the RF entry has an architecture.
Implements HDB::HDBEntry.
Definition at line 117 of file RFEntry.cc.
References architecture_.
Referenced by ProGe::NetlistGenerator::addBaseRFToNetlist(), architecture(), CostDatabase::buildRegisterFiles(), ImplementationTester::canTestRF(), ProGe::ProcessorGenerator::checkIULatencies(), AddRFImplementationCmd::isEnabled(), HDBToHtml::rfEntryToHtml(), setArchitecture(), HDB::HDBManager::setArchitectureForRF(), HDBBrowserWindow::update(), and ~RFEntry().
|
virtual |
Tells whether the entry has a hardware implementation.
Implements HDB::HDBEntry.
Definition at line 74 of file RFEntry.cc.
References implementation_.
Referenced by ProGe::NetlistGenerator::addBaseRFToNetlist(), HDB::HDBManager::addRFImplementation(), ImplementationTester::canTestRF(), ProGe::BlockSourceCopier::copyBaseRFFiles(), HDBEditorModifyCmd::Do(), implementation(), AddRFImplementationCmd::isEnabled(), BlockImplementationDialog::onHDBSelection(), HDBToHtml::rfEntryToHtml(), setImplementation(), HDBBrowserWindow::update(), and ~RFEntry().
RFImplementation & HDB::RFEntry::implementation | ( | ) | const |
Returns the implementation of the entry.
NotAvailable | If there is no implementation. |
Definition at line 102 of file RFEntry.cc.
References hasImplementation(), and implementation_.
Referenced by ProGe::NetlistGenerator::addBaseRFToNetlist(), ProGe::BlockSourceCopier::copyBaseRFFiles(), HDBEditorModifyCmd::Do(), RFTestbenchGenerator::generateTestbench(), ProGeScriptGenerator::getBlockOrder(), BlockImplementationDialog::onHDBSelection(), HDBToHtml::rfEntryToHtml(), HDBToHtml::rfImplToHtml(), DefaultDecoderGenerator::sacEnabled(), setImplementation(), HDBBrowserWindow::update(), and ImplementationTester::validateRF().
void HDB::RFEntry::setArchitecture | ( | RFArchitecture * | architecture | ) |
Sets new architecture for the entry.
Deletes the old architecture if one exists.
architecture | The new architecture. |
Definition at line 130 of file RFEntry.cc.
References architecture(), architecture_, and hasArchitecture().
Referenced by HDB::HDBManager::rfByEntryID().
void HDB::RFEntry::setImplementation | ( | RFImplementation * | implementation | ) |
Sets implementation for the entry.
Deletes the old implementation if one exists.
implementation | The new implementation. |
Definition at line 87 of file RFEntry.cc.
References hasImplementation(), implementation(), and implementation_.
Referenced by HDB::HDBManager::rfByEntryID().
|
private |
Architecture of the entry.
Definition at line 62 of file RFEntry.hh.
Referenced by architecture(), hasArchitecture(), setArchitecture(), and ~RFEntry().
|
private |
Implementation of the entry.
Definition at line 64 of file RFEntry.hh.
Referenced by hasImplementation(), implementation(), setImplementation(), and ~RFEntry().