Implementation of Boolean Logic by Digital Circuits

Similar documents
Boolean Algebra & Digital Logic

Computer Organization: Boolean Logic

Unit 8A Computer Organization. Boolean Logic and Gates

Chapter 2: Switching Algebra and Logic Circuits

Building a Computer Adder

Switches: basic element of physical implementations

Digital Logic. Lecture 5 - Chapter 2. Outline. Other Logic Gates and their uses. Other Logic Operations. CS 2420 Husain Gholoom - lecturer Page 1

XOR - XNOR Gates. The graphic symbol and truth table of XOR gate is shown in the figure.

2009 Spring CS211 Digital Systems & Lab CHAPTER 2: INTRODUCTION TO LOGIC CIRCUITS

Chapter 2 Combinational Logic Circuits

Gates and Flip-Flops

Chapter 2 Combinational Logic Circuits

Number System. Decimal to binary Binary to Decimal Binary to octal Binary to hexadecimal Hexadecimal to binary Octal to binary

XI STANDARD [ COMPUTER SCIENCE ] 5 MARKS STUDY MATERIAL.

Computer organization

Cs302 Quiz for MID TERM Exam Solved

Experiment 7: Magnitude comparators

EEE130 Digital Electronics I Lecture #4

Chapter 2: Boolean Algebra and Logic Gates

Digital Electronics Final Examination. Part A

Looking at a two binary digit sum shows what we need to extend addition to multiple binary digits.

Every time has a value associated with it, not just some times. A variable can take on any value within a range

Digital Logic (2) Boolean Algebra

Intro To Digital Logic

Chapter 2 Boolean Algebra and Logic Gates

1 Boolean Algebra Simplification

Additional Gates COE 202. Digital Logic Design. Dr. Muhamed Mudawar King Fahd University of Petroleum and Minerals

. T SHREE MAHAPRABHU PUBLIC SCHOOL & COLLEGE NOTES FOR BOARD EXAMINATION SUBJECT COMPUTER SCIENCE (Code: 083) Boolean Algebra

Fundamentals of Digital Design

Digital Circuits. 1. Inputs & Outputs are quantized at two levels. 2. Binary arithmetic, only digits are 0 & 1. Position indicates power of 2.

Review: Additional Boolean operations

of Digital Electronics

Digital electronic systems are designed to process voltage signals which change quickly between two levels. Low time.

Boolean algebra. Examples of these individual laws of Boolean, rules and theorems for Boolean algebra are given in the following table.

CS61c: Representations of Combinational Logic Circuits

School of Computer Science and Electrical Engineering 28/05/01. Digital Circuits. Lecture 14. ENG1030 Electrical Physics and Electronics

4 Switching Algebra 4.1 Axioms; Signals and Switching Algebra

Digital Logic. CS211 Computer Architecture. l Topics. l Transistors (Design & Types) l Logic Gates. l Combinational Circuits.

1.10 (a) Function of AND, OR, NOT, NAND & NOR Logic gates and their input/output.

Chapter 2. Digital Logic Basics

10/14/2009. Reading: Hambley Chapters

Combinational Logic. Review of Combinational Logic 1

Chapter 2. Boolean Algebra and Logic Gates

Floating Point Representation and Digital Logic. Lecture 11 CS301

Boole Algebra and Logic Series

Lecture 9: Digital Electronics

DIGITAL CIRCUIT LOGIC BOOLEAN ALGEBRA

Boolean Algebra & Logic Gates. By : Ali Mustafa

CMPE12 - Notes chapter 2. Digital Logic. (Textbook Chapters and 2.1)"

Number System conversions

EECS Variable Logic Functions

Combinational Logic Design Principles

Logic Gates and Boolean Algebra

E40M. Binary Numbers. M. Horowitz, J. Plummer, R. Howe 1

Binary addition example worked out

Computer Science 324 Computer Architecture Mount Holyoke College Fall Topic Notes: Digital Logic

Chapter 2 Boolean Algebra and Logic Gates

Computer Science. 20. Combinational Circuits. Computer Science COMPUTER SCIENCE. Section

ECE 250 / CPS 250 Computer Architecture. Basics of Logic Design Boolean Algebra, Logic Gates

EECS150 - Digital Design Lecture 4 - Boolean Algebra I (Representations of Combinational Logic Circuits)

II. COMBINATIONAL LOGIC DESIGN. - algebra defined on a set of 2 elements, {0, 1}, with binary operators multiply (AND), add (OR), and invert (NOT):

CSC9R6 Computer Design. Practical Digital Logic

UC Berkeley College of Engineering, EECS Department CS61C: Representations of Combinational Logic Circuits

Chapter 2 Combinational Logic Circuits

Lecture 7: Logic design. Combinational logic circuits

Outline. EECS150 - Digital Design Lecture 4 - Boolean Algebra I (Representations of Combinational Logic Circuits) Combinational Logic (CL) Defined

IST 4 Information and Logic

EC-121 Digital Logic Design

EGC221: Digital Logic Lab

CprE 281: Digital Logic

Chapter 2 Combinational Logic Circuits

Digital Electronics. Delay Max. FF Rate Power/Gate High Low (ns) (MHz) (mw) (V) (V) Standard TTL (7400)

UNSIGNED BINARY NUMBERS DIGITAL ELECTRONICS SYSTEM DESIGN WHAT ABOUT NEGATIVE NUMBERS? BINARY ADDITION 11/9/2018

Prove that if not fat and not triangle necessarily means not green then green must be fat or triangle (or both).

CS311 Lecture: Introduction to Digital Logic

Digital Circuit And Logic Design I. Lecture 3

211: Computer Architecture Summer 2016

CPS311 Lecture: Introduction to Digital Logic

In Module 3, we have learned about Exclusive OR (XOR) gate. Boolean Expression AB + A B = Y also A B = Y. Logic Gate. Truth table

Combinational Logic. By : Ali Mustafa

CS 226: Digital Logic Design

ECE/CS 250 Computer Architecture

Logic Design. Chapter 2: Introduction to Logic Circuits

Computer Science. 19. Combinational Circuits. Computer Science COMPUTER SCIENCE. Section 6.1.

Chapter 2 Boolean Algebra and Logic Gates

Boolean Algebra and Digital Logic 2009, University of Colombo School of Computing

Lab 3 Revisited. Zener diodes IAP 2008 Lecture 4 1

Boolean Logic Prof. James L. Frankel Harvard University. Version of 3:20 PM 29-Aug-2017 Copyright 2017, 2016 James L. Frankel. All rights reserved.

Review for Test 1 : Ch1 5

Chap 2. Combinational Logic Circuits

Chapter 1 :: From Zero to One

Combinatorial Logic Design Principles

control in out in out Figure 1. Binary switch: (a) opened or off; (b) closed or on.

Lecture A: Logic Design and Gates

UNIT 8A Computer Circuitry: Layers of Abstraction. Boolean Logic & Truth Tables

Contents. Chapter 2 Digital Circuits Page 1 of 30

CHAPTER1: Digital Logic Circuits Combination Circuits

Applications. Smartphone, tablet, game controller, antilock brakes, microprocessor, Wires

Chapter 3 Combinational Logic Design

Logic Gate Level. Part 2

Transcription:

Implementation of Boolean Logic by Digital Circuits We now consider the use of electronic circuits to implement Boolean functions and arithmetic functions that can be derived from these Boolean functions. Digital circuits are built from standard analog components, such as transistors. It is the manner in which these transistors are used that causes them to display the properties required for a digital circuit. Early digital circuits were based on electromechanical relays, automatic switches that were either on or off. Relay On Relay Off In 1937, George Stibitz of Bell Labs developed what he called the Model K. It was a binary full adder based on relays implementing Boolean logic. He developed the device at home in his kitchen; hence the name. In 1938, Konrad Zuse developed a relay based digital computer, the Z-1, in his parents apartment in Berlin. It was lost to bombing during the war.

Digital Technologies There are quite a few ways to build digital circuits. The choice of which to use in any given device is based on a tradeoff of cost, speed, and power usage. This course is based on an older technology that is a bit simpler to understand. This technology is still seen in digital labs used for teaching. The technology is called TTL (Transistor Transistor Logic). It is based on the use of transistors in a mode in which they act as switches, much like relays. Logically, each TTL device is a Boolean device. All inputs to this device and outputs from this device are either logic 0 or logic 1. Electrically, these TTL devices are built to a standard that determines how voltages into the device will be interpreted and what voltage is output. Here are the voltage standards for active high TTL, the variety we study. Input to Device Output by Device Logic 1 2.0 to 5.0 volts 2.4 to 5.0 volts Logic 0 0.0 to 0.8 volts 0.0 to 0.4 volts Note the greater latitude on input specifications to allow for voltage degradation.

Basic Digital Circuit Elements We have already discussed these gates, but present them again. NOT This function takes one input and produces one output. The gate is shown below. The circle at the right end of the triangle is important. Algebraically, this function is denoted f(x) = X or f(x) = X The evaluation of the function is simple: 0= 1 and 1 = 0. Here is the truth table for the NOT operator. X X 0 1 1 0

Basic Boolean Operators (Part 2) Logic OR This is a function of two Boolean variables. We denote the logical OR of two Boolean variables X and Y by X + Y. Some logic books will use X Y. The evaluation of the logical OR function is shown by a truth table X Y X + Y 0 0 0 0 1 1 1 0 1 1 1 1

Basic Boolean Operators (Part 3) Logic AND This is a function of two Boolean variables. We denote the logical AND of two Boolean variables X and Y by X Y. Some logic books will use X Y. The evaluation of the logical AND function is shown by a truth table X Y X Y 0 0 0 0 1 0 1 0 0 1 1 1

Another Boolean Operator While not a basic Boolean operator, the exclusive OR is very handy. Logic XOR This is a function of two Boolean variables. We denote the logical XOR of two Boolean variables X and Y by X Y. Most logic books seem to ignore this function. The evaluation of the logical XOR function is shown by a truth table From this last table, we see immediately that X 0 = X and X 1 = X X Y X Y 0 0 0 0 1 1 1 0 1 1 1 0

Other Logic Gates The top gate shows the NOR gate and its logical equivalent. The bottom line shows the NAND gate and its logical equivalent. In my notes, I call these derived gates as they are composites of Boolean gates that are more basic from the purely theoretical approach. X Y OR NOR X Y AND NAND 0 0 0 1 0 0 0 1 0 1 1 0 0 1 0 1 1 0 1 0 1 0 0 1 1 1 1 0 1 1 1 0

AND Gates and OR Gates: The Real Way In actual fact, the NAND and NOR gates are more primitive than the AND, OR, and NOT gates in that they are easier to build from transistors. AND is NOT (NAND) X Y NAND AND 0 0 1 0 0 1 1 0 1 0 1 0 1 1 0 1 OR is NOT (NOR) X Y NOR OR 0 0 1 0 0 1 0 1 1 0 0 1 1 1 0 1

Implementation of Basic Circuits These circuits use simple switches to implement NOT, NOR, and NAND gates. V1 5 V R1 1.0kOhm_5% X1 2.5 V J1 Key = Space V3 5 V R3 1.0kOhm_5% X3 J4 Key = C 2.5 V V2 5 V R2 1.0kOhm_5% X2 J5 Key = D J2 Key = A J3 Key = B 2.5 V In the circuit at right, if both switches are closed, (logic 1), the output is 0 volts. If neither or only one is closed, the output is 5 volts. This is a NAND gate.

The NOR Gate Implemented in CMOS

The NAND Gate Implemented in CMOS

The OR Gate and the AND Gate

The NAND Gate as a Universal Gate We show how to use a NAND gate to implement the three basic gates of Boolean logic: AND, OR, and NOT. We begin with a simple NAND gate and its truth table. X Y X Y X Y 0 0 0 1 0 1 0 1 1 0 0 1 1 1 1 0 We now use the NAND gate to implement the basic Boolean devices.

The NAND Gate as a NOT Gate or an AND Gate Note in the above truth table, that if Y = X, then Here is the NAND implementation of the NOT gate. X Y = X X = X. Since the NAND gate is logically equivalent to NOT (AND), we may use double negation to say that the AND gate is equivalent to NOT (NAND). Here is the AND gate as implemented from two NAND gates.

The NAND Gate as an OR Gate In order to fabricate an OR gate from NAND gates, we must recall DeMorgan s laws. One of DeMorgan s laws is usually stated as X Y = X + Y. This can be changed to the form X Y = X + Y = X + Y. Here is the circuit.

Multiple Input Gates The standard definitions of the AND and OR gates call for two inputs. 3 input and 4 input varieties of these gates are quite common. Here we give informal, but precise, definitions. Gate Number of Inputs Output NOT Exactly 1 0 if input is 1, 1 if input is 0 AND 2 or more 0 if any input is 0 1 if and only if all inputs are 1. OR 2 or more 1 if any input is 1 0 if and only if all inputs are 0. NAND 2 or more 1 if any input is 0 0 if and only if all inputs are 1 NOR 2 or more 0 if any input is 1 1 if and only if all inputs are 0.

Example: Changing the Number of Inputs Some lab experiments call for gates with input counts other than what we have. We begin with two ways to fabricate a 4 input AND gate from 2 input ANDs.

Another Example We now consider how to take a 4 input AND gate and make it act as if it were a 2 input AND gate. There are always multiple solutions. Here are two solutions. There are many others.

Fan Out By definition, the fan out of a logic gate is the number of other logic gates receiving input from it. Considerations based on electrical engineering limit the fan out of any gate. Here is an OR gate with a fan out of 5. It drives five other gates of some kind. When the fan out of a circuit element gets too large, there is a voltage sag. This is similar to what can happen in a building when a large motor or large electric heater turns on.

Controlling Fan Out Upon occasion, a given large circuit element will have a number of smaller circuit elements fed from the same input. There is a standard design trick to cause that big circuit to present only one input to the outside world. Here is that trick. Here the fan out issue is transferred to the second NOT gate, which is internal to the larger circuit element.