data/full_repos/permissive/47737018/TB/node_tb.sv
1: b'%Warning-STMTDLY: data/full_repos/permissive/47737018/TB/node_tb.sv:16: Unsupported: Ignoring delay on this delayed statement.\n always #5 clk = ~clk;\n        ^\n                  ... Use "/* verilator lint_off STMTDLY */" and lint_on around source to disable this message.\n%Error: data/full_repos/permissive/47737018/TB/node_tb.sv:23: syntax error, unexpected \'@\'\n  repeat(10) @(posedge clk);\n             ^\n%Error: data/full_repos/permissive/47737018/TB/node_tb.sv:25: syntax error, unexpected \'@\'\n  repeat(10) @(posedge clk);\n             ^\n%Error: data/full_repos/permissive/47737018/TB/node_tb.sv:28: syntax error, unexpected \'@\'\n  repeat(10) @(posedge clk);\n             ^\n%Error: data/full_repos/permissive/47737018/TB/node_tb.sv:29: Unsupported: fork statements\n  fork\n  ^~~~\n%Error: data/full_repos/permissive/47737018/TB/node_tb.sv:34: syntax error, unexpected \'@\'\n   repeat(4) @(posedge clk);\n             ^\n%Error: data/full_repos/permissive/47737018/TB/node_tb.sv:38: syntax error, unexpected \'@\'\n   repeat(6) @(posedge clk);\n             ^\n%Error: data/full_repos/permissive/47737018/TB/node_tb.sv:41: syntax error, unexpected \'@\'\n   repeat(6) @(posedge clk);\n             ^\n%Error: data/full_repos/permissive/47737018/TB/node_tb.sv:44: syntax error, unexpected \'@\'\n   repeat(6) @(posedge clk);\n             ^\n%Error: data/full_repos/permissive/47737018/TB/node_tb.sv:47: syntax error, unexpected \'@\'\n   repeat(6) @(posedge clk);\n             ^\n%Error: data/full_repos/permissive/47737018/TB/node_tb.sv:50: syntax error, unexpected \'@\'\n   repeat(6) @(posedge clk);\n             ^\n%Error: data/full_repos/permissive/47737018/TB/node_tb.sv:53: syntax error, unexpected \'@\'\n   repeat(6) @(posedge clk);\n             ^\n%Error: data/full_repos/permissive/47737018/TB/node_tb.sv:56: syntax error, unexpected \'@\'\n   repeat(6) @(posedge clk);\n             ^\n%Error: data/full_repos/permissive/47737018/TB/node_tb.sv:59: syntax error, unexpected \'@\'\n   repeat(6) @(posedge clk);\n             ^\n%Error: data/full_repos/permissive/47737018/TB/node_tb.sv:62: syntax error, unexpected \'@\'\n   repeat(6) @(posedge clk);\n             ^\n%Error: data/full_repos/permissive/47737018/TB/node_tb.sv:65: syntax error, unexpected \'@\'\n   repeat(6) @(posedge clk);\n             ^\n%Error: data/full_repos/permissive/47737018/TB/node_tb.sv:68: syntax error, unexpected \'@\'\n   repeat(6) @(posedge clk);\n             ^\n%Error: data/full_repos/permissive/47737018/TB/node_tb.sv:71: syntax error, unexpected \'@\'\n   repeat(6) @(posedge clk);\n             ^\n%Error: data/full_repos/permissive/47737018/TB/node_tb.sv:74: syntax error, unexpected \'@\'\n   repeat(6) @(posedge clk);\n             ^\n%Error: data/full_repos/permissive/47737018/TB/node_tb.sv:77: syntax error, unexpected \'@\'\n   repeat(6) @(posedge clk);\n             ^\n%Error: data/full_repos/permissive/47737018/TB/node_tb.sv:80: syntax error, unexpected \'@\'\n   repeat(6) @(posedge clk);\n             ^\n%Error: data/full_repos/permissive/47737018/TB/node_tb.sv:83: syntax error, unexpected \'@\'\n   repeat(6) @(posedge clk);\n             ^\n%Error: data/full_repos/permissive/47737018/TB/node_tb.sv:86: syntax error, unexpected \'@\'\n   repeat(6) @(posedge clk);\n             ^\n%Error: data/full_repos/permissive/47737018/TB/node_tb.sv:89: syntax error, unexpected \'@\'\n   repeat(6) @(posedge clk);\n             ^\n%Error: data/full_repos/permissive/47737018/TB/node_tb.sv:92: syntax error, unexpected \'@\'\n   repeat(6) @(posedge clk);\n             ^\n%Error: data/full_repos/permissive/47737018/TB/node_tb.sv:95: syntax error, unexpected \'@\'\n   repeat(50) @(posedge clk);  \n              ^\n%Error: data/full_repos/permissive/47737018/TB/node_tb.sv:109: syntax error, unexpected \'@\'\n @(posedge clk) data_wr = 1\'b0; \n ^\n%Error: data/full_repos/permissive/47737018/TB/node_tb.sv:115: syntax error, unexpected \'@\'\n @(posedge clk);\n ^\n%Error: data/full_repos/permissive/47737018/TB/node_tb.sv:117: syntax error, unexpected \'@\'\n @(posedge clk);\n ^\n%Error: data/full_repos/permissive/47737018/TB/node_tb.sv:119: syntax error, unexpected \'@\'\n @(posedge clk);\n ^\n%Error: data/full_repos/permissive/47737018/TB/node_tb.sv:121: syntax error, unexpected \'@\'\n @(posedge clk);\n ^\n%Error: Exiting due to 30 error(s), 1 warning(s)\n        ... See the manual and https://verilator.org for more assistance.\n'
module node_tb;
	
	reg clk;
	reg rst;
	
	parameter data_size = 32;
	
	reg [data_size-1:0] textfile;
	reg data_wr;   
	reg [data_size-1:0] keyword; 
	reg key_en;
	 
	
	
	always #5	clk = ~clk;
	
	initial begin
		clk = 0;
		rst = 1;  
		key_en = 0;
		data_wr = 0;
		repeat(10) @(posedge clk);
		rst = 0;
		repeat(10) @(posedge clk);
		rst = 1;   
		
		repeat(10) @(posedge clk);
		fork
		

		begin
			
			repeat(4) @(posedge clk);
			
			write_data(32'h79656854);
				 
			repeat(6) @(posedge clk);
			write_data(32'h6e657720); 				
 
			repeat(6) @(posedge clk);
			write_data(32'h68742074); 
				
			repeat(6) @(posedge clk);
			write_data(32'h65736d65); 
			
			repeat(6) @(posedge clk);
			write_data(32'h7365766c); 	
			
			repeat(6) @(posedge clk);
			write_data(32'h6854202e);
			
			repeat(6) @(posedge clk);
			write_data(32'h74207965);
			
			repeat(6) @(posedge clk);
			write_data(32'h736d6568);
			
			repeat(6) @(posedge clk);
			write_data(32'h65766c65);
			
			repeat(6) @(posedge clk);
			write_data(32'h616d2073);
			
			repeat(6) @(posedge clk);
			write_data(32'h74206564);
			
			repeat(6) @(posedge clk);
			write_data(32'h64206568);
			
			repeat(6) @(posedge clk);
			write_data(32'h73696365);
			
			repeat(6) @(posedge clk);
			write_data(32'h2c6e6f69);
			
			repeat(6) @(posedge clk);
			write_data(32'h65687420);
			
			repeat(6) @(posedge clk);
			write_data(32'h75682079);
			
			repeat(6) @(posedge clk);
			write_data(32'h74207472);
			
			repeat(6) @(posedge clk);
			write_data(32'h736d6568); 
			
			repeat(6) @(posedge clk);
			write_data(32'h65766c65);
			
			repeat(6) @(posedge clk);
			write_data(32'h00002e73);
			
			repeat(50) @(posedge clk);		
		end	 
		begin
			write_keyword;
		end
		join
		
		$stop;
	end
	
	task write_data; 
	input [data_size-1:0] input_data;
	data_wr = 1'b1;
	textfile = input_data;	
	@(posedge clk) data_wr = 1'b0; 
	endtask
		
	task write_keyword;
	key_en = 1;
	keyword = 32'h6d656874;
	@(posedge clk);
	keyword = 32'h766c6573;	
	@(posedge clk);
	keyword = 32'h00007365;	   
	@(posedge clk);
	keyword = 32'h00000000;	
	@(posedge clk);
	key_en = 0;
	endtask

	

	node node0(
	.clk(clk),
	.rst(rst),
	.textfile(textfile),
	.keyword(keyword),
	.data_wr(data_wr),
	.key_en(key_en));
	
endmodule
module node_tb;

	
	reg clk;
	reg rst;
	
	parameter data_size = 32;
	
	reg [data_size-1:0] textfile;
	reg data_wr;   
	reg [data_size-1:0] keyword; 
	reg key_en;
	 
	
	
	always #5	clk = ~clk;
	
	initial begin
		clk = 0;
		rst = 1;  
		key_en = 0;
		data_wr = 0;
		repeat(10) @(posedge clk);
		rst = 0;
		repeat(10) @(posedge clk);
		rst = 1;   
		
		repeat(10) @(posedge clk);
		fork
		

		begin
			
			repeat(4) @(posedge clk);
			
			write_data(32'h79656854);
				 
			repeat(6) @(posedge clk);
			write_data(32'h6e657720); 				
 
			repeat(6) @(posedge clk);
			write_data(32'h68742074); 
				
			repeat(6) @(posedge clk);
			write_data(32'h65736d65); 
			
			repeat(6) @(posedge clk);
			write_data(32'h7365766c); 	
			
			repeat(6) @(posedge clk);
			write_data(32'h6854202e);
			
			repeat(6) @(posedge clk);
			write_data(32'h74207965);
			
			repeat(6) @(posedge clk);
			write_data(32'h736d6568);
			
			repeat(6) @(posedge clk);
			write_data(32'h65766c65);
			
			repeat(6) @(posedge clk);
			write_data(32'h616d2073);
			
			repeat(6) @(posedge clk);
			write_data(32'h74206564);
			
			repeat(6) @(posedge clk);
			write_data(32'h64206568);
			
			repeat(6) @(posedge clk);
			write_data(32'h73696365);
			
			repeat(6) @(posedge clk);
			write_data(32'h2c6e6f69);
			
			repeat(6) @(posedge clk);
			write_data(32'h65687420);
			
			repeat(6) @(posedge clk);
			write_data(32'h75682079);
			
			repeat(6) @(posedge clk);
			write_data(32'h74207472);
			
			repeat(6) @(posedge clk);
			write_data(32'h736d6568); 
			
			repeat(6) @(posedge clk);
			write_data(32'h65766c65);
			
			repeat(6) @(posedge clk);
			write_data(32'h00002e73);
			
			repeat(50) @(posedge clk);		
		end	 
		begin
			write_keyword;
		end
		join
		
		$stop;
	end
	
	task write_data; 
	input [data_size-1:0] input_data;
	data_wr = 1'b1;
	textfile = input_data;	
	@(posedge clk) data_wr = 1'b0; 
	endtask
		
	task write_keyword;
	key_en = 1;
	keyword = 32'h6d656874;
	@(posedge clk);
	keyword = 32'h766c6573;	
	@(posedge clk);
	keyword = 32'h00007365;	   
	@(posedge clk);
	keyword = 32'h00000000;	
	@(posedge clk);
	key_en = 0;
	endtask

	

	node node0(
	.clk(clk),
	.rst(rst),
	.textfile(textfile),
	.keyword(keyword),
	.data_wr(data_wr),
	.key_en(key_en));
	
endmodule