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

Post on 06-Mar-2018

220 views 0 download

Transcript of EEL 4783: HDL in Digital System Design - eecs.ucf.edueecs.ucf.edu/~mingjie/EEL4783/lect.02.pdf · 1...

1

EEL 4783: HDL in Digital System Design

Lecture 2: Introduction to Logic Design with Verilog

Prof. Mingjie Lin

2

Schematic and Verilog description of a half adder.

3

Examples

4

5

The format of a Verilog module

6

An AOI Circuit

7

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

8

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

9

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

10

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

11

Schematic of a 2-bit binary comparator.

12

Block diagram symbol of a 4-bit comparator.

13

Hierarchical structure of a 4-bit binary comparator

14

Organization of a testbench for verifying a unit under test.

15

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

16

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

17

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

18

Final issues

• Please fill out the student info sheet before leaving

• Come by my office hours (right after class)

• Any questions or concerns?