Professional Documents
Culture Documents
ECNG 2004
LABORATORY & PROJECT DESIGN II
http://myelearning.sta.uwi.edu/course/view.php?id=1678
Semester I, 2009/2010
1. GENERAL INFORMATION
Lab #:
Name of the Lab:
DIGLAB3
Design of Modulo Counters
Lab Weighting:
Delivery mode:
Electronics Laboratory
Lab Dependencies2
Recommended
prior knowledge
and skills3:
Course Staff
Position/Role
E-mail
Phone
Office
Marcus.George@uwi.sta.edu ext3164 Electronics
Lab Office
Office
Hours
Fridays
10am - 1pm
Cognitive
Level
C, Ap
editor.
2. Implementations of a 1-digit BCD counter macro using a Xilinx schematic
C, Ap
editor.
3. Implementation of a 2.5MHz frequency divider using the 1-digit BCD
C, Ap
Ap
3. PRE-LAB
Due Date:
Submission
Procedure:
Estimated time to
completion:
30 minutes
Modulo Counter
Binary Counter
BCD Counter
Frequency Divider
Make sure to fully understand the implementation of these digital circuits using logic gates. Also
read through the laboratory manual for DIGLAB3 to understand how these circuits may have
been utilized.
calculate the value of N for the counter to be use in the implementation of this frequency
divider. The following equation is crucial to this calculation.
For the modulo counter N = a
reference
required
freference = 50MHz
frequired = desired frequency
3.3.1.
Calculate the value of N for a modulo N counter. This must be used by a frequency
divider to produce a 2.5MHz clock signal using the 50MHz reference clock signal.
Show all working.
3.3.2.
Calculate the value of N for a modulo N counter. This must be used by a frequency
divider to produce a 1kHz clock signal using the 50MHz reference clock signal. Show
all working.
3.3.3.
What is the output frequency of a frequency divider that utilizes the 50MHz reference
clock signal and a modulo 500,000 counter? Show all working.
4. IN-LAB
Allotted Completion 3 hours
Time:
1 printed copy of the digital lab3 manual (students must bring to the lab)
Required lab
Equipment:
1 Computer
4.1. Objectives
In this laboratory exercise Xilinx Schematic Editor will be used to investigate the
implementation of modulo counters(binary and BCD counters) and frequency dividers. This
laboratory exercise is broken up into three components:
i. Implementation of a 4-bit binary counter macro using a Xilinx schematic editor.
ii. Implementations of a 1-digit BCD counter macro using a Xilinx schematic editor.
iii. Creation of the desired frequency divider using the 1-digit BCD counter and positive
edge triggered D Flip-Flips(create a frequency divider capable of dividing the reference
clock signal(50MHz) by 20)..
4.2. Implementation of a 4-bit binary counter macro using a Xilinx schematic editor.
4.2.1.
Use the Xilinx Schematic Editor to create a 4-bit counter binary counter as shown in
figure 1 below.
4.2.2.
4.2.3.
Create a new test bench waveform and simulate both the functional and timing behavior
of the 4-bit binary counter created.
4.2.4.
4.3. Implementation of a 1-digit BCD counter macro using the Xilinx Schematic Editor.
4.3.1.
Use the Xilinx Schematic Editor to create a 1-digit BCD counter as shown in figure 2
below.
4.3.2.
4.3.3.
Create a new test bench waveform and simulate both the functional and timing behavior
of the 1-digit BCD created.
4.3.4.
4.4. Creation of the desired frequency divider using the 1-digit BCD counter created and
positive edge triggered D Flip-Flips.
4.4.1.
Use the Xilinx Schematic Editor to create the desired frequency divider as shown in
figure 3 below.
4.4.2.
4.4.3.
Create a new test bench waveform and simulate both the functional and timing behavior
of the frequency divider created.
RESET
reference clock
clk
reset
D Flip-Flop
(FDC)
OR
RESET
OR2
reference clock
clk
RESET
reset
clk
reset
ce
D Flip-Flop
(FDC)
clock1
NOT
inv
5. POST-LAB
A signed plagiarism declaration form must be submitted with your assignment.
Due Date:
Feedback on Lab
Submission
Procedure:
Deliverables:
10
5.1. Assignment:
5.1.1.
Compare the 4-bit binary counter and 4-bit BCD counter in terms of operation, speed
(Maximum Frequency/ MHz) and hardware utilization (Device Utilization) for the
Spartan 3 xc3s1000-5ft256 chip. This can be easily obtained from the synthesis report.
[8 marks]
5.1.2.
5.1.3.
Schematic [1 marks]
5.1.4.
5.1.5.
5.1.6.
Explain the operation of the frequency divider implemented in section 4.4 of this
laboratory exercise. [8 marks]
5.1.7.
Explain how we can modify the frequency divider implemented in section 4.4 such that
it takes the 50MHz reference clock signal and produces a 1kHz signal. Implement this
frequency divider using binary counters and perform functional and timing simulation
on it. [total = 6 marks]
Students must submit the following for this question:
i. Schematic [2 marks]
ii. functional simulation [1 mark]
iii. timing simulation [1 mark]
5.1.8.
Implement this frequency divider using BCD counters and perform functional and
timing simulation on it. Remember to submit the schematic. Students must submit the
following for this question:
i. Schematic [1 marks]
ii. functional simulation [1 mark]
iii. timing simulation [1 mark]
11