data/full_repos/permissive/171720620/hardware/PipelineCPU/src/sources/Compare.v
data/verilator_xmls/a8a6f3ea-b409-49d8-af7e-4318f3a37bd6.xml
module Compare #(
        parameter DATA_WIDTH = 32
    )(
        input [DATA_WIDTH - 1:0] data_in1,
        input [DATA_WIDTH - 1:0] data_in2,
        output more, equal, less
    );
    assign more = ($signed(data_in1) > $signed(data_in2)) ? 1 : 0;
    assign equal = ($signed(data_in1) == $signed(data_in2)) ? 1 : 0;
    assign less = ($signed(data_in1) < $signed(data_in2)) ? 1 : 0;
endmodule
module Compare #(
        parameter DATA_WIDTH = 32
    )(
        input [DATA_WIDTH - 1:0] data_in1,
        input [DATA_WIDTH - 1:0] data_in2,
        output more, equal, less
    );

    assign more = ($signed(data_in1) > $signed(data_in2)) ? 1 : 0;
    assign equal = ($signed(data_in1) == $signed(data_in2)) ? 1 : 0;
    assign less = ($signed(data_in1) < $signed(data_in2)) ? 1 : 0;
endmodule