data/full_repos/permissive/445929378/encrypting_entity_tb.v
1: b'%Warning-STMTDLY: data/full_repos/permissive/445929378/encrypting_entity_tb.v:49: Unsupported: Ignoring delay on this delayed statement.\n  #10 clk = ~clk;\n  ^\n                  ... Use "/* verilator lint_off STMTDLY */" and lint_on around source to disable this message.\n%Warning-STMTDLY: data/full_repos/permissive/445929378/encrypting_entity_tb.v:67: Unsupported: Ignoring delay on this delayed statement.\n      #5;\n      ^\n%Warning-STMTDLY: data/full_repos/permissive/445929378/encrypting_entity_tb.v:72: Unsupported: Ignoring delay on this delayed statement.\n      #200;\n      ^\n%Error: data/full_repos/permissive/445929378/encrypting_entity_tb.v:29: Cannot find file containing module: \'encrypting_entity\'\n   encrypting_entity uut(\n   ^~~~~~~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/445929378,data/full_repos/permissive/445929378/encrypting_entity\n             data/full_repos/permissive/445929378,data/full_repos/permissive/445929378/encrypting_entity.v\n             data/full_repos/permissive/445929378,data/full_repos/permissive/445929378/encrypting_entity.sv\n             encrypting_entity\n             encrypting_entity.v\n             encrypting_entity.sv\n             obj_dir/encrypting_entity\n             obj_dir/encrypting_entity.v\n             obj_dir/encrypting_entity.sv\n%Error: Exiting due to 1 error(s), 3 warning(s)\n        ... See the manual and https://verilator.org for more assistance.\n'
module encrypting_entity_tb #(parameter SIZE = 64);


   reg clk;
   reg rst;
   reg [SIZE-1 : 0] p;
   reg 		    p_tvalid;
   reg [SIZE-1 : 0] a_key;
   reg 		    a_key_tvalid;
   reg [SIZE-1 : 0] m;
   reg 		    m_tvalid;


   wire [SIZE-1 : 0] public_key_tdata;
   wire 	     public_key_tvalid;
   reg 		     public_key_tready;
   
   wire [SIZE-1 : 0] cryptogram_tdata;
   wire 	     cryptogram_tvalid;   
   reg 		     cryptogram_tready;
   
   wire 	     output_tready;

   assign output_tready = public_key_tready & cryptogram_tready;


   encrypting_entity uut(
			 .clk(clk), 
			 .rst(rst), 
			 .input_p_tdata(p), 
			 .input_p_tvalid(p_tvalid), 
			 .input_a_key_tdata(a_key), 
			 .input_a_key_tvalid(a_key_tvalid),
			 .input_m_tdata(m), 
			 .input_m_tvalid(m_tvalid), 
			 .output_a_tdata(public_key_tdata), 
			 .output_a_tvalid(public_key_tvalid), 
			 .output_a_tready(output_tready), 
			 .output_b_tdata(cryptogram_tdata), 
			 .output_b_tvalid(cryptogram_tvalid), 
			 .output_b_tready(output_tready)
			 );
   
   initial begin
      clk = 0;
      forever begin
	 #10 clk = ~clk;
      end
   end

   initial begin

      rst = 0;
      p = 64'd18446744073709551337;
      p_tvalid = 1;
      a_key = 64'd1276454389566241996;
      a_key_tvalid = 1;

      m = 64'd98154719832413245;
      m_tvalid = 1;

      
      public_key_tready = 0;
      cryptogram_tready = 0;
      #5;
      public_key_tready = 1;
      cryptogram_tready = 1;
      

      #200;
      


   end
   
endmodule
module encrypting_entity_tb #(parameter SIZE = 64);



   reg clk;
   reg rst;
   reg [SIZE-1 : 0] p;
   reg 		    p_tvalid;
   reg [SIZE-1 : 0] a_key;
   reg 		    a_key_tvalid;
   reg [SIZE-1 : 0] m;
   reg 		    m_tvalid;


   wire [SIZE-1 : 0] public_key_tdata;
   wire 	     public_key_tvalid;
   reg 		     public_key_tready;
   
   wire [SIZE-1 : 0] cryptogram_tdata;
   wire 	     cryptogram_tvalid;   
   reg 		     cryptogram_tready;
   
   wire 	     output_tready;

   assign output_tready = public_key_tready & cryptogram_tready;


   encrypting_entity uut(
			 .clk(clk), 
			 .rst(rst), 
			 .input_p_tdata(p), 
			 .input_p_tvalid(p_tvalid), 
			 .input_a_key_tdata(a_key), 
			 .input_a_key_tvalid(a_key_tvalid),
			 .input_m_tdata(m), 
			 .input_m_tvalid(m_tvalid), 
			 .output_a_tdata(public_key_tdata), 
			 .output_a_tvalid(public_key_tvalid), 
			 .output_a_tready(output_tready), 
			 .output_b_tdata(cryptogram_tdata), 
			 .output_b_tvalid(cryptogram_tvalid), 
			 .output_b_tready(output_tready)
			 );
   
   initial begin
      clk = 0;
      forever begin
	 #10 clk = ~clk;
      end
   end

   initial begin

      rst = 0;
      p = 64'd18446744073709551337;
      p_tvalid = 1;
      a_key = 64'd1276454389566241996;
      a_key_tvalid = 1;

      m = 64'd98154719832413245;
      m_tvalid = 1;

      
      public_key_tready = 0;
      cryptogram_tready = 0;
      #5;
      public_key_tready = 1;
      cryptogram_tready = 1;
      

      #200;
      


   end
   
endmodule