54 const DesignFlowManagerConstRef _design_flow_manager)
64 auto objective_string =
parameters->getOption<std::string>(OPT_evaluation_objectives);
65 const auto objective_vector = string_to_container<std::vector<std::string>>(objective_string,
",");
66 for(
const auto& objective : objective_vector)
68 HLSMgr->evaluations[objective] = 0.0;
69 if(objective ==
"CYCLES")
71 HLSMgr->evaluations[
"NUM_EXECUTIONS"] = 1;
72 HLSMgr->evaluations[
"TOTAL_CYCLES"] = 0.0;
74 if(objective ==
"FREQUENCY" or objective ==
"TIME" or objective ==
"TOTAL_TIME" or objective ==
"AREAxTIME")
76 auto clock_period =
parameters->getOption<
double>(OPT_clock_period);
77 HLSMgr->evaluations[
"PERIOD"] = clock_period;
79 if(objective ==
"TIME")
81 auto clock_period =
parameters->getOption<
double>(OPT_clock_period);
82 HLSMgr->evaluations[
"CYCLES"] = 0.0;
83 HLSMgr->evaluations[
"FREQUENCY"] = 1000 / clock_period;
85 if(objective ==
"PERIOD")
87 auto clock_period =
parameters->getOption<
double>(OPT_clock_period);
88 HLSMgr->evaluations[objective] = clock_period;
const HLS_managerRef HLSMgr
information about all the HLS synthesis
Data structure representing the entire HLS information.
#define GET_CLASS(obj)
Macro returning the actual type of an object.
DesignFlowStep_Status Exec() override
Execute the step.
constant strings used in bambu results
Auxiliary methods for manipulating string.
const ParameterConstRef parameters
Set of input parameters.
DesignFlowStep_Status
The status of a step.
This file collects some utility functions and macros.
~DryRunEvaluation() override
Destructor.
DryRunEvaluation(const ParameterConstRef _parameters, const HLS_managerRef HLSMgr, const DesignFlowManagerConstRef design_flow_manager)
Constructor.
Template borrowed from the ANTLR library by Terence Parr (http://www.jGuru.com - Software rights: htt...
this class is used to manage the command-line or XML options.
Some macro used to interface with the XML library.
int debug_level
The debug level.
Data structure definition for high-level synthesis flow.