data/full_repos/permissive/514467334/project/ConvKing/source/Accelerator/KNN/tb/knn_img_tb.v
1: b'%Warning-STMTDLY: data/full_repos/permissive/514467334/project/ConvKing/source/Accelerator/KNN/tb/knn_img_tb.v:26: Unsupported: Ignoring delay on this delayed statement.\n    #200;\n    ^\n                  ... Use "/* verilator lint_off STMTDLY */" and lint_on around source to disable this message.\n%Warning-STMTDLY: data/full_repos/permissive/514467334/project/ConvKing/source/Accelerator/KNN/tb/knn_img_tb.v:28: Unsupported: Ignoring delay on this delayed statement.\n    #600 knn_en=1;\n    ^\n%Warning-STMTDLY: data/full_repos/permissive/514467334/project/ConvKing/source/Accelerator/KNN/tb/knn_img_tb.v:29: Unsupported: Ignoring delay on this delayed statement.\n    #200 knn_en=0;\n    ^\n%Warning-STMTDLY: data/full_repos/permissive/514467334/project/ConvKing/source/Accelerator/KNN/tb/knn_img_tb.v:34: Unsupported: Ignoring delay on this delayed statement.\n    forever #100 clk_en=~clk_en;\n            ^\n%Warning-STMTDLY: data/full_repos/permissive/514467334/project/ConvKing/source/Accelerator/KNN/tb/knn_img_tb.v:39: Unsupported: Ignoring delay on this delayed statement.\n    #400 reset_n=1;\n    ^\n%Warning-STMTDLY: data/full_repos/permissive/514467334/project/ConvKing/source/Accelerator/KNN/tb/knn_img_tb.v:40: Unsupported: Ignoring delay on this delayed statement.\n    #20000 reset_n=0;\n    ^\n%Warning-STMTDLY: data/full_repos/permissive/514467334/project/ConvKing/source/Accelerator/KNN/tb/knn_img_tb.v:52: Unsupported: Ignoring delay on this delayed statement.\n    #300 knn_en=1;\n    ^\n%Error: data/full_repos/permissive/514467334/project/ConvKing/source/Accelerator/KNN/tb/knn_img_tb.v:55: Cannot find file containing module: \'knn_img\'\nknn_img inst(\n^~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/514467334/project/ConvKing/source/Accelerator/KNN/tb,data/full_repos/permissive/514467334/knn_img\n             data/full_repos/permissive/514467334/project/ConvKing/source/Accelerator/KNN/tb,data/full_repos/permissive/514467334/knn_img.v\n             data/full_repos/permissive/514467334/project/ConvKing/source/Accelerator/KNN/tb,data/full_repos/permissive/514467334/knn_img.sv\n             knn_img\n             knn_img.v\n             knn_img.sv\n             obj_dir/knn_img\n             obj_dir/knn_img.v\n             obj_dir/knn_img.sv\n%Error: Exiting due to 1 error(s), 7 warning(s)\n        ... See the manual and https://verilator.org for more assistance.\n'
module knn_img_tb();

reg clk_en;
reg reset_n;

reg dic_end;
reg knn_en;

reg [9:0] postion_lu_x;
reg [9:0] postion_lu_y;
reg [9:0] postion_rd_x;
reg [9:0] postion_rd_y;

wire [9:0] i_o;
wire [9:0] j_o;

wire [3:0] cnt_w_o;
wire [3:0] cnt_h_o;
wire [9:0] wid_center_o;
wire [9:0] hei_center_o;
wire       knn_fin_o; 

initial begin
    dic_end=0;
    knn_en=0;
    #200;
    dic_end=1;
    #600 knn_en=1;
    #200 knn_en=0;
end

initial begin
    clk_en=0;
    forever #100 clk_en=~clk_en;
end

initial begin
    reset_n=0;
    #400 reset_n=1;
    #20000 reset_n=0;
end

initial begin
    postion_lu_x=100;
    postion_lu_y=400;
    postion_rd_x=300;
    postion_rd_y=200;
end

initial begin
    knn_en=0;
    #300 knn_en=1;
end

knn_img inst(
    .clk_en     (clk_en),
    .reset_n    (reset_n),

    .dic_end    (dic_end),
    .knn_en     (knn_en),

    .postion_lu_x   (postion_lu_x),
    .postion_lu_y   (postion_lu_y),
    .postion_rd_x   (postion_rd_x),
    .postion_rd_y   (postion_rd_y),

    .i_o            (i_o),
    .j_o            (j_o),

    .cnt_w_o        (cnt_w_o),
    .cnt_h_o        (cnt_h_o),
    .wid_center_o   (wid_center_o),
    .hei_center_o   (hei_center_o),
    .knn_fin_o      (knn_fin_o)
);

endmodule
module knn_img_tb();


reg clk_en;
reg reset_n;

reg dic_end;
reg knn_en;

reg [9:0] postion_lu_x;
reg [9:0] postion_lu_y;
reg [9:0] postion_rd_x;
reg [9:0] postion_rd_y;

wire [9:0] i_o;
wire [9:0] j_o;

wire [3:0] cnt_w_o;
wire [3:0] cnt_h_o;
wire [9:0] wid_center_o;
wire [9:0] hei_center_o;
wire       knn_fin_o; 

initial begin
    dic_end=0;
    knn_en=0;
    #200;
    dic_end=1;
    #600 knn_en=1;
    #200 knn_en=0;
end

initial begin
    clk_en=0;
    forever #100 clk_en=~clk_en;
end

initial begin
    reset_n=0;
    #400 reset_n=1;
    #20000 reset_n=0;
end

initial begin
    postion_lu_x=100;
    postion_lu_y=400;
    postion_rd_x=300;
    postion_rd_y=200;
end

initial begin
    knn_en=0;
    #300 knn_en=1;
end

knn_img inst(
    .clk_en     (clk_en),
    .reset_n    (reset_n),

    .dic_end    (dic_end),
    .knn_en     (knn_en),

    .postion_lu_x   (postion_lu_x),
    .postion_lu_y   (postion_lu_y),
    .postion_rd_x   (postion_rd_x),
    .postion_rd_y   (postion_rd_y),

    .i_o            (i_o),
    .j_o            (j_o),

    .cnt_w_o        (cnt_w_o),
    .cnt_h_o        (cnt_h_o),
    .wid_center_o   (wid_center_o),
    .hei_center_o   (hei_center_o),
    .knn_fin_o      (knn_fin_o)
);

endmodule