start developing frame-based configuration protocol
This commit is contained in:
parent
1150b903a5
commit
62c506182c
libopenfpga/libarchopenfpga/src
|
@ -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
|
* 1. configurable memories are organized and accessed as standalone elements
|
||||||
* 2. configurable memories are organized and accessed by a scan-chain
|
* 2. configurable memories are organized and accessed by a scan-chain
|
||||||
* 3. configurable memories are organized and accessed by memory bank
|
* 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 {
|
enum e_config_protocol_type {
|
||||||
CONFIG_MEM_STANDALONE,
|
CONFIG_MEM_STANDALONE,
|
||||||
CONFIG_MEM_SCAN_CHAIN,
|
CONFIG_MEM_SCAN_CHAIN,
|
||||||
CONFIG_MEM_MEMORY_BANK,
|
CONFIG_MEM_MEMORY_BANK,
|
||||||
CONFIG_MEM_LOCAL_ENCODER,
|
CONFIG_MEM_FRAME_BASED,
|
||||||
NUM_CONFIG_PROTOCOL_TYPES
|
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
|
#endif
|
||||||
|
|
|
@ -35,8 +35,8 @@ e_config_protocol_type string_to_config_protocol_type(const std::string& type_st
|
||||||
return CONFIG_MEM_MEMORY_BANK;
|
return CONFIG_MEM_MEMORY_BANK;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (std::string("local_encoder") == type_string) {
|
if (std::string("frame_based") == type_string) {
|
||||||
return CONFIG_MEM_LOCAL_ENCODER;
|
return CONFIG_MEM_FRAME_BASED;
|
||||||
}
|
}
|
||||||
|
|
||||||
return NUM_CONFIG_PROTOCOL_TYPES;
|
return NUM_CONFIG_PROTOCOL_TYPES;
|
||||||
|
|
Loading…
Reference in New Issue