Article ID: 000073664 Content Type: Troubleshooting Last Reviewed: 01/02/2017

What happens to non-specified values in AHDL If Then or Case Statements?

Environment

BUILT IN - ARTICLE INTRO SECOND COMPONENT
Description For AHDL If Then or Case Statements, a non-specified value will default to a logic zero. For example:

IF (a) THEN
    b = c;
END IF;

When a is high, b gets the value of c, otherwise, when a is low, b will be a logic zero.

You can use a Default section directly after the BEGIN statement in the AHDL file to make the default value high. For example:

BEGIN DEFAULTS
    a = VCC;
END DEFAULTS;

When using a Case Statement to define a state machine, a non-specified value will default to the current state.

Related Products

This article applies to 1 products

Intel® Programmable Devices