home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 15 / 15.iso / s / s205 / 1.ddi / BACKUP.001 / DOC_LREF_LR1.DOC < prev    next >
Encoding:
Text File  |  1991-02-28  |  3.2 KB  |  85 lines

  1. ASSIGNMENT OPERATOR
  2. Overview
  3. A symbol that defines a specific operation interpreted by the software
  4. when processing design files.  There are several assignment operators,
  5. which perform different functions depending on the software operation
  6. and where the operator appears.
  7.  
  8.  
  9. Syntax───────────────────────────────────────────────────────────────
  10.                      Pn     Assignment Operator    Expression
  11.  
  12. ─────────────────────────────────────────────────────────────────────
  13.  
  14. Device support: All PLD devices.
  15. ·
  16. Syntax
  17. You can use the assignment operator in equations, as shown below, and
  18. in state and conditions segments of a PDS file for either Boolean or
  19. state-machine descriptions.
  20.  
  21.  
  22. Syntax───────────────────────────────────────────────────────────────
  23.                      Pn     Assignment Operator    Expression
  24. Example──────────────────────────────────────────────────────────────
  25.                      Q0              =             EXT1
  26.                      Q1             :=             EXT2
  27.                      Q2             *=             EXT3
  28. ─────────────────────────────────────────────────────────────────────
  29. ·
  30. Definitions
  31.  
  32. Assignment Operator    The various assignment operators are defined
  33.                        below.  The := and *= operators are provided to
  34.                        support older PLD designs that include a pin
  35.                        list, which does not contain a storage type.
  36.  
  37.                 =   This universal assignment operator agrees with any
  38.                     data storage type: Combinatorial, registered, or
  39.                     latched.  You can use this assignment operator in
  40.                     expressions whether or not the pin or node
  41.                     statements contain a storage type.  This operator
  42.                     is best suited to new designs.
  43.  
  44.                 :=  This assignment operator defines a registered
  45.                     output.  The signals in the expression must be
  46.                     defined in either the pin or node statement as
  47.                     registered.  Otherwise, an error occurs and
  48.                     processing halts.
  49.  
  50.                 *=  This assignment operator defines a latched output.
  51.                     The signals in the expression must be defined in
  52.                     either the pin or node state- ment as latched or
  53.                     an error is reported during processing.
  54.  
  55. ·
  56. Use
  57. In the equations segment, the assignment operator performs two
  58. functions.
  59.  
  60. ■    It defines the output on the left side of the equation as a
  61.      function of the various inputs and feedback signals listed on the
  62.      right side.
  63.  
  64. ■    It defines the output storage type.
  65.  
  66. You can assign the storage type in a pin or node statement.  In this
  67. case, you can use the universal assignment operator, =, in equations
  68. or expressions.  If you use the := or *= operators, they must agree
  69. with the storage type defined in the pin or node statement or an error
  70. occurs.
  71.  
  72. You can use assignment operators in the state and conditions
  73. statements in the state-machine designs, as shown below.
  74.  
  75.         ...
  76.         STATE
  77.         MOORE_MACHINE   ZERO.OUTF = /CNT2 * /CNT1 * /CNT0
  78.         CONDITIONS  CNTUP = ENABLE * CNT_UP
  79.         ...
  80. ·
  81. Related Topics
  82. OPERATOR
  83. ·
  84.