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

  1. STATE ASSIGNMENT EQUATION
  2. Overview
  3. State assignment equations define the unique bit codes to be assigned
  4. to each state name used in the design.  The bit codes are composed of
  5. state bits that are stored in flip flops.
  6.  
  7.  
  8. Syntax──────────────────────────────────────────────────────────────
  9.  
  10.         State name    Assignment Operator     State bits
  11. ────────────────────────────────────────────────────────────────────
  12.  
  13. Device Support:
  14. PAL10H20EV8    PAL16R4    PAL16R6    PAL16R8     PAL16RP4    PAL16RP6
  15. PAL16RP8       PALCE16V8  PAL18U8    PAL20R4     PAL20R6     PAL20R8
  16. PAL20RS4       PAL20RS8   PAL20RS10  PALCE20V8   PAL20X4     PAL20X8
  17. PAL20X10       PAL22RX8   PAL22V10   PAL23S8     PAL24R10    PAL24R4
  18. PAL24R8        PAL26V12   PALCE29M16 PALCE29MA16 PAL32R16    PAL32VX10
  19. PALCE610       PLS105     PLS167     PLS168      PLS30S16    MACH 1
  20. MACH 2
  21. ·
  22. Syntax
  23. Use state-assignment equations in the state segment of state-machine 
  24. designs.
  25.  
  26. Syntax──────────────────────────────────────────────────────────────
  27.  
  28.         State name    Assignment Operator     State bits
  29. Example─────────────────────────────────────────────────────────────
  30.  
  31.     STATE
  32.         ;State Assignments
  33.         S1                        =       /STATEBIT1 * /STATEBIT2
  34.         S2                        =       /STATEBIT1 * STATEBIT2
  35.         S3                        =       STATEBIT1 * /STATEBIT2
  36.         S4                        =       STATEBIT1 * STATEBIT2
  37.         ...
  38.         ;State Equations
  39.         S1 := FC -> S3 
  40.            + FCC -> S7
  41.         ...
  42. ────────────────────────────────────────────────────────────────────
  43. ·
  44. Definitions
  45.  
  46. State Name      User-defined state name.  It must be unique and can
  47.                 have up to 14 alphanumeric characters.  It cannot
  48.                 contain operators or reserved words.
  49.  
  50. Assignment Operator    Include a symbol that defines a specific
  51.                        operation as interpreted by the software when
  52.                        processing design files.
  53.  
  54. State Bits      The state bit names compose the bit code.  State bit
  55.                 names are the register names, as defined in the pin or
  56.                 node statements.  Use an asterisk, *, to separate
  57.                 state bits and polarity notation to indicate the value
  58.                 of each state bit.
  59. ·
  60. Use
  61. State assignments follow state defaults and precede condition
  62. equations.  Use the assignment operator, =,  to define state
  63. assignments.
  64.  
  65. Each state assignment must include the complete set of state bits.
  66. If you use three state bits for eight states, each assignment must
  67. include all three bits.
  68.  
  69. The syntax example uses two state bits, Statebit1 and Statebit2.  When
  70. both are low, the device is in state S1.  When Statebit1 is low and
  71. Statebit2 is high, the device is in state S2.  When Statebit1 is high
  72. and Statebit2 is low, the device is in state S3 and when both are
  73. high, the device is in state S4.
  74.  
  75. For large designs where you are using many state bits, such as six or 
  76. more, you may not want to list all possible state bit combinations.
  77. However, not defining all possible state bit combinations leaves some
  78. undefined or "illegal" states.
  79.  
  80. The present state of a state machine is defined by the contents of the
  81. state register, which consists of n bits capable of defining 2E[n]
  82. possible  states.  Before you can determine the present state, you
  83. must know the contents of all n bits.  For example, three-state
  84. register bits define up to 2E3, or eight, possible states.
  85.  
  86. To define a state machine with 2E[n] states, you need a device with n
  87. registered outputs or buried registers (nodes) to use as state
  88. register bits.  For example, the PAL16R8 has eight registered outputs
  89. and accommodates up to 2E8, 256, states, provided you do not use any
  90. of the registers for other purposes such as independent outputs.
  91.  
  92. If you do not assign state bits, the software assigns them
  93. automatically.  The software assigns the state bits to outputs that
  94. aren't defined by pin or node statements.  Look at the Execution log-
  95. file to determine the automatic state bit assignments made by the
  96. software.
  97. ·
  98. Related Topics
  99. STATE
  100. State Equation
  101. ·
  102.