Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Logic Gates and Truth Tables: Understanding NOT, AND, OR, NAND, NOR, XOR, and XNOR, Schemes and Mind Maps of Logic

An introduction to basic logic gates, including NOT, AND, OR, NAND, NOR, XOR, and XNOR. It explains how to represent logic gates using symbols and truth tables, and provides instructions for creating truth tables for specific gates using Yenka software. The document also includes assignments and exercises for practicing logic gate design and simplification.

What you will learn

  • What is the purpose of simplifying combinational logic circuits?
  • How does an AND gate behave according to its truth table?
  • What is the difference between an OR gate and a NOR gate?
  • How can you create a truth table for an XOR gate using Yenka software?
  • What is the function of a NOT gate?

Typology: Schemes and Mind Maps

2021/2022

Uploaded on 09/12/2022

anamika
anamika 🇺🇸

4.7

(15)

254 documents

1 / 32

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Page 1
BASIC LOGIC GATES
There are seven different logic gates; these are the NOT, AND, OR, NAND,
NOR, XOR and the XNOR.
When drawing circuits containing logic gates it is common to use logic
symbols.
NOT
AND
NAND
OR
NOR
AMERICAN SYMBOLS
1
&
&
BRITISH SYMBOLS
(‘X’ stands for exclusive)
XOR
XNOR
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20

Partial preview of the text

Download Logic Gates and Truth Tables: Understanding NOT, AND, OR, NAND, NOR, XOR, and XNOR and more Schemes and Mind Maps Logic in PDF only on Docsity!

BASIC LOGIC GATES

There are seven different logic gates; these are the NOT, AND, OR, NAND, NOR, XOR and the XNOR.

When drawing circuits containing logic gates it is common to use logic symbols.

NOT

AND

NAND

OR

NOR

AMERICAN SYMBOLS

BRITISH SYMBOLS

(‘X’ stands for exclusive)

XOR

XNOR

TRUTH TABLES

The easiest way to represent how each gate behaves is to make use of Truth Tables.

A Truth Table shows all possible combinations of inputs and outputs to a logic gate.

Electronics is concerned with the processing of electrical signals.

INPUT PROCESS OUTPUT

Input signals come from a variety of sources - a switch from a keyboard; a bar code reader; a temperature sensor; another part of a computer.

Output signals can have a variety of destinations - a monitor; a modem; an alarm; another part of a computer.

Digital signals can be at a HIGH voltage level or a LOW voltage level.

In logic circuits a LOW signal is said to be at logic '0' a HIGH signal at logic ' 1'.

The results can be recorded and used in a number of formats, the most common being shown below.

LOGIC GATE

PROCESS A B

INPUTS OUTPUTS

INPUTS OUTPUTS A B 0 0 1 1

0 1 0 1

0 1 1 0

Results displayed in this way are known as TRUTH TABLES.

ASSIGNMENT 1

  1. How many combinations of input states would there be for a 6 input system?
  2. Write down the 8 possible combinations of input states for a 3 input system.

TRUTH TABLES FOR INDIVIDUAL LOGIC GATES

CIRCUIT SIMULATION SOFTWARE

It is possible to use circuit simulation software such as ‘Yenka’ to investigate electric and electronic circuits.

Use ‘Yenka’ to determine the truth table for each of the following gates

Use latching logic inputs and a logic indicator at the output.

  1. NOT gate
  2. AND gate
  3. OR gate
  1. NAND gate
  2. NOR gate
  3. XOR gate
  4. XNOR gate
  1. The motor in a washing machine should not operate until a high signal is sent from the control program and the water level in the drum is high enough.

WATER LEVEL SENSOR

CONTROL PROGRAM

MOTOR

Which logic gate should be used for this operation?

  1. To avoid accidents at times of poor visibility, a warning indicator in a car operates if the light level is too low (logic level 0) and the headlamps are switched off.

LIGHTLEVEL SENSOR

HEADLAMPS SWITCH

WARNING INDICATOR

Which logic gate should be used for this operation?

  1. In the maternity unit of a hospital, the temperature and pulse rate of premature babies has to be continually monitored. A warning alarm should sound if either the temperature or the pulse rate of the baby falls too LOW.

TEMPERATURE SENSOR

PULSERATE SENSOR

WARNING ALARM

Which logic gate should be used for this operation?

COMBINATIONAL LOGIC SYSTEMS

ASSIGNMENT 3

Complete a truth table for each of the combinations of gates shown below.

METHODS OF MAKING SPECIFIC GATES FROM NANDS

CIRCUIT SIMULATION SOFTWARE

Use Yenka to determine the truth table for each of the following network of NAND gates.

Compare the truth table you obtain with truth tables for the individual gates and decide which gate is the equivalent to the NAND network.

In some of the networks the two inputs of the NAND gate have been connected together to make a single input.

(^1 )

3

4 5

6

A

B

C

D

Z

AND

OR

NOT

SIMPLIFICATION OF COMBINATIONAL LOGIC CIRCUITS

As has previously been stated it is possible to make all logic circuits from NAND gates only.

This section will examine a method for converting circuits that contain a number of different types of gates into one that uses NAND gates only.

Consider the circuit shown.

A

B

B D

C Z

The system is made from an AND gate an OR gate and a NOT gate.

The problem is to design a system with the same Truth Table, but made from NAND gates only.

STEP 1

Redraw the circuit, replacing each gate with its NAND gate equivalent.

This method is not very elegant and can be very demanding in terms of paper use and does not always lead to a very efficient use of NAND gates. The next section on Boolean algebra should allow us to design circuits more effectively and use fewer gates.

ASSIGNMENT 4

The following logic diagrams are constructed from basic gates. Using the method shown, construct equivalent circuits using NAND gates only.

  1. a) Construct a truth table for the logic circuit shown.

A

B

C

b) Redraw the circuit using NAND gates only.

c) Simplify the NAND circuit. d) Construct a truth table for the finished NAND circuit.

BOOLEAN ALGEBRA

Boolean algebra is a special form of algebra that has been developed for binary systems. It was developed by George Boolean in 1854 and can be very useful for simplifying and designing logic circuits.

VARIABLES:

The most commonly used variables in logic circuit design are capital letters; such as A, B, C, Z and so on and are used to annotate inputs and outputs to systems.

In digital electronics we consider situations where the variables can only have one of two possible values, i.e. 'Logical 0' or 'Logical 1'.

The statement A = 1 means that the variable A has the value of Logic 1. Similarly, if B = 0 it means that variable B has the value of logic 0.

Logical Operations: In Boolean algebra there are three logical operators, these are the AND operation, the OR operation and the Inversion.

NAND GATE

The NAND gate is made up from a combination of an AND gate followed by a NOT gate.

A B Z

C

The signal at point C would be A B. This signal is then inverted by the NOT gate to give

ABZ

This reads as output Z is equal to A AND B all NOT

NOR GATE

The NOR gate is made up from a combination of an OR gate followed by a NOT.

A B Z

C

The signal at point C would be A+B. This signal is then inverted by the NOT gate to give

ABZ

This reads as output Z is equal to A OR B all NOT

ASSIGNMENT 5

Write down the Boolean expression for each of the following logic gates.

A B

Z

a)

A B

Z

d)

A B (^) Z C

g)

A B

Z

b)

A (^) Z

e)

A B (^) Z C D

h)

A B

Z

c)

A B Z C

f)

A B (^) Z C D

i)

LAWS OF BOOLEAN ALGEBRA

The following is a summary of the basic laws of Boolean algebra.

  • represents logical operator OR

 represents Logical operator AND

A represents A bar i.e. NOT A ( the inverse of A)

DERIVING THE BOOLEAN EXPRESSION FOR A CIRCUIT

Consider the following circuit.

ASSIGNMENT 6 A

  1. Derive the Boolean expression for each of the following circuits:

a) b)

c) d)

A B

C D

e) f)

A B

C

A

B

  1. Draw a gating arrangement to illustrate^ C Z = ( A ● B ) + C
  2. Draw a logic diagram to yield DBC Develop it to obtain ZAD Write a Boolean equation for the overall behaviour.
  1. Derive the Boolean equation and the truth table the following arrangements: a) b)

A B

C

A B

C

  1. For each pair of circuits shown below:

(i) Write a Boolean expression for each of these circuits; (ii) By constructing a truth table for each of them, show that they are equivalent; (iii) Draw the equivalent arrangements using only 2-input NAND gates.

a)

A B

A B

b)

A B

A

B

B

A

B

B

A

B

B

A

B

B A

B

B