[Tool] Change analysis SDC file name to track netlist name

This commit is contained in:
tangxifan 2020-10-10 17:43:35 -06:00
parent 800931c840
commit 721bcce373
3 changed files with 14 additions and 1 deletions

View File

@ -1445,4 +1445,14 @@ std::string generate_const_value_module_output_port_name(const size_t& const_val
return generate_const_value_module_name(const_val);
}
/*********************************************************************
* Generate the analysis SDC file name
* The format is
* <circuit_name>_<postfix>
********************************************************************/
std::string generate_analysis_sdc_file_name(const std::string& circuit_name,
const std::string& file_name_postfix) {
return circuit_name + "_" + file_name_postfix;
}
} /* end namespace openfpga */

View File

@ -264,6 +264,9 @@ std::string generate_const_value_module_name(const size_t& const_val);
std::string generate_const_value_module_output_port_name(const size_t& const_val);
std::string generate_analysis_sdc_file_name(const std::string& circuit_name,
const std::string& file_name_postfix);
} /* end namespace openfpga */
#endif

View File

@ -228,7 +228,7 @@ void print_analysis_sdc(const AnalysisSdcOption& option,
const std::vector<CircuitPortId>& global_ports,
const bool& compact_routing_hierarchy) {
/* Create the file name for Verilog netlist */
std::string sdc_fname(option.sdc_dir() + std::string(SDC_ANALYSIS_FILE_NAME));
std::string sdc_fname(option.sdc_dir() + generate_analysis_sdc_file_name(vpr_ctx.atom().nlist.netlist_name(), std::string(SDC_ANALYSIS_FILE_NAME)));
std::string timer_message = std::string("Generating SDC for Timing/Power analysis on the mapped FPGA '")
+ sdc_fname