// Synthesizable generic design.

module serial_compare_lsb
(
    input        clk,
    input        rst,
    input        a,
    input        b,
    output logic lt,
    output       eq,
    output logic gt
);

    always_ff @ (posedge clk or posedge rst)
        if (rst)
        begin
            lt <= 1'b0;
            gt <= 1'b0;
        end
        else if (a != b)
        begin
            lt <= a < b;
            gt <= a > b;
        end
    assign eq = ~ (lt | gt);

endmodule
