data/full_repos/permissive/20164582/Source/KeyPadTestBench.v
1: b'%Warning-STMTDLY: data/full_repos/permissive/20164582/Source/KeyPadTestBench.v:35: Unsupported: Ignoring delay on this delayed statement.\n #1 Clock = ~Clock;\n ^\n                  ... Use "/* verilator lint_off STMTDLY */" and lint_on around source to disable this message.\n%Warning-STMTDLY: data/full_repos/permissive/20164582/Source/KeyPadTestBench.v:63: Unsupported: Ignoring delay on this delayed statement.\n #0 flag = 0;\n ^\n%Warning-STMTDLY: data/full_repos/permissive/20164582/Source/KeyPadTestBench.v:64: Unsupported: Ignoring delay on this delayed statement.\n #0 ResetButton = 0;\n ^\n%Warning-STMTDLY: data/full_repos/permissive/20164582/Source/KeyPadTestBench.v:65: Unsupported: Ignoring delay on this delayed statement.\n #3 ResetButton = 1;\n ^\n%Warning-STMTDLY: data/full_repos/permissive/20164582/Source/KeyPadTestBench.v:66: Unsupported: Ignoring delay on this delayed statement.\n #10000000;  \n ^\n%Warning-STMTDLY: data/full_repos/permissive/20164582/Source/KeyPadTestBench.v:68: Unsupported: Ignoring delay on this delayed statement.\n #10000000;  \n ^\n%Error: data/full_repos/permissive/20164582/Source/KeyPadTestBench.v:77: Cannot find file containing module: \'KeyPadInterpreter\'\nKeyPadInterpreter test(Clock,ResetButton,KeyRead,RowDataIn,KeyReady,DataOut,ColDataOut,PressCount);\n^~~~~~~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/20164582/Source,data/full_repos/permissive/20164582/KeyPadInterpreter\n             data/full_repos/permissive/20164582/Source,data/full_repos/permissive/20164582/KeyPadInterpreter.v\n             data/full_repos/permissive/20164582/Source,data/full_repos/permissive/20164582/KeyPadInterpreter.sv\n             KeyPadInterpreter\n             KeyPadInterpreter.v\n             KeyPadInterpreter.sv\n             obj_dir/KeyPadInterpreter\n             obj_dir/KeyPadInterpreter.v\n             obj_dir/KeyPadInterpreter.sv\n%Error: Exiting due to 1 error(s), 6 warning(s)\n        ... See the manual and https://verilator.org for more assistance.\n'
module KeyPadTestBench();

reg flag;

reg Clock;
reg ResetButton;
reg KeyRead;
reg [3:0] RowDataIn;

wire KeyReady;
wire [3:0] DataOut;
wire [3:0] ColDataOut;
wire [3:0] PressCount;


initial begin
	Clock = 0;
end

always begin 
	#1 Clock = ~Clock;
end




always @(ColDataOut) begin
	if(flag==1) begin
		case(ColDataOut) 
			4'bzzz0: RowDataIn = 4'b1111;
			4'bzz0z: RowDataIn = 4'b1111;
			4'bz0zz: RowDataIn = 4'b1101;
			4'b0zzz: RowDataIn = 4'b1111;
		endcase
	end
	else begin
		case(ColDataOut) 
			4'bzzz0: RowDataIn = 4'b1111;
			4'bzz0z: RowDataIn = 4'b1111;
			4'bz0zz: RowDataIn = 4'b1111;
			4'b0zzz: RowDataIn = 4'b1111;
		endcase
	end
end



initial begin
	#0 flag = 0;
	#0 ResetButton = 0;
	#3 ResetButton = 1;
	#10000000;
	flag = 1;
	#10000000;
	if(DataOut == 4'b0110) 
		$display("CorrectKey");
	else
		$display("Wrong DataOut");
end



KeyPadInterpreter test(Clock,ResetButton,KeyRead,RowDataIn,KeyReady,DataOut,ColDataOut,PressCount);

endmodule
module KeyPadTestBench();


reg flag;

reg Clock;
reg ResetButton;
reg KeyRead;
reg [3:0] RowDataIn;

wire KeyReady;
wire [3:0] DataOut;
wire [3:0] ColDataOut;
wire [3:0] PressCount;


initial begin
	Clock = 0;
end

always begin 
	#1 Clock = ~Clock;
end




always @(ColDataOut) begin
	if(flag==1) begin
		case(ColDataOut) 
			4'bzzz0: RowDataIn = 4'b1111;
			4'bzz0z: RowDataIn = 4'b1111;
			4'bz0zz: RowDataIn = 4'b1101;
			4'b0zzz: RowDataIn = 4'b1111;
		endcase
	end
	else begin
		case(ColDataOut) 
			4'bzzz0: RowDataIn = 4'b1111;
			4'bzz0z: RowDataIn = 4'b1111;
			4'bz0zz: RowDataIn = 4'b1111;
			4'b0zzz: RowDataIn = 4'b1111;
		endcase
	end
end



initial begin
	#0 flag = 0;
	#0 ResetButton = 0;
	#3 ResetButton = 1;
	#10000000;
	flag = 1;
	#10000000;
	if(DataOut == 4'b0110) 
		$display("CorrectKey");
	else
		$display("Wrong DataOut");
end



KeyPadInterpreter test(Clock,ResetButton,KeyRead,RowDataIn,KeyReady,DataOut,ColDataOut,PressCount);

endmodule