gain block with offset
Core function SIM::amp.process()
More...
gain block with offset
Core function SIM::amp.process()
y = gain*x+offset
default gain = 1.0
default offset = 0.0
| double SIM::amp::get_gain |
( |
void |
| ) |
|
get gain
- Returns
- - [double] gain
| double SIM::amp::get_offset |
( |
void |
| ) |
|
get offset value
- Returns
- - [double] offset
| double SIM::amp::get_output |
( |
void |
| ) |
|
get output value y0
- Returns
- - [double] y0
| vec SIM::amp::process |
( |
const bvec & |
ce, |
|
|
const vec & |
x |
|
) |
| |
process input samples - [x] for active clock ticks [ce]
- Parameters
-
| ce | [bvec] clock_enable vector |
| x | [vec] input vector |
- Returns
- y [vec] output vector y = gain*x + offset
| void SIM::amp::set_gain |
( |
double |
g | ) |
|
| void SIM::amp::set_offset |
( |
double |
o | ) |
|
| void SIM::amp::set_output |
( |
double |
yout | ) |
|
set output value y0
- Parameters
-
The documentation for this class was generated from the following files:
- C:/jobs/vcc/itpp_sci/include/sim/sim_amp.hpp
- C:/jobs/vcc/itpp_sci/sim_lib/code/sim_amp.cpp