Assert Statement (AHDL)

The Assert Statement allows you to test the validity of any arbitrary expression that uses parameters, numbers, or evaluated functions, or test the used or unused status of a port.

The following example shows an Assert Statement:

ASSERT (WIDTH > 0)
        REPORT          "Width (%) must be a positive integer" WIDTH
        SEVERITY        ERROR
        HELP_ID         INTVALUE;       -- for internal Altera use only

The Assert Statement has the following characteristics: