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

  1. VECTOR
  2. Overview
  3. VECTOR notation allows you to assign a set of descriptions to a set of
  4. pins or nodes.  It also allows you to compare the value of a set of
  5. pins or nodes to a radix in a CASE statement.
  6.  
  7.  
  8. Syntax──────────────────────────────────────────────────────────────
  9.  
  10.         PIN       x1..xn       NUM[y1..yn]
  11. ────────────────────────────────────────────────────────────────────
  12.  
  13.  
  14. Device Support:  All PLD devices.
  15. ·
  16. Syntax
  17. Use vector notation in Boolean and state-machine designs.
  18.  
  19. Syntax──────────────────────────────────────────────────────────────
  20.  
  21.         PIN       x1..xn       NUM[y1..yn]
  22. Example─────────────────────────────────────────────────────────────
  23.  
  24.     DECLARATION
  25.  
  26.         PIN 1 INA COMB
  27.         ...
  28.         PIN       5..2         OUT[4..1]
  29.         PIN       6, 10..8     DATA[4..1]
  30.         PIN       18..11       ADD[7..0]
  31.         ...
  32.     EQUATIONS
  33.     ...
  34.     CASE                      (ADD[7..0])
  35.             BEGIN
  36.                     #h0F:
  37.             BEGIN
  38.             ...
  39.             END
  40.         END
  41.     ...
  42. ────────────────────────────────────────────────────────────────────
  43. ·
  44. Definitions
  45.  
  46. x1..xn          This notation specifies the user-defined pin number
  47.                 range.  You must have the same number of pin numbers
  48.                 as pin names.
  49.  
  50. y1..yn          This notation specifies the user-defined pin name
  51.                 range.  You must have the same number of pin names as
  52.                 pin numbers.
  53.  
  54.                 VECTOR is essentially a dual range notation: "for this
  55.                 range of pins, use this range of names."
  56. ·
  57. Use
  58. To use VECTOR notation, you must do the following.
  59.  
  60. ■    Declare all pins in the vector in one pin statement.
  61.  
  62. ■    Use subscripted pin or node names with the format NAME[1] rather
  63.       than NAME 1.
  64.  
  65. You can include input and output pins in the same vector if your
  66. application calls for it, but you cannot include pins and nodes in the
  67. same vector.
  68.  
  69. In the syntax example, the software converts the pin definitions as
  70. follows:
  71.  
  72.      PIN    2    OUT[1]
  73.      PIN    3    OUT[2]
  74.      ...
  75.      PIN    18   ADD[7]
  76.  
  77. In the CASE statement, the software tests the value on pins ADD[7]
  78. through ADD[0].  If they match the hex value 0F, the instructions
  79. between the Begin and End statement are executed.
  80. ·
  81. Related Topics
  82. GROUP
  83. OPERATOR
  84. STRING
  85. ·
  86.