1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
  
     | 
    
      // DESCRIPTION: Verilator: Verilog Test module
//
// This file ONLY is placed under the Creative Commons Public Domain, for
// any use, without warranty, 2022 by Antmicro Ltd.
// SPDX-License-Identifier: CC0-1.0
module t (/*AUTOARG*/);
   wire a;
   assign (weak0, weak1) a = 1;
   assign (weak0, supply1) a = 1;
   assign (strong0, strong1) a = 0;
   wire (weak0, weak1) b = 1;
   assign (strong0, strong1) b = 0;
   wire [1:0] c;
   assign (weak0, supply1) c = 2'b11;
   assign (supply0, pull1) c = 2'b11;
   assign (strong0, strong1) c = 0;
   supply0 d;
   assign (strong0, strong1) d = 1;
   wire (supply0, supply1) e = 1'bz;
   assign (weak0, weak1) e = 1;
   always begin
      if (a && !b && c === 2'b11 && !d && e) begin
         $write("*-* All Finished *-*\n");
         $finish;
      end
      else begin
         $write("Error: a = %b, b = %b, c = %b, d = %b, e = %b ", a, b, c, d, e);
         $write("expected: a = 1, b = 0, c = 11, d = 0, e = 1\n");
         $stop;
      end
   end
endmodule
 
     |