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

  1. STATE OUTPUT EQUATION
  2. Overview
  3. State output equations control state-machine outputs.
  4.  
  5.  
  6. Syntax──────────────────────────────────────────────────────────────
  7.  
  8. Moore machines     Statename.OUTF     =     Output expression
  9.  
  10. Mealy machines     Statename.OUTF     =     Condition 1 -> Output 1
  11.                                             + Condition 2 -> Output 2
  12.                                             ...
  13.                                             + Condition n -> Output n
  14.                                             +-> Local default
  15. ────────────────────────────────────────────────────────────────────
  16.  
  17. Device Support:
  18. PAL10H20EV8    PAL16R4    PAL16R6    PAL16R8     PAL16RP4
  19. PAL16RP6       PAL16RP8   PALCE16V8  PAL18U8     PAL20R4     PAL20R6
  20. PAL20R8        PAL20RS4   PAL20RS8   PAL20RS1    PALCE20V8   PAL20X4
  21. PAL20X8        PAL20X10   PAL22RX8   PAL22V10    PAL23S8     PAL24R10
  22. PAL24R4        PAL24R8    PAL26V12   PALCE29M16  PALCE29MA16 PAL32R16
  23. PAL32VX10      PALCE610   PLS105     PLS167      PLS168      PLS30S16
  24. MACH 1         MACH 2
  25. ·
  26. Syntax
  27. Include output equations in the state segment of state-machine designs
  28. after setup and defaults and before the condition equations.  
  29.  
  30.  
  31. Syntax──────────────────────────────────────────────────────────────
  32.  
  33. Moore machines     Statename.OUTF     =     Output expression
  34.  
  35. Mealy machines     Statename.OUTF     =     Condition 1 -> Output 1
  36.                                             + Condition 2 -> Output 2
  37.                                             ...
  38.                                             + Condition n -> Output n
  39.                                             +-> Local default
  40. Example─────────────────────────────────────────────────────────────
  41.              ...
  42. Moore machines    TWO.OUTF            =    /CNT2 * CNT1 * /CNT0
  43.  
  44. Mealy machines     TWO.OUTF           =    RUN_UP -> /CNT2 * CNT1
  45.                                            * /CNT0
  46.                                            ...
  47.                                            TEST -> CNT2 * CNT1 * CNT0
  48.                                            +-> /CNT2 * /CNT1 * /CNT0
  49.                                            ...
  50. ────────────────────────────────────────────────────────────────────
  51. ·
  52. Definitions
  53.  
  54. Statename       Identifies the name of the state as specified in the
  55.                 state assignments or state transition equations.  It
  56.                 must be unique and can have up to 14 alphanumeric
  57.                 characters.
  58.  
  59. Outputs         These are pin names with their appropriate logic sense
  60.                 to create the desired logic values.  Outputs are
  61.                 separated by an asterisk, *.  In the syntax example,
  62.                 when the Moore machine is in state TWO, the output
  63.                 bits CNT2, CNT1 and CNT0 will be 0, 1, and 0
  64.                 respectively. When the Mealy machine is in state TWO
  65.                 and the inputs match the condition defined as RUN_UP,
  66.                 the output bits CNT2, CNT1 and CNT0 will be 0, 1, and
  67.                 0 respectively.
  68.  
  69.                 You specify the output values regardless of pin
  70.                 polarity.  The software adjusts polarity as necessary.
  71.  
  72. Conditions      In a Mealy machine, the outputs depend on the current
  73.                 state and the current input conditions.  This entry
  74.                 specifies the conditions under which the specified
  75.                 output will occur.  The condition names must be
  76.                 defined in the conditions section of the state machine
  77.                 design.
  78.  
  79.                 If the condition consists of a single input, the input
  80.                 name may be used in place of the condition name.  You
  81.                 can use VCC to specify an unconditional output.
  82.  
  83.                 Moore machine outputs do not have conditions since
  84.                 their outputs are determined only by the present
  85.                 state.
  86.  
  87. Local Default   This output is generated if none of the conditions is
  88.                 satisfied.  Local defaults are valid only for Mealy
  89.                 machines.  Local defaults override global defaults.
  90. ·
  91. Use
  92. You can place output equations anywhere within the state segment.  You
  93. may prefer to have all the output equations after all the state
  94. equations or have each state equation with its corresponding output
  95. equation.
  96.  
  97. You can use the following operators in state output equations.
  98.  
  99.       Operator             Definition
  100.       ─────────────────────────────────────────────────
  101.         ->        Conditional output for Mealy machines
  102.        +->        Local default for a Mealy machine
  103.         =         Combinatorial assignment operator
  104.        :=         Registered assignment operator
  105.  
  106. For Mealy machines, conditions in .OUTF don't have to match conditions
  107. in the state-transition equations.  However, typically these
  108. conditions match.
  109.  
  110. You can use the state bits as outputs by making the output pins the
  111. same as the state bits and performing manual state bit assignment.
  112. In this case, you can omit the output equations.  If you do this,
  113. don't use the following constructs.
  114.  
  115. ■ DEFAULT_OUTPUT
  116. ■ OUTPUT_HOLD
  117.  
  118. You can have some outputs defined with state bits and some outputs
  119. defined with output equations.
  120.  
  121. If you don't use the state bits as outputs, you must specify output
  122. equations.  Default output specifications are optional.
  123.  
  124. Registered Mealy machine outputs are valid one clock cycle after
  125. reaching the new state.  Combinatorial Mealy and Moore machine outputs
  126. and registered Moore machine outputs are valid on reaching the new
  127. state.  Undefined output pins have a don't-care value.
  128. ·
  129. Related Topics
  130. CONDITIONS
  131. DEFAULT_BRANCH
  132. DEFAULT_OUTPUT
  133. Local Default
  134. MEALY_MACHINE
  135. MOORE_MACHINE
  136. Operator
  137. OUTPUT_HOLD
  138. STATE
  139. State Assignment Equation
  140. State Transition Equation
  141. ·
  142.