44 lines
1.9 KiB
C
44 lines
1.9 KiB
C
|
#ifndef BUILD_TOP_MODULE_MEMORY_H
|
||
|
#define BUILD_TOP_MODULE_MEMORY_H
|
||
|
|
||
|
/********************************************************************
|
||
|
* Include header files that are required by function declaration
|
||
|
*******************************************************************/
|
||
|
|
||
|
#include <vector>
|
||
|
#include <map>
|
||
|
#include "vtr_ndmatrix.h"
|
||
|
#include "module_manager.h"
|
||
|
#include "circuit_types.h"
|
||
|
#include "circuit_library.h"
|
||
|
#include "device_grid.h"
|
||
|
#include "device_rr_gsb.h"
|
||
|
|
||
|
/********************************************************************
|
||
|
* Function declaration
|
||
|
*******************************************************************/
|
||
|
|
||
|
/* begin namespace openfpga */
|
||
|
namespace openfpga {
|
||
|
|
||
|
void organize_top_module_memory_modules(ModuleManager& module_manager,
|
||
|
const ModuleId& top_module,
|
||
|
const CircuitLibrary& circuit_lib,
|
||
|
const e_config_protocol_type& sram_orgz_type,
|
||
|
const CircuitModelId& sram_model,
|
||
|
const DeviceGrid& grids,
|
||
|
const vtr::Matrix<size_t>& grid_instance_ids,
|
||
|
const DeviceRRGSB& device_rr_gsb,
|
||
|
const vtr::Matrix<size_t>& sb_instance_ids,
|
||
|
const std::map<t_rr_type, vtr::Matrix<size_t>>& cb_instance_ids,
|
||
|
const bool& compact_routing_hierarchy);
|
||
|
|
||
|
void add_top_module_nets_memory_config_bus(ModuleManager& module_manager,
|
||
|
const ModuleId& parent_module,
|
||
|
const e_config_protocol_type& sram_orgz_type,
|
||
|
const e_circuit_model_design_tech& mem_tech);
|
||
|
|
||
|
} /* end namespace openfpga */
|
||
|
|
||
|
#endif
|