Describe block diagram of digital comparator and write truth table of 2 bit comparator.
Digital comparator is a combinational circuit which compares two numbers, A and B; and evaluates their relative magnitudes. The outcome of the comparison is given by three binary variables which indicate whether A = B or A > B or A < B. Depending on the result of comparison one of these outputs will go high.