Top Banner
ELCT 501: Digital System Design Tutorial 3: VHDL Project Example Dr. Mohamed Abd El Ghany, Eng. Salma Hesham, Department of Electronics and Electrical Engineering
36

ELCT 501: Digital System Design

Mar 29, 2022

Download

Documents

dariahiddleston
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: ELCT 501: Digital System Design

ELCT 501:

Digital System Design

Tutorial 3: VHDL Project Example

Dr. Mohamed Abd El Ghany,

Eng. Salma Hesham,

Department of Electronics and Electrical Engineering

Page 2: ELCT 501: Digital System Design

Creating New Project

2Dr. Mohamed Abd el Ghany

Department of Electronics and Electrical Engineering

ELCT 501: Digital System

Design

Winter 2011

Page 3: ELCT 501: Digital System Design

3Dr. Mohamed Abd el Ghany

Department of Electronics and Electrical Engineering

ELCT 501: Digital System

Design

Winter 2011

Creating New Project

Page 4: ELCT 501: Digital System Design

4Dr. Mohamed Abd el Ghany

Department of Electronics and Electrical Engineering

ELCT 501: Digital System

Design

Winter 2011

Creating New Project

Page 5: ELCT 501: Digital System Design

5Dr. Mohamed Abd el Ghany

Department of Electronics and Electrical Engineering

ELCT 501: Digital System

Design

Winter 2011

Creating New Project

Page 6: ELCT 501: Digital System Design

6Dr. Mohamed Abd el Ghany

Department of Electronics and Electrical Engineering

ELCT 501: Digital System

Design

Winter 2011

Creating New Project

Page 7: ELCT 501: Digital System Design

7Dr. Mohamed Abd el Ghany

Department of Electronics and Electrical Engineering

ELCT 501: Digital System

Design

Winter 2011

Creating New Project

Page 8: ELCT 501: Digital System Design

8Dr. Mohamed Abd el Ghany

Department of Electronics and Electrical Engineering

ELCT 501: Digital System

Design

Winter 2011

Creating New VHDL Source

Page 9: ELCT 501: Digital System Design

9Dr. Mohamed Abd el Ghany

Department of Electronics and Electrical Engineering

ELCT 501: Digital System

Design

Winter 2011

Creating New VHDL Source

Page 10: ELCT 501: Digital System Design

Defining Inputs and Outputs

10Dr. Mohamed Abd el Ghany

Department of Electronics and Electrical Engineering

ELCT 501: Digital System

Design

Winter 2011

Page 11: ELCT 501: Digital System Design

Defining Inputs and Outputs

11Dr. Mohamed Abd el Ghany

Department of Electronics and Electrical Engineering

ELCT 501: Digital System

Design

Winter 2011

Page 12: ELCT 501: Digital System Design

Writing the VHDL description for

even_detector

12Dr. Mohamed Abd el Ghany

Department of Electronics and Electrical Engineering

ELCT 501: Digital System

Design

Winter 2011

Page 13: ELCT 501: Digital System Design

13Dr. Mohamed Abd el Ghany

Department of Electronics and Electrical Engineering

ELCT 501: Digital System

Design

Winter 2011

Writing the VHDL description for

even_detector

Page 14: ELCT 501: Digital System Design

Check Syntax for the VHDL Code

14Dr. Mohamed Abd el Ghany

Department of Electronics and Electrical Engineering

ELCT 501: Digital System

Design

Winter 2011

Page 15: ELCT 501: Digital System Design

Create a Test-bench to Test the VHDL code

15Dr. Mohamed Abd el Ghany

Department of Electronics and Electrical Engineering

ELCT 501: Digital System

Design

Winter 2011

Page 16: ELCT 501: Digital System Design

16Dr. Mohamed Abd el Ghany

Department of Electronics and Electrical Engineering

ELCT 501: Digital System

Design

Winter 2011

Create a Test-bench to Test the VHDL code

Page 17: ELCT 501: Digital System Design

Test Method 1: Test Bench Waveform

17Dr. Mohamed Abd el Ghany

Department of Electronics and Electrical Engineering

ELCT 501: Digital System

Design

Winter 2011

Page 18: ELCT 501: Digital System Design

18Dr. Mohamed Abd el Ghany

Department of Electronics and Electrical Engineering

ELCT 501: Digital System

Design

Winter 2011

Test Method 1: Test Bench Waveform

Page 19: ELCT 501: Digital System Design

19Dr. Mohamed Abd el Ghany

Department of Electronics and Electrical Engineering

ELCT 501: Digital System

Design

Winter 2011

Test Method 1: Test Bench Waveform

Page 20: ELCT 501: Digital System Design

20Dr. Mohamed Abd el Ghany

Department of Electronics and Electrical Engineering

ELCT 501: Digital System

Design

Winter 2011

Test Method 1: Test Bench Waveform

Page 21: ELCT 501: Digital System Design

21Dr. Mohamed Abd el Ghany

Department of Electronics and Electrical Engineering

ELCT 501: Digital System

Design

Winter 2011

Test Method 1: Test Bench Waveform

Page 22: ELCT 501: Digital System Design

22Dr. Mohamed Abd el Ghany

Department of Electronics and Electrical Engineering

ELCT 501: Digital System

Design

Winter 2011

Test Method 1: Test Bench Waveform

Assigning Test Values for the Inputs

Page 23: ELCT 501: Digital System Design

Simulating the Test Bench

23Dr. Mohamed Abd el Ghany

Department of Electronics and Electrical Engineering

ELCT 501: Digital System

Design

Winter 2011

Page 24: ELCT 501: Digital System Design

24Dr. Mohamed Abd el Ghany

Department of Electronics and Electrical Engineering

ELCT 501: Digital System

Design

Winter 2011

Simulating the Test Bench

Page 25: ELCT 501: Digital System Design

25Dr. Mohamed Abd el Ghany

Department of Electronics and Electrical Engineering

ELCT 501: Digital System

Design

Winter 2011

Simulating the Test Bench

Page 26: ELCT 501: Digital System Design

26Dr. Mohamed Abd el Ghany

Department of Electronics and Electrical Engineering

ELCT 501: Digital System

Design

Winter 2011

Simulation Output for the Given Test Values

Page 27: ELCT 501: Digital System Design

27Dr. Mohamed Abd el Ghany

Department of Electronics and Electrical Engineering

ELCT 501: Digital System

Design

Winter 2011

Test Method 2: VHDL Test Bench

Page 28: ELCT 501: Digital System Design

28Dr. Mohamed Abd el Ghany

Department of Electronics and Electrical Engineering

ELCT 501: Digital System

Design

Winter 2011

Test Method 2: VHDL Test Bench

Page 29: ELCT 501: Digital System Design

29Dr. Mohamed Abd el Ghany

Department of Electronics and Electrical Engineering

ELCT 501: Digital System

Design

Winter 2011

Test Method 2: VHDL Test Bench

Page 30: ELCT 501: Digital System Design

30Dr. Mohamed Abd el Ghany

Department of Electronics and Electrical Engineering

ELCT 501: Digital System

Design

Winter 2011

Test Method 2: VHDL Test Bench

Page 31: ELCT 501: Digital System Design

31Dr. Mohamed Abd el Ghany

Department of Electronics and Electrical Engineering

ELCT 501: Digital System

Design

Winter 2011

Test Method 2: VHDL Test Bench

Writing Code to Assign Input Test Values

Page 32: ELCT 501: Digital System Design

32Dr. Mohamed Abd el Ghany

Department of Electronics and Electrical Engineering

ELCT 501: Digital System

Design

Winter 2011

Test Method 2: VHDL Test Bench

Writing Code to Assign Input Test Values

Page 33: ELCT 501: Digital System Design

33Dr. Mohamed Abd el Ghany

Department of Electronics and Electrical Engineering

ELCT 501: Digital System

Design

Winter 2011

Test Method 2: VHDL Test Bench

Writing Code to Assign Input Test Values

Page 34: ELCT 501: Digital System Design

34Dr. Mohamed Abd el Ghany

Department of Electronics and Electrical Engineering

ELCT 501: Digital System

Design

Winter 2011

Test Method 2: VHDL Test Bench

Writing Code to Assign Input Test Values

Page 35: ELCT 501: Digital System Design

35Dr. Mohamed Abd el Ghany

Department of Electronics and Electrical Engineering

ELCT 501: Digital System

Design

Winter 2011

Simulation Output for the Given Test Values

Page 36: ELCT 501: Digital System Design

36Dr. Mohamed Abd el Ghany

Department of Electronics and Electrical Engineering

ELCT 501: Digital System

Design

Winter 2011

Test Method 2: VHDL Test Bench

Another Way to Assign Input Test Values