diff_comp_sc
Project Library Model Name Kind
ISCD_IADC analog_blocks diff_comp_sc Hierarchical Module

Parameters

Name Type Default Description
gain double 1.0 DC gain [V/V]
fc double 1e6 corner frequency [Hz]
offset double 0.001 input offset [V]

Ports

Name Interface Type Description
outn sc_core::sc_out bool comparator output (inverted)
inp sca_eln::sca_terminal differential input ("plus")
inn sca_eln::sca_terminal differential input ("minus")

Description

differential comparator

Long Description

Differential comparator with limited bandwidth (1.O. butterworth).

Schematic

ncp ncn np nn comp_gain value = p.gain inp ncp ncn np nn diff_in value = 1.0/1e3 value = 1e3 value = 1.0/(2*M_PI*1e3*p.fc) inn gnd gain = 1.0 fc = 1e6 offset = 0.001 p n outp eln2de scale = 1.0 de sc0_i sc1_i sc_o <double, bool> comp > sc_o comp_thres <double> const_val = {T}{0.0} CONST_SRC_SC<T> outn OUT Differential comparator with single-ended output. this stage is inverting ! Carinthia University of Applied Science Author: W. Scherr, Date: JAN 2021 scrollfixer scrollfixer lp inp_off cmp cmp_thr diff_out