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

ELCT 501: Digital System Design

  • Upload
    others

  • View
    4

  • Download
    0

Embed Size (px)

Citation preview

ELCT 501:

Digital System Design

Tutorial 3: VHDL Project Example

Dr. Mohamed Abd El Ghany,

Eng. Salma Hesham,

Department of Electronics and Electrical Engineering

Creating New Project

2Dr. Mohamed Abd el Ghany

Department of Electronics and Electrical Engineering

ELCT 501: Digital System

Design

Winter 2011

3Dr. Mohamed Abd el Ghany

Department of Electronics and Electrical Engineering

ELCT 501: Digital System

Design

Winter 2011

Creating New Project

4Dr. Mohamed Abd el Ghany

Department of Electronics and Electrical Engineering

ELCT 501: Digital System

Design

Winter 2011

Creating New Project

5Dr. Mohamed Abd el Ghany

Department of Electronics and Electrical Engineering

ELCT 501: Digital System

Design

Winter 2011

Creating New Project

6Dr. Mohamed Abd el Ghany

Department of Electronics and Electrical Engineering

ELCT 501: Digital System

Design

Winter 2011

Creating New Project

7Dr. Mohamed Abd el Ghany

Department of Electronics and Electrical Engineering

ELCT 501: Digital System

Design

Winter 2011

Creating New Project

8Dr. Mohamed Abd el Ghany

Department of Electronics and Electrical Engineering

ELCT 501: Digital System

Design

Winter 2011

Creating New VHDL Source

9Dr. Mohamed Abd el Ghany

Department of Electronics and Electrical Engineering

ELCT 501: Digital System

Design

Winter 2011

Creating New VHDL Source

Defining Inputs and Outputs

10Dr. Mohamed Abd el Ghany

Department of Electronics and Electrical Engineering

ELCT 501: Digital System

Design

Winter 2011

Defining Inputs and Outputs

11Dr. Mohamed Abd el Ghany

Department of Electronics and Electrical Engineering

ELCT 501: Digital System

Design

Winter 2011

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

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

Check Syntax for the VHDL Code

14Dr. 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

15Dr. Mohamed Abd el Ghany

Department of Electronics and Electrical Engineering

ELCT 501: Digital System

Design

Winter 2011

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

Test Method 1: Test Bench Waveform

17Dr. Mohamed Abd el Ghany

Department of Electronics and Electrical Engineering

ELCT 501: Digital System

Design

Winter 2011

18Dr. Mohamed Abd el Ghany

Department of Electronics and Electrical Engineering

ELCT 501: Digital System

Design

Winter 2011

Test Method 1: Test Bench Waveform

19Dr. Mohamed Abd el Ghany

Department of Electronics and Electrical Engineering

ELCT 501: Digital System

Design

Winter 2011

Test Method 1: Test Bench Waveform

20Dr. Mohamed Abd el Ghany

Department of Electronics and Electrical Engineering

ELCT 501: Digital System

Design

Winter 2011

Test Method 1: Test Bench Waveform

21Dr. Mohamed Abd el Ghany

Department of Electronics and Electrical Engineering

ELCT 501: Digital System

Design

Winter 2011

Test Method 1: Test Bench Waveform

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

Simulating the Test Bench

23Dr. Mohamed Abd el Ghany

Department of Electronics and Electrical Engineering

ELCT 501: Digital System

Design

Winter 2011

24Dr. Mohamed Abd el Ghany

Department of Electronics and Electrical Engineering

ELCT 501: Digital System

Design

Winter 2011

Simulating the Test Bench

25Dr. Mohamed Abd el Ghany

Department of Electronics and Electrical Engineering

ELCT 501: Digital System

Design

Winter 2011

Simulating the Test Bench

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

27Dr. Mohamed Abd el Ghany

Department of Electronics and Electrical Engineering

ELCT 501: Digital System

Design

Winter 2011

Test Method 2: VHDL Test Bench

28Dr. Mohamed Abd el Ghany

Department of Electronics and Electrical Engineering

ELCT 501: Digital System

Design

Winter 2011

Test Method 2: VHDL Test Bench

29Dr. Mohamed Abd el Ghany

Department of Electronics and Electrical Engineering

ELCT 501: Digital System

Design

Winter 2011

Test Method 2: VHDL Test Bench

30Dr. Mohamed Abd el Ghany

Department of Electronics and Electrical Engineering

ELCT 501: Digital System

Design

Winter 2011

Test Method 2: VHDL Test Bench

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

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

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

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

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

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