data/full_repos/permissive/143278/ivltests/writememb2.v
1: b'%Error: data/full_repos/permissive/143278/ivltests/writememb2.v:36: Unsupported or unknown PLI call: $writememb\n $writememb("work/writememb2.dat", array, 6, 1);\n ^~~~~~~~~~\n%Error: Exiting due to 1 error(s)\n        ... See the manual and https://verilator.org for more assistance.\n'
module main ();

   reg [7:0] array [7:0];
   reg	     error ;
   reg [3:0] count;

   initial
     begin

	for(count = 0; count <= 7; count = count + 1)
	  begin
	     array[count] = 1 << count;
	  end

	$writememb("work/writememb2.dat", array, 6, 1);

	for(count = 0; count <= 7; count = count + 1)
	  begin
	     array[count] = 'bx;
	  end

	error = 0;

	$readmemb("work/writememb2.dat", array);

	for(count = 0; count <= 5; count = count + 1)
	  begin
	     if(array[count] !== (1<<(6-count)))
               begin
		  error = 1;
		  $display("FAILED - array[count] == %h, s/b %h",
			   array[count], 1 << count);
               end
	  end

	if(error == 0)
	  $display("PASSED\n");
	$finish ;
     end
endmodule
module main ();


   reg [7:0] array [7:0];
   reg	     error ;
   reg [3:0] count;

   initial
     begin

	for(count = 0; count <= 7; count = count + 1)
	  begin
	     array[count] = 1 << count;
	  end

	$writememb("work/writememb2.dat", array, 6, 1);

	for(count = 0; count <= 7; count = count + 1)
	  begin
	     array[count] = 'bx;
	  end

	error = 0;

	$readmemb("work/writememb2.dat", array);

	for(count = 0; count <= 5; count = count + 1)
	  begin
	     if(array[count] !== (1<<(6-count)))
               begin
		  error = 1;
		  $display("FAILED - array[count] == %h, s/b %h",
			   array[count], 1 << count);
               end
	  end

	if(error == 0)
	  $display("PASSED\n");
	$finish ;
     end
endmodule