Unsigned N-bit comparator

~\Desktop\pract.v.html
module comparator(a, b, cmp);

        parameter N=8;
//  By varing the parameter value you can change the number of bits needed for comparaision

        input [N-1:0] a;
        input [N-1:0] b;

        output cmp;

        assign cmp = (a >= b) ?  1’b1 : 1’b0;

        endmodule