data/full_repos/permissive/512077043/rgb_sotp/rgb_sotp_tb.v
1: b'%Warning-STMTDLY: data/full_repos/permissive/512077043/rgb_sotp/rgb_sotp_tb.v:38: Unsupported: Ignoring delay on this delayed statement.\n        #1\n        ^\n                  ... Use "/* verilator lint_off STMTDLY */" and lint_on around source to disable this message.\n%Warning-STMTDLY: data/full_repos/permissive/512077043/rgb_sotp/rgb_sotp_tb.v:67: Unsupported: Ignoring delay on this delayed statement.\n        #10\n        ^\n%Warning-STMTDLY: data/full_repos/permissive/512077043/rgb_sotp/rgb_sotp_tb.v:69: Unsupported: Ignoring delay on this delayed statement.\n        #5\n        ^\n%Warning-STMTDLY: data/full_repos/permissive/512077043/rgb_sotp/rgb_sotp_tb.v:73: Unsupported: Ignoring delay on this delayed statement.\n        #100\n        ^\n%Warning-STMTDLY: data/full_repos/permissive/512077043/rgb_sotp/rgb_sotp_tb.v:77: Unsupported: Ignoring delay on this delayed statement.\n        #2\n        ^\n%Warning-STMTDLY: data/full_repos/permissive/512077043/rgb_sotp/rgb_sotp_tb.v:79: Unsupported: Ignoring delay on this delayed statement.\n        #2\n        ^\n%Warning-STMTDLY: data/full_repos/permissive/512077043/rgb_sotp/rgb_sotp_tb.v:82: Unsupported: Ignoring delay on this delayed statement.\n        #48\n        ^\n%Warning-STMTDLY: data/full_repos/permissive/512077043/rgb_sotp/rgb_sotp_tb.v:84: Unsupported: Ignoring delay on this delayed statement.\n        #2\n        ^\n%Warning-STMTDLY: data/full_repos/permissive/512077043/rgb_sotp/rgb_sotp_tb.v:86: Unsupported: Ignoring delay on this delayed statement.\n        #2\n        ^\n%Warning-STMTDLY: data/full_repos/permissive/512077043/rgb_sotp/rgb_sotp_tb.v:90: Unsupported: Ignoring delay on this delayed statement.\n        #30\n        ^\n%Warning-STMTDLY: data/full_repos/permissive/512077043/rgb_sotp/rgb_sotp_tb.v:92: Unsupported: Ignoring delay on this delayed statement.\n        #2\n        ^\n%Warning-STMTDLY: data/full_repos/permissive/512077043/rgb_sotp/rgb_sotp_tb.v:94: Unsupported: Ignoring delay on this delayed statement.\n        #260\n        ^\n%Error: data/full_repos/permissive/512077043/rgb_sotp/rgb_sotp_tb.v:115: Unsupported or unknown PLI call: $dumpfile\n        $dumpfile("rgb_sotp_tb.vcd");\n        ^~~~~~~~~\n%Error: data/full_repos/permissive/512077043/rgb_sotp/rgb_sotp_tb.v:116: Unsupported or unknown PLI call: $dumpvars\n        $dumpvars(0, rgb_sotp_tb);\n        ^~~~~~~~~\n%Warning-STMTDLY: data/full_repos/permissive/512077043/rgb_sotp/rgb_sotp_tb.v:119: Unsupported: Ignoring delay on this delayed statement.\n        #(DURATION)\n        ^\n%Error: Exiting due to 2 error(s), 13 warning(s)\n        ... See the manual and https://verilator.org for more assistance.\n'
module rgb_sotp_tb();


    localparam RGBW_T0H = 2;
    localparam RGBW_T0L = 6;
    localparam RGBW_T1H = 4;
    localparam RGBW_T1L = 4;
    localparam RGBW_STR_RST = 20;
    localparam COUNTER_MAX = 7800;


    wire        rd_fifo_strobe;
    wire        rgbw_out_serial;


    reg             clk = 1'b0;
    reg             rst = 1'b0;
    reg [31:0]      rgb_word = 32'd0;
    reg             rd_fifo_empty = 1'b1;


    integer                     i = 0;
    integer                     j = 0;


    localparam DURATION = 25000;


    always begin
        #1
        clk = ~clk;
    end
    

    rgb_sotp #( 
        .RGBW_T0H(RGBW_T0H),
        .RGBW_T0L(RGBW_T0L),
        .RGBW_T1H(RGBW_T1H),
        .RGBW_T1L(RGBW_T1L),
        .RGBW_STR_RST(RGBW_STR_RST),
        .COUNTER_MAX(COUNTER_MAX)
    ) uut (

        .clk(clk),
        .rst(rst),
        .in_rd_fifo_empty(rd_fifo_empty),
        .in_rd_fifo_data(rgb_word),

        .out_rd_fifo_en(rd_fifo_strobe),
        .out_sig(rgbw_out_serial)
    );


    initial begin

        rd_fifo_empty = 1'b1;


        #10
        rst = 1'b1;
        #5
        rst = 1'b0;
        

        #100

        rgb_word = 32'd0;
        rd_fifo_empty = 1'b0;
        #2
        rgb_word = 32'hC0112233;
        #2
        rd_fifo_empty = 1'b1;
        rgb_word = 32'd0;
        #48
        rd_fifo_empty = 1'b0;
        #2
        rgb_word = 32'h80112233;
        #2
        rgb_word = 32'd0;
        rd_fifo_empty = 1'b1;

        #30
        rd_fifo_empty = 1'b0;
        #2
        rgb_word = 32'h80AA55CC;
        #260
        rgb_word = 32'd0;
        rd_fifo_empty = 1'b1;
        



    end


    initial begin
    

        $dumpfile("rgb_sotp_tb.vcd");
        $dumpvars(0, rgb_sotp_tb);
        

        #(DURATION)
        

        $display("Finished!");
        $finish;
    end

endmodule
module rgb_sotp_tb();



    localparam RGBW_T0H = 2;
    localparam RGBW_T0L = 6;
    localparam RGBW_T1H = 4;
    localparam RGBW_T1L = 4;
    localparam RGBW_STR_RST = 20;
    localparam COUNTER_MAX = 7800;


    wire        rd_fifo_strobe;
    wire        rgbw_out_serial;


    reg             clk = 1'b0;
    reg             rst = 1'b0;
    reg [31:0]      rgb_word = 32'd0;
    reg             rd_fifo_empty = 1'b1;


    integer                     i = 0;
    integer                     j = 0;


    localparam DURATION = 25000;


    always begin
        #1
        clk = ~clk;
    end
    

    rgb_sotp #( 
        .RGBW_T0H(RGBW_T0H),
        .RGBW_T0L(RGBW_T0L),
        .RGBW_T1H(RGBW_T1H),
        .RGBW_T1L(RGBW_T1L),
        .RGBW_STR_RST(RGBW_STR_RST),
        .COUNTER_MAX(COUNTER_MAX)
    ) uut (

        .clk(clk),
        .rst(rst),
        .in_rd_fifo_empty(rd_fifo_empty),
        .in_rd_fifo_data(rgb_word),

        .out_rd_fifo_en(rd_fifo_strobe),
        .out_sig(rgbw_out_serial)
    );


    initial begin

        rd_fifo_empty = 1'b1;


        #10
        rst = 1'b1;
        #5
        rst = 1'b0;
        

        #100

        rgb_word = 32'd0;
        rd_fifo_empty = 1'b0;
        #2
        rgb_word = 32'hC0112233;
        #2
        rd_fifo_empty = 1'b1;
        rgb_word = 32'd0;
        #48
        rd_fifo_empty = 1'b0;
        #2
        rgb_word = 32'h80112233;
        #2
        rgb_word = 32'd0;
        rd_fifo_empty = 1'b1;

        #30
        rd_fifo_empty = 1'b0;
        #2
        rgb_word = 32'h80AA55CC;
        #260
        rgb_word = 32'd0;
        rd_fifo_empty = 1'b1;
        



    end


    initial begin
    

        $dumpfile("rgb_sotp_tb.vcd");
        $dumpvars(0, rgb_sotp_tb);
        

        #(DURATION)
        

        $display("Finished!");
        $finish;
    end

endmodule