+ All Categories
Home > Education > Assic 5th Lecture

Assic 5th Lecture

Date post: 26-Jun-2015
Category:
Upload: babak
View: 144 times
Download: 3 times
Share this document with a friend
Description:
Verilog lect 5
Popular Tags:
19
Verilog HDL Verilog HDL ASIC DESIGN USING FPGA BEIT VII KICSIT Sep 4 2012 Lecture 5
Transcript
Page 1: Assic 5th Lecture

1

Verilog HDLVerilog HDLVerilog HDLVerilog HDL

ASIC DESIGN USING FPGA

BEIT VII

KICSIT

Sep 4 2012 Lecture 5

Page 2: Assic 5th Lecture

2

Abstraction Levels Abstraction Levels

Sep 4 2012

• There are four levels of abstraction• Switch level

• Gate level• RTL (Dataflow) level • Behavioral or algorithmic level

Lecture 5

Page 3: Assic 5th Lecture

3

Modeling Techniques Modeling Techniques

Sep 4 2012

• Switch-Level Modeling

The lowest level of abstraction is the switch or transistor Level Modeling. (It is rarely used)

• Gate Level Modeling

It is feasible for small circuits.

Lecture 5

Page 4: Assic 5th Lecture

4

Modeling Techniques Modeling Techniques

Sep 4 2012

• Dataflow Modeling

The level of abstraction higher than the gate level.

• Behavioral Modeling

In more complex digital designs, priority is given to the performance and behavior of the algorithm.

Lecture 5

Page 5: Assic 5th Lecture

5

Modeling Techniques Modeling Techniques

Sep 4 2012

• Verilog allows the designer to mix and match all four levels of abstractions in a design.

• In the digital design community, the term register transfer level (RTL) is frequently used for a Verilog description that uses a combination of behavioral and dataflow constructs and is acceptable to logic synthesis tools.

Lecture 5

Page 6: Assic 5th Lecture

6

Modeling Techniques Modeling Techniques

Sep 4 2012

• Normally, the higher the level of abstraction, the more flexible and technology-independent the design.

• As one goes lower toward switch-level design, the design becomes technology-dependent and inflexible.

• A small modification can cause a significant number of changes in the design in Low level abstration.

Lecture 5

Page 7: Assic 5th Lecture

7

Module Module

Sep 4 2012

• The Module Concept

• The module is the basic building block in Verilog

• Modules are:• Declared• Instantiated

• Modules declarations cannot be nested

Lecture 5

Page 8: Assic 5th Lecture

8

Module Module

Sep 4 2012

• Modules can be interconnected to describe the structure of your digital system

• Modules start with keyword module and end with keyword endmodule• Modules have ports for interconnection with other modules

Lecture 5

Page 9: Assic 5th Lecture

9

Module Module

Sep 4 2012

•Everything you write in Verilog must be inside a module exception: compiler directives

Lecture 5

Page 10: Assic 5th Lecture

10

Module Module

Sep 4 2012 Lecture 5

Page 11: Assic 5th Lecture

11

Components of a Verilog ModuleComponents of a Verilog Module

Sep 4 2012 Lecture 5

Page 12: Assic 5th Lecture

12

Components of a Verilog ModuleComponents of a Verilog Module

Sep 4 2012 Lecture 5

Page 13: Assic 5th Lecture

13

Components of a Verilog ModuleComponents of a Verilog Module

Sep 4 2012 Lecture 5

• Stimulus and Design blocks can also be instantiated in a Dummy Top level module

Page 14: Assic 5th Lecture

14

Module Ports Module Ports

Sep 4 2012

• Similar to pins on a chip

• Provide a way to communicate with outside world.

• Ports can be input, output or inout

Lecture 5

Page 15: Assic 5th Lecture

15

Port Assignments Port Assignments

Sep 4 2012 Lecture 5

Page 16: Assic 5th Lecture

16

Hierarchical Design Hierarchical Design

Sep 4 2012 Lecture 5

Page 17: Assic 5th Lecture

17

Module Instances Module Instances

Sep 4 2012

• Verilog design models consist of a hierarchy of module instances.

• Like in C++ : modules are classes and instances are objects.

• The process of creating objects from a module template is called instantiation.

Lecture 5

Page 18: Assic 5th Lecture

18

Module Instances Module Instances

Sep 4 2012

• As an example a top-level block ripple_crry_counter creates four instances from the T-flipflop (T_FF) template.

• Each T_FF instantiates a D_FF and an inverter gate.

• Each instance must be given a unique name.

Lecture 5

Page 19: Assic 5th Lecture

19

Module Instances Module Instances

Sep 4 2012 Lecture 5


Recommended