High speed comparators are rather expensive and speed is what FPGAs are very good at. On the other hand, FPGAs (in my case: XC3S400) have paired differential pins in each bank that their voltages are compared ( At least I think so !). They also have Vref for single ended standards that may act as a comparator.
I want to know if I can use those differential I/O pair pins as a comparator -and if so- how should I do that ( Should I connect a vref and use single ended standards or simply connect two voltages to differential I/O pins ?)
EDITION: I tried it and works excellent !!!