lab2 (1)

.pdf

School

University of Florida *

*We aren’t endorsed by this school

Course

3701C

Subject

Electrical Engineering

Date

Jan 9, 2024

Type

pdf

Pages

4

Uploaded by CommodoreLark2859

EEL 3701C Digital Logic & Computer System LAB 2 ( 45 Pts, 10 Pts bonus, Due 10/15/2023, 11:59 PM ) NB: Most of the code for this homework are provided on the VHDL Overview slides Problem 1: Design and Implementation of a counter on the DE10-Lite FPGA Board The figure below illustrated the architecture of a counter for the following counting sequence: 0-5-2-1-4- 3-6-9-8-7-0 Figure 1 Structural Implementation of a Counter The counter consists of the following modules: - 4 instances of a D-FlipFlop to store the current number. In addition to the clock, the FlipFlops have a reset input that clear the FlipFlop by setting the output to 0. - A combinational block to compute the next counter value as function of the current counter value. The result will become the current counter value on a rising edge of the clock. - A BCD converter that takes the 4 outputs of the counter (as digital number) and produces the corresponding decimal number. The outputs of the BCD converter are directly connected to the pins of a seven-segment (SSG) display. Your BCD converter of the previous lab can be used here. Pre-Lab Homework (18 pts) 1. Provide the VHDL design of the counter circuit a) Identify the inputs outputs and input-outputs of the circuit (1 pt) b) Provide the entity declaration circuit (2 pts) c) Devise the VHDL description of the combinational. This is achieved by drawing the truth table of the next states as function of the current state (5 pts) . d) Provide the architecture description of the circuit. Define the components, the signals, instantiate all components (4 D-FF and 1B and connect the components using the internal and ports (6 pts) .
2. Put everything together, compile and correct all possible errors. Also, complete pin assignment, using the DE-10 Lite manual. Use a switch or a push button as reset input. (4 pts) In-Lab Implementation (10 pts) 1. Complete the pin assignment, and synthesize, download, and test your design on the DE-10 Lite board (10 pts) . Problem 2: Clock Divider Circuit You can notice that the seven-segment display is not changing. The clock frequency is too high for you to see anything. The SSG is probably on but not solid on, which indicates a high-speed clock. An external oscillator drives the DE-10 Lite device that we are using with a clock frequency of 10 MHz on pin PIN_N5 (see DE-10 Lite manual page 24 on Canvas). If a 10MHz clock drives the SSG on the DE-10 Lite board, the changes on the SSG will not be viewable as transitions will happen faster than the human eye can see. In the second part of this design, we want to use a much slower clock and observe the changes at the output. We will therefore use a module called clock divider (Clk_Div on figure 2) to slow down the clock. The block diagram of the resulting circuit is shown in the following figure ( Figure 2 ). Figure 2: Synchronous circuit with clock divider The VDHL code of the overall circuit is provided below in figure Figure 4 . We use a process clock divider to generate a slower clock. The clock divider is a process that takes as input the base clock and generates a slower clock.
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help