2020-02-28 10:48:58 -06:00
|
|
|
/********************************************************************
|
|
|
|
* Member functions for a data structure which includes all the options for the SDC generator
|
|
|
|
********************************************************************/
|
|
|
|
#include "analysis_sdc_option.h"
|
|
|
|
|
|
|
|
/* begin namespace openfpga */
|
|
|
|
namespace openfpga {
|
|
|
|
|
|
|
|
/********************************************************************
|
|
|
|
* Public Constructors
|
|
|
|
********************************************************************/
|
|
|
|
AnalysisSdcOption::AnalysisSdcOption(const std::string& sdc_dir) {
|
|
|
|
sdc_dir_ = sdc_dir;
|
2020-05-02 15:17:07 -05:00
|
|
|
flatten_names_ = false;
|
2020-02-28 10:48:58 -06:00
|
|
|
generate_sdc_analysis_ = false;
|
|
|
|
}
|
|
|
|
|
|
|
|
/********************************************************************
|
|
|
|
* Public accessors
|
|
|
|
********************************************************************/
|
|
|
|
std::string AnalysisSdcOption::sdc_dir() const {
|
|
|
|
return sdc_dir_;
|
|
|
|
}
|
|
|
|
|
2020-05-02 15:17:07 -05:00
|
|
|
bool AnalysisSdcOption::flatten_names() const {
|
|
|
|
return flatten_names_;
|
|
|
|
}
|
|
|
|
|
2020-02-28 10:48:58 -06:00
|
|
|
bool AnalysisSdcOption::generate_sdc_analysis() const {
|
|
|
|
return generate_sdc_analysis_;
|
|
|
|
}
|
|
|
|
|
|
|
|
/********************************************************************
|
|
|
|
* Public mutators
|
|
|
|
********************************************************************/
|
|
|
|
void AnalysisSdcOption::set_sdc_dir(const std::string& sdc_dir) {
|
|
|
|
sdc_dir_ = sdc_dir;
|
|
|
|
}
|
|
|
|
|
2020-05-02 15:17:07 -05:00
|
|
|
void AnalysisSdcOption::set_flatten_names(const bool& flatten_names) {
|
|
|
|
flatten_names_ = flatten_names;
|
|
|
|
}
|
|
|
|
|
2020-02-28 10:48:58 -06:00
|
|
|
void AnalysisSdcOption::set_generate_sdc_analysis(const bool& generate_sdc_analysis) {
|
|
|
|
generate_sdc_analysis_ = generate_sdc_analysis;
|
|
|
|
}
|
|
|
|
|
|
|
|
} /* end namespace openfpga */
|