itpp_sci  1.0.0
it++ based simulation framework for scicoslab, scilab and scipy
Public Member Functions | List of all members
SIM::int2bin Class Reference

binary to integer converter
Core function SIM::int2bin.process()
More...

Inheritance diagram for SIM::int2bin:
Inheritance graph
[legend]

Public Member Functions

 int2bin ()
 
 ~int2bin ()
 
void set_symbol_size (int W)
 
void set_msb_flag (bool msb)
 
void set_output (const bvec &yout)
 
int get_symbol_size ()
 
bool get_msb_flag ()
 
bvec get_output ()
 
bmat process (const bvec &ce, const ivec &x)
 

Detailed Description

binary to integer converter
Core function SIM::int2bin.process()

Constructor & Destructor Documentation

SIM::int2bin::int2bin ( )
inline
SIM::int2bin::~int2bin ( )
inline

Member Function Documentation

bool SIM::int2bin::get_msb_flag ( )

get msb flag - x[0]=MSB

Returns
- [bool] msb flag - x[0]=MSB
bvec SIM::int2bin::get_output ( void  )

get initial/idle output symbol

Returns
- [bvec] y0
int SIM::int2bin::get_symbol_size ( void  )

get size of a symbol - number of columns for binary symbol

Returns
[int] size of a symbol W
bmat SIM::int2bin::process ( const bvec &  ce,
const ivec &  x 
)

for active clock ticks ce[i] convert one input symbol x[i] into binary symbol y[i,W]

Parameters
ce- [bvec] - clock enable vector - sizeof(ce)=N
x- [ivec] - input symbols vector - sizeof(x)=N
Returns
y - [bmat] - output symbols matrix - sizeof(y)=[N,W]
void SIM::int2bin::set_msb_flag ( bool  msb)

set msb flag - x[0]=MSB

Parameters
[in]msb- [bool] flag
void SIM::int2bin::set_output ( const bvec &  yout)

sets initial/idle output symbol

Parameters
[in]yout- [bvec] y0 = yout
void SIM::int2bin::set_symbol_size ( int  W)

set size of a symbol - W - number of columns for binary symbol

Parameters
[in]W- [int] size of a symbol

The documentation for this class was generated from the following files: