Design a circuit that compares two bits and indicates whether the first is greater than, equal to or smaller than the second.
module cmp(a, b, eq, gt, lt);
input a, b;
output eq, gt, lt;a and b are the input bits
eq indicates that
a=b.
gt indicates that
ab.
lt indicates that
ab.