OpenASIP
2.0
|
#include <ICDecoderEstimatorPlugin.hh>
Additional Inherited Members | |
Protected Attributes inherited from CostEstimator::CostEstimationPlugin | |
std::string | name_ |
the name of the plugin class in the HDB; used to identify cost data More... | |
Base class for plugins that are able to estimate costs of a IC and decoder combination.
Definition at line 64 of file ICDecoderEstimatorPlugin.hh.
CostEstimator::ICDecoderEstimatorPlugin::ICDecoderEstimatorPlugin | ( | const std::string & | name | ) |
Constructor.
name | The name of the cost estimation plugin in the HDB. |
dataSource | The HDB that stores the cost estimation data of the plugin. This reference can also be used to add new data, in case required by the algorithm. |
Definition at line 49 of file ICDecoderEstimatorPlugin.cc.
|
virtual |
|
virtual |
Estimates the area of the IC of the given machine.
hdbRegistry | The registry for accessing HDBs. |
machine | Architecture of the machine. |
machineImplementation | The implementation of the machine. |
area | The calculated area should be stored in this argument. |
Reimplemented in DefaultICDecoderEstimator.
Definition at line 102 of file ICDecoderEstimatorPlugin.cc.
Referenced by CostEstimator::Estimator::icArea().
|
virtual |
Estimates the delay of the given path in the interconnection network.
The estimated path starts from source socket and traverses through a bus to a target socket. The delay caused by reading and writing from ports are not included in this value. The default implementation returns false to signal that the estimation functionality is not implemented by the plugin.
hdbRegistry | The registry for accessing HDBs. |
path | The path. |
machineImplementation | The implementation of the machine. |
sourceSocketImplementation | The implementation identification of the source socket. |
busImplementation | The implementation identification of the bus. |
destinationSocketImplementation | The implementation identification of the destination socket. |
delay | The calculated delay should be stored in this argument. |
Reimplemented in DefaultICDecoderEstimator.
Definition at line 80 of file ICDecoderEstimatorPlugin.cc.
Referenced by CostEstimator::Estimator::estimateSocketToSocketDelayOfPath().
|
virtual |
Estimates the energy consumed by the IC of the given machine by running the given program.
hdbRegistry | The registry for accessing HDBs. |
machine | Architecture of the processor. |
machineImplementation | Implementation defintions of the processor. |
traceDB | The simulation trace database obtained from running the program. |
energy | The calculated energy should be stored in this argument. |
Reimplemented in DefaultICDecoderEstimator.
Definition at line 124 of file ICDecoderEstimatorPlugin.cc.
Referenced by CostEstimator::Estimator::icEnergy().
|
virtual |
Generates a control unit.
Definition at line 141 of file ICDecoderEstimatorPlugin.cc.
References TTAMachine::ExecutionPipeline::addPortRead(), TTAMachine::HWOperation::bindPort(), TTAMachine::HWOperation::pipeline(), and TTAMachine::ControlUnit::setReturnAddressPort().