data/full_repos/permissive/166008742/src/tb_led_driver_data_coder.v
 line:55: before: "("
1: b'%Warning-STMTDLY: data/full_repos/permissive/166008742/src/tb_led_driver_data_coder.v:43: Unsupported: Ignoring delay on this delayed statement.\n        #(CLK_PER/2);\n        ^\n                  ... Use "/* verilator lint_off STMTDLY */" and lint_on around source to disable this message.\n%Error: data/full_repos/permissive/166008742/src/tb_led_driver_data_coder.v:55: syntax error, unexpected \'@\'\n        repeat (100) @(posedge clk);\n                     ^\n%Error: data/full_repos/permissive/166008742/src/tb_led_driver_data_coder.v:58: syntax error, unexpected \'@\'\n        repeat (100) @(posedge clk);\n                     ^\n%Error: data/full_repos/permissive/166008742/src/tb_led_driver_data_coder.v:66: syntax error, unexpected \'@\'\n            @(posedge clk);\n            ^\n%Error: data/full_repos/permissive/166008742/src/tb_led_driver_data_coder.v:69: syntax error, unexpected \'@\'\n            @(posedge tr_done);\n            ^\n%Error: data/full_repos/permissive/166008742/src/tb_led_driver_data_coder.v:71: syntax error, unexpected \'@\'\n            repeat (10) @(posedge clk);\n                        ^\n%Error: data/full_repos/permissive/166008742/src/tb_led_driver_data_coder.v:78: syntax error, unexpected \'@\'\n            @(posedge clk);\n            ^\n%Error: data/full_repos/permissive/166008742/src/tb_led_driver_data_coder.v:81: syntax error, unexpected \'@\'\n            @(posedge tr_done);\n            ^\n%Error: data/full_repos/permissive/166008742/src/tb_led_driver_data_coder.v:83: syntax error, unexpected \'@\'\n            repeat (10) @(posedge clk);\n                        ^\n%Error: data/full_repos/permissive/166008742/src/tb_led_driver_data_coder.v:90: syntax error, unexpected \'@\'\n            @(posedge clk);\n            ^\n%Error: data/full_repos/permissive/166008742/src/tb_led_driver_data_coder.v:93: syntax error, unexpected \'@\'\n            @(posedge tr_done);\n            ^\n%Error: data/full_repos/permissive/166008742/src/tb_led_driver_data_coder.v:95: syntax error, unexpected \'@\'\n            repeat (10) @(posedge clk);\n                        ^\n%Warning-STMTDLY: data/full_repos/permissive/166008742/src/tb_led_driver_data_coder.v:98: Unsupported: Ignoring delay on this delayed statement.\n        #100;\n        ^\n%Error: Exiting due to 11 error(s), 2 warning(s)\n        ... See the manual and https://verilator.org for more assistance.\n'
module tb_led_driver_data_coder();
    parameter CLK_PER = 10;

    reg reset;
    reg clk;
    reg tr_start;
    wire tr_done;
    reg tr_val;
    reg tr_end;
    wire led_data;



    led_driver_data_coder #(CLK_PER) dut(
        .reset(reset),
        .clk(clk),

        .tr_start(tr_start),
        .tr_done(tr_done),
        .tr_val(tr_val),
        .tr_end(tr_end),
        .led_data(led_data)
    );

    always begin
        #(CLK_PER/2);
        clk <= ~clk;
    end

    initial begin
        clk <= 0;
        reset <= 1;

        tr_start <= 0;
        tr_val <= 0;
        tr_end <= 0;

        repeat (100) @(posedge clk);
            reset <= 0;

        repeat (100) @(posedge clk);

        repeat (2) begin

            tr_start <= 1;
            tr_val <= 0;
            tr_end <= 0;

            @(posedge clk);
            tr_start <= 0;

            @(posedge tr_done);

            repeat (10) @(posedge clk);


            tr_start <= 1;
            tr_val <= 1;
            tr_end <= 0;

            @(posedge clk);
            tr_start <= 0;

            @(posedge tr_done);

            repeat (10) @(posedge clk);


            tr_start <= 1;
            tr_val <= 0;
            tr_end <= 1;

            @(posedge clk);
            tr_start <= 0;

            @(posedge tr_done);

            repeat (10) @(posedge clk);
        end

        #100;
    end

endmodule
module tb_led_driver_data_coder();

    parameter CLK_PER = 10;

    reg reset;
    reg clk;
    reg tr_start;
    wire tr_done;
    reg tr_val;
    reg tr_end;
    wire led_data;



    led_driver_data_coder #(CLK_PER) dut(
        .reset(reset),
        .clk(clk),

        .tr_start(tr_start),
        .tr_done(tr_done),
        .tr_val(tr_val),
        .tr_end(tr_end),
        .led_data(led_data)
    );

    always begin
        #(CLK_PER/2);
        clk <= ~clk;
    end

    initial begin
        clk <= 0;
        reset <= 1;

        tr_start <= 0;
        tr_val <= 0;
        tr_end <= 0;

        repeat (100) @(posedge clk);
            reset <= 0;

        repeat (100) @(posedge clk);

        repeat (2) begin

            tr_start <= 1;
            tr_val <= 0;
            tr_end <= 0;

            @(posedge clk);
            tr_start <= 0;

            @(posedge tr_done);

            repeat (10) @(posedge clk);


            tr_start <= 1;
            tr_val <= 1;
            tr_end <= 0;

            @(posedge clk);
            tr_start <= 0;

            @(posedge tr_done);

            repeat (10) @(posedge clk);


            tr_start <= 1;
            tr_val <= 0;
            tr_end <= 1;

            @(posedge clk);
            tr_start <= 0;

            @(posedge tr_done);

            repeat (10) @(posedge clk);
        end

        #100;
    end

endmodule