Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

DigitalDesignStudy Template

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 3

500660 2022

University of Hull, Department of Engineering


Module 500660

Digital Electronics Study/Assignment

Student number:

Insert you nine-digital student registration number above (not your six-digit use ID login number)
Insert captures images etc. into the relevant parts of this document as described in each of the numbered
items below. Detailed instructions for submission are given in section 11 of the Design document “Design
Study Workbook: RGB LED Driver”, except item 1, which is related to the “Quartus Walkthrough 1”
document. Section numbers below refer to the sections in the document where specific exercises are detailed.
Do not delete sections from this file – if you have not done part of the assignment leave that section blank.
Do not insert additional material that is not requested in the sections below.

1. Simulation waveforms from the Walkthrough Document


Section 8 “Exercise” – capture one waveform and one schematic as specified. Insert the images below.

2. Simulation waveforms for the Up/Down Counter


Section 4.4 – capture two waveforms as specified. Insert your waveform images below.

3. Simulation waveforms for the Count Zero Timer


Section 5.5 – waveform with three extra pulses with length as specified. Insert your waveform image below.

Insert below your code for the waveform generation (not the whole test bench)

4. Simulation waveform for the 32-bit counter


Section 6.4 – waveform as specified (showing count value in decimal). Insert your waveform image below.

5. Simulation Waveform for the Clock Generator


Section 7.4 - waveform showing specified time points in the simulation. Insert your waveform image below.

6. Simulation Waveform for the RGB Controller


Section 8.4 – waveform with Dual mode sequence starting a specified time. Insert your waveform image
below.

Insert below your code for the D signal (not the whole test bench).

1
500660 2022

7. Simulation Waveform for full colour sequencing LED drive


Section 9.6 – waveform section as described. Insert your waveform image below.

8. Photo of system operating


Section 10.9 – Insert below your photo of the system working, with your student card in the image.

9. State machine diagram


As indicated at several points in the study documents you are required to draw the state machine for the
RGB controller. Follow the instructions below to define the symbolic names for states, inputs and outputs to
use on your diagram.
Add rows to complete the table below to identify and define symbolic name for all states used in the RGB
controller state machine. The fade state is included already as an example.
Symbolic State Name Description Binary Code
F Fade mode – all LEDs reduce brightness and then stay off 0000

The table below defines input names for (possible) use on your state diagram. Use these names (if required)
(with their logic levels) to label transitions on your state diagram. Note that the inputs are defined here as
active for logic 1 and you should also use this in your state diagram.
Symbolic Input Name Description
Fin Fade mode input, Fin = 1 for fade mode
Din Dual mode input, Din = 1 for dual mode
Rst Asynchronous reset to state 1111, Rst = 1 for reset

The table below defines output names for use on the state diagram. In each state on the diagram identify
which outputs are 1 (it will be assumed the others are 0). Use exactly the same names on your diagram.
Symbolic Output Name Description
RDUP Red Up – increase red LED brightness when RUP = 1
RDDN Red Down – decrease red LED brightness when RDN = 1
GNUP Green Up – increase green LED brightness when GUP = 1
GNDN Green Down – decrease green LED brightness when GDN = 1
BLUP Blue Up – increase blue LED brightness when BUP = 1
BLDN Blue Down – decrease blue LED brightness when BDN = 1

Using information from the design description, logic equations, truth tables, and simulation results draw a
state diagram for the RGB controller state machine using the names defined above (draw/insert your
diagram below this paragraph). Exclude the state load functionality – just draw the state diagram
representing the next state logic described for the design. For simplicity on the diagram, it is suggested that
you do not draw transitions to the fade state, as all states transition to this state when Fin=1. Also do not
include transitions to the reset state but label the diagram to indicate the reset state of the machine. Draw
your state diagram in the style defined by the figure below.

2
500660 2022

Condition for transition


State 1 to state 2

State State
name 1 name 2 Condition for
staying in state 2
Outputs in Outputs in
state 1 state 2
This is a drawing style guide
Condition for transition is not meant to represent an
State 2 to state 1 actual state machine

You might also like