OpenASIP
2.0
|
#include <FUCostEstimationPlugin.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... | |
An interface for classes that implement pluggable function unit cost estimation algorithms.
Definition at line 66 of file FUCostEstimationPlugin.hh.
CostEstimator::FUCostEstimationPlugin::FUCostEstimationPlugin | ( | const std::string & | name | ) |
Constructor.
Definition at line 44 of file FUCostEstimationPlugin.cc.
|
virtual |
|
virtual |
Estimates the area of the given function unit.
architecture | The FU architecture of which area to estimate. |
implementation | (The location of) the implementation of FU. Can be an instance of NullFUImplementationLocation. |
area | The variable to store the area estimate into. |
Reimplemented in InterpolatingFUEstimator, and StrictMatchFUEstimator.
Definition at line 65 of file FUCostEstimationPlugin.cc.
|
virtual |
Estimates the energy consumed by the given function unit when running the given program.
architecture | The FU architecture of which area to estimate. |
implementation | (The location of) the implementation of FU. Can be an instance of NullFUImplementationLocation. |
program | The program of which energy to calculate. |
traceDB | The simulation trace database of the program running in the target architecture. |
energy | The variable to store the energy estimate into. |
Reimplemented in InterpolatingFUEstimator, and StrictMatchFUEstimator.
Definition at line 88 of file FUCostEstimationPlugin.cc.
|
virtual |
Estimates the maximum computation delay of the given function unit.
The maximum computation delay is the longest stage in the FU unit's pipeline. It's used mainly for calculating the maximum clock frequency of target architecture.
architecture | The FU architecture of which area to estimate. |
implementation | (The location of) the implementation of FU. Can be an instance of NullFUImplementationLocation. |
computationDelay | The variable to store the delay estimate into. |
Reimplemented in InterpolatingFUEstimator, and StrictMatchFUEstimator.
Definition at line 151 of file FUCostEstimationPlugin.cc.
|
virtual |
Estimates the output delay of the given function unit port.
port | The FU port of which output delay to estimate. |
implementation | (The location of) the implementation of FU. Can be an instance of NullFUImplementationLocation. |
outputDelay | The variable to store the delay estimate into. |
Reimplemented in InterpolatingFUEstimator, and StrictMatchFUEstimator.
Definition at line 128 of file FUCostEstimationPlugin.cc.
|
virtual |
Estimates the input delay of the given function unit port.
port | The FU port of which input delay to estimate. |
implementation | (The location of) the implementation of FU. Can be an instance of NullFUImplementationLocation. |
inputDelay | The variable to store the delay estimate into. |
Reimplemented in InterpolatingFUEstimator, and StrictMatchFUEstimator.
Definition at line 109 of file FUCostEstimationPlugin.cc.