data/full_repos/permissive/499944578/rtl/test/fragment_interpolator/depthInterpolator_Test.v
1: b'%Warning-STMTDLY: data/full_repos/permissive/499944578/rtl/test/fragment_interpolator/depthInterpolator_Test.v:29: Unsupported: Ignoring delay on this delayed statement.\n            #20;  \n            ^\n                  ... Use "/* verilator lint_off STMTDLY */" and lint_on around source to disable this message.\n%Warning-STMTDLY: data/full_repos/permissive/499944578/rtl/test/fragment_interpolator/depthInterpolator_Test.v:32: Unsupported: Ignoring delay on this delayed statement.\n            #20;  \n            ^\n%Warning-STMTDLY: data/full_repos/permissive/499944578/rtl/test/fragment_interpolator/depthInterpolator_Test.v:48: Unsupported: Ignoring delay on this delayed statement.\n            #PERIOD;  \n            ^\n%Warning-IMPLICIT: data/full_repos/permissive/499944578/rtl/test/fragment_interpolator/depthInterpolator_Test.v:51: Signal definition not found, creating implicitly: \'tst\'\n            $display("tst == %h", tst);\n                                  ^~~\n%Error: data/full_repos/permissive/499944578/rtl/test/fragment_interpolator/depthInterpolator_Test.v:15: Cannot find file containing module: \'fNToRecFN\'\n    fNToRecFN#(8,24) fNToRecFNa (a, aFN);\n    ^~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/499944578/rtl/test/fragment_interpolator,data/full_repos/permissive/499944578/fNToRecFN\n             data/full_repos/permissive/499944578/rtl/test/fragment_interpolator,data/full_repos/permissive/499944578/fNToRecFN.v\n             data/full_repos/permissive/499944578/rtl/test/fragment_interpolator,data/full_repos/permissive/499944578/fNToRecFN.sv\n             fNToRecFN\n             fNToRecFN.v\n             fNToRecFN.sv\n             obj_dir/fNToRecFN\n             obj_dir/fNToRecFN.v\n             obj_dir/fNToRecFN.sv\n%Error: data/full_repos/permissive/499944578/rtl/test/fragment_interpolator/depthInterpolator_Test.v:16: Cannot find file containing module: \'fNToRecFN\'\n    fNToRecFN#(8,24) fNToRecFNb (b, bFN);\n    ^~~~~~~~~\n%Error: data/full_repos/permissive/499944578/rtl/test/fragment_interpolator/depthInterpolator_Test.v:17: Cannot find file containing module: \'fNToRecFN\'\n    fNToRecFN#(8,24) fNToRecFNc (c, cFN);\n    ^~~~~~~~~\n%Error: data/full_repos/permissive/499944578/rtl/test/fragment_interpolator/depthInterpolator_Test.v:18: Cannot find file containing module: \'fNToRecFN\'\n    fNToRecFN#(8,24) fNToRecFNza (za, zaFN);\n    ^~~~~~~~~\n%Error: data/full_repos/permissive/499944578/rtl/test/fragment_interpolator/depthInterpolator_Test.v:19: Cannot find file containing module: \'fNToRecFN\'\n    fNToRecFN#(8,24) fNToRecFNzb (zb, zbFN);\n    ^~~~~~~~~\n%Error: data/full_repos/permissive/499944578/rtl/test/fragment_interpolator/depthInterpolator_Test.v:20: Cannot find file containing module: \'fNToRecFN\'\n    fNToRecFN#(8,24) fNToRecFNzc (zc, zcFN);\n    ^~~~~~~~~\n%Error: data/full_repos/permissive/499944578/rtl/test/fragment_interpolator/depthInterpolator_Test.v:22: Cannot find file containing module: \'depthInterpolator\'\n    depthInterpolator DUT(clk,1\'b1,aFN,bFN,cFN,zaFN,zbFN,zcFN,outFN);\n    ^~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/499944578/rtl/test/fragment_interpolator/depthInterpolator_Test.v:23: Cannot find file containing module: \'recFNToFN\'\n    recFNToFN#(8,24) recFNToFN1 (outFN, out);\n    ^~~~~~~~~\n%Error: data/full_repos/permissive/499944578/rtl/test/fragment_interpolator/depthInterpolator_Test.v:25: Cannot find file containing module: \'fNToRecFN\'\n    fNToRecFN#(8,24) fNToRecFN234 (OneFP, tst);\n    ^~~~~~~~~\n%Error: Exiting due to 9 error(s), 4 warning(s)\n        ... See the manual and https://verilator.org for more assistance.\n'
module depthInterpolator_Test();
    localparam OneFP = 32'h3f800000;
    localparam ZeroFP = 32'h0;
    localparam HalfFP = 32'h3f000000;
    localparam QuarterFP = 32'h3e800000;
    localparam EighthFP = 32'h3e000000;
    localparam Point375 = 32'h3ec00000;
    localparam PERIOD = 20;

    reg clk;
    wire [31:0] out;
    reg [31:0] a,b,c,za,zb,zc;
    wire [32:0] outFN, aFN,bFN,cFN,zaFN,zbFN,zcFN;

    fNToRecFN#(8,24) fNToRecFNa (a, aFN);
    fNToRecFN#(8,24) fNToRecFNb (b, bFN);
    fNToRecFN#(8,24) fNToRecFNc (c, cFN);
    fNToRecFN#(8,24) fNToRecFNza (za, zaFN);
    fNToRecFN#(8,24) fNToRecFNzb (zb, zbFN);
    fNToRecFN#(8,24) fNToRecFNzc (zc, zcFN);

    depthInterpolator DUT(clk,1'b1,aFN,bFN,cFN,zaFN,zbFN,zcFN,outFN);
    recFNToFN#(8,24) recFNToFN1 (outFN, out);
    
    fNToRecFN#(8,24) fNToRecFN234 (OneFP, tst);
    always 
        begin
            clk = 1'b1; 
            #20;

            clk = 1'b0;
            #20;
        end
    
    localparam p = {QuarterFP,QuarterFP};
    localparam p1 = {ZeroFP,ZeroFP};
    localparam p2 = {OneFP,ZeroFP};
    localparam p3 = {ZeroFP,OneFP};

    initial
        begin
            a = QuarterFP;
            za = HalfFP;
            b = OneFP;
            zb = ZeroFP;
            c = QuarterFP;
            zc = OneFP;
            #PERIOD;
            $display("outFN == %h", outFN);
            $display("out == %h", out);
            $display("tst == %h", tst);

            if(out != Point375)  begin
                $display("test failed");
            end else begin
                $display("test passed");
            
            end
            
            
            $finish;
        end
endmodule
module depthInterpolator_Test();

    localparam OneFP = 32'h3f800000;
    localparam ZeroFP = 32'h0;
    localparam HalfFP = 32'h3f000000;
    localparam QuarterFP = 32'h3e800000;
    localparam EighthFP = 32'h3e000000;
    localparam Point375 = 32'h3ec00000;
    localparam PERIOD = 20;

    reg clk;
    wire [31:0] out;
    reg [31:0] a,b,c,za,zb,zc;
    wire [32:0] outFN, aFN,bFN,cFN,zaFN,zbFN,zcFN;

    fNToRecFN#(8,24) fNToRecFNa (a, aFN);
    fNToRecFN#(8,24) fNToRecFNb (b, bFN);
    fNToRecFN#(8,24) fNToRecFNc (c, cFN);
    fNToRecFN#(8,24) fNToRecFNza (za, zaFN);
    fNToRecFN#(8,24) fNToRecFNzb (zb, zbFN);
    fNToRecFN#(8,24) fNToRecFNzc (zc, zcFN);

    depthInterpolator DUT(clk,1'b1,aFN,bFN,cFN,zaFN,zbFN,zcFN,outFN);
    recFNToFN#(8,24) recFNToFN1 (outFN, out);
    
    fNToRecFN#(8,24) fNToRecFN234 (OneFP, tst);
    always 
        begin
            clk = 1'b1; 
            #20;

            clk = 1'b0;
            #20;
        end
    
    localparam p = {QuarterFP,QuarterFP};
    localparam p1 = {ZeroFP,ZeroFP};
    localparam p2 = {OneFP,ZeroFP};
    localparam p3 = {ZeroFP,OneFP};

    initial
        begin
            a = QuarterFP;
            za = HalfFP;
            b = OneFP;
            zb = ZeroFP;
            c = QuarterFP;
            zc = OneFP;
            #PERIOD;
            $display("outFN == %h", outFN);
            $display("out == %h", out);
            $display("tst == %h", tst);

            if(out != Point375)  begin
                $display("test failed");
            end else begin
                $display("test passed");
            
            end
            
            
            $finish;
        end
endmodule