data/full_repos/permissive/441359809/src/yosys/techlibs/ice40/tests/test_bram_tb.v
1: b'%Error: data/full_repos/permissive/441359809/src/yosys/techlibs/ice40/tests/test_bram_tb.v:60: Unsupported: event data types\n event error;\n ^~~~~\n%Warning-STMTDLY: data/full_repos/permissive/441359809/src/yosys/techlibs/ice40/tests/test_bram_tb.v:95: Unsupported: Ignoring delay on this delayed statement.\n   #1; clk <= 1;\n   ^\n                  ... Use "/* verilator lint_off STMTDLY */" and lint_on around source to disable this message.\n%Warning-STMTDLY: data/full_repos/permissive/441359809/src/yosys/techlibs/ice40/tests/test_bram_tb.v:96: Unsupported: Ignoring delay on this delayed statement.\n   #1; clk <= 0;\n   ^\n%Error: data/full_repos/permissive/441359809/src/yosys/techlibs/ice40/tests/test_bram_tb.v:107: syntax error, unexpected ->\n   if (expected_rd_masked !== RD_DATA) begin -> error; end\n                                             ^~\n%Error: Exiting due to 2 error(s), 2 warning(s)\n        ... See the manual and https://verilator.org for more assistance.\n'
function [31:0] getaddr(input [3:0] n);
		begin
			case (n)
				0: getaddr = 0;
				1: getaddr = 2**ABITS-1;
				2: getaddr = 'b101 << (ABITS / 3);
				3: getaddr = 'b101 << (2*ABITS / 3);
				4: getaddr = 'b11011 << (ABITS / 4);
				5: getaddr = 'b11011 << (2*ABITS / 4);
				6: getaddr = 'b11011 << (3*ABITS / 4);
				7: getaddr = randaddr1;
				8: getaddr = randaddr2;
				9: getaddr = randaddr3;
				default: begin
					getaddr = 1 << (2*n-16);
					if (!getaddr) getaddr = xorshift64_state;
				end
			endcase
		end
	endfunction
function [31:0] getaddr(input [3:0] n);

		begin
			case (n)
				0: getaddr = 0;
				1: getaddr = 2**ABITS-1;
				2: getaddr = 'b101 << (ABITS / 3);
				3: getaddr = 'b101 << (2*ABITS / 3);
				4: getaddr = 'b11011 << (ABITS / 4);
				5: getaddr = 'b11011 << (2*ABITS / 4);
				6: getaddr = 'b11011 << (3*ABITS / 4);
				7: getaddr = randaddr1;
				8: getaddr = randaddr2;
				9: getaddr = randaddr3;
				default: begin
					getaddr = 1 << (2*n-16);
					if (!getaddr) getaddr = xorshift64_state;
				end
			endcase
		end
	endfunction