Exp. 6: Introduction To Sequential Logic: Objectives
Exp. 6: Introduction To Sequential Logic: Objectives
OBJECTIVES:
To familiarize with up/down synchronous counters
MATERIALS REQUIRED:
Computer with Vivado PC suite and ZYBO board for Verilog implementation.
EXPERIMENTS:
Theory:
A four-bit synchronous up counter is used to count from 0(0000 in binary)
and increment the count up to 15(1111 in binary). In synchronous up counter,
the clock inputs of all flip-flops are connected together and are triggered by
input pulses.
D-Register
A register is one which registers/stores/remembers data. Since a flip-flop
stores 1-bit data, it is called a 1-bit register. In any practical application, it
is required to store large amount of data. So, a practical register stores
multi-bit data.
Up-Counter
Procedure:
(i) Create a new project and create the source files for
fourBitUpCounter module.
(ii) Write the following code for fourBitUpCounter module in its
source file.
Verilog Code for fourBitUpCounter module
Observations:
Result:
The four-bit up counter module was designed using Verilog and the output
for all possible iterations, a self-checking test bench was employed to
simulate the four-bit up counter.
Theory:
Down Counter: A four bit down counter is a digital counter circuit, which
provides a binary countdown from binary 1111 to 0000. This circuit used
four D-type flip flops, which are positive edge triggered.
Procedure:
(i) Create a new project and create source file for upDownCounter
module.
(iv) For creating a self-checking test-bench, add new source file under
simulation tab and write the following code and verify the
upDownCounter module.
Observation:
(i) We were able to realize up-down counter using enable and reset
pins.
(ii) We realized both up and down counter in a single code, where we
can control the mode of operation of the counter.