From d4e3445153db13606d3ee7b015c01f01a038bbbd Mon Sep 17 00:00:00 2001 From: tangxifan Date: Wed, 22 Sep 2021 17:32:45 -0700 Subject: [PATCH] [Engine] update internal data structure for new syntax in configuration protocol --- libopenfpga/libarchopenfpga/src/config_protocol.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/libopenfpga/libarchopenfpga/src/config_protocol.h b/libopenfpga/libarchopenfpga/src/config_protocol.h index 550401098..034805c65 100644 --- a/libopenfpga/libarchopenfpga/src/config_protocol.h +++ b/libopenfpga/libarchopenfpga/src/config_protocol.h @@ -5,6 +5,15 @@ #include "circuit_types.h" #include "circuit_library_fwd.h" +/* Data type to define the protocol through which BL/WL can be manipulated */ +enum e_blwl_protocol_type { + BLWL_PROTOCOL_FLATTEN, + BLWL_PROTOCOL_DECODER, + BLWL_PROTOCOL_SHIFT_REGISTER, + NUM_BLWL_PROTOCOLS_TYPES +}; +constexpr std::array BLWL_PROTOCOL_TYPE_STRING = {{"flatten", "decoder", "shift_register"}}; + /******************************************************************** * A data structure to store configuration protocol information *******************************************************************/