home *** CD-ROM | disk | FTP | other *** search
- ≡
- STATE OUTPUT EQUATION
- Overview
- State output equations control state-machine outputs.
-
-
- Syntax──────────────────────────────────────────────────────────────
-
- Moore machines Statename.OUTF = Output expression
-
- Mealy machines Statename.OUTF = Condition 1 -> Output 1
- + Condition 2 -> Output 2
- ...
- + Condition n -> Output n
- +-> Local default
- ────────────────────────────────────────────────────────────────────
-
- Device Support:
- PAL10H20EV8 PAL16R4 PAL16R6 PAL16R8 PAL16RP4
- PAL16RP6 PAL16RP8 PALCE16V8 PAL18U8 PAL20R4 PAL20R6
- PAL20R8 PAL20RS4 PAL20RS8 PAL20RS1 PALCE20V8 PAL20X4
- PAL20X8 PAL20X10 PAL22RX8 PAL22V10 PAL23S8 PAL24R10
- PAL24R4 PAL24R8 PAL26V12 PALCE29M16 PALCE29MA16 PAL32R16
- PAL32VX10 PALCE610 PLS105 PLS167 PLS168 PLS30S16
- MACH 1 MACH 2
- ·
- Syntax
- Include output equations in the state segment of state-machine designs
- after setup and defaults and before the condition equations.
-
-
- Syntax──────────────────────────────────────────────────────────────
-
- Moore machines Statename.OUTF = Output expression
-
- Mealy machines Statename.OUTF = Condition 1 -> Output 1
- + Condition 2 -> Output 2
- ...
- + Condition n -> Output n
- +-> Local default
- Example─────────────────────────────────────────────────────────────
- ...
- Moore machines TWO.OUTF = /CNT2 * CNT1 * /CNT0
-
- Mealy machines TWO.OUTF = RUN_UP -> /CNT2 * CNT1
- * /CNT0
- ...
- TEST -> CNT2 * CNT1 * CNT0
- +-> /CNT2 * /CNT1 * /CNT0
- ...
- ────────────────────────────────────────────────────────────────────
- ·
- Definitions
-
- Statename Identifies the name of the state as specified in the
- state assignments or state transition equations. It
- must be unique and can have up to 14 alphanumeric
- characters.
-
- Outputs These are pin names with their appropriate logic sense
- to create the desired logic values. Outputs are
- separated by an asterisk, *. In the syntax example,
- when the Moore machine is in state TWO, the output
- bits CNT2, CNT1 and CNT0 will be 0, 1, and 0
- respectively. When the Mealy machine is in state TWO
- and the inputs match the condition defined as RUN_UP,
- the output bits CNT2, CNT1 and CNT0 will be 0, 1, and
- 0 respectively.
-
- You specify the output values regardless of pin
- polarity. The software adjusts polarity as necessary.
-
- Conditions In a Mealy machine, the outputs depend on the current
- state and the current input conditions. This entry
- specifies the conditions under which the specified
- output will occur. The condition names must be
- defined in the conditions section of the state machine
- design.
-
- If the condition consists of a single input, the input
- name may be used in place of the condition name. You
- can use VCC to specify an unconditional output.
-
- Moore machine outputs do not have conditions since
- their outputs are determined only by the present
- state.
-
- Local Default This output is generated if none of the conditions is
- satisfied. Local defaults are valid only for Mealy
- machines. Local defaults override global defaults.
- ·
- Use
- You can place output equations anywhere within the state segment. You
- may prefer to have all the output equations after all the state
- equations or have each state equation with its corresponding output
- equation.
-
- You can use the following operators in state output equations.
-
- Operator Definition
- ─────────────────────────────────────────────────
- -> Conditional output for Mealy machines
- +-> Local default for a Mealy machine
- = Combinatorial assignment operator
- := Registered assignment operator
-
- For Mealy machines, conditions in .OUTF don't have to match conditions
- in the state-transition equations. However, typically these
- conditions match.
-
- You can use the state bits as outputs by making the output pins the
- same as the state bits and performing manual state bit assignment.
- In this case, you can omit the output equations. If you do this,
- don't use the following constructs.
-
- ■ DEFAULT_OUTPUT
- ■ OUTPUT_HOLD
-
- You can have some outputs defined with state bits and some outputs
- defined with output equations.
-
- If you don't use the state bits as outputs, you must specify output
- equations. Default output specifications are optional.
-
- Registered Mealy machine outputs are valid one clock cycle after
- reaching the new state. Combinatorial Mealy and Moore machine outputs
- and registered Moore machine outputs are valid on reaching the new
- state. Undefined output pins have a don't-care value.
- ·
- Related Topics
- CONDITIONS
- DEFAULT_BRANCH
- DEFAULT_OUTPUT
- Local Default
- MEALY_MACHINE
- MOORE_MACHINE
- Operator
- OUTPUT_HOLD
- STATE
- State Assignment Equation
- State Transition Equation
- ·
-