top of page
5.1.6 Supply nets
-
The supply0 and supply1 nets can be used to model the power in a circuit. These nets shall have supply strengths.
​
supply1 VDD; //all nets are connected to power supply
​​​
supply0 GND; //all nets are connected to ground

Verilog
module constant_inputs;
supply1 VDD;
supply0 GND;
wire out;
// Simple AND gate using supply nets
and u1 (out, VDD, GND); // VDD & GND = 0
initial
$display("out = %b", out);
endmodule
Output
out = 0
bottom of page