i_limit
Project Library Model Name Kind
eln_examples slewrate_models i_limit Hierarchical Module

Parameters

Name Type Default Description
gm double 1.0 Transconductance [A/V], must be positive
imax double 1.0 Max. output current [A], must be positive
imin double -1.0 Min. output current [A], must be negative

Ports

Name Interface Type Description
in_p sca_eln::sca_terminal positive control input
in_n sca_eln::sca_terminal negative control input
out_p sca_eln::sca_terminal positive current output
out_n sca_eln::sca_terminal negative current output

Description

output-limited transconductance module

Long Description

Transconductance with pos./neg. limit, similar to a G source using a LIMIT function in (LT)SPICE.

G1 vn vp VALUE={LIMIT( gm*V(vcn,vcp),max,min )}


See also here: http://ltwiki.org/index.php?title=G_Voltage_Dependent_Current_Source

Schematic

in_p in_n out_p ncp ncn np nn gm_limit value = 1.0 pwl_value = {{2.0*p.imin/p.gm,p.imin},{p.imin/p.gm,p.imin},{0.0,0.0},{p.imax/p.gm,p.imax},{2.0*p.imax/p.gm,p.imax}} out_n gm = 1.0 imax = 1.0 imin = -1.0 zoom bugfix zoom bugfix GM limiter, educational use only. (c) Carinthia University of Applied Sciences