Go to the documentation of this file.
78 std::cerr <<
"ADF and IDF are required." << std::endl;
82 std::cerr <<
"Illegal command line arguments." << std::endl;
94 std::cerr <<
"Error while loading ADF. " << e.
errorMessage()
104 std::cerr <<
"Error while loading IDF. " << e.
errorMessage()
112 std::cerr <<
"Also TraceDB is required for energy estimation."
119 const std::string tpefFileName =
options.TPEF();
121 std::cerr <<
"Error while loading TPEF. "
122 <<
"Cannot open file '" << tpefFileName <<
"'."
144 std::cerr <<
"Error while loading TPEF. " << e.
errorMessage()
154 const std::string traceDBFileName =
options.traceDB();
156 std::cerr <<
"Error while loading TraceDB. "
157 <<
"Cannot open file '" << traceDBFileName <<
"'."
165 std::cerr <<
"Error while loading TraceDB. " << e.
errorMessage()
234 if (totalArea >= 0) {
235 std::cout <<
"total area: " << totalArea <<
" gates"
241 std::cout <<
"delay of the longest path: ";
245 <<
" ns" << std::endl;
254 std::cout <<
"total consumed energy: ";
259 <<
" mJ" << std::endl;
AreaInGates totalArea(const TTAMachine::Machine &machine, const IDF::MachineImplementation &machineImplementation)
area estimation functions
void setSourceFile(const std::string &fileName)
TTAMachine::Machine * machine
the architecture definition of the estimated processor
virtual int numberOfArguments() const
IDF::MachineImplementation * implementation
the implementation definition of the estimated processor
MachineImplementation * readMachineImplementation()
EnergyInMilliJoules totalEnergy(const TTAMachine::Machine &machine, const IDF::MachineImplementation &machineImplementation, const TTAProgram::Program &program, const ExecutionTrace &traceDB)
energy estimation functions
DelayInNanoSeconds longestPath(const TTAMachine::Machine &machine, const IDF::MachineImplementation &machineImplementation)
delay estimation functions
bool energyEstimation
this is set to true in case energy estimation can be performed with the given input files
static void setCmdLineOptions(CmdLineOptions *options_)
double AreaInGates
type for area values in equivalent gates
bool loadInputs(EstimatorCmdLineOptions &options)
static NullProgram & instance()
#define assert(condition)
TTAProgram::Program * program
the estimated program is stored in this variable (in case energy estimation is wanted
int main(int argc, char *argv[])
std::string errorMessage() const
void parse(char *argv[], int argc)
static MachInfoCmdLineOptions options
static bool fileExists(const std::string fileName)
ExecutionTrace * trace
the execution trace database
TTAMachine::Machine * readMachine()
virtual std::string argument(int index) const
static Binary * readBinary(BinaryStream &stream)