eelxpeng
New Member
Offline
Posts: 1
|
I did one with gm, Gain, Output DC Voltage but without slew rate or voltage limit.
'include "constants.vams" 'include "disciplines.vams"
module diff_OTA(vip,vin,vop,von,vss) output vop,von; input vip,vin,vss; electrical vip,vin,vop,von,vss; parameter real vcm=1.65, Av=1800, gm=1.8m; real Gout,vodif; analog begin @(initial_step) begin Gout=gm/Av; end vodif=Av*V(vip,vin); I(vop,vss) <+ (V(vop,vss)-(vcm+vodif/2))*Gout; I(von,vss) <+ (V(von,vss)-(vcm-vodif/2))*Gout; end endmodule
|