Basics of Logic gates - Part 2

Slides:



Advertisements
Similar presentations
Chapter 4 Gates and Circuits.
Advertisements

Chapter 4 Gates and Circuits Nell Dale • John Lewis.
Chapter 4 Gates and Circuits.
Gates and Circuits Nell Dale & John Lewis (adaptation by Erin Chambers and Michael Goldwasser)
CS105 Introduction to Computer Concepts GATES and CIRCUITS
Chapter 4 Gates and Circuits.
Chapter 2 Logic Circuits.
Relationship Between Basic Operation of Boolean and Basic Logic Gate The basic construction of a logical circuit is gates Gate is an electronic circuit.
Chapter 4 Gates and Circuits.
Lecture 14 Today we will Learn how to implement mathematical logical functions using logic gate circuitry, using Sum-of-products formulation NAND-NAND.
9/19/06 Hofstra University – Overview of Computer Science, CSC005 1 Chapter 4 Gates and Circuits.
Logic Gate Level Combinational Circuits, Part 1. Circuits Circuit: collection of devices physically connected by wires to form a network Net can be: –
Chapter 4 Logic Gates and Boolean Algebra. Introduction Logic gates are the actual physical implementations of the logical operators. These gates form.
Lecture 3. Boolean Algebra, Logic Gates
Gates A digital circuit is one in which only two logical values are present. Typically, a signal between 0 and 1 volt represents one value (e.g. binary.
Any logic circuits can be transformed to an implementation where only NAND gates (and inverters) are used. The general approach to finding a NAND-gate.
In this module you will learn: What the various logic gates do. How to represent logic gates on a circuit diagram. The truth tables for the logic gates.
Logic Gates Circuits to manipulate 0’s and 1’s. 0’s and 1’s used for numbers Also to make decisions within the computer. In that context, 1 corresponds.
3. DIGITAL ELECTRONICS..
Lecture 3. Boolean Algebra, Logic Gates Prof. Sin-Min Lee Department of Computer Science 2x.
Chapter 4 Gates and Circuits. 4–2 Chapter Goals Identify the basic gates and describe the behavior of each Describe how gates are implemented using transistors.
Chapter 4 Gates and Circuits.
Lecture 3. Error Detection and Correction, Logic Gates Prof. Sin-Min Lee Department of Computer Science 2x.
Quiz # 2 Chapters 4, 5, & 6.
Chapter 4 Gates and Circuits. Integrated Circuits aka CHIPS What’s in this thing???? 4–2.
Chapter 4 Gates and Circuits.
CPS120: Introduction to Computer Science
The Digital Logic Level
Digital Logic. 4 Why is 32-bit or 64-bit significant in terms of speed, efficiency? 4 Difference between OR and XOR 4 What is a mux for? PLA 4 Two kinds.
Apr. 3, 2000Systems Architecture I1 Systems Architecture I (CS ) Lecture 3: Review of Digital Circuits and Logic Design Jeremy R. Johnson Mon. Apr.
Logic Gates Shashidhara H S Dept. of ISE MSRIT. Basic Logic Design and Boolean Algebra GATES = basic digital building blocks which correspond to and perform.
Why? What’s Boolean algebra used for? –“The purpose of Boolean algebra is to facilitate the analysis and design of digital circuits.” Express a truth table.
Lecture 22: 11/19/2002CS170 Fall CS170 Computer Organization and Architecture I Ayman Abdel-Hamid Department of Computer Science Old Dominion University.
Week 6: Gates and Circuits: PART I READING: Chapter 4.
Sneha.  Gates Gates  Characteristics of gates Characteristics of gates  Basic Gates Basic Gates  AND Gate AND Gate  OR gate OR gate  NOT gate NOT.
COMPUTER ARCHITECTURE & OPERATIONS I Instructor: Yaohang Li.
BOOLEAN ALGEBRA LOGIC GATES. Introduction British mathematician George Boole( ) was successful in finding the link between logic and mathematics.
MECH 1500 Chapter 4. MECH 1500 The Binary Concept 4.1.
Digital electronics 4–1 Gates and Circuits SANJAYBHAI RAJGURU COLLEGE OF ENGG.
Logic Gates Dr.Ahmed Bayoumi Dr.Shady Elmashad. Objectives  Identify the basic gates and describe the behavior of each  Combine basic gates into circuits.
4–1. BSCS 5 th Semester Introduction Logic diagram: a graphical representation of a circuit –Each type of gate is represented by a specific graphical.
Week 1: Introduction and Logic gates IT3002 – Computer Architecture
CSIS-110 Introduction to Computer Science
Basics of Logic gates - Part 1
Digital Logic.
Dr.Ahmed Bayoumi Dr.Shady Elmashad
Dr.Ahmed Bayoumi Dr.Shady Elmashad
Morgan Kaufmann Publishers
Department of Preparatory Year, Umm Al Qura University
Logic Gates and Logic Circuits
Logic Gates and Boolean Algebra
Chapter 3 Notes – Part II Review Questions
Logic Gates and Boolean Algebra
Digital Logic.
IB Computer Science Computer Organization
Fundamentals & Ethics of Information Systems IS 201
NAND-ONLY LOGIC CIRCUITS
Chapter 4 Gates and Circuits.
CS105 Introduction to Computer Concepts GATES and CIRCUITS
Agenda – 2/12/18 Questions? Readings: CSI 4, P
BASIC & COMBINATIONAL LOGIC CIRCUIT
Boolean Algebra.
Logic Gates.
Today You are Learning simple logic diagrams using the operations AND, OR and NOT truth tables combining Boolean operators using AND, OR and NOT.
Dr. Clincy Professor of CS
Chapter 4 Gates and Circuits.
Digital Logic Design Basics Combinational Circuits Sequential Circuits.
Further binary, Logic diagrams and truth tables
Chapter 3 – Describing Logic Circuits
Agenda Lecture Content: Combinatorial Circuits Boolean Algebras
Presentation transcript:

Basics of Logic gates - Part 2 Letcure: Norah Alsufyan Basics of Logic gates - Part 2

Chapter outline What is Combinational Circuits? Combinational Circuits Meaning Combinational Circuits Weakness Combinational Circuits vs. Sequential Circuits Combinational Circuits Design Real Examples Combinational Circuits Design – Example -1 Combinational Circuits Design – Example -2 Circuit Equivalence Properties of Boolean Algebra Simplification of Boolean Algebra- Example 1 Simplification of Boolean Algebra- Example 2 Several Exercises on Combinational Circuits Integrated Circuit Cpu is collection of logic gates

What is Combinational Circuits?

Combinational Circuits Meaning Gates are combined into circuits by using the output of one gate as the input for another.

Combinational Circuits Weakness Combinational logic circuits have no capacity of storing information. A different type, called sequential logic circuit, can, in addition to combinational logic, remember values and also base decisions on both input values and stored values.

Combinational Circuits vs. Sequential Circuits Combinational logic circuit Sequential logic Circuit

Combinational Circuits vs. Sequential Circuits In a combinational circuit, the input values explicitly determine the output In a sequential circuit, the output is a function of the input values as well as the existing state of the circuit

Combinational Circuits Design OK, design a combinational logic needed to control a stair way light where there are two switches, at both the bottom and top of the stairs and either switch can turn on or off the lamp. Combinational Circuits Design

Combinational Circuits Design As with gates, we can describe the operations of entire circuits using three notations Boolean expressions logic diagrams truth tables

Real Example Draw the logic diagrams for this circuit =) A drill (D) is to operate if we are in automatic (A) and the system (S) is running or if we are in manual (M) and a button (B) is pressed. The boolean (logic) expression for this can be written in the following way: D= A.S+M.B Draw the logic diagrams for this circuit =)

Real Example Buzzer Feature for a Car • Should Buzz when The engine is on, the door is closed and these at belt is unbuckled The engine is on, the door is open What are our input(s)? What are our output(s) Draw the logic diagrams for this circuit Write the truth table for this circuit Computers. Motion Sensors Alarms Computer Phone Calculator Xbox 2.   In this activity we used switches for the circuit inputs and a probe for the circuit output. Though this works fine for testing purposes, it does not reflect the actual sensors and indicator used in real-world applications of combinational logic circuits. List three input and three output devices that could be used with real world applications of combinational logic. Input - Button, Switch, Sensor Output - LED, Motor, Speaker

Combinational Circuits Design – Example -1 Logic Diagrams Representation: Boolean algebra Representation : (AB + AC) Truth table Representation : in the next slide

Combinational Circuits Design – Example -1 cont. Truth table Representation : Because there are three inputs to this circuit, eight rows are required to describe all possible input combinations.. Explain ?

Combinational Circuits Design – Example -2 Now let’s go the other way; let’s take a Boolean expression and draw Consider the following Boolean expression: A(B + C) Logic diagram Truth Table

Circuit Equivalence Now compare the final result column in this truth table for the example 2 to the truth table for the example 1 They are identical We have therefore just demonstrated circuit equivalence That is, both circuits produce the exact same output for each input value combination Boolean algebra allows us to apply provable mathematical principles to help us design logical circuits

Properties of Boolean Algebra

Simplification of Boolean Algebra- Example 1 Show how rule (Absorption) can be proved : x·(x+y) = =  x+x·y using (Distribution Law and idempotent) =  x·(1+y) using (Distribution Law) =  x · 1 using Identity Law =  x as required. Note : Using the theorems of Boolean Algebra, the algebraic forms of functions can often be simplified, which leads to simpler (and cheaper) implementations

Simplification of Boolean Algebra - Example 2 A(b+b+b)= A(b)=

Activity #5 - Group Work 5- 6- 7- 8- 9. 8-  9. A and B are the input signals and X is the output signal. Boolean expression: A  B (A XOR B) Logic Diagram: Truth Table A B X 0 0 0 0 1 1 1 0 1 1 1 0   If both inputs are the same value, XOR returns a 0; otherwise XOR returns a 1. 10. Boolean expression: (A  B)’ (NOT (A AND B)) 0 0 1 If the inputs are different or both 0, NAND returns a 1; if both are 1, it returns a 0. 11. Boolean expression: (A + B)’ (NOT (A AND B)) If the inputs are both 0, NOR returns a 1; otherwise NOR returns a 0. 42. Compare and contrast the AND gate and the NOR gate. An AND gate produces a 1 as output only if both inputs are 1, whereas a NAND gate produces a 1 as output in all cases /except/ when both inputs are 1. That is, the AND and NAND gates produce opposite results. The values produced by one of these gates can be replicated by inverting the results produced by the other. 12.  A B C X 0 0 0 0 0 0 1 0 0 1 0 0 0 1 1 0 1 0 0 0 1 0 1 0 1 1 0 0 1 1 1 1 X = A . B . C 44. Draw and label the symbol for a three-input OR gate, then show its behavior with a truth table. 0 0 1 1 0 1 0 1 0 1 1 1 1 0 0 1 1 0 1 1 1 1 0 1 X = A + B + C Activity #5 - Group Work

5- 6- 7- 8-  9. A and B are the input signals and X is the output signal. Boolean expression: A  B (A XOR B) Logic Diagram: Truth Table A B X 0 0 0 0 1 1 1 0 1 1 1 0   If both inputs are the same value, XOR returns a 0; otherwise XOR returns a 1. 10. Boolean expression: (A  B)’ (NOT (A AND B)) 0 0 1 If the inputs are different or both 0, NAND returns a 1; if both are 1, it returns a 0. 11. Boolean expression: (A + B)’ (NOT (A AND B)) If the inputs are both 0, NOR returns a 1; otherwise NOR returns a 0. 42. Compare and contrast the AND gate and the NOR gate. An AND gate produces a 1 as output only if both inputs are 1, whereas a NAND gate produces a 1 as output in all cases /except/ when both inputs are 1. That is, the AND and NAND gates produce opposite results. The values produced by one of these gates can be replicated by inverting the results produced by the other. 12.  A B C X 0 0 0 0 0 0 1 0 0 1 0 0 0 1 1 0 1 0 0 0 1 0 1 0 1 1 0 0 1 1 1 1 X = A . B . C 44. Draw and label the symbol for a three-input OR gate, then show its behavior with a truth table. 0 0 1 1 0 1 0 1 0 1 1 1 1 0 0 1 1 0 1 1 1 1 0 1 X = A + B + C Lab # 3 - Group Work

Several Exercises on Combinational Circuits

Exercise 1 Draw a circuit diagram corresponding to the following Boolean expression: (A + B)(B + C)

Exercise 2 Draw a circuit diagram corresponding to the following Boolean expression: (AB + C)D

Exercise 3 Draw a circuit diagram corresponding to the following Boolean expression: A’B + (B+C)’

Exercise 4 Draw a circuit diagram corresponding to the following Boolean expression: (AB)’ + (CD)’

Exercise 5 Show the behavior of the following circuit with a truth table: A B AB A+B AB + (A+B) 1

Exercise 6 Show the behavior of the following circuit with a truth table: A B A’ AB A’  (AB) 1

Exercise 7 Show the behavior of the following circuit with a truth table: A B C A’ BC A’(BC) 1

Exercise 8 Show the behavior of the following circuit with a truth table: A B C AB (BC)’ C’ (AB+C’)’ (BC)’ + (AB+C’)’ 1

Activity #6 - Group Work 5- 6- 7- 8- 9. 8-  9. A and B are the input signals and X is the output signal. Boolean expression: A  B (A XOR B) Logic Diagram: Truth Table A B X 0 0 0 0 1 1 1 0 1 1 1 0   If both inputs are the same value, XOR returns a 0; otherwise XOR returns a 1. 10. Boolean expression: (A  B)’ (NOT (A AND B)) 0 0 1 If the inputs are different or both 0, NAND returns a 1; if both are 1, it returns a 0. 11. Boolean expression: (A + B)’ (NOT (A AND B)) If the inputs are both 0, NOR returns a 1; otherwise NOR returns a 0. 42. Compare and contrast the AND gate and the NOR gate. An AND gate produces a 1 as output only if both inputs are 1, whereas a NAND gate produces a 1 as output in all cases /except/ when both inputs are 1. That is, the AND and NAND gates produce opposite results. The values produced by one of these gates can be replicated by inverting the results produced by the other. 12.  A B C X 0 0 0 0 0 0 1 0 0 1 0 0 0 1 1 0 1 0 0 0 1 0 1 0 1 1 0 0 1 1 1 1 X = A . B . C 44. Draw and label the symbol for a three-input OR gate, then show its behavior with a truth table. 0 0 1 1 0 1 0 1 0 1 1 1 1 0 0 1 1 0 1 1 1 1 0 1 X = A + B + C Activity #6 - Group Work

Integrated Circuits

Integrated Circuits An integrated circuit (also called a chip) is a piece of silicon on which multiple gates have been embedded. These silicon pieces are mounted on a plastic or ceramic package with pins along the edges that can be soldered onto circuit boards or inserted into appropriate sockets

Integrated Circuits Integrated circuits (IC) are classified by the number of gates contained in them Page 107

CPU Chips The most important integrated circuit in any computer is the Central Processing Unit, or CPU. Each CPU chip has a large number of pins through which essentially all communication in a computer system occurs ntegrated Circuit (IC) can be a memory chip, configuration chip. logic chip or microprocessor chip, The difference of the last one is it is the brain that process all data taken from the other 3 chips

Conclusion Combinational Circuits are the gates that are combined into circuits by using the output of one gate as the input for another. Combinational Circuits Weakness is solved by inventing sequential logic. Combinational Circuits should simplified, , which leads to simpler (and cheaper) implementations. The most important integrated circuit in any computer is the CPU.