module wandtest; wand [7:0] y; integer i; pullup pu[7:1] (y[7:1]); // array of 7 instances buf (supply0, supply1) g7 (y[7],0); buf (strong0, strong1) g6 (y[6],0); buf ( pull0, pull1) g5 (y[5],0); buf ( weak0, weak1) g4 (y[4],0); buf ( highz0, strong1) g3 (y[3],0); buf (strong0, highz1) g2 (y[2],0); initial begin #1 for (i=7; i>=0; i=i-1) $display("\n %0d: pull1 wand with 0: y=%v\n", i, y[i]); #1 $finish; end endmodule // 7: pull1 wand with 0: y=Su0 // // // 6: pull1 wand with 0: y=St0 // // // 5: pull1 wand with 0: y=Pu0 // // // 4: pull1 wand with 0: y=Pu1 // // // 3: pull1 wand with 0: y=Pu1 // // // 2: pull1 wand with 0: y=St0 // // // 1: pull1 wand with 0: y=Pu1 // // // 0: pull1 wand with 0: y=HiZ