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

binary up counter - wrapper for a SIM::counter
Core function: SCI::sci_counter.gen() More...

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

Public Member Functions

 sci_counter ()
 
 ~sci_counter ()
 
sci_countercreate (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::counter
 counter ()
 
 ~counter ()
 
void set_N (int N)
 
void set_state (int c)
 
int get_N ()
 
int get_state ()
 
void reset ()
 
bvec generate (const bvec &ce)
 

Detailed Description

binary up counter - wrapper for a SIM::counter
Core function: SCI::sci_counter.gen()

Constructor & Destructor Documentation

SCI::sci_counter::sci_counter ( )
SCI::sci_counter::~sci_counter ( )

Member Function Documentation

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

destroy SCI object

Reimplemented from SCI::sci_base.

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

execute counter command

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

Reimplemented from SCI::sci_base.

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

for active [ce] ticks, increment state modulo N, output carry flag as bit in bvec

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

Reimplemented from SCI::sci_base.

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

create new sci_var object and assign its value to counter parameter param

Supported parameters:
SCI_TYPE,    sci_var [int] 
SCI_PARAM_N, sci_var [int]
SCI_STATE, sci_var [int]
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_counter::set ( int  param,
sci_var p_v 
)
virtual

set parameters of a counter

Supported parameters:
SCI_PARAM_N, sci_var [int]
SCI_STATE, sci_var [int]
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: