data/full_repos/permissive/128497744/fsm_calculator_part3/Full_Calculator/Full_Calculator.srcs/sources_1/new/Div/Div_magnitude_comparator.v
data/verilator_xmls/918aadff-c9cd-438d-8f80-28eaaccaf5dd.xml
module Div_magnitude_comparator #(parameter dataIN_width = 4) (
    input [dataIN_width - 1 : 0] A, B,
    output reg equal_to, greater_than, less_than
    );
    
 always @ (A, B)
 begin
    equal_to         <= 1'b0;
    greater_than     <= 1'b0;
    less_than        <= 1'b0;
    if (A > B)
        greater_than <= 1'b1;
    else if (A < B)
        less_than    <= 1'b1;
    else
        equal_to     <= 1'b1;
 end
endmodule
module Div_magnitude_comparator #(parameter dataIN_width = 4) (
    input [dataIN_width - 1 : 0] A, B,
    output reg equal_to, greater_than, less_than
    );

    
 always @ (A, B)
 begin
    equal_to         <= 1'b0;
    greater_than     <= 1'b0;
    less_than        <= 1'b0;
    if (A > B)
        greater_than <= 1'b1;
    else if (A < B)
        less_than    <= 1'b1;
    else
        equal_to     <= 1'b1;
 end
endmodule