start developing frame-based configuration protocol

This commit is contained in:
tangxifan 2020-05-25 18:21:12 -06:00
parent 1150b903a5
commit 62c506182c
2 changed files with 5 additions and 5 deletions

View File

@ -119,16 +119,16 @@ constexpr std::array<const char*, NUM_CIRCUIT_MODEL_DELAY_TYPES> CIRCUIT_MODEL_D
* 1. configurable memories are organized and accessed as standalone elements
* 2. configurable memories are organized and accessed by a scan-chain
* 3. configurable memories are organized and accessed by memory bank
* 4. configurable memories are organized and accessed by a local encoder
* 4. configurable memories are organized and accessed by frames
*/
enum e_config_protocol_type {
CONFIG_MEM_STANDALONE,
CONFIG_MEM_SCAN_CHAIN,
CONFIG_MEM_MEMORY_BANK,
CONFIG_MEM_LOCAL_ENCODER,
CONFIG_MEM_FRAME_BASED,
NUM_CONFIG_PROTOCOL_TYPES
};
constexpr std::array<const char*, NUM_CONFIG_PROTOCOL_TYPES> CONFIG_PROTOCOL_TYPE_STRING = {{"standalone", "scan_chain", "memory_bank", "local_encoder"}};
constexpr std::array<const char*, NUM_CONFIG_PROTOCOL_TYPES> CONFIG_PROTOCOL_TYPE_STRING = {{"standalone", "scan_chain", "memory_bank", "frame_based"}};
#endif

View File

@ -35,8 +35,8 @@ e_config_protocol_type string_to_config_protocol_type(const std::string& type_st
return CONFIG_MEM_MEMORY_BANK;
}
if (std::string("local_encoder") == type_string) {
return CONFIG_MEM_LOCAL_ENCODER;
if (std::string("frame_based") == type_string) {
return CONFIG_MEM_FRAME_BASED;
}
return NUM_CONFIG_PROTOCOL_TYPES;