circlular buffer
Core functions SIM::circbuff.process(), SIM::circbuff.generate()
More...
circlular buffer
Core functions SIM::circbuff.process(), SIM::circbuff.generate()
itpp::circular_buffer<double> derived class with clocked interface
| SIM::circbuff::circbuff |
( |
| ) |
|
|
inline |
| SIM::circbuff::~circbuff |
( |
| ) |
|
|
inline |
| vec SIM::circbuff::generate |
( |
const bvec & |
ce | ) |
|
for active clock ticks [ce] fetch sample and and put back into the buffer
if (ce) {yout = get(); put(yout);
- Parameters
-
| ce | - [bvec] clock_enable vector |
- Returns
- y - [vec]
| double SIM::circbuff::get_output |
( |
void |
| ) |
|
get output value
- Returns
- - [double] y0
| int SIM::circbuff::get_size |
( |
void |
| ) |
|
get buffer size
- Returns
- - [int] buffer size
| vec SIM::circbuff::process |
( |
const bmat & |
ceio, |
|
|
const vec & |
x |
|
) |
| |
for active input clock ticks ceio[i,0] put input sample x[i]
if (ceio[i,0]) { put(x[i]) }
for active output clock ticks ceio[i,1] update yout by fetching one sample
if (ceo[i]) { yout = get() }
- Parameters
-
| ceio | - [bmat][cei|ceo] input/output clock_enable vector |
| x | - [vec] - input samples |
- Returns
- y - [vec] - output samples
| void SIM::circbuff::set_output |
( |
double |
yout | ) |
|
set output value y0
- Parameters
-
| void SIM::circbuff::set_size |
( |
int |
m | ) |
|
set buffer size
- Parameters
-
The documentation for this class was generated from the following files:
- C:/jobs/vcc/itpp_sci/include/sim/sim_circbuff.hpp
- C:/jobs/vcc/itpp_sci/sim_lib/code/sim_circbuff.cpp