2021-09-05 15:23:38 -05:00
|
|
|
#ifndef BUILD_TOP_MODULE_MEMORY_UTILS_H
|
|
|
|
#define BUILD_TOP_MODULE_MEMORY_UTILS_H
|
|
|
|
|
|
|
|
/********************************************************************
|
|
|
|
* Include header files that are required by function declaration
|
|
|
|
*******************************************************************/
|
|
|
|
|
|
|
|
#include <map>
|
2022-10-06 19:08:50 -05:00
|
|
|
#include <vector>
|
|
|
|
|
2022-10-06 20:08:57 -05:00
|
|
|
#include "module_manager_fwd.h"
|
2021-09-05 15:23:38 -05:00
|
|
|
#include "vtr_vector.h"
|
|
|
|
|
|
|
|
/********************************************************************
|
|
|
|
* Function declaration
|
|
|
|
*******************************************************************/
|
|
|
|
|
|
|
|
/* begin namespace openfpga */
|
|
|
|
namespace openfpga {
|
|
|
|
|
2022-10-06 19:08:50 -05:00
|
|
|
/* A data structure to store the number of configuration bits for each
|
|
|
|
* configurable region of the top-level module. For different configuration
|
|
|
|
* protocol, the std::pair<size_t, size_t> represents different data See details
|
|
|
|
* in each function about how the data is organized
|
2021-09-05 15:23:38 -05:00
|
|
|
*/
|
2022-10-06 19:08:50 -05:00
|
|
|
typedef vtr::vector<ConfigRegionId, std::pair<size_t, size_t>>
|
|
|
|
TopModuleNumConfigBits;
|
2021-09-05 15:23:38 -05:00
|
|
|
|
|
|
|
} /* end namespace openfpga */
|
|
|
|
|
|
|
|
#endif
|