data/full_repos/permissive/434187796/testbench/AX_DEBOUNCE_tb.v
1: b'%Warning-STMTDLY: data/full_repos/permissive/434187796/testbench/AX_DEBOUNCE_tb.v:25: Unsupported: Ignoring delay on this delayed statement.\n                #100\n                ^\n                  ... Use "/* verilator lint_off STMTDLY */" and lint_on around source to disable this message.\n%Warning-STMTDLY: data/full_repos/permissive/434187796/testbench/AX_DEBOUNCE_tb.v:27: Unsupported: Ignoring delay on this delayed statement.\n                #2000\n                ^\n%Warning-STMTDLY: data/full_repos/permissive/434187796/testbench/AX_DEBOUNCE_tb.v:29: Unsupported: Ignoring delay on this delayed statement.\n                #({$random} %1000)\n                ^\n%Warning-STMTDLY: data/full_repos/permissive/434187796/testbench/AX_DEBOUNCE_tb.v:31: Unsupported: Ignoring delay on this delayed statement.\n                #({$random} %1000)\n                ^\n%Warning-STMTDLY: data/full_repos/permissive/434187796/testbench/AX_DEBOUNCE_tb.v:33: Unsupported: Ignoring delay on this delayed statement.\n                #({$random} %1000)\n                ^\n%Warning-STMTDLY: data/full_repos/permissive/434187796/testbench/AX_DEBOUNCE_tb.v:35: Unsupported: Ignoring delay on this delayed statement.\n                #({$random} %1000)\n                ^\n%Warning-STMTDLY: data/full_repos/permissive/434187796/testbench/AX_DEBOUNCE_tb.v:37: Unsupported: Ignoring delay on this delayed statement.\n                #({$random} %10000000)\n                ^\n%Warning-STMTDLY: data/full_repos/permissive/434187796/testbench/AX_DEBOUNCE_tb.v:39: Unsupported: Ignoring delay on this delayed statement.\n                #({$random} %10000000)\n                ^\n%Warning-STMTDLY: data/full_repos/permissive/434187796/testbench/AX_DEBOUNCE_tb.v:41: Unsupported: Ignoring delay on this delayed statement.\n                #({$random} %10000000)\n                ^\n%Warning-STMTDLY: data/full_repos/permissive/434187796/testbench/AX_DEBOUNCE_tb.v:43: Unsupported: Ignoring delay on this delayed statement.\n                #({$random} %10000000)\n                ^\n%Warning-STMTDLY: data/full_repos/permissive/434187796/testbench/AX_DEBOUNCE_tb.v:45: Unsupported: Ignoring delay on this delayed statement.\n                #({$random} %10000000)\n                ^\n%Warning-STMTDLY: data/full_repos/permissive/434187796/testbench/AX_DEBOUNCE_tb.v:47: Unsupported: Ignoring delay on this delayed statement.\n                #({$random} %10000000)\n                ^\n%Warning-STMTDLY: data/full_repos/permissive/434187796/testbench/AX_DEBOUNCE_tb.v:49: Unsupported: Ignoring delay on this delayed statement.\n                #({$random} %10000000)\n                ^\n%Warning-STMTDLY: data/full_repos/permissive/434187796/testbench/AX_DEBOUNCE_tb.v:51: Unsupported: Ignoring delay on this delayed statement.\n                #({$random} %10000000)\n                ^\n%Warning-STMTDLY: data/full_repos/permissive/434187796/testbench/AX_DEBOUNCE_tb.v:54: Unsupported: Ignoring delay on this delayed statement.\n                #1000000000\n                ^\n%Warning-STMTDLY: data/full_repos/permissive/434187796/testbench/AX_DEBOUNCE_tb.v:56: Unsupported: Ignoring delay on this delayed statement.\n                #({$random} %10000000)\n                ^\n%Warning-STMTDLY: data/full_repos/permissive/434187796/testbench/AX_DEBOUNCE_tb.v:58: Unsupported: Ignoring delay on this delayed statement.\n                #({$random} %10000000)\n                ^\n%Warning-STMTDLY: data/full_repos/permissive/434187796/testbench/AX_DEBOUNCE_tb.v:60: Unsupported: Ignoring delay on this delayed statement.\n                #({$random} %10000000)\n                ^\n%Warning-STMTDLY: data/full_repos/permissive/434187796/testbench/AX_DEBOUNCE_tb.v:62: Unsupported: Ignoring delay on this delayed statement.\n                #({$random} %10000000)\n                ^\n%Warning-STMTDLY: data/full_repos/permissive/434187796/testbench/AX_DEBOUNCE_tb.v:64: Unsupported: Ignoring delay on this delayed statement.\n                #({$random} %10000000)\n                ^\n%Warning-STMTDLY: data/full_repos/permissive/434187796/testbench/AX_DEBOUNCE_tb.v:66: Unsupported: Ignoring delay on this delayed statement.\n                #({$random} %10000000)\n                ^\n%Warning-STMTDLY: data/full_repos/permissive/434187796/testbench/AX_DEBOUNCE_tb.v:68: Unsupported: Ignoring delay on this delayed statement.\n                #({$random} %10000000)\n                ^\n%Warning-STMTDLY: data/full_repos/permissive/434187796/testbench/AX_DEBOUNCE_tb.v:70: Unsupported: Ignoring delay on this delayed statement.\n                #({$random} %10000000)\n                ^\n%Warning-STMTDLY: data/full_repos/permissive/434187796/testbench/AX_DEBOUNCE_tb.v:73: Unsupported: Ignoring delay on this delayed statement.\n                #1000000000\n                ^\n%Warning-STMTDLY: data/full_repos/permissive/434187796/testbench/AX_DEBOUNCE_tb.v:75: Unsupported: Ignoring delay on this delayed statement.\n                #({$random} %1000)\n                ^\n%Warning-STMTDLY: data/full_repos/permissive/434187796/testbench/AX_DEBOUNCE_tb.v:77: Unsupported: Ignoring delay on this delayed statement.\n                #({$random} %1000)\n                ^\n%Warning-STMTDLY: data/full_repos/permissive/434187796/testbench/AX_DEBOUNCE_tb.v:79: Unsupported: Ignoring delay on this delayed statement.\n                #({$random} %1000)\n                ^\n%Warning-STMTDLY: data/full_repos/permissive/434187796/testbench/AX_DEBOUNCE_tb.v:81: Unsupported: Ignoring delay on this delayed statement.\n                #({$random} %1000)\n                ^\n%Warning-STMTDLY: data/full_repos/permissive/434187796/testbench/AX_DEBOUNCE_tb.v:83: Unsupported: Ignoring delay on this delayed statement.\n                #({$random} %10000000)\n                ^\n%Warning-STMTDLY: data/full_repos/permissive/434187796/testbench/AX_DEBOUNCE_tb.v:85: Unsupported: Ignoring delay on this delayed statement.\n                #({$random} %10000000)\n                ^\n%Warning-STMTDLY: data/full_repos/permissive/434187796/testbench/AX_DEBOUNCE_tb.v:87: Unsupported: Ignoring delay on this delayed statement.\n                #({$random} %10000000)\n                ^\n%Warning-STMTDLY: data/full_repos/permissive/434187796/testbench/AX_DEBOUNCE_tb.v:89: Unsupported: Ignoring delay on this delayed statement.\n                #({$random} %10000000)\n                ^\n%Warning-STMTDLY: data/full_repos/permissive/434187796/testbench/AX_DEBOUNCE_tb.v:91: Unsupported: Ignoring delay on this delayed statement.\n                #({$random} %10000000)\n                ^\n%Warning-STMTDLY: data/full_repos/permissive/434187796/testbench/AX_DEBOUNCE_tb.v:93: Unsupported: Ignoring delay on this delayed statement.\n                #({$random} %10000000)\n                ^\n%Warning-STMTDLY: data/full_repos/permissive/434187796/testbench/AX_DEBOUNCE_tb.v:95: Unsupported: Ignoring delay on this delayed statement.\n                #({$random} %10000000)\n                ^\n%Warning-STMTDLY: data/full_repos/permissive/434187796/testbench/AX_DEBOUNCE_tb.v:97: Unsupported: Ignoring delay on this delayed statement.\n                #({$random} %10000000)\n                ^\n%Warning-STMTDLY: data/full_repos/permissive/434187796/testbench/AX_DEBOUNCE_tb.v:100: Unsupported: Ignoring delay on this delayed statement.\n                #1000000000\n                ^\n%Warning-STMTDLY: data/full_repos/permissive/434187796/testbench/AX_DEBOUNCE_tb.v:102: Unsupported: Ignoring delay on this delayed statement.\n                #({$random} %10000000)\n                ^\n%Warning-STMTDLY: data/full_repos/permissive/434187796/testbench/AX_DEBOUNCE_tb.v:104: Unsupported: Ignoring delay on this delayed statement.\n                #({$random} %10000000)\n                ^\n%Warning-STMTDLY: data/full_repos/permissive/434187796/testbench/AX_DEBOUNCE_tb.v:106: Unsupported: Ignoring delay on this delayed statement.\n                #({$random} %10000000)\n                ^\n%Warning-STMTDLY: data/full_repos/permissive/434187796/testbench/AX_DEBOUNCE_tb.v:108: Unsupported: Ignoring delay on this delayed statement.\n                #({$random} %10000000)\n                ^\n%Warning-STMTDLY: data/full_repos/permissive/434187796/testbench/AX_DEBOUNCE_tb.v:110: Unsupported: Ignoring delay on this delayed statement.\n                #({$random} %10000000)\n                ^\n%Warning-STMTDLY: data/full_repos/permissive/434187796/testbench/AX_DEBOUNCE_tb.v:112: Unsupported: Ignoring delay on this delayed statement.\n                #({$random} %10000000)\n                ^\n%Warning-STMTDLY: data/full_repos/permissive/434187796/testbench/AX_DEBOUNCE_tb.v:114: Unsupported: Ignoring delay on this delayed statement.\n                #({$random} %10000000)\n                ^\n%Warning-STMTDLY: data/full_repos/permissive/434187796/testbench/AX_DEBOUNCE_tb.v:116: Unsupported: Ignoring delay on this delayed statement.\n                #({$random} %10000000)\n                ^\n%Warning-STMTDLY: data/full_repos/permissive/434187796/testbench/AX_DEBOUNCE_tb.v:118: Unsupported: Ignoring delay on this delayed statement.\n                #10\n                ^\n%Warning-STMTDLY: data/full_repos/permissive/434187796/testbench/AX_DEBOUNCE_tb.v:122: Unsupported: Ignoring delay on this delayed statement.\n        always #10 clk = ~clk;\n               ^\n%Error: data/full_repos/permissive/434187796/testbench/AX_DEBOUNCE_tb.v:11: Cannot find file containing module: \'AX_DEBOUNCE\'\n        AX_DEBOUNCE ax_debounce_\n        ^~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/434187796/testbench,data/full_repos/permissive/434187796/AX_DEBOUNCE\n             data/full_repos/permissive/434187796/testbench,data/full_repos/permissive/434187796/AX_DEBOUNCE.v\n             data/full_repos/permissive/434187796/testbench,data/full_repos/permissive/434187796/AX_DEBOUNCE.sv\n             AX_DEBOUNCE\n             AX_DEBOUNCE.v\n             AX_DEBOUNCE.sv\n             obj_dir/AX_DEBOUNCE\n             obj_dir/AX_DEBOUNCE.v\n             obj_dir/AX_DEBOUNCE.sv\n%Error: Exiting due to 1 error(s), 47 warning(s)\n        ... See the manual and https://verilator.org for more assistance.\n'
module AX_DEBOUNCE_tb;
        reg rst;
        reg clk;
        reg button_in;
        wire button_out;
        wire button_posedge;
        wire button_negedge;

        AX_DEBOUNCE ax_debounce_
        (
                .clk(clk),
                .rst(rst),
                .button_in(button_in),
                .button_out(button_out),
                .button_posedge(button_posedge),
                .button_negedge(button_negedge)
        );

        initial begin
                clk = 1'b0;
                rst = 1'b0;
                button_in = 1'b1;
                #100
                rst = 1'b1;
                #2000
                button_in = 1'b0;
                #({$random} %1000)
                button_in = ~button_in;
                #({$random} %1000)
                button_in = ~button_in;
                #({$random} %1000)
                button_in = ~button_in;
                #({$random} %1000)
                button_in = ~button_in;	
                #({$random} %10000000)
                button_in = ~button_in;
                #({$random} %10000000)
                button_in = ~button_in;	
                #({$random} %10000000)
                button_in = ~button_in;
                #({$random} %10000000)
                button_in = ~button_in;
                #({$random} %10000000)
                button_in = ~button_in;
                #({$random} %10000000)
                button_in = ~button_in;
                #({$random} %10000000)
                button_in = ~button_in;
                #({$random} %10000000)
                button_in = 1'b0;

                #1000000000
                button_in = 1'b1;
                #({$random} %10000000)
                button_in = ~button_in;
                #({$random} %10000000)
                button_in = ~button_in;	
                #({$random} %10000000)
                button_in = ~button_in;
                #({$random} %10000000)
                button_in = ~button_in;
                #({$random} %10000000)
                button_in = ~button_in;
                #({$random} %10000000)
                button_in = ~button_in;
                #({$random} %10000000)
                button_in = ~button_in;
                #({$random} %10000000)
                button_in = 1'b1;
                
                #1000000000
                button_in = 1'b0;
                #({$random} %1000)
                button_in = ~button_in;
                #({$random} %1000)
                button_in = ~button_in;
                #({$random} %1000)
                button_in = ~button_in;
                #({$random} %1000)
                button_in = ~button_in;	
                #({$random} %10000000)
                button_in = ~button_in;
                #({$random} %10000000)
                button_in = ~button_in;	
                #({$random} %10000000)
                button_in = ~button_in;
                #({$random} %10000000)
                button_in = ~button_in;
                #({$random} %10000000)
                button_in = ~button_in;
                #({$random} %10000000)
                button_in = ~button_in;
                #({$random} %10000000)
                button_in = ~button_in;
                #({$random} %10000000)
                button_in = 1'b0;

                #1000000000
                button_in = 1'b1;
                #({$random} %10000000)
                button_in = ~button_in;
                #({$random} %10000000)
                button_in = ~button_in;	
                #({$random} %10000000)
                button_in = ~button_in;
                #({$random} %10000000)
                button_in = ~button_in;
                #({$random} %10000000)
                button_in = ~button_in;
                #({$random} %10000000)
                button_in = ~button_in;
                #({$random} %10000000)
                button_in = ~button_in;
                #({$random} %10000000)
                button_in = 1'b1;
                #10
                $stop;
        end

        always #10 clk = ~clk;
endmodule
module AX_DEBOUNCE_tb;

        reg rst;
        reg clk;
        reg button_in;
        wire button_out;
        wire button_posedge;
        wire button_negedge;

        AX_DEBOUNCE ax_debounce_
        (
                .clk(clk),
                .rst(rst),
                .button_in(button_in),
                .button_out(button_out),
                .button_posedge(button_posedge),
                .button_negedge(button_negedge)
        );

        initial begin
                clk = 1'b0;
                rst = 1'b0;
                button_in = 1'b1;
                #100
                rst = 1'b1;
                #2000
                button_in = 1'b0;
                #({$random} %1000)
                button_in = ~button_in;
                #({$random} %1000)
                button_in = ~button_in;
                #({$random} %1000)
                button_in = ~button_in;
                #({$random} %1000)
                button_in = ~button_in;	
                #({$random} %10000000)
                button_in = ~button_in;
                #({$random} %10000000)
                button_in = ~button_in;	
                #({$random} %10000000)
                button_in = ~button_in;
                #({$random} %10000000)
                button_in = ~button_in;
                #({$random} %10000000)
                button_in = ~button_in;
                #({$random} %10000000)
                button_in = ~button_in;
                #({$random} %10000000)
                button_in = ~button_in;
                #({$random} %10000000)
                button_in = 1'b0;

                #1000000000
                button_in = 1'b1;
                #({$random} %10000000)
                button_in = ~button_in;
                #({$random} %10000000)
                button_in = ~button_in;	
                #({$random} %10000000)
                button_in = ~button_in;
                #({$random} %10000000)
                button_in = ~button_in;
                #({$random} %10000000)
                button_in = ~button_in;
                #({$random} %10000000)
                button_in = ~button_in;
                #({$random} %10000000)
                button_in = ~button_in;
                #({$random} %10000000)
                button_in = 1'b1;
                
                #1000000000
                button_in = 1'b0;
                #({$random} %1000)
                button_in = ~button_in;
                #({$random} %1000)
                button_in = ~button_in;
                #({$random} %1000)
                button_in = ~button_in;
                #({$random} %1000)
                button_in = ~button_in;	
                #({$random} %10000000)
                button_in = ~button_in;
                #({$random} %10000000)
                button_in = ~button_in;	
                #({$random} %10000000)
                button_in = ~button_in;
                #({$random} %10000000)
                button_in = ~button_in;
                #({$random} %10000000)
                button_in = ~button_in;
                #({$random} %10000000)
                button_in = ~button_in;
                #({$random} %10000000)
                button_in = ~button_in;
                #({$random} %10000000)
                button_in = 1'b0;

                #1000000000
                button_in = 1'b1;
                #({$random} %10000000)
                button_in = ~button_in;
                #({$random} %10000000)
                button_in = ~button_in;	
                #({$random} %10000000)
                button_in = ~button_in;
                #({$random} %10000000)
                button_in = ~button_in;
                #({$random} %10000000)
                button_in = ~button_in;
                #({$random} %10000000)
                button_in = ~button_in;
                #({$random} %10000000)
                button_in = ~button_in;
                #({$random} %10000000)
                button_in = 1'b1;
                #10
                $stop;
        end

        always #10 clk = ~clk;
endmodule