lab assignment 2

11
Lab Assignment 2 Introduction to Structured VLSI Design 1 Oskar Westman [email protected] Interfacing Keyboard with FPGA Board

Upload: others

Post on 12-Mar-2022

5 views

Category:

Documents


0 download

TRANSCRIPT

Lab Assignment 2

Introduction to Structured VLSI Design 1

Oskar Westman [email protected]

Interfacing Keyboard with FPGA Board

Introduction to Structured VLSI Design 2

•  Key pressed = make code is generated. •  Key released = break code is generated.

What happens when you press/release a key?

How does the keyboard send data?

3 Introduction to Structured VLSI Design

Scan codes

Introduction to Structured VLSI Design 4

•  Each key is assigned a unique scan code.

•  Pressed key shows on FPGA -- 7 SEGEMENT DISPLAY

FPGA

Demostration

Main Processes •  Synchronizing Keyboard with FPGA. •  Detection of falling edge of keyboard Clock. (why?) •  Storing of relevant Scan Code from keyboard

(meaning?). •  Display of ’numbers’ keys on Seven Segment. •  Shift the previous key left and display the current

number when the next number key is pressed.

13-09-09 Introduction to Structured VLSI Design 7

13-09-09 Paper Presentation - Ultra Portable Devices

Why falling edge?

Tasks

13-09-09 Paper Presentation - Ultra Portable Devices

Advice •  Build your own test bench for each component and TEST

IT! •  Work your way through the components, confirm

function and continue. •  Document your work along, present to the TA. •  Bit-shift is a good operation in this lab. Read about it in

the book or google it! •  NO LATCHES!

VHDL File Lists