data/full_repos/permissive/143278/ivltests/pr2219441.v
1: b'%Warning-STMTDLY: data/full_repos/permissive/143278/ivltests/pr2219441.v:13: Unsupported: Ignoring delay on this delayed statement.\n    #1 if (Z !== 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/pr2219441.v:19: Unsupported: Ignoring delay on this delayed statement.\n    #1 if (Z !== 2\'b10) begin\n    ^\n%Warning-STMTDLY: data/full_repos/permissive/143278/ivltests/pr2219441.v:25: Unsupported: Ignoring delay on this delayed statement.\n    #1 if (Z !== 2\'b01) begin\n    ^\n%Warning-STMTDLY: data/full_repos/permissive/143278/ivltests/pr2219441.v:31: Unsupported: Ignoring delay on this delayed statement.\n    #1 if (Z !== 2\'bzz) begin\n    ^\n%Error: Exiting due to 4 warning(s)\n        ... See the manual and https://verilator.org for more assistance.\n'
module top;
  reg passed;
  reg [1:0] sel;
  reg [1:0] A;
  wire [1:0] Z;

  parent parent(.sel(sel), .A(A), .Z(Z));

  initial begin
    passed = 1'b1;
    sel = 2'b11;
    A = 2'b00;
    #1 if (Z !== 2'b00) begin
      $display("FAILED: selected, expected 2'b00, got %b", Z);
      passed = 1'b0;
    end

    A = 2'b10;
    #1 if (Z !== 2'b10) begin
      $display("FAILED: selected, expected 2'b10, got %b", Z);
      passed = 1'b0;
    end

    A = 2'b01;
    #1 if (Z !== 2'b01) begin
      $display("FAILED: selected, expected 2'b01, got %b", Z);
      passed = 1'b0;
    end

    sel = 2'b00;
    #1 if (Z !== 2'bzz) begin
      $display("FAILED: deselected, expected 2'bzz, got %b", Z);
      passed = 1'b0;
    end

    if (passed) $display("PASSED");
  end
endmodule
module top;

  reg passed;
  reg [1:0] sel;
  reg [1:0] A;
  wire [1:0] Z;

  parent parent(.sel(sel), .A(A), .Z(Z));

  initial begin
    passed = 1'b1;
    sel = 2'b11;
    A = 2'b00;
    #1 if (Z !== 2'b00) begin
      $display("FAILED: selected, expected 2'b00, got %b", Z);
      passed = 1'b0;
    end

    A = 2'b10;
    #1 if (Z !== 2'b10) begin
      $display("FAILED: selected, expected 2'b10, got %b", Z);
      passed = 1'b0;
    end

    A = 2'b01;
    #1 if (Z !== 2'b01) begin
      $display("FAILED: selected, expected 2'b01, got %b", Z);
      passed = 1'b0;
    end

    sel = 2'b00;
    #1 if (Z !== 2'bzz) begin
      $display("FAILED: deselected, expected 2'bzz, got %b", Z);
      passed = 1'b0;
    end

    if (passed) $display("PASSED");
  end
endmodule