Advanced Functional Electrical Models (AFEM)

Type Description Source
Voltage Deadband Amplifier Voltage deadband amplifier V_deadband_amp.va
Current Deadband Amplifier Current deadband amplifier I_deadband_amp.va
Voltage Amplifier Voltage amplifier V_amp.va
Voltage Natural Logarithmic Amplifier Voltage natural logarithmic amplifier V_ln_amp.va
Voltage Decimal Logarithmic Amplifier Voltage decimal logarithmic amplifier V_log_amp.va
Voltage Amplifier, PWL Limited Voltage amplifier, pwl limited V_pwl_limited_amp.va
Voltage Amplifier, Continuous Limited Voltage amplifier, continuous limited V_cont_limited_amp.va
Variable Gain Amplifier, Pwl Limited Variable gain voltage amplifier, pwl limited V_pwl_limited_amp.va
Current Mirror Current mirror current_mirror.va
First Order Lowpass Filter First order lowpass filter lowpass1.va
Second Order Lowpass Filter Second order lowpass filter lowpass2.va
PID Controller Proportional-Integral-Differential controller with differential input and single output pid.va
n-channel Multiplexer n-channel multiplexer with variable channel number multiplexer.va
Phase Detector Phase detector, implemented as multiplier with gain phase_detector.va
VCO Voltage controlled sinus oscillator vco.va

Voltage Deadband Amplifier

Module Name V_deadband_amp
Terminals inp: positive input terminal : input voltage
inm: negative input terminal : input voltage
out: terminal : output voltage
Parameter vin_low: left corner of deadband = -1m
vin_high: right corner of deadband = 1m
vout_dead: output voltage if input voltage is in deadband = 0
gain_left: gain if input voltage is smaller than vin_low = 1
gain_right: gin if input voltage is larger than vin_high = 1

Current Deadband Amplifier

Module Name I_deadband_amp
Terminals inp: positive input terminal : input current
inm: negative input terminal : input current
out: terminal : output current
Parameter iin_low: left corner of deadband = -1m
iin_high: right corner of deadband = 1m
iout_dead: output current if input current is in deadband = 0
gain_left: gain if input current is smaller than iin_low = 1
gain_right: gin if input current is larger than iin_high = 1

Voltage Amplifier

Module Name V_amp
Terminals in: input terminal : input voltage
out: output terminal : output voltage
Parameter vin_offset: input dc offset = 0
vout_offset: output dc offset = 0
gain: gain (decimal) = 1

Voltage Natural Logarithmic Amplifier

Module Name V_ln_amp
Terminals in: input terminal : input voltage
out: output terminal : output voltage
Parameter vin_offset: input dc offset = 0
vout_offset: output dc offset = 0
gain: gain (decimal) = 1
min_arg: minimum argument for ln function = 1.0e-9 from (0:inf)

Voltage Decimal Logarithmic Amplifier

Module Name V_log_amp
Terminals in: input terminal : input voltage
out: output terminal : output voltage
Parameter vin_offset: input dc offset = 0
vout_offset: output dc offset = 0
gain: gain (decimal) = 1
min_arg: minimum argument for log function = 1.0e-9 from (0:inf)

Voltage Amplifier, PWL Limited

Module Name V_pwl_limited_amp
Terminals in: input terminal : input voltage
out: output terminal : output voltage
Parameter vin_offset: input dc offset = 0
vout_offset: output dc offset = 0
gain: gain (decimal) = 1
vout_max: maximum output voltage = 10
vout_min: minimum output voltage = -10 from (-inf:vout_max)

Voltage Amplifier, Continuous Limited

Module Name V_cont_limited_amp
Terminals in: input terminal : input voltage
out: output terminal : output voltage
Parameter vin_offset: input dc offset = 0
gain: gain (decimal) = 1
vout_max: maximum output voltage = 10
vout_min: minimum output voltage = -10 from (-inf:vout_max)

Variable Gain Amplifier, Pwl Limited

Module Name V_ctrl_pwl_limited_amp
Terminals in: input terminal : input voltage
ctrl: gain control terminal : input voltage
out: output terminal : output voltage
Parameter vin_offset: input dc offset = 0
vctrl_offset: control voltage dc offset = 0
vout_offset: output dc offset = 0
gain: gain (decimal) = 1
vout_max: maximum output voltage = 10
vout_min: minimum output voltage = -10 from (-inf:vout_max)

Current Mirror

Module Name current_mirror
Terminals inp: positive input terminal : input current
inm: negative input terminal : input current
outp: positive output terminal : output current
outm: negative output terminal : output current
Parameter ratio: current mirror ratio Iout/Iin = 1
rin: input resistance = 1K from (0:inf)

First Order Lowpass Filter

Module Name lowpass1
Terminals in: input terminal : input voltage
out: output terminal : output voltag
Parameter freq_p1: pole frequency (Hz) = 1M from (0:inf)

Second Order Lowpass Filter

Module Name lowpass2
Terminals in: input terminal : input voltage
out: output terminal : output voltag
Parameter freq_p1: first pole frequency (Hz) = 1M from (0:inf)
freq_p2: second pole frequency (Hz) = freq_p1 from [freq_p1:inf)

Proportional-Integral-Differential Controller with differential input, single output

Module Name pid
Terminals inp: positive input terminal : input voltage
inm: negative input terminal : input voltage
out: output terminal : output voltage
Parameter kp: proportional coefficient = 1
ki: integral coefficient = 1
kd: differential coefficient = 1

n-channel Multiplexer

Module Name multiplexer
Terminals in: input terminals : input [0:pow(2,size)-1] electrical
ctrl: control terminals : input [0:size-1] electrical
out: output terminal : output electrical
Parameter size: number of control bits = 2 from [1:inf)
vth: control bit threshold voltage = 1.4
ron: channel on resistance = 1 from (0:inf)
roff: channel off resistance = 1M from (ron:inf)
ttransit_off: transit time to switch channel on to off = 5n from [0:inf)
ttransit_on: transit time to switch channel off to on = ttransit from [transit_on:inf)

Phase Detector

Module Name phase_detector
Terminals in: input terminal : input voltage
ref: reference terminal : input voltage
out: output terminal : output voltage
Parameter gain: gain (decimal) = 1

Voltage Controlled Oscillator

Module Name vco
Terminals in: input terminal : input voltage
out: output terminal : output voltage
Parameter f0: center frequency = 1.0M from (0:inf)
kf: frequency coefficient (Hz/V)= 100.0K
lockrange: lockrange for input voltage = 3.0
vin_offset: input dc offset = 0.0
vout_offset: output dc offset = 0.0
vout_mag: output magnitude = 1.0
phi0: initial output phase (radian) = 0.0

-- DavidMiller - 2011-03-02

Topic attachments
I Attachment Action Size Date Who Comment
Unknown file formatva I_deadband_amp.va manage 1.1 K 2012-09-14 - 15:44 DavidMiller Current deadband amplifier
Unknown file formatva V_amp.va manage 0.7 K 2012-09-14 - 15:44 DavidMiller Voltage amplifier
Unknown file formatva V_cont_limited_amp.va manage 1.0 K 2012-09-14 - 15:44 DavidMiller Voltage amplifier, continuous limited
Unknown file formatva V_ctrl_pwl_limited_amp.va manage 1.3 K 2012-09-14 - 15:45 DavidMiller Variable gain voltage amplifier, pwl limited
Unknown file formatva V_deadband_amp.va manage 1.1 K 2012-09-14 - 15:45 DavidMiller Voltage deadband amplifier
Unknown file formatva V_ln_amp.va manage 1.0 K 2012-09-14 - 15:45 DavidMiller Voltage natural logarithmic amplifier
Unknown file formatva V_log_amp.va manage 1.0 K 2012-09-14 - 15:45 DavidMiller Voltage decimal logarithmic amplifier
Unknown file formatva V_pwl_limited_amp.va manage 1.2 K 2012-09-14 - 15:46 DavidMiller Voltage amplifier, pwl limited
Unknown file formatva current_mirror.va manage 0.7 K 2012-09-14 - 15:46 DavidMiller Current mirror
Unknown file formatva lowpass1.va manage 0.6 K 2012-09-14 - 15:46 DavidMiller First order lowpass filter
Unknown file formatva lowpass2.va manage 0.7 K 2012-09-14 - 15:46 DavidMiller Second order lowpass filter
Unknown file formatva multiplexer.va manage 2.8 K 2012-09-14 - 15:47 DavidMiller n-channel multiplexer with variable channel number
Unknown file formatva phase_detector.va manage 0.5 K 2012-09-14 - 15:47 DavidMiller Phase detector, implemented as multiplier with gain
Unknown file formatva pid.va manage 0.8 K 2012-09-14 - 15:47 DavidMiller Proportional-Integral-Differential controller with differential input and single output
Unknown file formatva vco.va manage 1.3 K 2012-09-14 - 15:47 DavidMiller Voltage controlled sinus oscillator
Topic revision: r3 - 2012-09-14 - 15:47:48 - DavidMiller
 
Copyright © 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback