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

  1. STATE
  2. Overview
  3. Use the STATE keyword to identify the state segment of state-machine 
  4. designs.  The state segment contains setups, defaults, and state 
  5. equations.
  6.  
  7.  
  8. Syntax──────────────────────────────────────────────────────────────
  9.  
  10.     STATE
  11.  
  12.     State Setup and Defaults
  13.     State Equations
  14.         Transition Equations
  15.         Output Equations
  16.         State Assignment Equations
  17.         Condition Equations
  18. ────────────────────────────────────────────────────────────────────
  19.  
  20. Device Support:
  21. PAL10H20EV8    PAL16R4    PAL16R6    PAL16R8     PAL16RP4    PAL16RP6
  22. PAL16RP8       PALCE16V8  PAL18U8    PAL20R4     PAL20R6     PAL20R10
  23. PAL20RS4       PAL20RS8   PAL20RS10  PALCE20V    PAL20X4     PAL20X8
  24. PAL20X10       PAL22RX8   PAL22V10   PAL23S8     PAL24R10    PAL24R4
  25. PAL24R8        PAL26V12   PALCE29M16 PALCE29MA16 PAL32R16    PAL32VX10
  26. PALCE610       PLS105     PLS167     PLS168      PLS30S16    MACH 1
  27. MACH 2
  28. ·
  29. Syntax
  30. Use this state keyword in the PDS file after the declaration segment.
  31. If  your design contains a mix of state machine and Boolean equations,
  32. it can appear before or after the Boolean segment.
  33.  
  34. Syntax──────────────────────────────────────────────────────────────
  35.  
  36.     STATE
  37.  
  38.     State Setup and Defaults
  39.     State Equations
  40.         Transition Equations
  41.         Output Equations
  42.         State Assignment Equations
  43.         Condition Equations
  44.  
  45. Example─────────────────────────────────────────────────────────────
  46.     STATE
  47.  
  48.         ;State Setup and Defaults
  49.         MOORE MACHINE
  50.         START_UP := POWER_UP -> S1
  51.         DEFAULT_BRANCH HOLD_STATE
  52.         ;State  Transition Equations
  53.         S1 := COND1-> S3 
  54.               + COND2 -> S7
  55.         ...
  56.         ;State  Output Equations
  57.         S1.OUTF = OUT1*/OUT2
  58.         ...
  59.         ;State Assignment Equations
  60.         S1 = /STATEBIT1 * /STATEBIT2
  61.         ...
  62.         ;State Condition Equations
  63.         CONDITIONS
  64.         COND1 = IN1 * /IN2 * IN3
  65.         ...
  66. ────────────────────────────────────────────────────────────────────
  67. ·
  68. Definitions
  69.  
  70. Setup and       Statements at the beginning of the state segment
  71. Defaults        identify the state machine.  CLKF, MASTER_RESET,
  72.                 MEALY_MACHINE, MOORE_MACHINE, START_UP, and
  73.                 START_UP.OUTF appear in this section.
  74.  
  75.                 State-machine designs can have global and local
  76.                 defaults.  Global defaults are defined by
  77.                 DEFAULT_BRANCH, DEFAULT_OUTPUT, and OUTPUT_HOLD. Local
  78.                 defaults are defined in the state equations with the
  79.                 local default operator, +->.
  80.  
  81. State           There are four types of state-machine equations.
  82. Equations       They have the following functions.
  83.  
  84.                 ■    Transition Equations (required)
  85.  
  86.  
  87.                 For each state, these conditions specify what the next
  88.                 state will be under various conditions. See Condition
  89.                 Equations below.
  90.  
  91.                 ■    Output Equations (optional)
  92.  
  93.                 These equations specify the outputs of the state
  94.                 machine. No output equations are required in cases
  95.                 where the state bits themselves are the outputs.
  96.  
  97.                 ■    State Assignment Equations (optional)
  98.  
  99.                 These equations specify the bit code to be assigned to
  100.                 each state name used in the design.  If these
  101.                 equations are omitted, the software assigns the bit
  102.                 codes automatically.
  103.  
  104.                 ■    Condition Equations (normally required)
  105.  
  106.                 These equations specify a condition name for each set
  107.                 of input values used to determine a transition. You
  108.                 can use input names directly only if a single input
  109.                 controls the transition; otherwise, you must use
  110.                 condition names.
  111. ·
  112. Use
  113. The state segment follows the declaration segment of the PDS file.  If 
  114. the design has an equations segment, the state segment can precede or 
  115. follow it.
  116.  
  117. Important:  The state segment typically replaces the equations
  118.             segment. It is possible to modify state equations with
  119.             Boolean equations by including both equation and state
  120.             segments, in any order. In this case, you must select the
  121.             Merge Mixed Mode option from the Compile Setup menu.
  122.  
  123.  
  124. The STATE segment supports the following 
  125. reserved words:  CLKF, CONDITIONS, DEFAULT_BRANCH, DEFAULT_OUTPUT, 
  126. HOLD_STATE, MASTER_RESET, MEALY_MACHINE, MOORE_MACHINE, NEXT_STATE, 
  127. .OUTF, OUTPUT_ENABLE, OUTPUT_HOLD, START_UP, STATE. 
  128. ·
  129. Related Topics
  130. .CLKF
  131. CONDITIONS
  132. DEFAULT_BRANCH
  133. DEFAULT_OUTPUT
  134. Local Default
  135. MASTER_RESET
  136. MEALY_MACHINE
  137. MOORE_MACHINE
  138. OUTPUT_HOLD
  139. START_UP
  140. State Assignment Equation
  141. State Equation
  142. State Transition Equation
  143. ·
  144.