




Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
Material Type: Lab; Class: Computer Logic Design; Subject: Electrical & Computer Engineer; University: University of New Mexico; Term: Summer 2004;
Typology: Lab Reports
1 / 8
This page cannot be seen from the preview
Don't miss anything!
This lab will introduce concepts on digital counters, modular design and we will explore more capabilities of the XCR board. The systems we will implement are divided in subsystems or modules described on independent VHDL files. We will use the concepts learn in previous labs to create, synthesize and download to a CPLD a project.
After completing this lab, you will be able to:
The counter we will design must:
The counter we were asked to design is more complex than the one you saw in the lecture notes, it has three states and it is represented by the state diagram in figure 1. A proposed block diagram is show in figure 2.
From the lecture notes is understood that we need a display controller to implement the translation table (figure 2.d from lecture notes) and the timing diagram (figure 3 from lecture notes) for the dual-digit seven segment display on the XCR board. A proposed block diagram of such a system is given in figure 3.
reset = 1
reset
count pause
reset = 0
reset = 0 ; pause = 0
pause = 1
pause = 0
pause = 1
clock reset pause
out(3 downto 0) counter 4
Figure 1; three state counter Figure 2; counter block diagram
MSD : Maximum significative digit LSD : Minimum significative digit
7 7
7
CAT CAT
(anodes AA through AG)
clk
MSD LSD 4 converter
clk CAT CAT anodes msblsb^ msb^ lsb^ msb^ lsb
Display controller
selector
sel
Figure 3; Display controller block diagram
The design of the whole system will follow a modular schema. We will first describe and simulate a counter, then a display controller, and finally the whole system. A block diagram of the whole system is shown in figure 4.
7 7
7
CAT CAT
(anodes (6 downto 0): AA through AG)
clk
MSD : count(4 downto 0) LSD converter
Display controller: disp_controller.vhd
counter: counter.vhd
clk reset pause
top_counter.vhd
4
selector
sel
Figure 4; Complete system to be implemented in this lab
Figure 6; Simulation output.
Figure 7; Display controller simulation
Figure 8; iMPACT window and options for CPLD configuration.
be declared. The declaration area for components instantiations is under the comment – Components Instantiations – in the top_counter.vhd file. Use the inverter instantiation as an example. Use the block diagram in figure 4 as a map to complete the connections.