2020-02-26 21:58:16 -06:00
|
|
|
#ifndef SIMULATION_UTILS_H
|
|
|
|
#define SIMULATION_UTILS_H
|
|
|
|
|
|
|
|
/********************************************************************
|
|
|
|
* Include header files that are required by function declaration
|
|
|
|
*******************************************************************/
|
|
|
|
|
|
|
|
/********************************************************************
|
|
|
|
* Function declaration
|
|
|
|
*******************************************************************/
|
|
|
|
|
|
|
|
/* begin namespace openfpga */
|
|
|
|
namespace openfpga {
|
|
|
|
|
2021-06-29 10:56:04 -05:00
|
|
|
float find_operating_phase_simulation_time(const int& num_op_clock_cycles,
|
2020-12-02 23:58:13 -06:00
|
|
|
const float& op_clock_period,
|
|
|
|
const float& timescale);
|
2020-02-26 21:58:16 -06:00
|
|
|
|
|
|
|
float find_simulation_time_period(const float& time_unit,
|
|
|
|
const int& num_prog_clock_cycles,
|
|
|
|
const float& prog_clock_period,
|
|
|
|
const int& num_op_clock_cycles,
|
|
|
|
const float& op_clock_period);
|
|
|
|
|
|
|
|
} /* end namespace openfpga */
|
|
|
|
|
|
|
|
#endif
|