data/full_repos/permissive/480040464/video_sim.srcs/sim_1/new/tb_image_src.v
1: b'%Warning-STMTDLY: data/full_repos/permissive/480040464/video_sim.srcs/sim_1/new/tb_image_src.v:27: Unsupported: Ignoring delay on this delayed statement.\n    always #3 pix_clk = ~pix_clk;\n           ^\n                  ... Use "/* verilator lint_off STMTDLY */" and lint_on around source to disable this message.\n%Warning-STMTDLY: data/full_repos/permissive/480040464/video_sim.srcs/sim_1/new/tb_image_src.v:32: Unsupported: Ignoring delay on this delayed statement.\n        #100\n        ^\n%Error: data/full_repos/permissive/480040464/video_sim.srcs/sim_1/new/tb_image_src.v:37: Cannot find file containing module: \'image_src\'\n    image_src #(\n    ^~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/480040464/video_sim.srcs/sim_1/new,data/full_repos/permissive/480040464/image_src\n             data/full_repos/permissive/480040464/video_sim.srcs/sim_1/new,data/full_repos/permissive/480040464/image_src.v\n             data/full_repos/permissive/480040464/video_sim.srcs/sim_1/new,data/full_repos/permissive/480040464/image_src.sv\n             image_src\n             image_src.v\n             image_src.sv\n             obj_dir/image_src\n             obj_dir/image_src.v\n             obj_dir/image_src.sv\n%Error: Exiting due to 1 error(s), 2 warning(s)\n        ... See the manual and https://verilator.org for more assistance.\n'
module tb_image_src();

    parameter H_Active     = 1920;
    parameter H_FrontPorch = 88;
    parameter H_SyncWidth  = 44;
    parameter H_BackPorch  = 148;

    parameter V_Active     = 1080;
    parameter V_FrontPorch = 4;
    parameter V_SyncWidth  = 5;
    parameter V_BackPorch  = 36;

    parameter Frame_cnt    = 10;
    parameter Frame_bpp    = 24;
    parameter Frame_src    = "../../../../viewer/txt_i/2.txt";

    reg                         pix_clk;
    reg                         rst_n;

    wire                        vs;
    wire                        hs;
    wire                        de;
    wire    [Frame_bpp -1:0]    image_data;

    always #3 pix_clk = ~pix_clk;

    initial begin
        pix_clk <=  1'b1;
        rst_n   <=  1'b0;
        #100
        rst_n   <=  1'b1;

    end

    image_src #(
            .H_Active(H_Active),
            .H_FrontPorch(H_FrontPorch),
            .H_SyncWidth(H_SyncWidth),
            .H_BackPorch(H_BackPorch),
            .V_Active(V_Active),
            .V_FrontPorch(V_FrontPorch),
            .V_SyncWidth(V_SyncWidth),
            .V_BackPorch(V_BackPorch),
            .Frame_cnt(Frame_cnt),
            .Frame_bpp(Frame_bpp),
            .Frame_src(Frame_src)
        ) inst_image_src (
            .pix_clk    (pix_clk),
            .rst_n      (rst_n),
            .vs         (vs),
            .hs         (hs),
            .de         (de),
            .image_data (image_data)
        );

endmodule
module tb_image_src();


    parameter H_Active     = 1920;
    parameter H_FrontPorch = 88;
    parameter H_SyncWidth  = 44;
    parameter H_BackPorch  = 148;

    parameter V_Active     = 1080;
    parameter V_FrontPorch = 4;
    parameter V_SyncWidth  = 5;
    parameter V_BackPorch  = 36;

    parameter Frame_cnt    = 10;
    parameter Frame_bpp    = 24;
    parameter Frame_src    = "../../../../viewer/txt_i/2.txt";

    reg                         pix_clk;
    reg                         rst_n;

    wire                        vs;
    wire                        hs;
    wire                        de;
    wire    [Frame_bpp -1:0]    image_data;

    always #3 pix_clk = ~pix_clk;

    initial begin
        pix_clk <=  1'b1;
        rst_n   <=  1'b0;
        #100
        rst_n   <=  1'b1;

    end

    image_src #(
            .H_Active(H_Active),
            .H_FrontPorch(H_FrontPorch),
            .H_SyncWidth(H_SyncWidth),
            .H_BackPorch(H_BackPorch),
            .V_Active(V_Active),
            .V_FrontPorch(V_FrontPorch),
            .V_SyncWidth(V_SyncWidth),
            .V_BackPorch(V_BackPorch),
            .Frame_cnt(Frame_cnt),
            .Frame_bpp(Frame_bpp),
            .Frame_src(Frame_src)
        ) inst_image_src (
            .pix_clk    (pix_clk),
            .rst_n      (rst_n),
            .vs         (vs),
            .hs         (hs),
            .de         (de),
            .image_data (image_data)
        );

endmodule