This set of VHDL Puzzles focuses on “Designing Mealy Type FSM with VHDL”.
1. Output values of mealy type FSM are determined by its ________
a) Input values
b) Output values
c) Both input values and current state
d) Current state
Explanation: The output values of a mealy type FSM are determined by its current state and present input values both. Output can change after a change at the inputs immediately, independent of the clock.
2. What kind of output does mealy machine produce?
Explanation: Output of the mealy type FSM is asynchronous it can change in response to any change in the input regardless of the clock. Moore type FSM gives synchronous output.
3. States in FSM are represented by ________
Explanation: Transition states in FSM are represented by bits. The number of bits that are required to represent all the states in FSM is equal to the number of flip-flops required to implement that state machine.
4. What is the first step in writing the VHDL for an FSM?
a) To define the VHDL entity
b) Naming the entity
c) Defining the data type
d) Creating the states
Explanation: The first step in writing the VHDL for an FSM is defining the VHDL entity. The VHDL entity defines the external interface of the system that is being designed, which includes the name of the entity, the inputs and the outputs.
5. A Mealy machine is safer to use?
Explanation: Moore machines are safer to use because output changes one cycle later at the clock edge while in mealy machines, input changes the output in the same clock cycle which becomes a problem if two machines are interconnected.
6. Which of the following react faster to inputs?
c) Mealy machines
d) Moore machines
Explanation: Mealy machines react faster to the inputs because they react in the same cycle, they don’t wait for the clock. Moore machines react one cycle later.
7. What is the first state of FSM?
a) Wait loop state
b) Initial state
c) Output state
d) Activate pulse state
Explanation: The first state of the finite state machine is the initial-standby state. It waits until a 1 is read at the input to get started. It then goes to activate pulse state and transmits a high pulse.
8. Mealy machines have _____ states than Moore machine.
Explanation: Mealy machines have fewer states than Moore machine because they respond faster to the input in one cycle only, as they don’t have to wait for the clock. Moore machines generally respond one clock cycle later.
9. Mealy type FSM has a memory element.
Explanation: Mealy type FSM has a memory element since it’s a sequential logic system. The past inputs are stored inside the FSM’s memory and represent its state at a given time. The memory elements are the flip-flops.
10. In mealy type FSM, the path is labelled by which of the following?
c) Both inputs and outputs
d) Current state
Explanation: In mealy machines, each transition path is labelled with both, the inputs and the outputs and the circle contains the code for the internal state. In Moore machines path is labelled only with the inputs and the circle contains the output and the state code.
Sanfoundry Global Education & Learning Series – VHDL.
To practice all Puzzles on VHDL, here is complete set of 1000+ Multiple Choice Questions and Answers.