Points Addressed in this Lecture

Similar documents
1. True or False? A voltage level in the range 0 to 2 volts is interpreted as a binary 1.

Gates, Circuits, and Boolean Algebra

MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question.

BOOLEAN ALGEBRA & LOGIC GATES

ENGI 241 Experiment 5 Basic Logic Gates

Digital circuits make up all computers and computer systems. The operation of digital circuits is based on

Logic in Computer Science: Logic Gates

Basic Logic Gates Richard E. Haskell

Read-only memory Implementing logic with ROM Programmable logic devices Implementing logic with PLDs Static hazards

COMBINATIONAL CIRCUITS

Gates & Boolean Algebra. Boolean Operators. Combinational Logic. Introduction

Logic gates. Chapter. 9.1 Logic gates. MIL symbols. Learning Summary. In this chapter you will learn about: Logic gates

Having read this workbook you should be able to: recognise the arrangement of NAND gates used to form an S-R flip-flop.

Lab 1: Full Adder 0.0

Boolean Algebra Part 1

United States Naval Academy Electrical and Computer Engineering Department. EC262 Exam 1

FORDHAM UNIVERSITY CISC Dept. of Computer and Info. Science Spring, Lab 2. The Full-Adder

Binary Adders: Half Adders and Full Adders

SEQUENTIAL CIRCUITS. Block diagram. Flip Flop. S-R Flip Flop. Block Diagram. Circuit Diagram

Lecture 8: Synchronous Digital Systems

Digital Logic Design. Basics Combinational Circuits Sequential Circuits. Pu-Jen Cheng

Decimal Number (base 10) Binary Number (base 2)

Module 3: Floyd, Digital Fundamental

Karnaugh Maps & Combinational Logic Design. ECE 152A Winter 2012

exclusive-or and Binary Adder R eouven Elbaz reouven@uwaterloo.ca Office room: DC3576

Lecture 5: Gate Logic Logic Optimization

Boolean Algebra. Boolean Algebra. Boolean Algebra. Boolean Algebra

Switching Algebra and Logic Gates

Counters and Decoders

Input, Process and Output

CHAPTER 3 Boolean Algebra and Digital Logic

Elementary Logic Gates

Figure 8-1 Four Possible Results of Adding Two Bits

Unit 3 Boolean Algebra (Continued)

NEW adder cells are useful for designing larger circuits despite increase in transistor count by four per cell.

Combinational Logic Design

Gates. J. Robert Jump Department of Electrical And Computer Engineering Rice University Houston, TX 77251

Theory of Logic Circuits. Laboratory manual. Exercise 3

3.Basic Gate Combinations

2.0 Chapter Overview. 2.1 Boolean Algebra

Digital Electronics Detailed Outline

plc numbers Encoded values; BCD and ASCII Error detection; parity, gray code and checksums

Karnaugh Maps. Circuit-wise, this leads to a minimal two-level implementation

Logic Reference Guide

DIGITAL COUNTERS. Q B Q A = 00 initially. Q B Q A = 01 after the first clock pulse.

ELEC EXPERIMENT 1 Basic Digital Logic Circuits

CHAPTER 11: Flip Flops

EXPERIMENT 4. Parallel Adders, Subtractors, and Complementors

Chapter 2: Boolean Algebra and Logic Gates. Boolean Algebra

Programming Logic controllers

Digital Fundamentals. Lab 8 Asynchronous Counter Applications

Chapter 2 Logic Gates and Introduction to Computer Architecture

Keywords Quantum logic gates, Quantum computing, Logic gate, Quantum computer

6. BOOLEAN LOGIC DESIGN

CHAPTER 2. Logic. 1. Logic Definitions. Notation: Variables are used to represent propositions. The most common variables used are p, q, and r.

Systems I: Computer Organization and Architecture

Sistemas Digitais I LESI - 2º ano

Understanding Logic Design

(Refer Slide Time: 00:01:16 min)

So far we have investigated combinational logic for which the output of the logic devices/circuits depends only on the present state of the inputs.

Take-Home Exercise. z y x. Erik Jonsson School of Engineering and Computer Science. The University of Texas at Dallas

Upon completion of unit 1.1, students will be able to

Sources: On the Web: Slides will be available on:

Chapter 1: Digital Systems and Binary Numbers

Jianjian Song LogicWorks 4 Tutorials (5/15/03) Page 1 of 14

Programmable Logic Controllers Definition. Programmable Logic Controllers History

Circuits and Boolean Expressions

PROGRAMMABLE LOGIC CONTROLLERS Unit code: A/601/1625 QCF level: 4 Credit value: 15 OUTCOME 3 PART 1

Properties of Real Numbers

GRADE 11A: Physics 5. UNIT 11AP.5 6 hours. Electronic devices. Resources. About this unit. Previous learning. Expectations

CSE140: Midterm 1 Solution and Rubric

Lecture #21 April 2, 2004 Relays and Adder/Subtractors

Wires & Connections Component Circuit Symbol Function of Component. Power Supplies Component Circuit Symbol Function of Component

CH3 Boolean Algebra (cont d)

2 SYSTEM DESCRIPTION TECHNIQUES

SYSM 6304: Risk and Decision Analysis Lecture 5: Methods of Risk Analysis

A single register, called the accumulator, stores the. operand before the operation, and stores the result. Add y # add y from memory to the acc

Sequential Logic. (Materials taken from: Principles of Computer Hardware by Alan Clements )

ESYST Residential Wiring

Physics. Cambridge IGCSE. Workbook. David Sang. Second edition Cambers & Sibley: IGCSE Physics Cover. C M Y K

Combinational circuits

Experiment # 9. Clock generator circuits & Counters. Eng. Waleed Y. Mousa

BINARY CODED DECIMAL: B.C.D.

Fully Pumped Systems

ecomax Instructions for use Wall hung room sealed fan assisted condensing boilers For the user

Today s topics. Digital Computers. More on binary. Binary Digits (Bits)

Programming A PLC. Standard Instructions

Sequential Logic Design Principles.Latches and Flip-Flops

EGR 278 Digital Logic Lab File: N278L3A Lab # 3 Open-Collector and Driver Gates

TYXIA. * _Rev.1* Installation and User Guide. Wireless receiver. TYXIA RF channel

Two-level logic using NAND gates

Lesson 12 Sequential Circuits: Flip-Flops

MULTIPLICATION AND DIVISION OF REAL NUMBERS In this section we will complete the study of the four basic operations with real numbers.

Chapter 1. Computation theory

(Refer Slide Time: 2:03)

Electrical Symbols and Line Diagrams

Gray Code Generator and Decoder by Carsten Kristiansen Napier University. November 2004

Designing Digital Circuits a modern approach. Jonathan Turner

Transcription:

Points Addressed in this Lecture Lecture 3: Basic Logic Gates & Boolean Expressions Professor Peter Cheung Department of EEE, Imperial College London (Floyd 3.1-3.5, 4.1) (Tocci 3.1-3.9) What are the basic logic gates? What is Boolean algebra? Boolean variables & expressions Boolean algebra as a way to write down logic Boolean Operators s Relationships between logic gates & Boolean expressions 3.1 Boolean Algebra Digital electronic systems manipulate binary information To design such systems we need a convenient mathematical framework useful systems are often too complicated to keep in our head Boolean algebra provides this framework Points in a circuit are represented by Boolean Variables Boolean algebra allows us to specify relationships between Boolean variables Hence Boolean algebra can be used as a design tool for digital electronic circuits Boolean Variables Boolean variables take the value either 0 or 1 only if a variable doesn't have the value 0, then it must have the value 1 if a variable doesn't have the value 1, then it must have the value 0 In digital electronics: Boolean 0 and 1 correspond to the binary 0 and 1 In logic: 1 and 0 are sometimes called true and false We use symbols to represent Boolean variables just like with ordinary algebra eg: A, B, C, X, Y, Z, etc typically a single character typically upper case Three Logic operations: AND, OR, NOT

Boolean Algebra to Describe Logic Example: House Heating System Principles: set the required temperature using a thermostat turn on heating if temperature lower than required turn off heating if temperature higher than required turn on heating if heating pipes are in danger of freezing Implementation: use a manual switch to turn on the house heating use a room thermostat to detect room temperature use a frost thermostat to detect outside temperature (danger of freezing) use a digital electronic circuit to turn the heating on and off 'intelligently' Boolean representation: 4 variables H, R, F and S H represents the On/Off switch of the entire heating system H = 1 when the heating system is switched on. R represents the room thermostat R = 1 when the room temperature is lower than required F represents the frost thermostat F = 1 when the external temperature is near freezing S represents the On/Off switch of the boiler S = 1 when heat should be generated by the boiler S should be 1 when (H=1 and R=1) or when (F=1 and R=1) In Boolean algebra we use for 'and' and + for 'or' S = H R + F R If we could build an electronic circuit which implemented this we could sell it as a simple heating system controller Boolean Operators Like ordinary algebra, Boolean algebra allows for operations on its variables NOT - Takes the complement (inverse) of a single variable Called 'NOT K' and written K eg: Let K represent a key on a computer keyboard and let K = 1 mean the key is pressed We now have a variable which shows the state of the key: K=1 shows key is pressed K=0 shows key is not pressed If we take the compliment of K we have a variable which also shows the state of the key but in the opposite sense K=1 shows key is not pressed K=0 shows is pressed

Basic Boolean Operators & Logic Gates Truth Tables Inverter How a logic circuit s output depends on the logic levels present at the inputs. AND Gate OR Gate Exclusive-OR Gate NAND Gate NOR Gate Exclusive-NOR Gate 3.9 3.10 The OR Operation & Gate Truth Table & Boolean Expression 4-input OR Gate Symbol or Schematic The output of an OR gate is HIGH whenever one or more inputs are HIGH 4-Input OR Gate 3.11 3.12

Summary of OR operation Example of the use of an OR gate in an Alarm system Produce a result of 1 whenever any input is 1. Otherwise 0. An OR gate is a logic circuit that performs an OR operation on the circuit's input The expression x=a+b is read as x equals A OR B 3.13 3.14 Example 2 Example 3 3.15 3.16

Review Questions The AND Operation & AND Gate What is the only set of input conditions that will produce a LOW output for any OR gate? all inputs LOW Write the for a six-input OR gate X=A+B+C+D+E+F If the A input in previous example is permanently kept at the 1 level, what will the resultant output waveform be? constant HIGH The output of an AND gate is HIGH only when all inputs are HIGH. 3.17 3.18 3-Input AND Gate Summary of the AND operation Review Questions The AND operation is performed the same as ordinary multiplication of 1s and 0s. An AND gate is a logic circuit that performs the AND operation on the circuit s inputs. An AND gate output will be 1 only for the case when all inputs are 1; for all other cases the output will be 0. The expression x=a B is read as x equals A AND B. What is the only input combination that will produce a HIGH at the output of a five-input AND gate? all 5 inputs = 1 What logic level should be applied to the second input of a two-input AND gate if the logic signal at the first input is to be inhibited(prevented) from reaching the output? A LOW input will keep the output LOW True or false: An AND gate output will always differ from an OR gate output for the same input conditions. False 3.19 3.20

The NOT Operation & Inverter Boolean Operations and Expressions Sum (OR) 0 + 0 = 0 0 + 1 = 1 1 + 0 = 1 1 + 1 = 1 Product (AND) 0 0 = 0 0 1 = 0 1 0 = 0 1 1 = 1 The output of an inverter is always the complement (opposite) of the input. 3.21 3.22 The NAND Gate The NOR Gate The output of a NAND gate is HIGH whenever one or more inputs are LOW. The output of a NOR gate is LOW whenever one or more inputs are HIGH. 3.23 3.24

Describing logic circuits algebraically Any logic circuit, no matter how complex, can be completely described using the three basic Boolean operations: OR, AND, NOT. Example: logic circuit with its Parentheses How to interpret A B+C? Is it A B ORed with C? Is it A ANDed with B+C? Order of precedence for Boolean algebra: AND before OR. Parentheses make the expression clearer, but they are not needed for the case on the preceding slide. Therefore the two cases of interpretations are : 3.25 3.26 Circuits Contain INVERTERs More Examples Whenever an INVERTER is present in a logic-circuit diagram, its output expression is simply equal to the input expression with a bar over it. 3.27 3.28

Precedence 1. First, perform all inversions of single terms 2. Perform all operations with parentheses 3. Perform an AND operation before an OR operation unless parentheses indicate otherwise 4. If an expression has a bar over it, perform the operations inside the expression first and then invert the result Determining output level from a diagram 3.29 3.30 More Example Implementing Circuits From Boolean Expressions When the operation of a circuit is defined by a Boolean expression, we can draw a logic-circuit diagram directly from that expression. 3.31 3.32

Example Draw the circuit diagram to implement the expression x = ( A + B )( B + C ) Review Question Draw the circuit diagram that implements the expression x = ABC( A + D) using gates having no more than three inputs. 3.33 3.34