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

  1. START_UP
  2. Overview
  3. The START_UP keyword allows you to power up to a specific state or 
  4. asynchronously branch to a state whenever an initialization condition 
  5. occurs. 
  6.  
  7. The START_UP keyword is used in Moore machines.  START_UP.OUTF is used 
  8. in registered Mealy machines.
  9.  
  10.  
  11. Syntax──────────────────────────────────────────────────────────────
  12.  
  13.         START_UP      :=     POWER_UP -> State1 
  14.                              + Condition1 -> State2
  15.  
  16.         START_UP.OUTF :=     POWER_UP -> Outputs
  17.                              + Condition1 -> Outputs
  18. ────────────────────────────────────────────────────────────────────
  19.  
  20. Device Support:  All devices that support state machine descriptions.
  21. ·
  22. Syntax
  23. Use START_UP and START_UP.OUTF in the state segment of state-machine 
  24. designs.
  25.  
  26. Syntax──────────────────────────────────────────────────────────────
  27.  
  28.         START_UP      :=     POWER_UP -> State1 
  29.                              + Condition1 -> State2
  30.  
  31.         START_UP.OUTF :=     POWER_UP -> Outputs
  32.                              + Condition1 -> Outputs
  33. Example─────────────────────────────────────────────────────────────
  34.     STATE
  35.         ;State Setup and Defaults
  36.         ...
  37. Moore machines
  38.         START_UP      :=       POWER_UP -> S1
  39.                                + INIT -> S1
  40.         ...
  41.         ;Powers up and initializes to S1
  42.  
  43. Mealy machines
  44.         START_UP.OUTF :=     O1 * O2
  45.                              + INIT  -> O1*O2
  46.  
  47.         ;State Assignments
  48.         S1 = /STATEBIT1 * /STATEBIT2
  49.         ;S1 value is 00
  50.         ...
  51.         ;State Equations
  52.         S1 = FC -> S3 
  53.              + FCC -> S7
  54.         ...
  55. ────────────────────────────────────────────────────────────────────
  56. ·
  57. Definitions
  58.  
  59. State1          When power is applied to the device, it goes to this
  60.                 state.
  61.  
  62.                 ■    In devices that initialize with all flip-flops
  63.                      high or all flip- flops low, the START_UP command
  64.                      assigns the appropriate all-high or all-low
  65.                      state-bit code to the specified state.
  66.  
  67.                 ■    In devices with programmable power up, the
  68.                      START_UP command programs the device to power up
  69.                      in the specified state. If you specify a
  70.                      particular state-bit code using the manual
  71.                      state-bit assignment syntax, the software
  72.                      programs the flip-flops to initialize with the
  73.                      specified values.
  74.  
  75. Condition1      This user-defined condition specifies when an
  76.                 initialization occurs.  When the condition is true,
  77.                 the device is initialized asynchronously to state 2.
  78.  
  79.                 A condition must be defined in the condition section
  80.                 of the state machine design.  If the condition
  81.                 consists of a single input, the input name can be used
  82.                 in place of the condition name.
  83.  
  84. State2          This state occurs as a result of the initialization
  85.                 condition.  This state may differ from the power up
  86.                 state.
  87. ·
  88. Use
  89. Use initialization routines to ensure the state machine powers up in a
  90. known state or branches to a known state whenever the initialization
  91. condition occurs.
  92.  
  93. If you do not include a start-up statement, the device will power up
  94. in the state that appears in the first transition equation in the PDS
  95. file. The first line of the syntax example contains the power-up
  96. state.  When power is applied to the device, it goes to this state. It
  97. may be helpful to think of power-up as a "cold boot."
  98.  
  99. The second line of the start-up statement defines the initialization
  100. state.  Only devices with programmable initialization support this
  101. function of the start-up statement.
  102.  
  103. STARTUP.OUTF allows you to define the outputs at power-up and
  104. initialization.  This is especially useful for synchronous Mealy
  105. machines where outputs are delayed by one cycle from their respective
  106. states.
  107.  
  108. You cannot use a default branch in the START_UP statement.  
  109. ·
  110. Related Topics
  111. .OUTF
  112. State Equation
  113. ·
  114.