Does anybody know how one can model an ideal compa...
# xschem
m
Does anybody know how one can model an ideal comparator in xschem using ngspice.
j
I’ve used versions of this table function from the ngspice manual to make an ideal comparator. I recall being able to simply include some variation of this this as a netlist symbol in the comparator schematic, but you might have to iterate to get the full syntax correct: ECMP 11 0 TABLE {V(10,9)} = (-5mV, 0V) (5mV, 5V)
e
I have the same need, to build an ideal comparator in ngspice. The simulation is returning errors with the VCVS source configured as "table".