data/full_repos/permissive/143278/ivltests/pr1581580.v
1: b'%Warning-STMTDLY: data/full_repos/permissive/143278/ivltests/pr1581580.v:14: Unsupported: Ignoring delay on this delayed statement.\n      #1 if (q !== 2\'b00) begin\n      ^\n                  ... Use "/* verilator lint_off STMTDLY */" and lint_on around source to disable this message.\n%Warning-STMTDLY: data/full_repos/permissive/143278/ivltests/pr1581580.v:21: Unsupported: Ignoring delay on this delayed statement.\n      #1 if (q !== 2\'b01) begin\n      ^\n%Warning-STMTDLY: data/full_repos/permissive/143278/ivltests/pr1581580.v:27: Unsupported: Ignoring delay on this delayed statement.\n      #1 d = 2\'b10;\n      ^\n%Warning-STMTDLY: data/full_repos/permissive/143278/ivltests/pr1581580.v:28: Unsupported: Ignoring delay on this delayed statement.\n      #1 if (q !== 2\'b01) begin\n      ^\n%Error: Exiting due to 4 warning(s)\n        ... See the manual and https://verilator.org for more assistance.\n'
module test;

   parameter SIZE = 2;

   reg [SIZE-1:0] d ;
   reg		  c ;
   wire [SIZE-1:0] q ;

   unit_latch u_lat[SIZE-1:0] (.Q(q), .G(c), .D(d));

   initial begin
      d = 0;
      c = 1;
      #1 if (q !== 2'b00) begin
	 $display("FAILED -- Initial load failed.");
	 $finish;
      end

      d = 2'b01;

      #1 if (q !== 2'b01) begin
	 $display("FAILED -- Latch follow failed.");
	 $finish;
      end

      c = 0;
      #1 d = 2'b10;
      #1 if (q !== 2'b01) begin
	 $display("FAILED -- Latch hold failed.");
	 $finish;
      end

      $display("PASSED");
      $finish;
   end

endmodule
module test;


   parameter SIZE = 2;

   reg [SIZE-1:0] d ;
   reg		  c ;
   wire [SIZE-1:0] q ;

   unit_latch u_lat[SIZE-1:0] (.Q(q), .G(c), .D(d));

   initial begin
      d = 0;
      c = 1;
      #1 if (q !== 2'b00) begin
	 $display("FAILED -- Initial load failed.");
	 $finish;
      end

      d = 2'b01;

      #1 if (q !== 2'b01) begin
	 $display("FAILED -- Latch follow failed.");
	 $finish;
      end

      c = 0;
      #1 d = 2'b10;
      #1 if (q !== 2'b01) begin
	 $display("FAILED -- Latch hold failed.");
	 $finish;
      end

      $display("PASSED");
      $finish;
   end

endmodule