[core] code format

This commit is contained in:
tangxifan 2023-09-18 23:31:27 -07:00
parent 43fd08a3fe
commit c105b56bf0
3 changed files with 10 additions and 7 deletions

View File

@ -339,8 +339,8 @@ int add_fpga_core_to_fabric_template(T& openfpga_ctx, const Command& cmd,
} }
return add_fpga_core_to_device_module_graph( return add_fpga_core_to_device_module_graph(
openfpga_ctx.mutable_module_graph(), openfpga_ctx.mutable_module_name_map(), openfpga_ctx.io_name_map(), openfpga_ctx.mutable_module_graph(), openfpga_ctx.mutable_module_name_map(),
core_inst_name, frame_view, verbose_output); openfpga_ctx.io_name_map(), core_inst_name, frame_view, verbose_output);
} }
/******************************************************************** /********************************************************************

View File

@ -341,7 +341,8 @@ int add_fpga_core_to_device_module_graph(ModuleManager& module_manager,
int status = CMD_EXEC_SUCCESS; int status = CMD_EXEC_SUCCESS;
/* Execute the module graph api */ /* Execute the module graph api */
std::string top_module_name = module_name_map.name(generate_fpga_top_module_name()); std::string top_module_name =
module_name_map.name(generate_fpga_top_module_name());
ModuleId top_module = module_manager.find_module(top_module_name); ModuleId top_module = module_manager.find_module(top_module_name);
if (!module_manager.valid_module_id(top_module)) { if (!module_manager.valid_module_id(top_module)) {
return CMD_EXEC_FATAL_ERROR; return CMD_EXEC_FATAL_ERROR;
@ -381,10 +382,12 @@ int add_fpga_core_to_device_module_graph(ModuleManager& module_manager,
top_module_name.c_str(), core_module_name.c_str()); top_module_name.c_str(), core_module_name.c_str());
/* Update module name map */ /* Update module name map */
status = module_name_map.set_tag_to_name_pair(core_module_name, core_module_name); status =
module_name_map.set_tag_to_name_pair(core_module_name, core_module_name);
if (CMD_EXEC_SUCCESS != status) { if (CMD_EXEC_SUCCESS != status) {
VTR_LOG_ERROR("Failed to register fpga core module '%s' in module name map!\n", VTR_LOG_ERROR(
core_module_name.c_str()); "Failed to register fpga core module '%s' in module name map!\n",
core_module_name.c_str());
return CMD_EXEC_FATAL_ERROR; return CMD_EXEC_FATAL_ERROR;
} }
VTR_LOGV(verbose, "Updated module name map\n"); VTR_LOGV(verbose, "Updated module name map\n");

View File

@ -7,8 +7,8 @@
#include <string> #include <string>
#include "io_name_map.h" #include "io_name_map.h"
#include "module_name_map.h"
#include "module_manager.h" #include "module_manager.h"
#include "module_name_map.h"
/******************************************************************** /********************************************************************
* Function declaration * Function declaration