Go to the documentation of this file.
34 #ifndef TTA_COSTDB_ENTRY_STATS_HH
35 #define TTA_COSTDB_ENTRY_STATS_HH
55 virtual double area()
const;
56 virtual double delay()
const;
57 virtual double delayPort(
const std::string& port)
const;
77 virtual bool hasEnergy(
const std::string& key)
const;
78 virtual double findEnergy(
const std::string& key)
const;
79 virtual void addEnergy(
const std::string& name,
double energy);
80 virtual bool hasDelay(
const std::string& key)
const;
81 virtual double findDelay(
const std::string& key)
const;
98 typedef std::map<const std::string, double>
EnergyMap;
100 typedef std::map<const std::string, double>
DelayMap;
static const std::string ENERGY_WRITE
String for write energy.
virtual void setEnergyWrite(double energy)
DelayMap delays_
input and output delays in nanoseconds.
static const std::string ENERGY_READ_WRITE
String for reads and writes energy.
virtual bool hasEnergy(const std::string &key) const
virtual double delay() const
double delay_
delay in nanoseconds.
static const std::string ENERGY_IDLE
String for idle energy.
virtual CostDBEntryStats * createStats() const
virtual double energyActive() const
std::map< const std::string, double > DelayMap
Map of delays.
std::map< const std::string, double > EnergyMap
Map of energies.
virtual double energyOperation(const std::string &name) const
virtual bool hasDelay(const std::string &key) const
virtual void setEnergyRead(double energy)
static const std::string ENERGY_READ
String for read energy.
virtual void setDelay(const std::string &port, double delay)
virtual ~CostDBEntryStats()
virtual void addDelay(const std::string &name, double delay)
virtual double area() const
virtual CostDBEntryStats * copy() const
virtual double findDelay(const std::string &key) const
virtual void setEnergyIdle(double energy)
CostDBEntryStats & operator=(const CostDBEntryStats &)
Assignment not allowed.
EnergyMap energies_
Energies of one specific type of usage of a resource. Usually the map contains energies for active an...
virtual void addEnergy(const std::string &name, double energy)
virtual double energyWrite() const
static const std::string ENERGY_ACTIVE
String for active energy.
virtual void setEnergyActive(double energy)
virtual double findEnergy(const std::string &key) const
virtual void setEnergyReadWrite(int reads, int writes, double energy)
virtual bool hasEnergyOperation(const std::string &name) const
virtual double energyRead() const
virtual double energyIdle() const
double area_
area in gates.
CostDBEntryStats(double areaData, double internalDelayData)
virtual void setEnergyOperation(const std::string &name, double energy)
virtual double energyReadWrite(int reads, int writes) const
virtual double delayPort(const std::string &port) const