data/full_repos/permissive/116563702/combitional in always/full adder/advanced_testBench.v
1: b'%Error: Cannot find file containing module: in\n        ... Looked in:\n             data/full_repos/permissive/116563702/combitional/in\n             data/full_repos/permissive/116563702/combitional/in.v\n             data/full_repos/permissive/116563702/combitional/in.sv\n             in\n             in.v\n             in.sv\n             obj_dir/in\n             obj_dir/in.v\n             obj_dir/in.sv\n%Error: Cannot find file containing module: always/full\n%Error: Cannot find file containing module: adder,data/full_repos/permissive/116563702\n%Error: Cannot find file containing module: data/full_repos/permissive/116563702/combitional\n%Error: Cannot find file containing module: adder/advanced_testBench.v\n%Error: Exiting due to 5 error(s)\n'
module testbench;
   reg a, b, cin, cout_exp, sum_exp, clk, reset;
   wire cout, sum;
   reg [4:0] i, error;
   reg [4:0] testvector[8:1];

   fulladder uut(a, b, cin, cout, sum);

   always
     begin
	#5 clk = ~clk;
     end

   initial
     begin
	clk = 0;
	i = 1;
	error = 0;
	$readmemb("/media/nipun/789CB1599CB1131C/Nipun Pruthi/Study/IITR/vivado/files/understanding/combitional in always/full adder/test_data.txt", testvector);
	reset = 1;
	#10 reset = 0;
     end

   always @(posedge clk)
     begin
	#1 {a,b,cin,cout_exp,sum_exp} = testvector[i];
     end

   always @(negedge clk)
     begin
	if(~reset)
	  begin
	     if ({cout_exp,sum_exp} !== {cout,sum})
	       begin
		  $display("Error: inputs = %b",{a,b,cin});
		  $display("Output: %b cout,sum(%b expected)",{cout,sum},{cout_exp,sum_exp});
		  error = error + 1;
	       end
	     else
	       begin
	       $display("Passed: inputs = %b",{a,b,cin});
	       end
	     i = i + 1;
	     if(testvector[i] === 5'bx)
	       begin
		  $display("%d tests complete with %d errors", i, error);
		  $finish;
	       end
	  end
     end
endmodule
module testbench;

   reg a, b, cin, cout_exp, sum_exp, clk, reset;
   wire cout, sum;
   reg [4:0] i, error;
   reg [4:0] testvector[8:1];

   fulladder uut(a, b, cin, cout, sum);

   always
     begin
	#5 clk = ~clk;
     end

   initial
     begin
	clk = 0;
	i = 1;
	error = 0;
	$readmemb("/media/nipun/789CB1599CB1131C/Nipun Pruthi/Study/IITR/vivado/files/understanding/combitional in always/full adder/test_data.txt", testvector);
	reset = 1;
	#10 reset = 0;
     end

   always @(posedge clk)
     begin
	#1 {a,b,cin,cout_exp,sum_exp} = testvector[i];
     end

   always @(negedge clk)
     begin
	if(~reset)
	  begin
	     if ({cout_exp,sum_exp} !== {cout,sum})
	       begin
		  $display("Error: inputs = %b",{a,b,cin});
		  $display("Output: %b cout,sum(%b expected)",{cout,sum},{cout_exp,sum_exp});
		  error = error + 1;
	       end
	     else
	       begin
	       $display("Passed: inputs = %b",{a,b,cin});
	       end
	     i = i + 1;
	     if(testvector[i] === 5'bx)
	       begin
		  $display("%d tests complete with %d errors", i, error);
		  $finish;
	       end
	  end
     end
endmodule