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

BERT - BER tester - wrapper for a SIM::bert
Core function: SCI::sci_bert.proc()
. More...

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

Public Member Functions

 sci_bert ()
 
 ~sci_bert ()
 
sci_bertcreate (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_varproc (sci_var *p_v_ce, sci_var *p_v_x)
 
- 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_vargen (sci_var *p_v_ce)
 generate data using a SCI object More...
 
- Public Member Functions inherited from SIM::bert
 bert ()
 
 ~bert ()
 
void set_prbs (int M)
 
void set_poly (const bvec &bpoly)
 
void set_symbol_size (int W)
 
void set_length (int L)
 
void set_threshold (const ivec &T)
 
void set_fsm (bert_fsm_state state)
 
void set_output (bert_fsm_state yout)
 
void set_adr (bert_adr a)
 
int get_length (void)
 
int get_symbol_size (void)
 
ivec get_threshold (void)
 
ivec get_cnt (void)
 
ivec get_acc_cnt (void)
 
int get_metrics ()
 
bert_fsm_state get_fsm (void)
 
bvec get_state ()
 
bvec get_poly ()
 
bert_fsm_state get_output (void)
 
void clear_counters (void)
 
ivec process (const bvec &ce, const bmat &x)
 

Detailed Description

BERT - BER tester - wrapper for a SIM::bert
Core function: SCI::sci_bert.proc()
.

Constructor & Destructor Documentation

SCI::sci_bert::sci_bert ( )
SCI::sci_bert::~sci_bert ( )

Member Function Documentation

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

destroy SCI object

Reimplemented from SCI::sci_base.

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

execute command for an instance of a BERT

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

Reimplemented from SCI::sci_base.

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

create new sci_var object and assign its value to BERT parameter

Supported parameters:
SCI_TYPE,            sci_var [int] 
SCI_LENGTH, sci_var [int] SIM::bert.get_length()
SCI_SYMBOL_SIZE, sci_var [int] SIM::bert.get_symbol_size()
SCI_THRESHOLD, sci_var [ivec] SIM::bert.get_threshold()
SCI_CNT, sci_var [ivec] SIM::bert.get_cnt()
SCI_ACC_CNT, sci_var [ivec] SIM::bert.get_acc_cnt()
SCI_METRICS, sci_var [int] SIM::bert.get_metrics()
SCI_FSM, sci_var [int] SIM::bert.get_fsm()
SCI_STATE, sci_var [bvec] SIM::bert.get_state()
SCI_POLY, sci_var [bvec] SIM::bert.get_poly()
SCI_OUTPUT, sci_var [int] SIM::bert.get_output()
Parameters
[in]param- parameter to get
Returns
- pointer to created sci_var, actual object type depends on input parameter

Reimplemented from SCI::sci_base.

sci_var * SCI::sci_bert::proc ( sci_var p_v_ce,
sci_var p_v_x 
)
virtual

for active [ce] ticks, shift in x[i,:] symbol into X LSR and generate y[i,:] symbol and shift into Y LSR
calculate error bits in x[i,:] with respect to y[i,:] calculate metrics and new BERT_FSM state
details: SIM::bert.process()

Parameters
[in]p_v_ce- pointer to ce - sci_var [bvec]
[in]p_v_x- pointer to x - sci_var [bmat]
Returns
- pointer to y - new sci_var [ivec] - BERT_FSM states

Reimplemented from SCI::sci_base.

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

set parameters of a BERT

Supported parameters:
SCI_LENGTH,      sci_var [int]    SIM::bert.set_length()
SCI_SYMBOL_SIZE, sci_var [int] SIM::bert.set_size()
SCI_POLY, sci_var [bvec] SIM::bert.set_poly()
SCI_PRBS, sci_var [int] SIM::bert.set_prbs()
SCI_THRESHOLD, sci_var [int] SIM::bert.set_threshold()
SCI_FSM, sci_var [int] SIM::bert.set_fsm()
SCI_ADR, sci_var [int] SIM::bert.set_adr()
SCI_OUTPUT, sci_var [int] SIM::bert.set_output()
Note
SET SCI_POLY or SCI_PRBS and SCI_SYMBOL_SIZE, SCI_LENGTH, SCI_THRESHOLDS 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: