Digital Design 2 LAB: Objective
Digital Design 2 LAB: Objective
Experiment 3:
Instructor Name: Dr.Ashraf Armoush
Names: Omar Salous Ahmad Nabhan
Objective:
1. Synthesize.
2. Implement the design using the ZedBoard.
Tools:
1. Xilinx Design Tools-Vivado 2020.1
2. ZedBoard
Part1: Asynchronous Ripple Counter
Introduction:
In this part, we will build a 4-bit Asynchronous ripple
counter using T flip-flops.
Procedure:
1. T Flip-Flops (TFF):
Digital design 2 LAB
Pins:
T: Synchronous Input (0: No change, 1: Toggle)
CLK: positive edge trigger clock.
Clear: Asynchronous active low clear.
Q: output
QBAR: output.
Digital design 2 LAB
I written VHDL code for the T Flip-Flop
4. Top-Level Entity:
Here we will use Divider and Asynchronous Counter as
a component to build Asynchronous Ripple Counter
that a higher level entity, as you can see below:
Digital design 2 LAB
I written VHDL code for the Top-Level Entity
2. Clock Divider:
Since the system is running at 100MHz, I'm going to divide the input clock to generate a
1Hz output clock, so I can see the change in the results and notice the change in LED’s
counting.
Digital design 2 LAB
I written VHDL code for the Clock Divider
3. Top-Level Entity:
Here we will use Divider and Synchronous Auto
Counter as a component to build Auto Up Down
Synchronous Counter that a higher level entity, as you
can see below:
Digital design 2 LAB
I written VHDL code for the Top-Level Entity
Problem:
There is will be a problem when we push on the button.
Unwanted signals due to trembling in the finger pressing the
button. But the system understand these Signals as inputs.
Digital design 2 LAB
Solution:
We used Push Button Debouncer in order to bypass the signals
generated by the vibrations in order to enter the correct inputs
into the system.
D: Top level
Digital design 2 LAB
C: Time multiplexer:
We used this component to display a number on a seven
segment in one time then display on the second .
This operation happens in very very short time . So , our eyes see
that two seven segment operate at the same time (Optical
illusions).
vhdl code :
Digital design 2 LAB
Conclusion:
In this experiment we learned to build synchronous and
asynchronous counters, and then use them for something
bigger (structural components).
In addition, We also learned how to bypass the vibrations
in the input signals by using a software solution (Push
Putton Debouncer).
Finally, we show the results on seven segment display.