18
1 EEL 4783: HDL in Digital System Design Lecture 2: Introduction to Logic Design with Verilog Prof. Mingjie Lin

EEL 4783: HDL in Digital System Design - eecs.ucf.edueecs.ucf.edu/~mingjie/EEL4783/lect.02.pdf · 1 EEL 4783: HDL in Digital System Design Lecture 2: Introduction to Logic Design

  • Upload
    trandan

  • View
    217

  • Download
    0

Embed Size (px)

Citation preview

Page 1: EEL 4783: HDL in Digital System Design - eecs.ucf.edueecs.ucf.edu/~mingjie/EEL4783/lect.02.pdf · 1 EEL 4783: HDL in Digital System Design Lecture 2: Introduction to Logic Design

1

EEL 4783: HDL in Digital System Design

Lecture 2: Introduction to Logic Design with Verilog

Prof. Mingjie Lin

Page 2: EEL 4783: HDL in Digital System Design - eecs.ucf.edueecs.ucf.edu/~mingjie/EEL4783/lect.02.pdf · 1 EEL 4783: HDL in Digital System Design Lecture 2: Introduction to Logic Design

2

Schematic and Verilog description of a half adder.

Page 3: EEL 4783: HDL in Digital System Design - eecs.ucf.edueecs.ucf.edu/~mingjie/EEL4783/lect.02.pdf · 1 EEL 4783: HDL in Digital System Design Lecture 2: Introduction to Logic Design

3

Examples

Page 4: EEL 4783: HDL in Digital System Design - eecs.ucf.edueecs.ucf.edu/~mingjie/EEL4783/lect.02.pdf · 1 EEL 4783: HDL in Digital System Design Lecture 2: Introduction to Logic Design

4

Page 5: EEL 4783: HDL in Digital System Design - eecs.ucf.edueecs.ucf.edu/~mingjie/EEL4783/lect.02.pdf · 1 EEL 4783: HDL in Digital System Design Lecture 2: Introduction to Logic Design

5

The format of a Verilog module

Page 6: EEL 4783: HDL in Digital System Design - eecs.ucf.edueecs.ucf.edu/~mingjie/EEL4783/lect.02.pdf · 1 EEL 4783: HDL in Digital System Design Lecture 2: Introduction to Logic Design

6

An AOI Circuit

Page 7: EEL 4783: HDL in Digital System Design - eecs.ucf.edueecs.ucf.edu/~mingjie/EEL4783/lect.02.pdf · 1 EEL 4783: HDL in Digital System Design Lecture 2: Introduction to Logic Design

7

Hierarchical decomposition of a full adder: (a) gate-level schematic and (b) Verilog model

Page 8: EEL 4783: HDL in Digital System Design - eecs.ucf.edueecs.ucf.edu/~mingjie/EEL4783/lect.02.pdf · 1 EEL 4783: HDL in Digital System Design Lecture 2: Introduction to Logic Design

8

Hierarchical decomposition of a 16-bit, ripple-carry adder

Page 9: EEL 4783: HDL in Digital System Design - eecs.ucf.edueecs.ucf.edu/~mingjie/EEL4783/lect.02.pdf · 1 EEL 4783: HDL in Digital System Design Lecture 2: Introduction to Logic Design

9

Hierarchical decomposition of a 16-bit, ripple-carry adder (cont.)

Page 10: EEL 4783: HDL in Digital System Design - eecs.ucf.edueecs.ucf.edu/~mingjie/EEL4783/lect.02.pdf · 1 EEL 4783: HDL in Digital System Design Lecture 2: Introduction to Logic Design

10

Design hierarchy of a 16-bit ripple-carry adder.

Page 11: EEL 4783: HDL in Digital System Design - eecs.ucf.edueecs.ucf.edu/~mingjie/EEL4783/lect.02.pdf · 1 EEL 4783: HDL in Digital System Design Lecture 2: Introduction to Logic Design

11

Schematic of a 2-bit binary comparator.

Page 12: EEL 4783: HDL in Digital System Design - eecs.ucf.edueecs.ucf.edu/~mingjie/EEL4783/lect.02.pdf · 1 EEL 4783: HDL in Digital System Design Lecture 2: Introduction to Logic Design

12

Block diagram symbol of a 4-bit comparator.

Page 13: EEL 4783: HDL in Digital System Design - eecs.ucf.edueecs.ucf.edu/~mingjie/EEL4783/lect.02.pdf · 1 EEL 4783: HDL in Digital System Design Lecture 2: Introduction to Logic Design

13

Hierarchical structure of a 4-bit binary comparator

Page 14: EEL 4783: HDL in Digital System Design - eecs.ucf.edueecs.ucf.edu/~mingjie/EEL4783/lect.02.pdf · 1 EEL 4783: HDL in Digital System Design Lecture 2: Introduction to Logic Design

14

Organization of a testbench for verifying a unit under test.

Page 15: EEL 4783: HDL in Digital System Design - eecs.ucf.edueecs.ucf.edu/~mingjie/EEL4783/lect.02.pdf · 1 EEL 4783: HDL in Digital System Design Lecture 2: Introduction to Logic Design

15

Waveforms produced by a simulation of Add_half , a 0-delay binary half adder.

Page 16: EEL 4783: HDL in Digital System Design - eecs.ucf.edueecs.ucf.edu/~mingjie/EEL4783/lect.02.pdf · 1 EEL 4783: HDL in Digital System Design Lecture 2: Introduction to Logic Design

16

Results of unit-delay simulation of a 1-bit full adder

Page 17: EEL 4783: HDL in Digital System Design - eecs.ucf.edueecs.ucf.edu/~mingjie/EEL4783/lect.02.pdf · 1 EEL 4783: HDL in Digital System Design Lecture 2: Introduction to Logic Design

17

Results of simulating a 1-bit full adder implemented with ASIC cells

Page 18: EEL 4783: HDL in Digital System Design - eecs.ucf.edueecs.ucf.edu/~mingjie/EEL4783/lect.02.pdf · 1 EEL 4783: HDL in Digital System Design Lecture 2: Introduction to Logic Design

18

Final issues

• Please fill out the student info sheet before leaving

• Come by my office hours (right after class)

• Any questions or concerns?