What builds up a comparator?
What builds up a Comparator?


Many data sheets contain semi-idealized details of their internal circuitry such as the ubiquitous LM339: -



You could probably model this up using a sim and it will give adequate results.

Try reading a few data sheets. Here's the LM311 for instance: -



And this link may help you understand them a bit more.