EE/CS 120A Lab 4 LAB 3 report due on this Friday 2:00pm.

21
EE/CS 120A Lab 4 LAB 3 report due on this Friday 2:00pm

Transcript of EE/CS 120A Lab 4 LAB 3 report due on this Friday 2:00pm.

Page 1: EE/CS 120A Lab 4 LAB 3 report due on this Friday 2:00pm.

EE/CS 120A Lab 4

LAB 3 report due on

this Friday 2:00pm

Page 2: EE/CS 120A Lab 4 LAB 3 report due on this Friday 2:00pm.

Lab 3

Last week

Part1 (optional)

BCD to 7 Segment LED display

BCD

Control which one will be turned on

Implement on FPGA

Page 3: EE/CS 120A Lab 4 LAB 3 report due on this Friday 2:00pm.

Lab 4

This week

Flight Attendant Call System (demo & simulation)

Rising-edge Detector (demo & simulation)

LED Display Time-Multiplexing Circuit (simulation)

Lab 4 report due on Next Friday 2:00pm

2/13/2015 2:00pm

Page 4: EE/CS 120A Lab 4 LAB 3 report due on this Friday 2:00pm.

Check out connecting wires

Room: 137 Palve

Page 5: EE/CS 120A Lab 4 LAB 3 report due on this Friday 2:00pm.

Flight Attendant Call System

3 inputs: Call, Cancel and CLK

1 output: LED

Page 6: EE/CS 120A Lab 4 LAB 3 report due on this Friday 2:00pm.

Caution

Function generator (rightmost)

Square waveform

Output voltage CANNOT greater than 3.3V

Set between 3-3.3V

Otherwise, it will burn your FPGA!!

Page 7: EE/CS 120A Lab 4 LAB 3 report due on this Friday 2:00pm.

Lab manual:

Truth table (transition table)

schematic

Equations

UCF file

simulation (for Question part)

Flight Attendant Call System

Page 8: EE/CS 120A Lab 4 LAB 3 report due on this Friday 2:00pm.

Rising-edge Detector

2 inputs: signal input and CLK

1 output: LED

If the CLK is slow enough, why we only can use switch, instead of button?

Page 9: EE/CS 120A Lab 4 LAB 3 report due on this Friday 2:00pm.

Design by yourself:

State diagram

truth table(transition table)

Equations

Schematic

simulation

UCF

Demo

Rising-edge Detector

Hint: At least 3 states

Double think

Don’t go to

www.ee.ucr.edu/~lliao/teaching

Page 10: EE/CS 120A Lab 4 LAB 3 report due on this Friday 2:00pm.

How to display different number on each 7 segment LED?

Answer: time multiplexing

LED Display Time-Multiplexing Circuit

NOTICE!!

Here “0” means on “1”means off

For more information, read lab1 manual

Page 11: EE/CS 120A Lab 4 LAB 3 report due on this Friday 2:00pm.

LED Display Time-Multiplexing Circuit

HEX_TO_LEDSEG (lab manual)

Mux (ISE)

Decoder (ISE)

Wire splitter (slides)

Clock_counter_4state (by yourself)

Page 12: EE/CS 120A Lab 4 LAB 3 report due on this Friday 2:00pm.

LED Display Time-Multiplexing Circuit

VHDL code on lab manual

Page 13: EE/CS 120A Lab 4 LAB 3 report due on this Friday 2:00pm.

LED Display Time-Multiplexing Circuit

MUX

Can be found on “symbol”by

typing “M4_1E”

Rename it as Mux(7:0) to make

It can receive bus data

Page 14: EE/CS 120A Lab 4 LAB 3 report due on this Friday 2:00pm.

LED Display Time-Multiplexing Circuit

Decoder

Can be found on “symbol”by

typing “D2_4E”

Page 15: EE/CS 120A Lab 4 LAB 3 report due on this Friday 2:00pm.

LED Display Time-Multiplexing Circuit

Wire_spliter

Design by yourself

See next slides

Page 16: EE/CS 120A Lab 4 LAB 3 report due on this Friday 2:00pm.

How to create a wire spliter

Page 17: EE/CS 120A Lab 4 LAB 3 report due on this Friday 2:00pm.

LED Display Time-Multiplexing Circuit

Clock_counter_4state

Design by yourself

Page 18: EE/CS 120A Lab 4 LAB 3 report due on this Friday 2:00pm.

Further reading

On ilearn

Important

Read it before part 3

Page 19: EE/CS 120A Lab 4 LAB 3 report due on this Friday 2:00pm.

Common mistake

Set right FPGA parameters when create

new project

Remember create different project for

each part !!

Page 20: EE/CS 120A Lab 4 LAB 3 report due on this Friday 2:00pm.

Circuit &UCF

Loading bit file

Lab manual

Show me

Page 21: EE/CS 120A Lab 4 LAB 3 report due on this Friday 2:00pm.

THANKS

Research Lab

Email:WCH [email protected]