1 Chapter 05 Tutorial Using Verilog Design a 4-bit up-down counter using behavioral level HDL...

Post on 21-Dec-2015

218 views 0 download

Transcript of 1 Chapter 05 Tutorial Using Verilog Design a 4-bit up-down counter using behavioral level HDL...

1

Chapter 05Tutorial Using Verilog

Design a 4-bit up-down counter using behavioral level HDL

language

2

Create a New Project

3

Enter a Name and Location for the Project

4

Create New File

5

You can type Verilog on the New File

6

Example (4 位元上下數計數器 )

in1

in2

s1

out

7

Behavioral level

8

Save

9

Type “counter.v”

Module name and File name must the same.

10

Add Source

11

Select “counter.v”

12

Select Verilog Design File

13

Add New Source

14

Select Test Bench Waveform

15

Click OK

16

17

Give Input Value

18

Save

19

Select “View Behavioral..” and Run

20

See a HDL Test bench

21

Select “Generate Expected..” and Run

22

Result

23

Result (cont.)

Question & Answer