Does anybody know how one can model an ideal comparator in xschem using ngspice.
j
Jordan
02/25/2023, 5:05 PM
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
Estevao Teixeira
03/24/2024, 9:16 PM
I have the same need, to build an ideal comparator in ngspice. The simulation is returning errors with the VCVS source configured as "table".
Linen is a search-engine friendly community platform. We offer integrations with existing Slack/Discord communities and make those conversations Google-searchable.