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

linear feedback shift register - wrapper for a SIM::lfsr
Core function: SCI::sci_lfsr.gen() More...

Inheritance diagram for SCI::sci_lfsr:
Inheritance graph
[legend]

Public Member Functions

 sci_lfsr ()
 
 ~sci_lfsr ()
 
sci_lfsrcreate (int sci_type)
 
void destroy ()
 destroy SCI object More...
 
void set (int param, sci_var *p_v)
 
sci_varget (int param)
 
void exec (int command)
 
sci_vargen (sci_var *p_v_ce)
 
- Public Member Functions inherited from SCI::sci_base
 sci_base ()
 constructor More...
 
virtual ~sci_base ()
 virtual destructor More...
 
sci_basecreate (int sci_type)
 creates SCI object and returns pointer to it More...
 
virtual sci_varproc (sci_var *p_v_ce, sci_var *p_v_x)
 process data using a SCI object More...
 
- Public Member Functions inherited from SIM::lfsr
 lfsr ()
 
 ~lfsr ()
 
void set_poly (const bvec &bpoly)
 
void set_prbs (int M)
 
void set_symbol_size (int W)
 
void set_reset_state (const bvec &binit)
 
void set_output (const bvec &yout)
 
void set_rev_flag (bool flag)
 
bvec get_poly ()
 
bvec get_state ()
 
int get_symbol_size ()
 
bvec get_reset_state ()
 
bvec get_output ()
 
bool get_rev_flag ()
 
bmat generate (const bvec &ce)
 

Detailed Description

linear feedback shift register - wrapper for a SIM::lfsr
Core function: SCI::sci_lfsr.gen()

Constructor & Destructor Documentation

SCI::sci_lfsr::sci_lfsr ( )
SCI::sci_lfsr::~sci_lfsr ( )

Member Function Documentation

sci_lfsr* SCI::sci_lfsr::create ( int  sci_type)
inline
void SCI::sci_lfsr::destroy ( )
inlinevirtual

destroy SCI object

Reimplemented from SCI::sci_base.

void SCI::sci_lfsr::exec ( int  command)
virtual

execute command for an instance of a LFSR

Supported commands:
SCI_RESET 
Parameters
[in]command- to be executed

Reimplemented from SCI::sci_base.

sci_var * SCI::sci_lfsr::gen ( sci_var p_v_ce)
virtual

for active [ce] ticks, assign newly created symbol [bvec] to output row

Parameters
[in]p_v_ce- pointer to ce - sci_var [bvec]
Returns
- pointer to y - new sci_var [bmat]

Reimplemented from SCI::sci_base.

sci_var * SCI::sci_lfsr::get ( int  param)
virtual

create new sci_var object and assign its value to LFSR parameter

Supported parameters:
SCI_TYPE,  sci_var [int] 
SCI_SYMBOL_SIZE, sci_var [int]
SCI_LENGTH, sci_var [int]
SCI_POLY, sci_var [bvec]
SCI_STATE, sci_var [bvec]
SCI_RESET_STATE, sci_var [bvec]
SCI_OUTPUT, sci_var [bvec]
SCI_REVERSE_FLAG sci_var [bool]
Parameters
[in]param- parameter to get
Returns
- pointer to created sci_var, actual object type depends on input parameter

Reimplemented from SCI::sci_base.

void SCI::sci_lfsr::set ( int  param,
sci_var p_v 
)
virtual

set parameters of a LFSR

Supported parameters:
SCI_POLY,        sci_var [bvec]
SCI_STATE, sci_var [bvec]
SCI_RESET_STATE, sci_var [bvec]
SCI_OUTPUT, sci_var [bvec]
SCI_SYMBOL_SIZE, sci_var [int]
SCI_PRBS, sci_var [int]
SCI_REVERSE_FLAG sci_var [bool]
Note
SET SCI_POLY or SCI_PRBS and SCI_SYMBOL_SIZE are necessary configuration
Parameters
[in]param- parameter to set
[in]p_v- pointer to sci_var object with value of the parameter

Reimplemented from SCI::sci_base.


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