78 lines
2.2 KiB
C++
78 lines
2.2 KiB
C++
|
/******************************************************************************
|
||
|
* Memember functions for data structure FabricVerilogOption
|
||
|
******************************************************************************/
|
||
|
#include "vtr_assert.h"
|
||
|
|
||
|
#include "fabric_verilog_options.h"
|
||
|
|
||
|
/* begin namespace openfpga */
|
||
|
namespace openfpga {
|
||
|
|
||
|
/**************************************************
|
||
|
* Public Constructors
|
||
|
*************************************************/
|
||
|
FabricVerilogOption::FabricVerilogOption() {
|
||
|
output_directory_.clear();
|
||
|
include_timing_ = false;
|
||
|
explicit_port_mapping_ = false;
|
||
|
compress_routing_ = false;
|
||
|
print_user_defined_template_ = false;
|
||
|
verbose_output_ = false;
|
||
|
}
|
||
|
|
||
|
/**************************************************
|
||
|
* Public Accessors
|
||
|
*************************************************/
|
||
|
std::string FabricVerilogOption::output_directory() const {
|
||
|
return output_directory_;
|
||
|
}
|
||
|
|
||
|
bool FabricVerilogOption::include_timing() const {
|
||
|
return include_timing_;
|
||
|
}
|
||
|
|
||
|
bool FabricVerilogOption::explicit_port_mapping() const {
|
||
|
return explicit_port_mapping_;
|
||
|
}
|
||
|
|
||
|
bool FabricVerilogOption::compress_routing() const {
|
||
|
return compress_routing_;
|
||
|
}
|
||
|
|
||
|
bool FabricVerilogOption::print_user_defined_template() const {
|
||
|
return print_user_defined_template_;
|
||
|
}
|
||
|
|
||
|
bool FabricVerilogOption::verbose_output() const {
|
||
|
return verbose_output_;
|
||
|
}
|
||
|
|
||
|
/******************************************************************************
|
||
|
* Private Mutators
|
||
|
******************************************************************************/
|
||
|
void FabricVerilogOption::set_output_directory(const std::string& output_dir) {
|
||
|
output_directory_ = output_dir;
|
||
|
}
|
||
|
|
||
|
void FabricVerilogOption::set_include_timing(const bool& enabled) {
|
||
|
include_timing_ = enabled;
|
||
|
}
|
||
|
|
||
|
void FabricVerilogOption::set_explicit_port_mapping(const bool& enabled) {
|
||
|
explicit_port_mapping_ = enabled;
|
||
|
}
|
||
|
|
||
|
void FabricVerilogOption::set_compress_routing(const bool& enabled) {
|
||
|
compress_routing_ = enabled;
|
||
|
}
|
||
|
|
||
|
void FabricVerilogOption::set_print_user_defined_template(const bool& enabled) {
|
||
|
print_user_defined_template_ = enabled;
|
||
|
}
|
||
|
|
||
|
void FabricVerilogOption::set_verbose_output(const bool& enabled) {
|
||
|
verbose_output_ = enabled;
|
||
|
}
|
||
|
|
||
|
} /* end namespace openfpga */
|