AHDL

Defaults Statement



The Defaults Statement allows you to specify default values for variables used in Truth Table, If Then, and Case Statements. Since active-high signals automatically default to GND, Defaults Statements are required only for active-low signals.

NOTE
  1. You should not confuse default values for variables with default values for ports that are assigned in the Subdesign Section.

  2. Defaults Statements must follow the rules described in Defaults Statement Rules.

The following example shows a Defaults Statement:

BEGIN
   DEFAULTS
      a = VCC;
   END DEFAULTS;

   IF y & z THEN
      a = GND;	% a is active low %
   END IF;
END;

The Defaults Statement has the following characteristics:


Back to Top

- PLDWorld -

 

Created by chm2web html help conversion utility.