module: OpticalSD_AmpSat
parameters: double gain, double f_bw, double offset
inputs: double in
outputs: double out
classes: Amp amp("off + A*x","off,A,Min,Max",offset,gain,-1,1);
         Filter filt("1","1+1/(2*pi*fp)*s","fp,Ts",f_bw,Ts);
static_variables:
init:
code:
amp.inp(in);
filt.inp(amp.out);
out=filt.out;
