• No results found

01 EEE 2103 Lec 01 DE Logic Gates.ppt

N/A
N/A
Protected

Academic year: 2020

Share "01 EEE 2103 Lec 01 DE Logic Gates.ppt"

Copied!
30
0
0

Loading.... (view fulltext now)

Full text

(1)

EEE 2103 : Digital Electronics

Lec-01

Digital Logic Basics

Md. Zahidul Islam

Assistant Professor

Dept. of EEE, University of Dhaka

E-mail:

[email protected]

Web:

https://sites.google.com/site/mzislamraju

(2)

Course Contents

• Digital Logic Basics: Switches and logic gates (basic and universal), Logic functions, truth tables and variables,

• Introduction to Combinational Logic: Boolean axioms and laws, Sum of Products (SOP), Product of Sums (POS), Combinational Logic Optimization (Using Boolean Algebra and Karnaugh Map), “Don't Care” conditions, Technology: Logic voltage levels (TTL, CMOS, ECL), NMOS and CMOS logic gates, Multilevel logics, Real propagation delay, Timing Diagram, Timing analysis of digital circuits, Introduction to Verilog (a language for describing hardware) and associated CAD tools,

• Sequential Logic: NOR/NAND gates based gated latch, Various Flip-flops (FF), Master-Slave FF, Shift registers, Counters, Set-up & hold time, Finite State Machines: State diagrams, Moore-type and Mealy-type machines, State machine synthesis, State machines in Verilog, State encoding,

• Digital Numbers and Arithmetic: Number representation schemes, Basic adder and subtractor (half and full adder), Ripple carry adder, Carry look ahead Adder, BCD adder, Special Circuits: ring counter, Johnson counter, Multiplexors & tristate gates, Encoder, decoders, Real world interfacing: ADC, DAC,

• Introduction to programmable logic devices: PLD, PLA, FPGA.

(3)

Ref. Books:

Digital Systems, Principles and Applications

by R J Tocci, N R Widmer & G L Moss

Digital Fundamentals by Floyd

Digital Electronics by Anil K. Maini

Hand Notes/ Links/Supporting other documents

(4)

What is Digital Electronics ?

Digital Electronics is a branch of Electronics which deals

with Digital systems and signals.

If you consider any electronic (digital) components like

ICs, FPGA boards, Soc chips, Memory devices, these are

composed of Logic gates, MOSFETs, transistors, flip-flops,

latches ADC’s DAC’s etc etc..!!

So in order to understand the concept of working of

digital system, it is important to study fundamentals of

Digital Electronics.

(5)
(6)
(7)

Gate Truth Table & Operations

(8)

Gate Truth Table & Operations

(9)

Gate Truth Table & Operations

(10)

Gate Truth Table & Operations

10

(11)

Universal Gate

11

A universal gate is a gate which can implement any Boolean

function without need to use any other gate type.

The NAND and NOR gates are universal gates.

In practice, this is advantageous since NAND and NOR

gates are economical and easier to fabricate and are the

basic gates used in all IC digital logic families.

In fact, an AND gate is typically implemented as a NAND

gate followed by an inverter not the other way around!!

(12)

NAND Gate & Universality

(13)

NAND Gate & Universality

(14)

NAND Gate & Universality

(15)

NOR Gate & Universality

(16)

NOR Gate & Universality

(17)

NOR Gate & Universality

(18)

Equivalent Gates

(19)

Boolean algebra & Logic functions

19

[1] x + 0 = x

[3] x + 1 = 1

[5] x + x = x

[7] x + x’ = 1

[9] x + y = y + x

[11] x + (y + z) = (x + y) + z

[13] x(y + z) = xy +xz

[15] (x + y)’ = x’y’

[17] (x’)’ = x

[2] x • 0 = 0

[4] x • 1 = x

[6] x • x = x

[8] x • X’ = 0

[10] xy = yx

[12] x(yz) = (xy)z

De Morgan’s Theorem:

(20)

Boolean algebra & Logic functions

20

Usefulness of Boolean Identities:

Simplification of the Boolean function

Derivation of equivalent Boolean functions to

obtain logic

diagrams

utilizing different logic gates

Ordinarily ANDs, ORs, and Inverters

But a certain different form of Boolean

function

may be convenient to obtain circuits with

NANDs or NORs

Applications of De Morgan’s Theorem:

(21)

21

X

Y

X'

Y'

X • Y X' •Y' Z

0

0

1

1

0

1 1

0

1

1

0

0

0 0

1

0

0

1

0

0 0

1

1

0

0

1

0 1

X

Y

X'

Z

0

0

1

0

0

1

1

1

1

0

0

0

1

1

0

0

X

Y

Z

0

0

0

0

1

0

1

0

0

1

1

1

Logic functions and Boolean algebra

Any

logic function that is expressible as a truth table

can be written in Boolean algebra using +, •, and '

Z=X•Y

Z=X'•Y

(22)

22

Converting between circuits and

equations

• Find the output of the following circuit

x

y

x

+

y

y

(

x

+

y

)

y

__

__

(23)

23

x

y

Converting between circuits and

equations

• Find the output of the following circuit

• Answer: xy

x

y

x y

x y

_ _

_ _

___

(24)

24

Converting between circuits and

equations

Write the circuits for the following

Boolean algebraic expressions

a)

x

+

y

x

y

x

y

x

y

__

__

(25)

25

x

y

x

y

x

y

Converting between circuits and equations

Write the circuits for the following

Boolean algebraic expressions

b) (

_______

_______

x

+

y

)

x

x

y

(26)

26

Writing xor using and/or/not

x

y

(x + y)(

xy

)

x

y

x

y

1

1

0

1

0

1

0

1

1

0

0

0

x

y

x

+

y

xy

xy

(

x

+

y

)(xy)

____

(27)

27

Converting decimal numbers to

binary

• 53

= 32 + 16 + 4 + 1

= 2

5

+ 2

4

+ 2

2

+ 2

0

= 1*2

5

+ 1*2

4

+ 0*2

3

+ 1*2

2

+ 0*2

1

+ 1*2

0

= 110101 in binary

= 00110101 as a full byte in binary

• 211= 128 + 64 + 16 + 2 + 1

= 2

7

+ 2

6

+ 2

4

+ 2

1

+ 2

0

= 1*2

7

+ 1*2

6

+ 0*2

5

+ 1*2

4

+ 0*2

3

+ 0*2

2

+

1*2

1

+ 1*2

0

(28)

28

Converting binary numbers to

decimal

• What is 10011010 in decimal?

10011010

= 1*2

7

+ 0*2

6

+ 0*2

5

+ 1*2

4

+ 1*2

3

+

0*2

2

+ 1*2

1

+ 0*2

0

= 2

7

+ 2

4

+ 2

3

+ 2

1

= 128 + 16 + 8 + 2

= 154

• What is 00101001 in decimal?

00101001 = 0*2

7

+ 0*2

6

+ 1*2

5

+ 0*2

4

+ 1*2

3

+

0*2

2

+ 0*2

1

+ 1*2

0

= 2

5

+ 2

3

+ 2

0

(29)

29

(30)

References

Related documents

Other partners for this conference include the CAN-BIND research study, the Mood Disorders Associa- tion of Ontario, the Canadian Depression Research and Intervention Network

• show understanding of Boolean algebra • show understanding of De Morgan's Laws • perform Boolean algebra using De Morgan's Laws • simplify a logic circuit/expression

 It is important to simplify combinational logic circuit via Boolean algebra laws... Steps to Simplify a Complex

I) Create a network of relevant cities, institutions and experts that actively exchange information and experience in the field of SUMP and promote SUMPs in general. II)

Digital electronics is classified into combinational logic and sequential logic. Combinational logic output depends on the inputs levels, whereas sequential

To summarize, clinical features in ELST include SNHL, female gender preponderance, retropetrous le⁃ sion easily separated from the dura, destruction of mid⁃ dle and posterior portion

The full adder for the least significant bit has a carry input signal that can be utilized to add the required 1. The design of our two’s complement adder/subtractor circuit