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

  1. EXPRESSION
  2. Overview
  3. Expressions can be used in both Boolean and state-machine designs as
  4. part of a Boolean or functional equation or in a state equation or in
  5. equations in simulation commands.
  6.  
  7.  
  8. Syntax───────────────────────────────────────────────────────────────
  9.  
  10.      Pn       Assignment Operator       Expression
  11.  
  12. ─────────────────────────────────────────────────────────────────────
  13.  
  14. Device support: All PLD devices.
  15. ·
  16. Syntax
  17. You can include expressions in the equations, state, or simulation
  18. segments of any PDS file or in a separate simulation file.
  19.  
  20. Syntax───────────────────────────────────────────────────────────────
  21.  
  22.      Pn       Assignment Operator       Expression
  23. Example──────────────────────────────────────────────────────────────
  24.  
  25.   EQUATIONS
  26.      Q1                =                Q1 * Q0                                                   + /Q1 * /Q0
  27.                                         + /FRM1B * SOF * SUNK
  28.                                         + RSTB
  29.   ...
  30. ─────────────────────────────────────────────────────────────────────
  31. ·
  32. Definitions
  33.  
  34. Pn              Identifies the name of the output pin or node defined
  35.                 in the corresponding statement in the declaration
  36.                 segment of a PDS file.  Once declared, you can include
  37.                 the name in an equation or expression.
  38.  
  39. Assignment      Assigns the symbol that defines the appropriate
  40. Operator        operation interpreted by the software when processing
  41.                 design files.
  42.  
  43. Expression      Assigns a group of signal values or product terms on
  44.                 the right side of an equation, represented as product,
  45.                 *, and sum, +, lines.  The product operator is a
  46.                 logical AND function and the sum operator is a logical
  47.                 OR function.
  48.  
  49.                 All values in an expression for a PLD design are
  50.                 signal names that must be defined in pin and node
  51.                 statements in the declaration segment of the PDS file
  52.                 before their use elsewhere.
  53.  
  54.                 Expressions in Boolean equations use Boolean-logic
  55.                 operators to combine the values of pins and nodes.
  56.                 State equations use Boolean expressions to define
  57.                 states and their outputs.  Functional equations use
  58.                 Boolean expressions to define inputs.
  59. ·
  60. Use
  61. When using expressions, the following conventions should be observed.
  62.  
  63. ■    Place the expression on the right side of a Boolean, functional,
  64.      or state equation.
  65.  
  66. ■    Use spaces or tab characters between pin or node names and logic
  67.      operators.
  68.  
  69. ■    Place each part of the expression that uses the sum operator, +,
  70.      on a separate line.
  71.  
  72. The following table lists the order of precedence for unparenthesised
  73. expressions.
  74.  
  75.     Precedence    Operator/Definition
  76.  
  77.         1              /    NOT
  78.         2              *    AND
  79.         3              +    OR
  80.         4             :+:   XOR
  81.         4             :*:   XNOR
  82. ·
  83. Related Topics
  84. Boolean Equation
  85. Functional Equation
  86. State Equation
  87. ·
  88.