2020-02-14 11:00:24 -06:00
|
|
|
#ifndef BUILD_TOP_MODULE_UTILS_H
|
|
|
|
#define BUILD_TOP_MODULE_UTILS_H
|
|
|
|
|
|
|
|
/********************************************************************
|
|
|
|
* Include header files that are required by function declaration
|
|
|
|
*******************************************************************/
|
|
|
|
#include <string>
|
2022-10-06 19:08:50 -05:00
|
|
|
#include <vector>
|
|
|
|
|
2020-02-14 11:00:24 -06:00
|
|
|
#include "device_grid.h"
|
|
|
|
#include "rr_gsb.h"
|
2022-10-06 19:08:50 -05:00
|
|
|
#include "vtr_geometry.h"
|
2020-02-14 11:00:24 -06:00
|
|
|
|
|
|
|
/********************************************************************
|
|
|
|
* Function declaration
|
|
|
|
*******************************************************************/
|
|
|
|
|
|
|
|
/* begin namespace openfpga */
|
|
|
|
namespace openfpga {
|
|
|
|
|
2022-10-06 19:08:50 -05:00
|
|
|
std::string generate_grid_block_module_name_in_top_module(
|
|
|
|
const std::string& prefix, const DeviceGrid& grids,
|
|
|
|
const vtr::Point<size_t>& grid_coord);
|
2020-02-14 11:00:24 -06:00
|
|
|
|
|
|
|
t_rr_type find_top_module_cb_type_by_sb_side(const e_side& sb_side);
|
|
|
|
|
2022-10-06 19:08:50 -05:00
|
|
|
vtr::Point<size_t> find_top_module_gsb_coordinate_by_sb_side(
|
|
|
|
const RRGSB& rr_gsb, const e_side& sb_side);
|
2020-02-14 11:00:24 -06:00
|
|
|
|
|
|
|
} /* end namespace openfpga */
|
|
|
|
|
|
|
|
#endif
|