data/full_repos/permissive/482979608/ADPCM.srcs/sources_1/new/TWOS_COMPLEMENT.v
1: b'%Warning-MULTITOP: data/full_repos/permissive/482979608/ADPCM.srcs/sources_1/new/TWOS_COMPLEMENT.v:30: Multiple top level modules\n                                                                                                     : ... Suggest see manual; fix the duplicates, or use --top-module to select top.\n                   ... Use "/* verilator lint_off MULTITOP */" and lint_on around source to disable this message.\n                                                                                                     : ... Top module \'TWOS_COMPLEMENT_ONLY\'\nmodule TWOS_COMPLEMENT_ONLY #(parameter WL = 4)(\n       ^~~~~~~~~~~~~~~~~~~~\n                                                                                                     : ... Top module \'TWOS_COMPLEMENT\'\nmodule TWOS_COMPLEMENT #(parameter WL = 4)(\n       ^~~~~~~~~~~~~~~\n%Error: Exiting due to 1 warning(s)\n'
module TWOS_COMPLEMENT #(parameter WL = 4)(
    input signed [WL-1:0] original,
    output reg signed [WL-1:0] converted
    );
    always @(*) begin
        if(original[WL-1] == 1)
            converted = ~original + 1'b1;
        else
            converted = original;
    end
endmodule
module TWOS_COMPLEMENT #(parameter WL = 4)(
    input signed [WL-1:0] original,
    output reg signed [WL-1:0] converted
    );

    always @(*) begin
        if(original[WL-1] == 1)
            converted = ~original + 1'b1;
        else
            converted = original;
    end
endmodule