[core] code format
This commit is contained in:
parent
43fd08a3fe
commit
c105b56bf0
|
@ -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(
|
||||
openfpga_ctx.mutable_module_graph(), openfpga_ctx.mutable_module_name_map(), openfpga_ctx.io_name_map(),
|
||||
core_inst_name, frame_view, verbose_output);
|
||||
openfpga_ctx.mutable_module_graph(), openfpga_ctx.mutable_module_name_map(),
|
||||
openfpga_ctx.io_name_map(), core_inst_name, frame_view, verbose_output);
|
||||
}
|
||||
|
||||
/********************************************************************
|
||||
|
|
|
@ -341,7 +341,8 @@ int add_fpga_core_to_device_module_graph(ModuleManager& module_manager,
|
|||
int status = CMD_EXEC_SUCCESS;
|
||||
|
||||
/* 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);
|
||||
if (!module_manager.valid_module_id(top_module)) {
|
||||
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());
|
||||
|
||||
/* 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) {
|
||||
VTR_LOG_ERROR("Failed to register fpga core module '%s' in module name map!\n",
|
||||
core_module_name.c_str());
|
||||
VTR_LOG_ERROR(
|
||||
"Failed to register fpga core module '%s' in module name map!\n",
|
||||
core_module_name.c_str());
|
||||
return CMD_EXEC_FATAL_ERROR;
|
||||
}
|
||||
VTR_LOGV(verbose, "Updated module name map\n");
|
||||
|
|
|
@ -7,8 +7,8 @@
|
|||
#include <string>
|
||||
|
||||
#include "io_name_map.h"
|
||||
#include "module_name_map.h"
|
||||
#include "module_manager.h"
|
||||
#include "module_name_map.h"
|
||||
|
||||
/********************************************************************
|
||||
* Function declaration
|
||||
|
|
Loading…
Reference in New Issue