data/full_repos/permissive/482979608/ADPCM.srcs/sources_1/new/CODEWORD.v
1: b"%Error: data/full_repos/permissive/482979608/ADPCM.srcs/sources_1/new/CODEWORD.v:27: Cannot find file containing module: 'TWOS_COMPLEMENT'\n    TWOS_COMPLEMENT #(.WL(WL)) D_TC (.original(d),.converted(d_c));\n    ^~~~~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/482979608/ADPCM.srcs/sources_1/new,data/full_repos/permissive/482979608/TWOS_COMPLEMENT\n             data/full_repos/permissive/482979608/ADPCM.srcs/sources_1/new,data/full_repos/permissive/482979608/TWOS_COMPLEMENT.v\n             data/full_repos/permissive/482979608/ADPCM.srcs/sources_1/new,data/full_repos/permissive/482979608/TWOS_COMPLEMENT.sv\n             TWOS_COMPLEMENT\n             TWOS_COMPLEMENT.v\n             TWOS_COMPLEMENT.sv\n             obj_dir/TWOS_COMPLEMENT\n             obj_dir/TWOS_COMPLEMENT.v\n             obj_dir/TWOS_COMPLEMENT.sv\n%Error: Exiting due to 1 error(s)\n"
module CODEWORD #(parameter WL = 16)(
        input signed [WL-1:0] d, delta,
        output reg codeWord
    );
    
    wire signed [WL-1:0] d_c;
    TWOS_COMPLEMENT #(.WL(WL)) D_TC (.original(d),.converted(d_c));
    always @(*) begin
        if (d_c >= delta)
            codeWord = 1;
        else 
            codeWord = 0;         
    end
endmodule
module CODEWORD #(parameter WL = 16)(
        input signed [WL-1:0] d, delta,
        output reg codeWord
    );

    
    wire signed [WL-1:0] d_c;
    TWOS_COMPLEMENT #(.WL(WL)) D_TC (.original(d),.converted(d_c));
    always @(*) begin
        if (d_c >= delta)
            codeWord = 1;
        else 
            codeWord = 0;         
    end
endmodule