24 lines
756 B
C
24 lines
756 B
C
|
#ifndef OPENFPGA_DECODE_H
|
||
|
#define OPENFPGA_DECODE_H
|
||
|
|
||
|
/********************************************************************
|
||
|
* Include header files that are required by function declaration
|
||
|
*******************************************************************/
|
||
|
#include <vector>
|
||
|
|
||
|
/********************************************************************
|
||
|
* Function declaration
|
||
|
*******************************************************************/
|
||
|
/* namespace openfpga begins */
|
||
|
namespace openfpga {
|
||
|
|
||
|
std::vector<size_t> ito1hot_vec(const size_t& in_int,
|
||
|
const size_t& bin_len);
|
||
|
|
||
|
std::vector<size_t> itobin_vec(const size_t& in_int,
|
||
|
const size_t& bin_len);
|
||
|
|
||
|
} /* namespace openfpga ends */
|
||
|
|
||
|
#endif
|