data/full_repos/permissive/157101210/regWrLUT.t.v
 line:150: before: "/"
1: b'%Error: data/full_repos/permissive/157101210/regWrLUT.t.v:1: Cannot find include file: regWrLUT.v\n`include "regWrLUT.v" \n         ^~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/157101210,data/full_repos/permissive/157101210/regWrLUT.v\n             data/full_repos/permissive/157101210,data/full_repos/permissive/157101210/regWrLUT.v.v\n             data/full_repos/permissive/157101210,data/full_repos/permissive/157101210/regWrLUT.v.sv\n             regWrLUT.v\n             regWrLUT.v.v\n             regWrLUT.v.sv\n             obj_dir/regWrLUT.v\n             obj_dir/regWrLUT.v.v\n             obj_dir/regWrLUT.v.sv\n%Error: data/full_repos/permissive/157101210/regWrLUT.t.v:19: Define or directive not defined: \'`LW_OP\'\n  opcode = `LW_OP;\n           ^~~~~~\n%Error: data/full_repos/permissive/157101210/regWrLUT.t.v:19: syntax error, unexpected \';\', expecting TYPE-IDENTIFIER\n  opcode = `LW_OP;\n                 ^\n%Warning-STMTDLY: data/full_repos/permissive/157101210/regWrLUT.t.v:21: Unsupported: Ignoring delay on this delayed statement.\n  #5;\n  ^\n                  ... Use "/* verilator lint_off STMTDLY */" and lint_on around source to disable this message.\n%Error: data/full_repos/permissive/157101210/regWrLUT.t.v:25: Define or directive not defined: \'`SW_OP\'\n  opcode = `SW_OP;\n           ^~~~~~\n%Error: data/full_repos/permissive/157101210/regWrLUT.t.v:25: syntax error, unexpected \';\', expecting TYPE-IDENTIFIER\n  opcode = `SW_OP;\n                 ^\n%Warning-STMTDLY: data/full_repos/permissive/157101210/regWrLUT.t.v:27: Unsupported: Ignoring delay on this delayed statement.\n  #5;\n  ^\n%Error: data/full_repos/permissive/157101210/regWrLUT.t.v:31: Define or directive not defined: \'`J_OP\'\n  opcode = `J_OP;\n           ^~~~~\n%Error: data/full_repos/permissive/157101210/regWrLUT.t.v:31: syntax error, unexpected \';\', expecting TYPE-IDENTIFIER\n  opcode = `J_OP;\n                ^\n%Warning-STMTDLY: data/full_repos/permissive/157101210/regWrLUT.t.v:33: Unsupported: Ignoring delay on this delayed statement.\n  #5;\n  ^\n%Error: data/full_repos/permissive/157101210/regWrLUT.t.v:37: Define or directive not defined: \'`JAL_OP\'\n  opcode = `JAL_OP;\n           ^~~~~~~\n%Error: data/full_repos/permissive/157101210/regWrLUT.t.v:37: syntax error, unexpected \';\', expecting TYPE-IDENTIFIER\n  opcode = `JAL_OP;\n                  ^\n%Error: data/full_repos/permissive/157101210/regWrLUT.t.v:38: Define or directive not defined: \'`JR_FUNCT\'\n  funct = `JR_FUNCT;\n          ^~~~~~~~~\n%Error: data/full_repos/permissive/157101210/regWrLUT.t.v:38: syntax error, unexpected \';\', expecting TYPE-IDENTIFIER\n  funct = `JR_FUNCT;\n                   ^\n%Warning-STMTDLY: data/full_repos/permissive/157101210/regWrLUT.t.v:39: Unsupported: Ignoring delay on this delayed statement.\n  #5;\n  ^\n%Error: data/full_repos/permissive/157101210/regWrLUT.t.v:43: Define or directive not defined: \'`BEQ_OP\'\n  opcode = `BEQ_OP;\n           ^~~~~~~\n%Error: data/full_repos/permissive/157101210/regWrLUT.t.v:43: syntax error, unexpected \';\', expecting TYPE-IDENTIFIER\n  opcode = `BEQ_OP;\n                  ^\n%Error: data/full_repos/permissive/157101210/regWrLUT.t.v:44: Define or directive not defined: \'`JR_FUNCT\'\n  funct = `JR_FUNCT;\n          ^~~~~~~~~\n%Error: data/full_repos/permissive/157101210/regWrLUT.t.v:44: syntax error, unexpected \';\', expecting TYPE-IDENTIFIER\n  funct = `JR_FUNCT;\n                   ^\n%Warning-STMTDLY: data/full_repos/permissive/157101210/regWrLUT.t.v:45: Unsupported: Ignoring delay on this delayed statement.\n  #5;\n  ^\n%Error: data/full_repos/permissive/157101210/regWrLUT.t.v:49: Define or directive not defined: \'`BNE_OP\'\n  opcode = `BNE_OP;\n           ^~~~~~~\n%Error: data/full_repos/permissive/157101210/regWrLUT.t.v:49: syntax error, unexpected \';\', expecting TYPE-IDENTIFIER\n  opcode = `BNE_OP;\n                  ^\n%Error: data/full_repos/permissive/157101210/regWrLUT.t.v:50: Define or directive not defined: \'`JR_FUNCT\'\n  funct = `JR_FUNCT;\n          ^~~~~~~~~\n%Error: data/full_repos/permissive/157101210/regWrLUT.t.v:50: syntax error, unexpected \';\', expecting TYPE-IDENTIFIER\n  funct = `JR_FUNCT;\n                   ^\n%Warning-STMTDLY: data/full_repos/permissive/157101210/regWrLUT.t.v:51: Unsupported: Ignoring delay on this delayed statement.\n  #5;\n  ^\n%Error: data/full_repos/permissive/157101210/regWrLUT.t.v:55: Define or directive not defined: \'`XORI_OP\'\n  opcode = `XORI_OP;\n           ^~~~~~~~\n%Error: data/full_repos/permissive/157101210/regWrLUT.t.v:55: syntax error, unexpected \';\', expecting TYPE-IDENTIFIER\n  opcode = `XORI_OP;\n                   ^\n%Error: data/full_repos/permissive/157101210/regWrLUT.t.v:56: Define or directive not defined: \'`JR_FUNCT\'\n  funct = `JR_FUNCT;\n          ^~~~~~~~~\n%Error: data/full_repos/permissive/157101210/regWrLUT.t.v:56: syntax error, unexpected \';\', expecting TYPE-IDENTIFIER\n  funct = `JR_FUNCT;\n                   ^\n%Warning-STMTDLY: data/full_repos/permissive/157101210/regWrLUT.t.v:57: Unsupported: Ignoring delay on this delayed statement.\n  #5;\n  ^\n%Error: data/full_repos/permissive/157101210/regWrLUT.t.v:61: Define or directive not defined: \'`ADDI_OP\'\n  opcode = `ADDI_OP;\n           ^~~~~~~~\n%Error: data/full_repos/permissive/157101210/regWrLUT.t.v:61: syntax error, unexpected \';\', expecting TYPE-IDENTIFIER\n  opcode = `ADDI_OP;\n                   ^\n%Error: data/full_repos/permissive/157101210/regWrLUT.t.v:62: Define or directive not defined: \'`JR_FUNCT\'\n  funct = `JR_FUNCT;\n          ^~~~~~~~~\n%Error: data/full_repos/permissive/157101210/regWrLUT.t.v:62: syntax error, unexpected \';\', expecting TYPE-IDENTIFIER\n  funct = `JR_FUNCT;\n                   ^\n%Warning-STMTDLY: data/full_repos/permissive/157101210/regWrLUT.t.v:63: Unsupported: Ignoring delay on this delayed statement.\n  #5;\n  ^\n%Error: data/full_repos/permissive/157101210/regWrLUT.t.v:67: Define or directive not defined: \'`RTYPE_OP\'\n  opcode = `RTYPE_OP;\n           ^~~~~~~~~\n%Error: data/full_repos/permissive/157101210/regWrLUT.t.v:67: syntax error, unexpected \';\', expecting TYPE-IDENTIFIER\n  opcode = `RTYPE_OP;\n                    ^\n%Error: data/full_repos/permissive/157101210/regWrLUT.t.v:68: Define or directive not defined: \'`JR_FUNCT\'\n  funct = `JR_FUNCT;\n          ^~~~~~~~~\n%Error: data/full_repos/permissive/157101210/regWrLUT.t.v:68: syntax error, unexpected \';\', expecting TYPE-IDENTIFIER\n  funct = `JR_FUNCT;\n                   ^\n%Warning-STMTDLY: data/full_repos/permissive/157101210/regWrLUT.t.v:69: Unsupported: Ignoring delay on this delayed statement.\n  #5;\n  ^\n%Error: data/full_repos/permissive/157101210/regWrLUT.t.v:73: Define or directive not defined: \'`RTYPE_OP\'\n  opcode = `RTYPE_OP;\n           ^~~~~~~~~\n%Error: data/full_repos/permissive/157101210/regWrLUT.t.v:73: syntax error, unexpected \';\', expecting TYPE-IDENTIFIER\n  opcode = `RTYPE_OP;\n                    ^\n%Error: data/full_repos/permissive/157101210/regWrLUT.t.v:74: Define or directive not defined: \'`ADD_FUNCT\'\n  funct = `ADD_FUNCT;\n          ^~~~~~~~~~\n%Error: data/full_repos/permissive/157101210/regWrLUT.t.v:74: syntax error, unexpected \';\', expecting TYPE-IDENTIFIER\n  funct = `ADD_FUNCT;\n                    ^\n%Warning-STMTDLY: data/full_repos/permissive/157101210/regWrLUT.t.v:75: Unsupported: Ignoring delay on this delayed statement.\n  #5;\n  ^\n%Error: data/full_repos/permissive/157101210/regWrLUT.t.v:79: Define or directive not defined: \'`RTYPE_OP\'\n  opcode = `RTYPE_OP;\n           ^~~~~~~~~\n%Error: data/full_repos/permissive/157101210/regWrLUT.t.v:79: syntax error, unexpected \';\', expecting TYPE-IDENTIFIER\n  opcode = `RTYPE_OP;\n                    ^\n%Error: data/full_repos/permissive/157101210/regWrLUT.t.v:80: Define or directive not defined: \'`SUB_FUNCT\'\n  funct = `SUB_FUNCT;\n          ^~~~~~~~~~\n%Error: data/full_repos/permissive/157101210/regWrLUT.t.v:80: syntax error, unexpected \';\', expecting TYPE-IDENTIFIER\n  funct = `SUB_FUNCT;\n                    ^\n%Warning-STMTDLY: data/full_repos/permissive/157101210/regWrLUT.t.v:81: Unsupported: Ignoring delay on this delayed statement.\n  #5;\n  ^\n%Error: data/full_repos/permissive/157101210/regWrLUT.t.v:85: Define or directive not defined: \'`RTYPE_OP\'\n  opcode = `RTYPE_OP;\n           ^~~~~~~~~\n%Error: data/full_repos/permissive/157101210/regWrLUT.t.v:85: syntax error, unexpected \';\', expecting TYPE-IDENTIFIER\n  opcode = `RTYPE_OP;\n                    ^\n%Error: data/full_repos/permissive/157101210/regWrLUT.t.v:86: Define or directive not defined: \'`SLT_FUNCT\'\n  funct = `SLT_FUNCT;\n          ^~~~~~~~~~\n%Error: data/full_repos/permissive/157101210/regWrLUT.t.v:86: syntax error, unexpected \';\', expecting TYPE-IDENTIFIER\n  funct = `SLT_FUNCT;\n                    ^\n%Warning-STMTDLY: data/full_repos/permissive/157101210/regWrLUT.t.v:87: Unsupported: Ignoring delay on this delayed statement.\n  #5;\n  ^\n%Warning-STMTDLY: data/full_repos/permissive/157101210/regWrLUT.t.v:91: Unsupported: Ignoring delay on this delayed statement.\n  #5;\n  ^\n%Error: Exiting due to 43 error(s), 13 warning(s)\n'
module testRegWrLUT();
	reg[5:0] opcode;
	reg[5:0] funct;
	wire regwr;

	regWrLUT dut(
		.opcode(opcode),
		.funct(funct),
		.regwr(regwr)
		);

	initial begin


		$display("Starting RegWrLUT testing.");

		opcode = `LW_OP;
		funct = 6'b111111;
		#5;
		if (regwr !== 1)
			$display("Error in regWrLUT test: LW not asserting regwr.");

		opcode = `SW_OP;
		funct = 6'b111111;
		#5;
		if (regwr !== 0)
			$display("Error in regWrLUT test: SW asserting regwr.");

		opcode = `J_OP;
		funct = 6'b111111;
		#5;
		if (regwr !== 0)
			$display("Error in regWrLUT test: J asserting regwr.");

		opcode = `JAL_OP;
		funct = `JR_FUNCT;
		#5;
		if (regwr !== 1)
			$display("Error in regWrLUT test: JAL not asserting regwr.");

		opcode = `BEQ_OP;
		funct = `JR_FUNCT;
		#5;
		if (regwr !== 0)
			$display("Error in regWrLUT test: BEQ asserting regwr.");

		opcode = `BNE_OP;
		funct = `JR_FUNCT;
		#5;
		if (regwr !== 0)
			$display("Error in regWrLUT test: BNE asserting regwr.");

		opcode = `XORI_OP;
		funct = `JR_FUNCT;
		#5;
		if (regwr !== 1)
			$display("Error in regWrLUT test: XORI not asserting regwr.");

		opcode = `ADDI_OP;
		funct = `JR_FUNCT;
		#5;
		if (regwr !== 1)
			$display("Error in regWrLUT test: ADDI not asserting regwr.");

		opcode = `RTYPE_OP;
		funct = `JR_FUNCT;
		#5;
		if (regwr !== 0)
			$display("Error in regWrLUT test: JR asserting regwr.");

		opcode = `RTYPE_OP;
		funct = `ADD_FUNCT;
		#5;
		if (regwr !== 1)
			$display("Error in regWrLUT test: ADD not asserting regwr.");

		opcode = `RTYPE_OP;
		funct = `SUB_FUNCT;
		#5;
		if (regwr !== 1)
			$display("Error in regWrLUT test: SUB not asserting regwr.");

		opcode = `RTYPE_OP;
		funct = `SLT_FUNCT;
		#5;
		if (regwr !== 1)
			$display("Error in regWrLUT test: SLT not asserting regwr.");

		#5;
		$display("regWrLUT tests finished!");
	end
endmodule
module testRegWrLUT();

	reg[5:0] opcode;
	reg[5:0] funct;
	wire regwr;

	regWrLUT dut(
		.opcode(opcode),
		.funct(funct),
		.regwr(regwr)
		);

	initial begin


		$display("Starting RegWrLUT testing.");

		opcode = `LW_OP;
		funct = 6'b111111;
		#5;
		if (regwr !== 1)
			$display("Error in regWrLUT test: LW not asserting regwr.");

		opcode = `SW_OP;
		funct = 6'b111111;
		#5;
		if (regwr !== 0)
			$display("Error in regWrLUT test: SW asserting regwr.");

		opcode = `J_OP;
		funct = 6'b111111;
		#5;
		if (regwr !== 0)
			$display("Error in regWrLUT test: J asserting regwr.");

		opcode = `JAL_OP;
		funct = `JR_FUNCT;
		#5;
		if (regwr !== 1)
			$display("Error in regWrLUT test: JAL not asserting regwr.");

		opcode = `BEQ_OP;
		funct = `JR_FUNCT;
		#5;
		if (regwr !== 0)
			$display("Error in regWrLUT test: BEQ asserting regwr.");

		opcode = `BNE_OP;
		funct = `JR_FUNCT;
		#5;
		if (regwr !== 0)
			$display("Error in regWrLUT test: BNE asserting regwr.");

		opcode = `XORI_OP;
		funct = `JR_FUNCT;
		#5;
		if (regwr !== 1)
			$display("Error in regWrLUT test: XORI not asserting regwr.");

		opcode = `ADDI_OP;
		funct = `JR_FUNCT;
		#5;
		if (regwr !== 1)
			$display("Error in regWrLUT test: ADDI not asserting regwr.");

		opcode = `RTYPE_OP;
		funct = `JR_FUNCT;
		#5;
		if (regwr !== 0)
			$display("Error in regWrLUT test: JR asserting regwr.");

		opcode = `RTYPE_OP;
		funct = `ADD_FUNCT;
		#5;
		if (regwr !== 1)
			$display("Error in regWrLUT test: ADD not asserting regwr.");

		opcode = `RTYPE_OP;
		funct = `SUB_FUNCT;
		#5;
		if (regwr !== 1)
			$display("Error in regWrLUT test: SUB not asserting regwr.");

		opcode = `RTYPE_OP;
		funct = `SLT_FUNCT;
		#5;
		if (regwr !== 1)
			$display("Error in regWrLUT test: SLT not asserting regwr.");

		#5;
		$display("regWrLUT tests finished!");
	end
endmodule