data/full_repos/permissive/450205124/Assignment1/Q2-Eight-Bit-Comparator/A1Q2_one_bit_comparator.v
data/verilator_xmls/a8af801e-4d1e-4c8c-9f09-807c9a9ff5ee.xml
module one_bit_comparator(out_less, out_equal, out_more, a, b, in_less, in_equal, in_more);
    input a,b,in_less,in_equal,in_more;
    output out_less,out_equal,out_more;

    assign out_equal=((a&&b)||(~a&&~b))&&in_equal;
    assign out_less=(~a&&b||in_less)&&~in_more;
    assign out_more=(a&&~b||in_more)&&~in_less;   
endmodule
module one_bit_comparator(out_less, out_equal, out_more, a, b, in_less, in_equal, in_more);

    input a,b,in_less,in_equal,in_more;
    output out_less,out_equal,out_more;

    assign out_equal=((a&&b)||(~a&&~b))&&in_equal;
    assign out_less=(~a&&b||in_less)&&~in_more;
    assign out_more=(a&&~b||in_more)&&~in_less;   
endmodule