data/full_repos/permissive/523038000/lab2/counter_testbench.v
1: b'%Warning-STMTDLY: data/full_repos/permissive/523038000/lab2/counter_testbench.v:50: Unsupported: Ignoring delay on this delayed statement.\n       #5 clk = ~clk;\n       ^\n                  ... Use "/* verilator lint_off STMTDLY */" and lint_on around source to disable this message.\n%Warning-STMTDLY: data/full_repos/permissive/523038000/lab2/counter_testbench.v:58: Unsupported: Ignoring delay on this delayed statement.\n         #1 rst = 1\'b1;\n         ^\n%Warning-STMTDLY: data/full_repos/permissive/523038000/lab2/counter_testbench.v:59: Unsupported: Ignoring delay on this delayed statement.\n         #1 rst = 1\'b0;\n         ^\n%Warning-STMTDLY: data/full_repos/permissive/523038000/lab2/counter_testbench.v:61: Unsupported: Ignoring delay on this delayed statement.\n         #10 push_button = 1\'b1;\n         ^\n%Warning-STMTDLY: data/full_repos/permissive/523038000/lab2/counter_testbench.v:62: Unsupported: Ignoring delay on this delayed statement.\n         #10 push_button = 1\'b0;\n         ^\n%Warning-STMTDLY: data/full_repos/permissive/523038000/lab2/counter_testbench.v:64: Unsupported: Ignoring delay on this delayed statement.\n         #20 push_button = 1\'b1;\n         ^\n%Warning-STMTDLY: data/full_repos/permissive/523038000/lab2/counter_testbench.v:65: Unsupported: Ignoring delay on this delayed statement.\n         #50 push_button = 1\'b0;\n         ^\n%Warning-STMTDLY: data/full_repos/permissive/523038000/lab2/counter_testbench.v:67: Unsupported: Ignoring delay on this delayed statement.\n         #20 push_button = 1\'b1;\n         ^\n%Warning-STMTDLY: data/full_repos/permissive/523038000/lab2/counter_testbench.v:68: Unsupported: Ignoring delay on this delayed statement.\n         #50 push_button = 1\'b0;\n         ^\n%Warning-STMTDLY: data/full_repos/permissive/523038000/lab2/counter_testbench.v:70: Unsupported: Ignoring delay on this delayed statement.\n         #20 push_button = 1\'b1;\n         ^\n%Warning-STMTDLY: data/full_repos/permissive/523038000/lab2/counter_testbench.v:71: Unsupported: Ignoring delay on this delayed statement.\n         #50 push_button = 1\'b0;\n         ^\n%Warning-STMTDLY: data/full_repos/permissive/523038000/lab2/counter_testbench.v:73: Unsupported: Ignoring delay on this delayed statement.\n         #10 rst = 1\'b1;\n         ^\n%Warning-STMTDLY: data/full_repos/permissive/523038000/lab2/counter_testbench.v:74: Unsupported: Ignoring delay on this delayed statement.\n         #1 rst = 1\'b0;\n         ^\n%Warning-STMTDLY: data/full_repos/permissive/523038000/lab2/counter_testbench.v:76: Unsupported: Ignoring delay on this delayed statement.\n         #20 push_button = 1\'b1;\n         ^\n%Warning-STMTDLY: data/full_repos/permissive/523038000/lab2/counter_testbench.v:77: Unsupported: Ignoring delay on this delayed statement.\n         #50 push_button = 1\'b0;\n         ^\n%Warning-STMTDLY: data/full_repos/permissive/523038000/lab2/counter_testbench.v:80: Unsupported: Ignoring delay on this delayed statement.\n         #20 push_button = 1\'b1;\n         ^\n%Warning-STMTDLY: data/full_repos/permissive/523038000/lab2/counter_testbench.v:81: Unsupported: Ignoring delay on this delayed statement.\n         #50 push_button = 1\'b0;\n         ^\n%Warning-STMTDLY: data/full_repos/permissive/523038000/lab2/counter_testbench.v:84: Unsupported: Ignoring delay on this delayed statement.\n         #100 $stop;\n         ^\n%Error: data/full_repos/permissive/523038000/lab2/counter_testbench.v:40: Cannot find file containing module: \'counter_pushbutton\'\n    counter_pushbutton counter_pushbutton_inst\n    ^~~~~~~~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/523038000/lab2,data/full_repos/permissive/523038000/counter_pushbutton\n             data/full_repos/permissive/523038000/lab2,data/full_repos/permissive/523038000/counter_pushbutton.v\n             data/full_repos/permissive/523038000/lab2,data/full_repos/permissive/523038000/counter_pushbutton.sv\n             counter_pushbutton\n             counter_pushbutton.v\n             counter_pushbutton.sv\n             obj_dir/counter_pushbutton\n             obj_dir/counter_pushbutton.v\n             obj_dir/counter_pushbutton.sv\n%Error: Exiting due to 1 error(s), 18 warning(s)\n        ... See the manual and https://verilator.org for more assistance.\n'
module stim;
    
    reg clk,rst,push_button;
    wire [15:0] pc;
    
    counter_pushbutton counter_pushbutton_inst
    (
    .clk(clk),
    .rst(rst),
    .push_button(push_button),
    .pc(pc)
    );
    
    
    always
       #5 clk = ~clk;
       
       
    initial
      begin
         push_button = 1'b0;
         rst = 1'b0;
         clk = 1'b0;
         #1 rst = 1'b1;
         #1 rst = 1'b0;
         
         #10 push_button = 1'b1;
         #10 push_button = 1'b0;
         
         #20 push_button = 1'b1;
         #50 push_button = 1'b0;
         
         #20 push_button = 1'b1;
         #50 push_button = 1'b0;
         
         #20 push_button = 1'b1;
         #50 push_button = 1'b0;
         
         #10 rst = 1'b1;
         #1 rst = 1'b0;
         
         #20 push_button = 1'b1;
         #50 push_button = 1'b0;
         
         
         #20 push_button = 1'b1;
         #50 push_button = 1'b0;
         
                  
         #100 $stop;
         
         
      end
      
  endmodule
module stim;

    
    reg clk,rst,push_button;
    wire [15:0] pc;
    
    counter_pushbutton counter_pushbutton_inst
    (
    .clk(clk),
    .rst(rst),
    .push_button(push_button),
    .pc(pc)
    );
    
    
    always
       #5 clk = ~clk;
       
       
    initial
      begin
         push_button = 1'b0;
         rst = 1'b0;
         clk = 1'b0;
         #1 rst = 1'b1;
         #1 rst = 1'b0;
         
         #10 push_button = 1'b1;
         #10 push_button = 1'b0;
         
         #20 push_button = 1'b1;
         #50 push_button = 1'b0;
         
         #20 push_button = 1'b1;
         #50 push_button = 1'b0;
         
         #20 push_button = 1'b1;
         #50 push_button = 1'b0;
         
         #10 rst = 1'b1;
         #1 rst = 1'b0;
         
         #20 push_button = 1'b1;
         #50 push_button = 1'b0;
         
         
         #20 push_button = 1'b1;
         #50 push_button = 1'b0;
         
                  
         #100 $stop;
         
         
      end
      
  endmodule