Design a 4-bit Comparator circuit in Verilog. It must have two inputs, a and b. After comparing, it must give a two-bit output such that
if a = b then output = 00
if a < b then output = 01
if a > b then output = 10
However, output = 11 is undefined.
Contributed by Indicore