Download as:
Rating : ⭐⭐⭐⭐⭐
Price: $10.99
Language:EN

Click the test bench file the top left panel

counter:

• Hex display from the zip

to increment the mod 100 counter, the other decrements the counter.

• Make sure there are pull down resistors to your button inputs.

• Use two instances of your modified mod n component, one for units and

one for tens.

demonstrator your counter can cleanly increment and decrement by

pressing the appropriate buttons.

the counter, anticlockwise should decrement the counter. See Lecture 9 for a

hint on designing an appropriate rotary knob component. An appropriate

4. Show a demonstrator for 3 marks.

[3 marks]

• There are 6 x 4bit “time to display” inputs. These will display time on

the top row of the LCD in the format 32min 45.87sec

displayed continuously. Likewise each of the other bits allows a time

digit to flash (if '1') or be continuously displayed (if '0'). Bit zero

such as to drive the top line of the time display.

• Include another 6 instances of your modified bidirectional mod n

between normal speed and x100 (as in Lab 4 Part 3).

• If counting is enabled (not suspended) and the top time display value is

six time digits on the bottom row should flash. Rotating the rotary

knob should increment (clockwise) or decrement (anticlockwise) the

• If counting is suspended and setting is disabled, pressing the south

button should transfer the bottom time value to the top time display.

[4 marks]

Task2

number of bits for the counter and input value. The second should specify

the minimum input value required for a constant '1' output.

• The input value of the PWM should be set by the 4 sliding switchs (SW0

… SW3). Leds 0 … 4 should be used to confirm the value of these

filter (across the capacitor) using the second channel of the DSO.

• Draw a circuit of your measurement setup.

accurately annotated in your log book.

[3 marks]

• Use the same measurement setup as in Part 1.

• Remove the 4 sliding switches.

2. Compile the project and configure your board.

For 3 marks show a

1. A PWM component is to control the brightness of the leds:

• PWM component generics (8 bits, 128 max value).

• The 4 bit count value is to change the PWM input value according to the

table below:

For 4 marks show a

demonstrator your led controller performs as expected.

1. Using task 2 as a starting point:

• Use one instance of the PWM component from task2 Part 1. Set the first

case statement should be used to generate the following input values for

the PWM component: [0, 2, 3, 5, 7, 10, 15, 23, 34, 51, 77, 115, 173, 259,

demonstrator your PWM control of the leds works correctly both visually

and using a DSO. In your log book record an accurately annotated

• Click on Simulation at the top left of the screen. There are radio buttons

that allow you to choose between Implementation and Simulation.

• Edit you test bench. Set the clock period to 20 ns. A stimulus process

should cycle through all possible values of SW, changing every 584 clock

SW <= SW + 1;

end process;

hierarchy and the right shows the selected signals. To add a signal to the

waveform window right click on it in the middle window and choose Add to

4. For 4 marks show a demonstrator the led on time is appropriate for the

switch value.

begin

wait for clk_period*100;

• Fix the problem in the PWM component by buffering the pwm value at the

start of the pwm period. This new signal needs to be declared in the PWM

start of the PWM cycle.

2. Show a demonstrator a simulation of your fixed design for 3 marks.

1. Using Lecture 15 as a guide create a VGA driver:

• 1024x768@60Hz.

architecture.

• Draw a blue box (101x101 pixels) on a gray background. The position of

2. Add an appropriate timing constraint to the bottom of your .ucf file. An

example of such a constraint can be found on the bottom of slide 14 of Lecture

must have 101x101 pixels visible at all times and sometimes touch the

edge of the display region.

• Two buttons control the left and right movement.

• The other two buttons control the up and down movement.

• If a button is pushed for less than 0.5s one pulse is to occur, as per a simple

debounced button. If a button is held down for more than 0.5s automatic

101x101 pixels visible and must be able to touch all boundaries of the

display region.

• The value of each pixel should be a 12 bit random number.

• Random numbers are to come from a random number component

Task5

Led flash

Example bit files are provided to test your board and improve your understanding of

the task requirement. The hardware usage (FF/LUT) of these bit files has been given.

flash has completed (3s from the initial button push).

3. A button debounce component must be used.

1s and 3s).

2. Side switches 3 and 2 are to set the flash time to one of four values (0.2s, 0.5s,

Copyright © 2009-2023 UrgentHomework.com, All right reserved.