OpenASIP 2.2
|
#include <HDBToHtml.hh>
Public Member Functions | |
HDBToHtml (const HDB::HDBManager &hdb) | |
virtual | ~HDBToHtml () |
void | fuEntryToHtml (RowID id, std::ostream &stream) |
void | rfEntryToHtml (RowID id, std::ostream &stream) |
void | busEntryToHtml (RowID id, std::ostream &stream) |
void | socketEntryToHtml (RowID id, std::ostream &stream) |
void | fuArchToHtml (RowID id, std::ostream &stream) |
void | rfArchToHtml (RowID id, std::ostream &stream) |
void | fuImplToHtml (RowID id, std::ostream &stream) |
void | rfImplToHtml (RowID id, std::ostream &stream) |
void | costFunctionPluginToHtml (RowID id, std::ostream &stream) |
void | OperationImplementationToHtml (RowID id, std::ostream &stream) |
void | OperationImplementationResourceToHtml (RowID id, std::ostream &stream) |
Static Public Attributes | |
static const std::string | HDB_ROOT |
static const std::string | FU_ENTRIES = "FU Entries" |
static const std::string | RF_ENTRIES = "RF Entries" |
static const std::string | RF_IU_ENTRIES = "RF/IU Entries" |
static const std::string | BUS_ENTRIES = "Bus Entries" |
static const std::string | SOCKET_ENTRIES = "Socket Entries" |
static const std::string | FU_ARCHITECTURES = "Function Units" |
static const std::string | RF_ARCHITECTURES = "Register Files" |
static const std::string | FU_IMPLEMENTATIONS = "FU Implementations" |
static const std::string | RF_IMPLEMENTATIONS = "RF Implementations" |
static const std::string | COST_PLUGINS = "Cost Function Plugins" |
static const std::string | OPERATION_IMPLEMENTATIONS |
static const std::string | OPERATION_IMPLEMENTATION_RESOURCES |
Private Attributes | |
const HDB::HDBManager & | hdb_ |
HDB to create html from. | |
Collection of functions for generating html pages displaying information of HDB elements.
Definition at line 47 of file HDBToHtml.hh.
HDBToHtml::HDBToHtml | ( | const HDB::HDBManager & | hdb | ) |
The Cosntructor.
hdb | HDB |
Definition at line 86 of file HDBToHtml.cc.
|
virtual |
void HDBToHtml::busEntryToHtml | ( | RowID | id, |
std::ostream & | stream | ||
) |
Generates a html page of a bus entry.
id | ID of the bus entry. |
stream | Stream where the html is written to. |
Definition at line 250 of file HDBToHtml.cc.
References HDB::HDBManager::busCostEstimationDataIDs(), COST_PLUGINS, HDB::HDBManager::costEstimationData(), hdb_, CostEstimationData::name(), CostEstimationData::pluginID(), DataObject::stringValue(), and CostEstimationData::value().
Referenced by HDBBrowserInfoPanel::displayBusEntry().
void HDBToHtml::costFunctionPluginToHtml | ( | RowID | id, |
std::ostream & | stream | ||
) |
Generates html page of a cost function plugin information.
id | Row id of the cost estimation plugin. |
strem | Stream where the html is written to. |
Definition at line 900 of file HDBToHtml.cc.
References CostEstimationData::busReference(), HDB::CostFunctionPlugin::COST_DECOMP, HDB::CostFunctionPlugin::COST_FU, HDB::CostFunctionPlugin::COST_ICDEC, HDB::CostFunctionPlugin::COST_RF, HDB::HDBManager::costEstimationData(), HDB::HDBManager::costFunctionPluginByID(), HDB::HDBManager::costFunctionPluginDataIDs(), HDB::CostFunctionPlugin::description(), FU_ENTRIES, CostEstimationData::fuReference(), CostEstimationData::hasBusReference(), CostEstimationData::hasFUReference(), CostEstimationData::hasRFReference(), CostEstimationData::hasSocketReference(), hdb_, CostEstimationData::name(), HDB::CostFunctionPlugin::name(), HDB::CostFunctionPlugin::pluginFilePath(), RF_ENTRIES, CostEstimationData::rfReference(), CostEstimationData::socketReference(), DataObject::stringValue(), HDB::CostFunctionPlugin::type(), and CostEstimationData::value().
Referenced by HDBBrowserInfoPanel::displayCostFunctionPlugin().
void HDBToHtml::fuArchToHtml | ( | RowID | id, |
std::ostream & | stream | ||
) |
Generates a html page of a function unit architecture.
id | ID of the FU architecture. |
stream | Stream where the html is written to. |
Definition at line 328 of file HDBToHtml.cc.
References HDB::FUArchitecture::architecture(), ContainerTools::containsValue(), HDB::HDBManager::fuArchitectureByID(), HDB::FUArchitecture::hasGuardSupport(), HDB::FUArchitecture::hasParameterizedWidth(), hdb_, TTAMachine::BaseFUPort::isOpcodeSetting(), TTAMachine::ExecutionPipeline::isResourceUsed(), TTAMachine::BaseFUPort::isTriggering(), TTAMachine::HWOperation::latency(), TTAMachine::HWOperation::name(), TTAMachine::PipelineElement::name(), TTAMachine::Port::name(), TTAMachine::FunctionUnit::operation(), TTAMachine::FunctionUnit::operationCount(), TTAMachine::HWOperation::pipeline(), TTAMachine::FunctionUnit::pipelineElement(), TTAMachine::FunctionUnit::pipelineElementCount(), TTAMachine::FunctionUnit::port(), TTAMachine::HWOperation::port(), TTAMachine::Unit::portCount(), TTAMachine::ExecutionPipeline::readOperands(), TTAMachine::BaseFUPort::width(), and TTAMachine::ExecutionPipeline::writtenOperands().
Referenced by HDBBrowserInfoPanel::displayFUArchitecture().
void HDBToHtml::fuEntryToHtml | ( | RowID | id, |
std::ostream & | stream | ||
) |
Generates a html page of a function unit entry->
id | ID of the FU entry in the HDB. |
stream | Stream where the html is written to. |
Definition at line 103 of file HDBToHtml.cc.
References HDB::FUEntry::architecture(), COST_PLUGINS, HDB::HDBManager::costEstimationData(), HDB::HDBEntry::costFunction(), FU_ARCHITECTURES, FU_IMPLEMENTATIONS, HDB::HDBManager::fuByEntryID(), HDB::HDBManager::fuCostEstimationDataIDs(), HDB::FUEntry::hasArchitecture(), HDB::HDBEntry::hasCostFunction(), HDB::FUEntry::hasImplementation(), hdb_, HDB::CostFunctionPlugin::id(), HDB::HDBEntry::id(), HWBlockArchitecture::id(), HDB::HWBlockImplementation::id(), HDB::FUEntry::implementation(), HDB::HWBlockImplementation::moduleName(), CostEstimationData::name(), HDB::CostFunctionPlugin::name(), CostEstimationData::pluginID(), DataObject::stringValue(), and CostEstimationData::value().
Referenced by HDBBrowserInfoPanel::displayFUEntry().
void HDBToHtml::fuImplToHtml | ( | RowID | id, |
std::ostream & | stream | ||
) |
Generates a html page of a function unit implementation.
id | ID of the fu implementation. |
stream | Stream where the html is written to. |
Definition at line 539 of file HDBToHtml.cc.
References HDB::FUPortImplementation::architecturePort(), HDB::FUImplementation::architecturePort(), HDB::FUImplementation::architecturePortCount(), HDB::BIDIR, HDB::HWBlockImplementation::clkPort(), COST_PLUGINS, HDB::HDBManager::costEstimationData(), HDB::ExternalPort::description(), HDB::ExternalPort::direction(), HDB::FUImplementation::externalPort(), HDB::FUImplementation::externalPortCount(), HDB::HWBlockImplementation::file(), HDB::BlockImplementationFile::format(), HDB::HDBManager::fuByEntryID(), HDB::HDBManager::fuCostEstimationDataIDs(), HDB::HDBManager::fuEntryIDOfImplementation(), HDB::HWBlockImplementation::glockPort(), HDB::FUImplementation::glockReqPort(), HDB::FUPortImplementation::guardPort(), hdb_, HDB::FUEntry::implementation(), HDB::HWBlockImplementation::implementationFileCount(), HDB::IN, HDB::PortImplementation::loadPort(), HDB::HWBlockImplementation::moduleName(), CostEstimationData::name(), HDB::ExternalPort::name(), HDB::Parameter::name, HDB::PortImplementation::name(), HDB::FUImplementation::opcode(), HDB::FUImplementation::opcodeCount(), HDB::FUImplementation::opcodeOperation(), HDB::FUImplementation::opcodePort(), HDB::OUT, HDB::FUImplementation::parameter(), HDB::FUImplementation::parameterCount(), HDB::ExternalPort::parameterDependency(), HDB::ExternalPort::parameterDependencyCount(), HDB::BlockImplementationFile::pathToFile(), CostEstimationData::pluginID(), HDB::HWBlockImplementation::rstPort(), DataObject::stringValue(), HDB::Parameter::type, CostEstimationData::value(), HDB::Parameter::value, HDB::BlockImplementationFile::Verilog, HDB::BlockImplementationFile::VHDL, HDB::ExternalPort::widthFormula(), and HDB::FUPortImplementation::widthFormula().
Referenced by HDBBrowserInfoPanel::displayFUImplementation().
void HDBToHtml::OperationImplementationResourceToHtml | ( | RowID | id, |
std::ostream & | stream | ||
) |
Definition at line 1003 of file HDBToHtml.cc.
References hdb_, HDB::OperationImplementationResource::name, HDB::HDBManager::OperationImplementationResourceByID(), HDB::OperationImplementationResource::simFiles, and HDB::OperationImplementationResource::synFiles.
Referenced by HDBBrowserInfoPanel::displayOperationImplementationResource().
void HDBToHtml::OperationImplementationToHtml | ( | RowID | id, |
std::ostream & | stream | ||
) |
Definition at line 986 of file HDBToHtml.cc.
References hdb_, HDB::OperationImplementation::implFileVerilog, HDB::OperationImplementation::implFileVhdl, HDB::OperationImplementation::name, HDB::HDBManager::OperationImplementationByID(), and HDB::OperationImplementation::resources.
Referenced by HDBBrowserInfoPanel::displayOperationImplementation().
void HDBToHtml::rfArchToHtml | ( | RowID | id, |
std::ostream & | stream | ||
) |
Generates a html page of a register file architecture.
id | ID of the register file architecture. |
stream | Stream where the html is written to. |
Definition at line 469 of file HDBToHtml.cc.
References HDB::RFArchitecture::bidirPortCount(), HDB::RFArchitecture::guardLatency(), HDB::RFArchitecture::hasGuardSupport(), HDB::RFArchitecture::hasParameterizedSize(), HDB::RFArchitecture::hasParameterizedWidth(), hdb_, HDB::RFArchitecture::latency(), HDB::RFArchitecture::maxReads(), HDB::RFArchitecture::maxWrites(), HDB::RFArchitecture::readPortCount(), HDB::HDBManager::rfArchitectureByID(), HDB::RFArchitecture::size(), HDB::RFArchitecture::width(), HDB::RFArchitecture::writePortCount(), and HDB::RFArchitecture::zeroRegister().
Referenced by HDBBrowserInfoPanel::displayRFArchitecture().
void HDBToHtml::rfEntryToHtml | ( | RowID | id, |
std::ostream & | stream | ||
) |
Generates a html page of a register file entry.
id | ID of the register file entry. |
stream | Stream where the html is written to. |
Definition at line 177 of file HDBToHtml.cc.
References HDB::RFEntry::architecture(), COST_PLUGINS, HDB::HDBManager::costEstimationData(), HDB::HDBEntry::costFunction(), HDB::RFEntry::hasArchitecture(), HDB::HDBEntry::hasCostFunction(), HDB::RFEntry::hasImplementation(), hdb_, HDB::CostFunctionPlugin::id(), HDB::HDBEntry::id(), HWBlockArchitecture::id(), HDB::HWBlockImplementation::id(), HDB::RFEntry::implementation(), HDB::HWBlockImplementation::moduleName(), CostEstimationData::name(), HDB::CostFunctionPlugin::name(), CostEstimationData::pluginID(), RF_ARCHITECTURES, RF_IMPLEMENTATIONS, HDB::HDBManager::rfByEntryID(), HDB::HDBManager::rfCostEstimationDataIDs(), DataObject::stringValue(), and CostEstimationData::value().
Referenced by HDBBrowserInfoPanel::displayRFEntry().
void HDBToHtml::rfImplToHtml | ( | RowID | id, |
std::ostream & | stream | ||
) |
Generates a html page of a register file implementation.
id | ID of the RF implementation. |
stream | Stream where the html is written to. |
Definition at line 720 of file HDBToHtml.cc.
References HDB::BIDIR, HDB::HWBlockImplementation::clkPort(), COST_PLUGINS, HDB::HDBManager::costEstimationData(), HDB::ExternalPort::description(), HDB::ExternalPort::direction(), HDB::RFPortImplementation::direction(), HDB::RFImplementation::externalPort(), HDB::RFImplementation::externalPortCount(), HDB::HWBlockImplementation::file(), HDB::BlockImplementationFile::format(), HDB::HWBlockImplementation::glockPort(), HDB::RFImplementation::guardPort(), hdb_, HDB::RFEntry::implementation(), HDB::HWBlockImplementation::implementationFileCount(), HDB::IN, HDB::PortImplementation::loadPort(), HDB::HWBlockImplementation::moduleName(), CostEstimationData::name(), HDB::ExternalPort::name(), HDB::Parameter::name, HDB::PortImplementation::name(), HDB::RFPortImplementation::opcodePort(), HDB::RFPortImplementation::opcodePortWidthFormula(), HDB::OUT, HDB::RFImplementation::parameter(), HDB::RFImplementation::parameterCount(), HDB::ExternalPort::parameterDependency(), HDB::ExternalPort::parameterDependencyCount(), HDB::BlockImplementationFile::pathToFile(), CostEstimationData::pluginID(), HDB::RFImplementation::port(), HDB::RFImplementation::portCount(), HDB::HDBManager::rfByEntryID(), HDB::HDBManager::rfCostEstimationDataIDs(), HDB::HDBManager::rfEntryIDOfImplementation(), HDB::HWBlockImplementation::rstPort(), HDB::RFImplementation::separateAddressCycleParameter(), HDB::RFImplementation::sizeParameter(), DataObject::stringValue(), HDB::Parameter::type, CostEstimationData::value(), HDB::Parameter::value, HDB::BlockImplementationFile::Verilog, HDB::BlockImplementationFile::VHDL, HDB::ExternalPort::widthFormula(), and HDB::RFImplementation::widthParameter().
Referenced by HDBBrowserInfoPanel::displayRFImplementation().
void HDBToHtml::socketEntryToHtml | ( | RowID | id, |
std::ostream & | stream | ||
) |
Generates a html page of a socket entry.
id | ID of the sovket entry. |
stream | Stream where the html is written to. |
Definition at line 289 of file HDBToHtml.cc.
References COST_PLUGINS, HDB::HDBManager::costEstimationData(), hdb_, CostEstimationData::name(), CostEstimationData::pluginID(), HDB::HDBManager::socketCostEstimationDataIDs(), DataObject::stringValue(), and CostEstimationData::value().
Referenced by HDBBrowserInfoPanel::displaySocketEntry().
|
static |
Definition at line 68 of file HDBToHtml.hh.
Referenced by HDBBrowserWindow::openLink(), and HDBBrowserWindow::update().
|
static |
Definition at line 74 of file HDBToHtml.hh.
Referenced by busEntryToHtml(), fuEntryToHtml(), fuImplToHtml(), HDBBrowserWindow::openLink(), rfEntryToHtml(), rfImplToHtml(), socketEntryToHtml(), and HDBBrowserWindow::update().
|
static |
Definition at line 70 of file HDBToHtml.hh.
Referenced by fuEntryToHtml(), HDBBrowserWindow::openLink(), and HDBBrowserWindow::update().
|
static |
Definition at line 65 of file HDBToHtml.hh.
Referenced by costFunctionPluginToHtml(), HDBBrowserWindow::openLink(), and HDBBrowserWindow::update().
|
static |
Definition at line 72 of file HDBToHtml.hh.
Referenced by fuEntryToHtml(), and HDBBrowserWindow::openLink().
|
private |
HDB to create html from.
Definition at line 80 of file HDBToHtml.hh.
Referenced by busEntryToHtml(), costFunctionPluginToHtml(), fuArchToHtml(), fuEntryToHtml(), fuImplToHtml(), OperationImplementationResourceToHtml(), OperationImplementationToHtml(), rfArchToHtml(), rfEntryToHtml(), rfImplToHtml(), and socketEntryToHtml().
|
static |
Definition at line 64 of file HDBToHtml.hh.
|
static |
Definition at line 76 of file HDBToHtml.hh.
Referenced by HDBBrowserWindow::onItemSelected(), and HDBBrowserWindow::update().
|
static |
Definition at line 75 of file HDBToHtml.hh.
Referenced by HDBBrowserWindow::onItemSelected(), and HDBBrowserWindow::update().
|
static |
Definition at line 71 of file HDBToHtml.hh.
Referenced by HDBBrowserWindow::openLink(), rfEntryToHtml(), and HDBBrowserWindow::update().
|
static |
Definition at line 66 of file HDBToHtml.hh.
Referenced by costFunctionPluginToHtml(), and HDBBrowserWindow::openLink().
|
static |
Definition at line 73 of file HDBToHtml.hh.
Referenced by HDBBrowserWindow::openLink(), and rfEntryToHtml().
|
static |
Definition at line 67 of file HDBToHtml.hh.
Referenced by HDBBrowserWindow::update().
|
static |
Definition at line 69 of file HDBToHtml.hh.
Referenced by HDBBrowserWindow::openLink(), and HDBBrowserWindow::update().