data/full_repos/permissive/119715647/sim/GameStacker_tb.v
 line:30: before: "@"
1: b'%Warning-STMTDLY: data/full_repos/permissive/119715647/sim/GameStacker_tb.v:24: Unsupported: Ignoring delay on this delayed statement.\n  #10 clk = ~clk; \n  ^\n                  ... Use "/* verilator lint_off STMTDLY */" and lint_on around source to disable this message.\n%Error: data/full_repos/permissive/119715647/sim/GameStacker_tb.v:30: syntax error, unexpected \'@\'\n   #10 @(posedge clk) _buttons[0] =0;\n       ^\n%Warning-STMTDLY: data/full_repos/permissive/119715647/sim/GameStacker_tb.v:30: Unsupported: Ignoring delay on this delayed statement.\n   #10 @(posedge clk) _buttons[0] =0;\n   ^\n%Error: data/full_repos/permissive/119715647/sim/GameStacker_tb.v:46: Unsupported or unknown PLI call: $monitor\n  $monitor("[%b]\\n[%b]\\n[%b]\\n[%b]\\n[%b]\\n[%b]\\n[%b]\\n[%b]\\n****************", \n  ^~~~~~~~\n%Error: data/full_repos/permissive/119715647/sim/GameStacker_tb.v:61: syntax error, unexpected \'@\'\n  #10 @(posedge clk) _gamestate = 2\'b01; \n      ^\n%Warning-STMTDLY: data/full_repos/permissive/119715647/sim/GameStacker_tb.v:61: Unsupported: Ignoring delay on this delayed statement.\n  #10 @(posedge clk) _gamestate = 2\'b01; \n  ^\n%Error: data/full_repos/permissive/119715647/sim/GameStacker_tb.v:62: syntax error, unexpected \'@\'\n  #30 @(posedge clk) _buttons[0] = 1; \n      ^\n%Warning-STMTDLY: data/full_repos/permissive/119715647/sim/GameStacker_tb.v:62: Unsupported: Ignoring delay on this delayed statement.\n  #30 @(posedge clk) _buttons[0] = 1; \n  ^\n%Error: data/full_repos/permissive/119715647/sim/GameStacker_tb.v:63: syntax error, unexpected \'@\'\n  #120 @(posedge clk) _buttons[0] = 1; \n       ^\n%Warning-STMTDLY: data/full_repos/permissive/119715647/sim/GameStacker_tb.v:63: Unsupported: Ignoring delay on this delayed statement.\n  #120 @(posedge clk) _buttons[0] = 1; \n  ^\n%Error: Exiting due to 5 error(s), 5 warning(s)\n        ... See the manual and https://verilator.org for more assistance.\n'
module GameStacker_tb();
	reg [0:0] clk, rst;
	reg [2:0] _buttons;
	reg [15:0] _userid; 
	reg [1:0] _gamestate;

	wire [0:0] _game_eog; 
	wire [31:0] _game_data; 

	GameStacker game(
		.clk(clk), 
		.rst(rst), 
		.buttons(_buttons), 
		.userid(_userid),
		.gamestate(_gamestate), 
		.game_eog(_game_eog),
		.game_display(),
		.game_data(_game_data));  


	always begin
		#10 clk = ~clk; 
	end

	always @ (_buttons) begin
		if(_buttons[0] == 1) begin
			$display(" button is pressed "); 
			#10 @(posedge clk) _buttons[0] =0;
			$display(" button is released"); 
		end
	end

	always @(_game_eog) begin
		if(_game_eog === 1'b1) begin
			$display(" EOG was reached");
			_gamestate = 2'b00;
		end
		else if(_game_eog ===1'b0) begin
			_gamestate = 2'b01;
		end
	end

	initial begin
		$monitor("[%b]\n[%b]\n[%b]\n[%b]\n[%b]\n[%b]\n[%b]\n[%b]\n****************", 
			game.game_table[0],
			game.game_table[1],
			game.game_table[2],
			game.game_table[3], 
			game.game_table[4], 
			game.game_table[5],
			game.game_table[6],
			game.game_table[7]);

		clk = 1; rst = 1; 
		_buttons = 3'b000; 
		_userid = 16'h1476; 
		_gamestate = 2'b00; 

		#10 @(posedge clk) _gamestate = 2'b01; 
		#30 @(posedge clk) _buttons[0] = 1; 
		#120 @(posedge clk) _buttons[0] = 1; 




	end

endmodule
module GameStacker_tb();

	reg [0:0] clk, rst;
	reg [2:0] _buttons;
	reg [15:0] _userid; 
	reg [1:0] _gamestate;

	wire [0:0] _game_eog; 
	wire [31:0] _game_data; 

	GameStacker game(
		.clk(clk), 
		.rst(rst), 
		.buttons(_buttons), 
		.userid(_userid),
		.gamestate(_gamestate), 
		.game_eog(_game_eog),
		.game_display(),
		.game_data(_game_data));  


	always begin
		#10 clk = ~clk; 
	end

	always @ (_buttons) begin
		if(_buttons[0] == 1) begin
			$display(" button is pressed "); 
			#10 @(posedge clk) _buttons[0] =0;
			$display(" button is released"); 
		end
	end

	always @(_game_eog) begin
		if(_game_eog === 1'b1) begin
			$display(" EOG was reached");
			_gamestate = 2'b00;
		end
		else if(_game_eog ===1'b0) begin
			_gamestate = 2'b01;
		end
	end

	initial begin
		$monitor("[%b]\n[%b]\n[%b]\n[%b]\n[%b]\n[%b]\n[%b]\n[%b]\n****************", 
			game.game_table[0],
			game.game_table[1],
			game.game_table[2],
			game.game_table[3], 
			game.game_table[4], 
			game.game_table[5],
			game.game_table[6],
			game.game_table[7]);

		clk = 1; rst = 1; 
		_buttons = 3'b000; 
		_userid = 16'h1476; 
		_gamestate = 2'b00; 

		#10 @(posedge clk) _gamestate = 2'b01; 
		#30 @(posedge clk) _buttons[0] = 1; 
		#120 @(posedge clk) _buttons[0] = 1; 




	end

endmodule