data/full_repos/permissive/418819021/lab-05/test_rjmp.vh
1: b'%Error: data/full_repos/permissive/418819021/lab-05/test_rjmp.vh:5: Cannot find include file: defines.vh\n`include "defines.vh" \n         ^~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/418819021/lab-05,data/full_repos/permissive/418819021/defines.vh\n             data/full_repos/permissive/418819021/lab-05,data/full_repos/permissive/418819021/defines.vh.v\n             data/full_repos/permissive/418819021/lab-05,data/full_repos/permissive/418819021/defines.vh.sv\n             defines.vh\n             defines.vh.v\n             defines.vh.sv\n             obj_dir/defines.vh\n             obj_dir/defines.vh.v\n             obj_dir/defines.vh.sv\n%Error: data/full_repos/permissive/418819021/lab-05/test_rjmp.vh:10: Define or directive not defined: \'`STAGE_IF\'\n   `STAGE_IF:  TEST_RJMP = 1\'b1;\n   ^~~~~~~~~\n%Error: data/full_repos/permissive/418819021/lab-05/test_rjmp.vh:10: syntax error, unexpected \':\', expecting endcase\n   `STAGE_IF:  TEST_RJMP = 1\'b1;\n            ^\n%Error: data/full_repos/permissive/418819021/lab-05/test_rjmp.vh:11: Define or directive not defined: \'`STAGE_ID\'\n   `STAGE_ID:\n   ^~~~~~~~~\n%Error: data/full_repos/permissive/418819021/lab-05/test_rjmp.vh:12: Define or directive not defined: \'`GROUP_CONTROL_FLOW\'\n    if(uut.control.opcode_group[`GROUP_CONTROL_FLOW]\n                                ^~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/418819021/lab-05/test_rjmp.vh:13: Define or directive not defined: \'`TYPE_RJMP\'\n     && uut.control.opcode_type == `TYPE_RJMP\n                                   ^~~~~~~~~~\n%Error: data/full_repos/permissive/418819021/lab-05/test_rjmp.vh:19: syntax error, unexpected else\n    else\n    ^~~~\n%Error: data/full_repos/permissive/418819021/lab-05/test_rjmp.vh:23: Define or directive not defined: \'`TYPE_RJMP\'\n         `TYPE_RJMP, uut.control.opcode_type);\n         ^~~~~~~~~~\n%Error: data/full_repos/permissive/418819021/lab-05/test_rjmp.vh:23: syntax error, unexpected \',\', expecting TYPE-IDENTIFIER\n         `TYPE_RJMP, uut.control.opcode_type);\n                   ^\n%Error: data/full_repos/permissive/418819021/lab-05/test_rjmp.vh:25: Define or directive not defined: \'`STAGE_EX\'\n   `STAGE_EX:  TEST_RJMP = 1\'b1;\n   ^~~~~~~~~\n%Error: data/full_repos/permissive/418819021/lab-05/test_rjmp.vh:26: Define or directive not defined: \'`STAGE_MEM\'\n   `STAGE_MEM: TEST_RJMP = 1\'b1;\n   ^~~~~~~~~~\n%Error: data/full_repos/permissive/418819021/lab-05/test_rjmp.vh:27: Define or directive not defined: \'`STAGE_WB\'\n   `STAGE_WB:  TEST_RJMP = 1\'b1;\n   ^~~~~~~~~\n%Error: Cannot continue\n'
function TEST_RJMP;
	input integer relative_jump_address;
	begin
		case (uut.pipeline_stage)
			`STAGE_IF:  TEST_RJMP = 1'b1;
			`STAGE_ID:
				if(uut.control.opcode_group[`GROUP_CONTROL_FLOW]
					&& uut.control.opcode_type == `TYPE_RJMP
					&& uut.control.opcode_imd == relative_jump_address)
					begin
						TEST_RJMP = 1'b1;
						$display("RJMP LABEL - ID: OK");
					end
				else
					begin
						TEST_RJMP = 1'bx;
						$display("RJMP LABEL - ID: FAILED => OPCODE_TYPE: ( %d ) vs ( %d ). Check defines.vh.",
									`TYPE_RJMP, uut.control.opcode_type);
					end
			`STAGE_EX:  TEST_RJMP = 1'b1;
			`STAGE_MEM: TEST_RJMP = 1'b1;
			`STAGE_WB:  TEST_RJMP = 1'b1;
		endcase
	end
endfunction
function TEST_RJMP;

	input integer relative_jump_address;
	begin
		case (uut.pipeline_stage)
			`STAGE_IF:  TEST_RJMP = 1'b1;
			`STAGE_ID:
				if(uut.control.opcode_group[`GROUP_CONTROL_FLOW]
					&& uut.control.opcode_type == `TYPE_RJMP
					&& uut.control.opcode_imd == relative_jump_address)
					begin
						TEST_RJMP = 1'b1;
						$display("RJMP LABEL - ID: OK");
					end
				else
					begin
						TEST_RJMP = 1'bx;
						$display("RJMP LABEL - ID: FAILED => OPCODE_TYPE: ( %d ) vs ( %d ). Check defines.vh.",
									`TYPE_RJMP, uut.control.opcode_type);
					end
			`STAGE_EX:  TEST_RJMP = 1'b1;
			`STAGE_MEM: TEST_RJMP = 1'b1;
			`STAGE_WB:  TEST_RJMP = 1'b1;
		endcase
	end
endfunction