data/full_repos/permissive/528055623/tic_tac_toe_tb.v
1: b'%Warning-STMTDLY: data/full_repos/permissive/528055623/tic_tac_toe_tb.v:37: Unsupported: Ignoring delay on this delayed statement.\n  # 70   A_move  = 9\'b000000001  ;\n  ^\n                  ... Use "/* verilator lint_off STMTDLY */" and lint_on around source to disable this message.\n%Warning-STMTDLY: data/full_repos/permissive/528055623/tic_tac_toe_tb.v:38: Unsupported: Ignoring delay on this delayed statement.\n  # 200   A_move  = 9\'b000001001  ;\n  ^\n%Warning-STMTDLY: data/full_repos/permissive/528055623/tic_tac_toe_tb.v:39: Unsupported: Ignoring delay on this delayed statement.\n  # 100   A_move  = 9\'b010001001  ;\n  ^\n%Warning-STMTDLY: data/full_repos/permissive/528055623/tic_tac_toe_tb.v:40: Unsupported: Ignoring delay on this delayed statement.\n  # 100   A_move  = 9\'b110001001  ;\n  ^\n%Warning-STMTDLY: data/full_repos/permissive/528055623/tic_tac_toe_tb.v:41: Unsupported: Ignoring delay on this delayed statement.\n  # 150   A_move  = 9\'b000000000  ;\n  ^\n%Warning-STMTDLY: data/full_repos/permissive/528055623/tic_tac_toe_tb.v:42: Unsupported: Ignoring delay on this delayed statement.\n  # 50   A_move  = 9\'b000000010  ;\n  ^\n%Warning-STMTDLY: data/full_repos/permissive/528055623/tic_tac_toe_tb.v:43: Unsupported: Ignoring delay on this delayed statement.\n  # 200   A_move  = 9\'b000000000  ;\n  ^\n%Warning-STMTDLY: data/full_repos/permissive/528055623/tic_tac_toe_tb.v:44: Unsupported: Ignoring delay on this delayed statement.\n  # 130 ;\n  ^\n%Warning-STMTDLY: data/full_repos/permissive/528055623/tic_tac_toe_tb.v:54: Unsupported: Ignoring delay on this delayed statement.\n  # 20   B_move  = 9\'b000000001  ;\n  ^\n%Warning-STMTDLY: data/full_repos/permissive/528055623/tic_tac_toe_tb.v:55: Unsupported: Ignoring delay on this delayed statement.\n  # 100   B_move  = 9\'b000000000  ;\n  ^\n%Warning-STMTDLY: data/full_repos/permissive/528055623/tic_tac_toe_tb.v:56: Unsupported: Ignoring delay on this delayed statement.\n  # 50   B_move  = 9\'b000000001  ;\n  ^\n%Warning-STMTDLY: data/full_repos/permissive/528055623/tic_tac_toe_tb.v:57: Unsupported: Ignoring delay on this delayed statement.\n  # 50   B_move  = 9\'b000000010  ;\n  ^\n%Warning-STMTDLY: data/full_repos/permissive/528055623/tic_tac_toe_tb.v:58: Unsupported: Ignoring delay on this delayed statement.\n  # 100   B_move  = 9\'b000010010  ;\n  ^\n%Warning-STMTDLY: data/full_repos/permissive/528055623/tic_tac_toe_tb.v:59: Unsupported: Ignoring delay on this delayed statement.\n  # 100   B_move  = 9\'b001010010  ;\n  ^\n%Warning-STMTDLY: data/full_repos/permissive/528055623/tic_tac_toe_tb.v:60: Unsupported: Ignoring delay on this delayed statement.\n  # 100   B_move  = 9\'b001010110  ;\n  ^\n%Warning-STMTDLY: data/full_repos/permissive/528055623/tic_tac_toe_tb.v:61: Unsupported: Ignoring delay on this delayed statement.\n  # 100   B_move  = 9\'b000000000  ;\n  ^\n%Warning-STMTDLY: data/full_repos/permissive/528055623/tic_tac_toe_tb.v:62: Unsupported: Ignoring delay on this delayed statement.\n  # 100   B_move  = 9\'b000000100  ;\n  ^\n%Warning-STMTDLY: data/full_repos/permissive/528055623/tic_tac_toe_tb.v:63: Unsupported: Ignoring delay on this delayed statement.\n  # 150   B_move  = 9\'b000000000  ;\n  ^\n%Warning-STMTDLY: data/full_repos/permissive/528055623/tic_tac_toe_tb.v:64: Unsupported: Ignoring delay on this delayed statement.\n  # 130 ;\n  ^\n%Warning-STMTDLY: data/full_repos/permissive/528055623/tic_tac_toe_tb.v:74: Unsupported: Ignoring delay on this delayed statement.\n  # 40 ;\n  ^\n%Warning-STMTDLY: data/full_repos/permissive/528055623/tic_tac_toe_tb.v:78: Unsupported: Ignoring delay on this delayed statement.\n   #10  OK_btn  = 1\'b0  ;\n   ^\n%Warning-STMTDLY: data/full_repos/permissive/528055623/tic_tac_toe_tb.v:79: Unsupported: Ignoring delay on this delayed statement.\n   #40 ;\n   ^\n%Warning-STMTDLY: data/full_repos/permissive/528055623/tic_tac_toe_tb.v:83: Unsupported: Ignoring delay on this delayed statement.\n  # 10 ;\n  ^\n%Warning-STMTDLY: data/full_repos/permissive/528055623/tic_tac_toe_tb.v:93: Unsupported: Ignoring delay on this delayed statement.\n  # 815   reset  = 1\'b1  ;\n  ^\n%Warning-STMTDLY: data/full_repos/permissive/528055623/tic_tac_toe_tb.v:94: Unsupported: Ignoring delay on this delayed statement.\n  # 10   reset  = 1\'b0  ;\n  ^\n%Warning-STMTDLY: data/full_repos/permissive/528055623/tic_tac_toe_tb.v:95: Unsupported: Ignoring delay on this delayed statement.\n  # 175 ;\n  ^\n%Warning-STMTDLY: data/full_repos/permissive/528055623/tic_tac_toe_tb.v:100: Unsupported: Ignoring delay on this delayed statement.\n #2000 $stop;\n ^\n%Error: data/full_repos/permissive/528055623/tic_tac_toe_tb.v:20: Cannot find file containing module: \'tic_tac_toe\'\n  tic_tac_toe    #(A , B , PLAY , Awin , Bwin , DRAW )\n  ^~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/528055623,data/full_repos/permissive/528055623/tic_tac_toe\n             data/full_repos/permissive/528055623,data/full_repos/permissive/528055623/tic_tac_toe.v\n             data/full_repos/permissive/528055623,data/full_repos/permissive/528055623/tic_tac_toe.sv\n             tic_tac_toe\n             tic_tac_toe.v\n             tic_tac_toe.sv\n             obj_dir/tic_tac_toe\n             obj_dir/tic_tac_toe.v\n             obj_dir/tic_tac_toe.sv\n%Error: Exiting due to 1 error(s), 27 warning(s)\n        ... See the manual and https://verilator.org for more assistance.\n'
module tic_tac_toe_tb  ; 

parameter A  = 2'b01 ;
parameter B  = 2'b10 ;
parameter PLAY  = 2'b00 ;
parameter Awin  = 2'b01 ; 
parameter Bwin  = 2'b10 ;
parameter DRAW  = 2'b11 ;

  reg  [8:0]  A_move   ; 
  reg  [8:0]  B_move   ;  
  reg    OK_btn   ; 
  reg    reset   ; 
  wire  [8:0]  A_state   ;
  wire  [8:0]  B_state   ; 
  wire  [160:0]  result   ; 
  
  tic_tac_toe    #(A , B , PLAY , Awin , Bwin , DRAW )
   DUT  ( 
       .B_move (B_move ) ,
      .A_state (A_state ) ,
      .OK_btn (OK_btn ) ,
      .B_state (B_state ) ,
      .result (result ) ,
      .reset (reset ) ,
      .A_move (A_move ) ); 





  initial
  begin
	  A_move  = 9'b000000000  ;
	 # 70	  A_move  = 9'b000000001  ;
	 # 200	  A_move  = 9'b000001001  ;
	 # 100	  A_move  = 9'b010001001  ;
	 # 100	  A_move  = 9'b110001001  ;
	 # 150	  A_move  = 9'b000000000  ;
	 # 50	  A_move  = 9'b000000010  ;
	 # 200	  A_move  = 9'b000000000  ;
	 # 130 ;

  end




  initial
  begin
	  B_move  = 9'b000000000  ;
	 # 20	  B_move  = 9'b000000001  ;
	 # 100	  B_move  = 9'b000000000  ;
	 # 50	  B_move  = 9'b000000001  ;
	 # 50	  B_move  = 9'b000000010  ;
	 # 100	  B_move  = 9'b000010010  ;
	 # 100	  B_move  = 9'b001010010  ;
	 # 100	  B_move  = 9'b001010110  ;
	 # 100	  B_move  = 9'b000000000  ;
	 # 100	  B_move  = 9'b000000100  ;
	 # 150	  B_move  = 9'b000000000  ;
	 # 130 ;

  end




  initial
  begin
	  OK_btn  = 1'b0  ;
	 # 40 ;
   repeat(19)
   begin
	   OK_btn  = 1'b1  ;
	  #10  OK_btn  = 1'b0  ;
	  #40 ;

   end
	  OK_btn  = 1'b1  ;
	 # 10 ;

  end




  initial
  begin
	  reset  = 1'b0  ;
	 # 815	  reset  = 1'b1  ;
	 # 10	  reset  = 1'b0  ;
	 # 175 ;

  end

  initial
	#2000 $stop;
endmodule
module tic_tac_toe_tb  ;
 

parameter A  = 2'b01 ;
parameter B  = 2'b10 ;
parameter PLAY  = 2'b00 ;
parameter Awin  = 2'b01 ; 
parameter Bwin  = 2'b10 ;
parameter DRAW  = 2'b11 ;

  reg  [8:0]  A_move   ; 
  reg  [8:0]  B_move   ;  
  reg    OK_btn   ; 
  reg    reset   ; 
  wire  [8:0]  A_state   ;
  wire  [8:0]  B_state   ; 
  wire  [160:0]  result   ; 
  
  tic_tac_toe    #(A , B , PLAY , Awin , Bwin , DRAW )
   DUT  ( 
       .B_move (B_move ) ,
      .A_state (A_state ) ,
      .OK_btn (OK_btn ) ,
      .B_state (B_state ) ,
      .result (result ) ,
      .reset (reset ) ,
      .A_move (A_move ) ); 





  initial
  begin
	  A_move  = 9'b000000000  ;
	 # 70	  A_move  = 9'b000000001  ;
	 # 200	  A_move  = 9'b000001001  ;
	 # 100	  A_move  = 9'b010001001  ;
	 # 100	  A_move  = 9'b110001001  ;
	 # 150	  A_move  = 9'b000000000  ;
	 # 50	  A_move  = 9'b000000010  ;
	 # 200	  A_move  = 9'b000000000  ;
	 # 130 ;

  end




  initial
  begin
	  B_move  = 9'b000000000  ;
	 # 20	  B_move  = 9'b000000001  ;
	 # 100	  B_move  = 9'b000000000  ;
	 # 50	  B_move  = 9'b000000001  ;
	 # 50	  B_move  = 9'b000000010  ;
	 # 100	  B_move  = 9'b000010010  ;
	 # 100	  B_move  = 9'b001010010  ;
	 # 100	  B_move  = 9'b001010110  ;
	 # 100	  B_move  = 9'b000000000  ;
	 # 100	  B_move  = 9'b000000100  ;
	 # 150	  B_move  = 9'b000000000  ;
	 # 130 ;

  end




  initial
  begin
	  OK_btn  = 1'b0  ;
	 # 40 ;
   repeat(19)
   begin
	   OK_btn  = 1'b1  ;
	  #10  OK_btn  = 1'b0  ;
	  #40 ;

   end
	  OK_btn  = 1'b1  ;
	 # 10 ;

  end




  initial
  begin
	  reset  = 1'b0  ;
	 # 815	  reset  = 1'b1  ;
	 # 10	  reset  = 1'b0  ;
	 # 175 ;

  end

  initial
	#2000 $stop;
endmodule