#ifndef OPENFPGA_DECODE_H #define OPENFPGA_DECODE_H /******************************************************************** * Include header files that are required by function declaration *******************************************************************/ #include #include #include /******************************************************************** * Function declaration *******************************************************************/ /* namespace openfpga begins */ namespace openfpga { /**************************************** * Constants */ constexpr char DONT_CARE_CHAR = 'x'; std::vector ito1hot_vec(const size_t& in_int, const size_t& bin_len); std::vector itobin_vec(const size_t& in_int, const size_t& bin_len); std::vector itobin_charvec(const size_t& in_int, const size_t& bin_len); size_t bintoi_charvec(const std::vector& bin); std::vector expand_dont_care_bin_str(const std::string& input_str); } /* namespace openfpga ends */ #endif