2023-09-16 01:22:31 -05:00
|
|
|
#ifndef RENAME_MODULES_H
|
|
|
|
#define RENAME_MODULES_H
|
|
|
|
|
|
|
|
/********************************************************************
|
|
|
|
* Include header files that are required by function declaration
|
|
|
|
*******************************************************************/
|
|
|
|
#include "device_rr_gsb.h"
|
2023-09-16 01:32:40 -05:00
|
|
|
#include "fabric_tile.h"
|
2023-09-16 01:22:31 -05:00
|
|
|
#include "module_manager.h"
|
2023-09-16 01:32:40 -05:00
|
|
|
#include "module_name_map.h"
|
2023-09-16 01:22:31 -05:00
|
|
|
|
|
|
|
/********************************************************************
|
|
|
|
* Function declaration
|
|
|
|
*******************************************************************/
|
|
|
|
|
|
|
|
/* begin namespace openfpga */
|
|
|
|
namespace openfpga {
|
|
|
|
|
2023-09-16 01:32:40 -05:00
|
|
|
int init_fabric_module_name_map(ModuleNameMap& module_name_map,
|
|
|
|
const ModuleManager& module_manager,
|
|
|
|
const bool& verbose);
|
2023-09-16 01:22:31 -05:00
|
|
|
|
2023-09-16 01:32:40 -05:00
|
|
|
int update_module_map_name_with_indexing_names(ModuleNameMap& module_name_map,
|
|
|
|
const DeviceRRGSB& device_rr_gsb,
|
|
|
|
const FabricTile& fabric_tile,
|
|
|
|
const bool& verbose);
|
2023-09-16 01:22:31 -05:00
|
|
|
|
2023-09-16 01:32:40 -05:00
|
|
|
int rename_fabric_modules(ModuleManager& module_manager,
|
|
|
|
const ModuleNameMap& module_name_map,
|
|
|
|
const bool& verbose);
|
2023-09-16 01:22:31 -05:00
|
|
|
|
2023-09-23 14:15:31 -05:00
|
|
|
int partial_rename_fabric_modules(ModuleManager& module_manager,
|
2023-09-23 14:15:53 -05:00
|
|
|
const ModuleNameMap& module_name_map,
|
|
|
|
const bool& verbose);
|
2023-09-23 14:15:31 -05:00
|
|
|
|
2023-09-23 14:15:53 -05:00
|
|
|
int update_module_name_map_with_user_version(
|
|
|
|
ModuleNameMap& curr_module_name_map,
|
|
|
|
const ModuleNameMap& user_module_name_map, const bool& verbose);
|
2023-09-23 13:51:31 -05:00
|
|
|
|
2023-09-16 01:22:31 -05:00
|
|
|
} /* end namespace openfpga */
|
|
|
|
|
|
|
|
#endif
|