Verilog code for comparator, 2-bit comparator in Verilog HDL. Truth table, K-map and minimized equations are presented.