Professional Documents
Culture Documents
ISLAMABAD
LAB REPORT
Pre-Lab:
Background theory:
The most general model of a sequential circuit has inputs, outputs, and internal states.
It is customary to distinguish between two models of sequential circuits: the Mealy
model and the Moore model. They differ only in the way the output is generated. The
two models of a sequential circuit are commonly referred to as a finite state machine,
abbreviated FSM.
In the Mealy model, the output is a function of both the present state and the input as
shown in Figure 11.1. the outputs may change if the inputs change during the clock
cycle. The output of the Mealy machine is the value that is present immediately before
the active edge of the clock.
State table:
A B X A(t+1) B(t+1) y
0 0 0 0 0 0
0 0 1 0 1 0
0 1 0 0 0 0
0 1 1 1 0 0
1 0 0 1 1 0
1 0 1 1 0 0
1 1 0 0 0 1
1 1 1 0 1 0
State diagram:
Circuit Diagram:
Lab Task #2: HDL implementation for Mealy machine on FPGA
Write the HDL (Verilog) behavioural description for Mealy based
sequence detector for the given sequence. Simulate the design and paste
the output waveforms
Task #1:
Wave forms:
Task #2:
Wave forms:
Task #3:
Device Utilization Summary:
Critical Analysis:
In the above experiment we analyzed the analyzed the working of
Mealy and Moore machines. We also analyzed the behavioral description of Sequence
detector of Mealy and Moore. The most general model of a sequential circuit has
inputs, outputs, and internal states. We also observed that In Mealy model, the output
is the function of both the preset state and the input as shown in figure 10.1. The output
is changed when the inputs change during the clock cycle, where as in Moore model,
the output is a function of only the preset state. We also observed that the outputs of
the sequential circuit are synchronized with the clock, because they depend only on flip
flop outputs that are synchronized with the clock.