Hello , i am using ahdlib library component called: OPAMP i want to convert its in a simple comparator for A/D .
i want it to see who is bigger and output one of the supply voltages i put:
gain: 1.5M
freq_unitygain 8M
rin: 4M
vin_offset:30u
ibias:15n
slew rate:8M
rout: 70
positive supply 1.2 negative supply 0 vref =0.
i put two opposite sources switching from 0 to 0.6 at 1nsec period and instead of showing me in the output the replica of source1
it gives me a straight line at 0.8 V
where did i go wrong transforming it to comaprator?
Thanks