data/full_repos/permissive/482979608/ADPCM.srcs/sources_1/new/ADPCM.v
1: b"%Error: data/full_repos/permissive/482979608/ADPCM.srcs/sources_1/new/ADPCM.v:33: Cannot find file containing module: 'ADDER_FIXED_POINT'\n    ADDER_FIXED_POINT #(.WI1(WLI),.WF1(WLF),.WI2(WLI),.WF2(WLF),.WIO(WLI),.WFO(WLF)) SUB (.in1(x),.in2(xr_c),.out(d));  \n    ^~~~~~~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/482979608/ADPCM.srcs/sources_1/new,data/full_repos/permissive/482979608/ADDER_FIXED_POINT\n             data/full_repos/permissive/482979608/ADPCM.srcs/sources_1/new,data/full_repos/permissive/482979608/ADDER_FIXED_POINT.v\n             data/full_repos/permissive/482979608/ADPCM.srcs/sources_1/new,data/full_repos/permissive/482979608/ADDER_FIXED_POINT.sv\n             ADDER_FIXED_POINT\n             ADDER_FIXED_POINT.v\n             ADDER_FIXED_POINT.sv\n             obj_dir/ADDER_FIXED_POINT\n             obj_dir/ADDER_FIXED_POINT.v\n             obj_dir/ADDER_FIXED_POINT.sv\n%Error: data/full_repos/permissive/482979608/ADPCM.srcs/sources_1/new/ADPCM.v:34: Cannot find file containing module: 'BIT_QUANTIZER'\n    BIT_QUANTIZER #(.WLI(WLI),.WLF(WLF)) QUANTIZER (.CLK(CLK),.RST(RST),.d(d),.codeWord(codeWord),.codeSign(codeSign),.dq(dq));\n    ^~~~~~~~~~~~~\n%Error: data/full_repos/permissive/482979608/ADPCM.srcs/sources_1/new/ADPCM.v:35: Cannot find file containing module: 'TWOS_COMPLEMENT_ONLY'\n    TWOS_COMPLEMENT_ONLY #(.WL(WL)) DQ_TC (.original(dq),.converted(dq_c));\n    ^~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/482979608/ADPCM.srcs/sources_1/new/ADPCM.v:36: Cannot find file containing module: 'MUX_2'\n    MUX_2 #(.WL(WL),.WL_sel(W_sel)) MUX (.SEL(codeSign),.select1('b11),.select2('b01),.input1(dq_c),.input2(dq),.muxOut(muxOut));\n    ^~~~~\n%Error: data/full_repos/permissive/482979608/ADPCM.srcs/sources_1/new/ADPCM.v:37: Cannot find file containing module: 'ADDER_FIXED_POINT'\n    ADDER_FIXED_POINT # (.WI1(WLI),.WF1(WLF),.WI2(WLI),.WF2(WLF),.WIO(WLI),.WFO(WLF)) ADDER (.in1(muxOut),.in2(xr),.out(addOut));    \n    ^~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/482979608/ADPCM.srcs/sources_1/new/ADPCM.v:38: Cannot find file containing module: 'DFF'\n    DFF #(.WI(WLI),.WF(WLF)) DFF (.CLK(CLK),.RST(RST),.EN(EN),.D(addOut),.Q(xr));\n    ^~~\n%Error: data/full_repos/permissive/482979608/ADPCM.srcs/sources_1/new/ADPCM.v:39: Cannot find file containing module: 'TWOS_COMPLEMENT_ONLY'\n    TWOS_COMPLEMENT_ONLY #(.WL(WL)) XR_TC (.original(xr),.converted(xr_c));\n    ^~~~~~~~~~~~~~~~~~~~\n%Error: Exiting due to 7 error(s)\n"
module ADPCM #(parameter WLI = 1, WLF = 15, WL = WLI + WLF, W_sel = 2)(
        input CLK, RST, EN,
        input signed [WL-1:0] x,
        output codeWord,
        output signed [1:0] codeSign
    );
    wire signed [WL-1:0] xr, xr_c, addOut;
    wire signed [WL-1:0] d;
    wire signed [WL-1:0] dq,dq_c,muxOut;
    
    ADDER_FIXED_POINT #(.WI1(WLI),.WF1(WLF),.WI2(WLI),.WF2(WLF),.WIO(WLI),.WFO(WLF)) SUB (.in1(x),.in2(xr_c),.out(d));  
    BIT_QUANTIZER #(.WLI(WLI),.WLF(WLF)) QUANTIZER (.CLK(CLK),.RST(RST),.d(d),.codeWord(codeWord),.codeSign(codeSign),.dq(dq));
    TWOS_COMPLEMENT_ONLY #(.WL(WL)) DQ_TC (.original(dq),.converted(dq_c));
    MUX_2 #(.WL(WL),.WL_sel(W_sel)) MUX (.SEL(codeSign),.select1('b11),.select2('b01),.input1(dq_c),.input2(dq),.muxOut(muxOut));
    ADDER_FIXED_POINT # (.WI1(WLI),.WF1(WLF),.WI2(WLI),.WF2(WLF),.WIO(WLI),.WFO(WLF)) ADDER (.in1(muxOut),.in2(xr),.out(addOut));    
    DFF #(.WI(WLI),.WF(WLF)) DFF (.CLK(CLK),.RST(RST),.EN(EN),.D(addOut),.Q(xr));
    TWOS_COMPLEMENT_ONLY #(.WL(WL)) XR_TC (.original(xr),.converted(xr_c));
endmodule
module ADPCM #(parameter WLI = 1, WLF = 15, WL = WLI + WLF, W_sel = 2)(
        input CLK, RST, EN,
        input signed [WL-1:0] x,
        output codeWord,
        output signed [1:0] codeSign
    );

    wire signed [WL-1:0] xr, xr_c, addOut;
    wire signed [WL-1:0] d;
    wire signed [WL-1:0] dq,dq_c,muxOut;
    
    ADDER_FIXED_POINT #(.WI1(WLI),.WF1(WLF),.WI2(WLI),.WF2(WLF),.WIO(WLI),.WFO(WLF)) SUB (.in1(x),.in2(xr_c),.out(d));  
    BIT_QUANTIZER #(.WLI(WLI),.WLF(WLF)) QUANTIZER (.CLK(CLK),.RST(RST),.d(d),.codeWord(codeWord),.codeSign(codeSign),.dq(dq));
    TWOS_COMPLEMENT_ONLY #(.WL(WL)) DQ_TC (.original(dq),.converted(dq_c));
    MUX_2 #(.WL(WL),.WL_sel(W_sel)) MUX (.SEL(codeSign),.select1('b11),.select2('b01),.input1(dq_c),.input2(dq),.muxOut(muxOut));
    ADDER_FIXED_POINT # (.WI1(WLI),.WF1(WLF),.WI2(WLI),.WF2(WLF),.WIO(WLI),.WFO(WLF)) ADDER (.in1(muxOut),.in2(xr),.out(addOut));    
    DFF #(.WI(WLI),.WF(WLF)) DFF (.CLK(CLK),.RST(RST),.EN(EN),.D(addOut),.Q(xr));
    TWOS_COMPLEMENT_ONLY #(.WL(WL)) XR_TC (.original(xr),.converted(xr_c));
endmodule