chapter 6 exclusive-or and exclusive-nor gates 1

23
Chapter 6 Exclusive-OR and Exclusive- NOR Gates 1

Upload: lawson-cardy

Post on 31-Mar-2015

269 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: Chapter 6 Exclusive-OR and Exclusive-NOR Gates 1

Chapter 6

Exclusive-OR and Exclusive-NOR Gates

1

Page 2: Chapter 6 Exclusive-OR and Exclusive-NOR Gates 1

6-1 The Exclusive-OR Gate

• The output is HIGH if either one or the other inputs are HIGH, but not both.

4

Page 3: Chapter 6 Exclusive-OR and Exclusive-NOR Gates 1

The Exclusive-OR Gate

Logic circuits for the exclusive-OR function.

Logic Symbol and Boolean equation

5

Page 4: Chapter 6 Exclusive-OR and Exclusive-NOR Gates 1

Figure 6-2 The Exclusive-OR Gate built with an AND-OR-NAND combination

6

Page 5: Chapter 6 Exclusive-OR and Exclusive-NOR Gates 1

6-2 The Exclusive-NOR Gate

• The complement of the exclusive-OR.• Often called an equality gate: The output is

HIGH when the inputs are equal (both high or both low).

7

Page 6: Chapter 6 Exclusive-OR and Exclusive-NOR Gates 1

The Exclusive-NOR Gate

Ex-NOR Logic Circuit

8

EX-NOR Logic Symbol and Boolean equation

Page 7: Chapter 6 Exclusive-OR and Exclusive-NOR Gates 1
Page 8: Chapter 6 Exclusive-OR and Exclusive-NOR Gates 1
Page 9: Chapter 6 Exclusive-OR and Exclusive-NOR Gates 1
Page 10: Chapter 6 Exclusive-OR and Exclusive-NOR Gates 1

6-3 Parity Generator / Checker

• Electrical noise in the transmission of binary information can cause errors. – 0101 -> 0100 (the electrical noise present on the

line during the transmission of the LSB may change 1 to 0)

• Parity can detect these types of errors.– Receiving device can signal an error condition or

ask the transmitting device to retransmit.

10

Page 11: Chapter 6 Exclusive-OR and Exclusive-NOR Gates 1

Parity systems

• Adds a bit to the binary information– 4-bit system requires a 5th bit, an 8-bit system

needs a 9th bit.

• Odd parity systems– The parity bit that is added must make the sum of

all bits odd.

• Even parity systems– The parity bit that is added must make the sum of

all bits even.

Page 12: Chapter 6 Exclusive-OR and Exclusive-NOR Gates 1

Parity systems

• Parity generator – the circuit that creates the parity bit

• Parity checker– Determines if the received string is of the right

parity on the receiving end

• The type of parity system and the location of parity bit (next to MSB or LSM) must be agreed on beforehand.

Page 13: Chapter 6 Exclusive-OR and Exclusive-NOR Gates 1

Odd parity generator/checker

11

• This scheme only detects errors that occur to 1 bit.• The likelihood of 2 bits being affected is highly

unusual.

Page 14: Chapter 6 Exclusive-OR and Exclusive-NOR Gates 1

Four-bit even- and odd-parity generators

12

Page 15: Chapter 6 Exclusive-OR and Exclusive-NOR Gates 1

Eight-bit even-parity generator

13

Page 16: Chapter 6 Exclusive-OR and Exclusive-NOR Gates 1

Five bit even-parity checker

14

Page 17: Chapter 6 Exclusive-OR and Exclusive-NOR Gates 1

Integrated-Circuit Parity Generator/Checker

• 74280 TTL IC logic symbol and Function Table

15

Page 18: Chapter 6 Exclusive-OR and Exclusive-NOR Gates 1

17

Parity-Error Detection System

Page 19: Chapter 6 Exclusive-OR and Exclusive-NOR Gates 1

Parallel Binary Comparator

Page 20: Chapter 6 Exclusive-OR and Exclusive-NOR Gates 1

19

Controlled Inverter

Page 21: Chapter 6 Exclusive-OR and Exclusive-NOR Gates 1

Discussion Point• Does the circuit below function as an even

or odd parity generator?

21

Page 22: Chapter 6 Exclusive-OR and Exclusive-NOR Gates 1

Summary

• The exclusive-OR gate provides a HIGH output if one input or the other input, but not both, is HIGH.

• The exclusive-NOR gate outputs a HIGH if both inputs are HIGH or if both inputs are LOW.

24

Page 23: Chapter 6 Exclusive-OR and Exclusive-NOR Gates 1

Summary

• A parity bit is commonly used for error detection during the transmission of digital signals.

• Exclusive-OR and exclusive-NOR gates are used in applications such as parity checking, binary comparison and controlled complementing circuits.

• FPGAs can be used to implement circuits containing the exclusive gates.

25