data/full_repos/permissive/427221126/workspace/PE_tb.sv
1: b'%Warning-STMTDLY: data/full_repos/permissive/427221126/workspace/PE_tb.sv:29: Unsupported: Ignoring delay on this delayed statement.\n        #10\n        ^\n                  ... Use "/* verilator lint_off STMTDLY */" and lint_on around source to disable this message.\n%Warning-STMTDLY: data/full_repos/permissive/427221126/workspace/PE_tb.sv:36: Unsupported: Ignoring delay on this delayed statement.\n        #3\n        ^\n%Warning-STMTDLY: data/full_repos/permissive/427221126/workspace/PE_tb.sv:38: Unsupported: Ignoring delay on this delayed statement.\n        #30\n        ^\n%Warning-STMTDLY: data/full_repos/permissive/427221126/workspace/PE_tb.sv:40: Unsupported: Ignoring delay on this delayed statement.\n        #2500\n        ^\n%Warning-STMTDLY: data/full_repos/permissive/427221126/workspace/PE_tb.sv:46: Unsupported: Ignoring delay on this delayed statement.\n        #53\n        ^\n%Warning-STMTDLY: data/full_repos/permissive/427221126/workspace/PE_tb.sv:48: Unsupported: Ignoring delay on this delayed statement.\n        #30\n        ^\n%Error: data/full_repos/permissive/427221126/workspace/PE_tb.sv:70: Unsupported or unknown PLI call: $fsdbDumpfile\n        $fsdbDumpfile("PE.fsdb");\n        ^~~~~~~~~~~~~\n%Error: data/full_repos/permissive/427221126/workspace/PE_tb.sv:71: Unsupported or unknown PLI call: $fsdbDumpvars\n        $fsdbDumpvars(0,PE_test);\n        ^~~~~~~~~~~~~\n%Error: data/full_repos/permissive/427221126/workspace/PE_tb.sv:72: Unsupported or unknown PLI call: $fsdbDumpon\n        $fsdbDumpon;\n        ^~~~~~~~~~~\n%Error: data/full_repos/permissive/427221126/workspace/PE_tb.sv:73: Unsupported or unknown PLI call: $fsdbDumpMDA\n     $fsdbDumpMDA();\n     ^~~~~~~~~~~~\n%Error: Exiting due to 4 error(s), 6 warning(s)\n        ... See the manual and https://verilator.org for more assistance.\n'
module PE_tb();
    reg   clk,rst,en;
    reg   [15:0] filter_in   [0:2];
    reg   [15:0] data_in     [0:6];
    reg   [15:0] psum_in     [0:4];

    wire  [15:0] filter_out  [0:2];
    wire  [15:0] data_out    [0:6];
    wire  [15:0] psum_out    [0:4];
    wire         done;
PE PE_test(
       .clk(clk),
       .rst(rst),
       .en(en),
       .FILTER_IN(filter_in),
       .DATA_IN(data_in),
       .PSUM_IN(psum_in),
       .FILTER_OUT(filter_out),
       .DATA_OUT(data_out),
       .PSUM_OUT(psum_out),
       .DONE(done)
    );


    initial begin 
        clk = 0;
        forever
        #10
        clk = ~clk;
    end
        

    initial begin
        rst = 0;
        #3
        rst = 1;
        #30
        rst = 0;
        #2500
        $finish;
    end 


    initial begin
        #53
        en = 1;
        #30
        en = 0;
    end 









    initial begin


        filter_in = {16'hFEDD,16'hFFBC,16'hFCFD};
        data_in   = {16'h0C8C,16'h0FDF,16'h0FCF,16'h0FCF,16'h0D6D,16'h0A8A,16'h0A8A};
        psum_in   = {16'h0,16'h0,16'h0,16'h0,16'h0};
    end 


    initial begin
        $fsdbDumpfile("PE.fsdb");
        $fsdbDumpvars(0,PE_test);
        $fsdbDumpon;
	    $fsdbDumpMDA();
        end  
    
    endmodule
module PE_tb();

    reg   clk,rst,en;
    reg   [15:0] filter_in   [0:2];
    reg   [15:0] data_in     [0:6];
    reg   [15:0] psum_in     [0:4];

    wire  [15:0] filter_out  [0:2];
    wire  [15:0] data_out    [0:6];
    wire  [15:0] psum_out    [0:4];
    wire         done;
PE PE_test(
       .clk(clk),
       .rst(rst),
       .en(en),
       .FILTER_IN(filter_in),
       .DATA_IN(data_in),
       .PSUM_IN(psum_in),
       .FILTER_OUT(filter_out),
       .DATA_OUT(data_out),
       .PSUM_OUT(psum_out),
       .DONE(done)
    );


    initial begin 
        clk = 0;
        forever
        #10
        clk = ~clk;
    end
        

    initial begin
        rst = 0;
        #3
        rst = 1;
        #30
        rst = 0;
        #2500
        $finish;
    end 


    initial begin
        #53
        en = 1;
        #30
        en = 0;
    end 









    initial begin


        filter_in = {16'hFEDD,16'hFFBC,16'hFCFD};
        data_in   = {16'h0C8C,16'h0FDF,16'h0FCF,16'h0FCF,16'h0D6D,16'h0A8A,16'h0A8A};
        psum_in   = {16'h0,16'h0,16'h0,16'h0,16'h0};
    end 


    initial begin
        $fsdbDumpfile("PE.fsdb");
        $fsdbDumpvars(0,PE_test);
        $fsdbDumpon;
	    $fsdbDumpMDA();
        end  
    
    endmodule