minor fix on the hierarchy writer in SDC generator
This commit is contained in:
parent
752470c2da
commit
d9dc7160a7
|
@ -36,7 +36,7 @@ ShellCommandId add_openfpga_write_pnr_sdc_command(openfpga::Shell<OpenfpgaContex
|
|||
shell_cmd.add_option("output_hierarchy", false, "Output hierachy of Multiple-Instance-Blocks (MIBs) to plain text file. This is applied to constrain timing for grid, SBs and CBs");
|
||||
|
||||
/* Add an option '--time_unit' */
|
||||
CommandOptionId time_unit_opt = shell_cmd.add_option("time_unit", false, "Specify the time unit in SDC files. Acceptable is [a|f|p|n|u|m|kM]s");
|
||||
CommandOptionId time_unit_opt = shell_cmd.add_option("time_unit", false, "Specify the time unit in SDC files. Acceptable is [a|f|p|n|u|m|k|M]s");
|
||||
shell_cmd.set_option_require_value(time_unit_opt, openfpga::OPT_STRING);
|
||||
|
||||
/* Add an option '--constrain_global_port' */
|
||||
|
|
|
@ -75,13 +75,13 @@ void print_pnr_sdc_routing_sb_hierarchy(const std::string& sdc_dir,
|
|||
/* Create the file name for SDC */
|
||||
std::string sdc_fname(sdc_dir + generate_switch_block_module_name(gsb_coordinate) + std::string(SDC_FILE_NAME_POSTFIX));
|
||||
|
||||
fp << sdc_fname << "\n";
|
||||
fp << "- " << sb_module_name << "\n";
|
||||
|
||||
/* Go through all the instance */
|
||||
for (const size_t& instance_id : module_manager.child_module_instances(top_module, sb_module)) {
|
||||
std::string sb_instance_name = module_manager.instance_name(top_module, sb_module, instance_id);
|
||||
fp << " - ";
|
||||
fp << sb_module_name << "/" << sb_instance_name << "\n";
|
||||
fp << " ";
|
||||
fp << "- " << sb_instance_name << "\n";
|
||||
}
|
||||
|
||||
fp << "\n";
|
||||
|
@ -154,13 +154,13 @@ void print_pnr_sdc_routing_cb_hierarchy(const std::string& sdc_dir,
|
|||
/* Create the file name for SDC */
|
||||
std::string sdc_fname(sdc_dir + generate_connection_block_module_name(cb_type, gsb_coordinate) + std::string(SDC_FILE_NAME_POSTFIX));
|
||||
|
||||
fp << sdc_fname << "\n";
|
||||
fp << "- " << cb_module_name << "\n";
|
||||
|
||||
/* Go through all the instance */
|
||||
for (const size_t& instance_id : module_manager.child_module_instances(top_module, cb_module)) {
|
||||
std::string cb_instance_name = module_manager.instance_name(top_module, cb_module, instance_id);
|
||||
fp << " - ";
|
||||
fp << cb_module_name << "/" << cb_instance_name << "\n";
|
||||
fp << " ";
|
||||
fp << "- " << cb_instance_name << "\n";
|
||||
}
|
||||
|
||||
fp << "\n";
|
||||
|
|
Loading…
Reference in New Issue