Initial

LRM §9.9.1.

The initial procedural block statement is executed only once.

Syntax:

initial
  statement 

Description:

The initial procedural block statement is executed only once, starting at the beginning of the simulation.

An initial block containing more than one statement must enclose the statements in a begin-end or fork-join block (see Begin and Fork).

Example:

initial
  fork
    Q = 16'h0000;
    #20 Q = 16'hC10A;
    #40 Q = 16'hAFE0;
  join

See also:

Always, Begin, Fork