Digital Logic.

Slides:



Advertisements
Similar presentations
Basics Combinational Circuits Sequential Circuits
Advertisements

Cosc 2150: Computer Organization Chapter 3: Boolean Algebra and Digital Logic.
ECE 301 – Digital Electronics Minterm and Maxterm Expansions and Incompletely Specified Functions (Lecture #6) The slides included herein were taken from.
Chapter 4 Logic Gates and Boolean Algebra. Introduction Logic gates are the actual physical implementations of the logical operators. These gates form.
Binary Logic and Gates COE 202 Digital Logic Design Dr. Aiman El-Maleh
1 Fundamentals of Computer Science Propositional Logic (Boolean Algebra)
Logic gates & Boolean Algebra. Introduction Certain components (called logic elements) of the computer combine electric pulses using a set of rules. Electric.
Lecture 17: Digital Design Today’s topic –Intro to Boolean functions Reminders –HW 4 due Wednesday 10/8/2014 (extended) –HW 5 due Wednesday 10/15/2014.
Lecture 7 Topics –Boolean Algebra 1. Logic and Bits Operation Computers represent information by bit A bit has two possible values, namely zero and one.
1 Boolean Algebra & Logic Gates. 2 Objectives Understand the relationship between Boolean logic and digital computer circuits. Learn how to design simple.
Apr. 3, 2000Systems Architecture I1 Systems Architecture I (CS ) Lecture 3: Review of Digital Circuits and Logic Design Jeremy R. Johnson Mon. Apr.
CPS3340 COMPUTER ARCHITECTURE Fall Semester, /05/2013 Lecture 4: Basics of Logic Design Instructor: Ashraf Yaseen DEPARTMENT OF MATH & COMPUTER.
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.
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.
Chapter 3: Digital Logic Dr Mohamed Menacer Taibah University
ACOE1611 Combinational Logic Circuits Reference: M. Mano, C. Kime, “Logic and Computer Design Fundamentals”, Chapter 2.
Linear Algebra. Circuits The circuits in computers and other input devices have inputs, each of which is either a 0 or 1, the output is also 0s and 1s.
COMPUTER ARCHITECTURE & OPERATIONS I Instructor: Yaohang Li.
Logic Simplification-Using Boolean Laws Logic Design Laboratory EE 2121 Lectures By Manesh T EE2121-In Charge
Chapter 3 Boolean Algebra and Digital Logic T103: Computer architecture, logic and information processing.
LOGIC CIRCUITLOGIC CIRCUIT. Goal To understand how digital a computer can work, at the lowest level. To understand what is possible and the limitations.
Mu.com.lec 9. Overview Gates, latches, memories and other logic components are used to design computer systems and their subsystems Good understanding.
Dr. ClincyLecture Slide 1 CS6020- Chapter 3 (3A and ) Dr. Clincy Professor of CS First Exam - Tuesday, September 6th Coverage: All subjects up to.
Computer Architecture & Operations I
Computer Architecture & Operations I
Homework Reading Machine Projects Labs
Boolean Algebra & Logic Gates
Dr.Ahmed Bayoumi Dr.Shady Elmashad
CHAPTER 3 Simplification of Boolean Functions
Morgan Kaufmann Publishers
Logic Gates and Boolean Algebra
Chapter 3 Notes – Part II Review Questions
Homework Reading Machine Projects Labs
CS Chapter 3 (3A and ) Part 1 of 8
ECE 2110: Introduction to Digital Systems
ECE 3110: Introduction to Digital Systems
CHAPTER 3 SETS AND BOOLEAN ALGEBRA
CS Chapter 3 (3A and ) Part 1 of 8
Boolean Expressions Lecture No. 10.
TN 221: DIGITAL ELECTRONICS 1
Boolean algebra Last time we talked about Boolean functions, Boolean expressions, and truth tables. Today we’ll learn how to how use Boolean algebra to.
ECE 331 – Digital System Design
Dr. Clincy Professor of CS
Fundamentals & Ethics of Information Systems IS 201
Basics Combinational Circuits Sequential Circuits
Basics Combinational Circuits Sequential Circuits Ahmad Jawdat
Computer Science 210 Computer Organization
Jeremy R. Johnson Anatole D. Ruslanov William M. Mongan
Dr. Clincy Professor of CS
Agenda – 2/12/18 Questions? Readings: CSI 4, P
Dr. Clincy Professor of CS
Week 7: Gates and Circuits: PART II
Dr. Clincy Professor of CS
CS Chapter 3 (3A and ) Part 3 of 8
CSC 220: Computer Organization Logic Gates and Functions
Logic Gates.
CS Chapter 3 (3A and ) – Part 2 of 5
Gates Type AND denoted by X.Y OR denoted by X + Y NOR denoted by X + Y
GCSE Computer Science – Logic Gates & Boolean Expressions
ECB2212-Digital Electronics Boolean algebra
Dr. Clincy Professor of CS
From now on: Combinatorial Circuits:
Chapter 4 Gates and Circuits.
Lab Instructors will overview the MSP430
Truth tables Mrs. Palmer.
Digital Logic Design Basics Combinational Circuits Sequential Circuits.
Boolean Algebra By: Asst Lec. Besma Nazar Nadhem
Chapter 2 Digital Design and Computer Architecture, 2nd Edition
Agenda Lecture Content: Combinatorial Circuits Boolean Algebras
Presentation transcript:

Digital Logic

Outline Gates and Boolean Algebra Combinational Logic Circuits Sequential Logic Circuits Finite State Machines Memory Organization

Boolean Algebra Boolean algebra is a mathematical system for the manipulation of variables that can have one of two values. In formal logic, these values are “true” and “false.” In digital systems, these values are “on” and “off,” 1 and 0, or “high” and “low.” A Boolean operator performs an operation on Boolean variables. Common Boolean operators include AND, OR, and NOT. A Boolean operator can be completely described using a truth table. A truth table lists the output for all possible input combinations.

Boolean Operators The three basic Boolean operators are as follows:

Boolean Operators NOT operator: equivalent to ! in C++ called the complement denoted as either 𝐴 or 𝐴′ OR operator: equivalent to || in C++ called the Boolean sum denoted 𝐴 + 𝐵   AND operator: equivalent to && in C++ called the Boolean product denoted 𝐴𝐵

Boolean Functions A Boolean function is a function of one or more Boolean variables. Produces an output of one more variables. Boolean operations have rules of precedence: NOT (highest priority), AND, OR. Boolean functions can be represented: Algebraic expression such as 𝐹(𝑥, 𝑦,𝑧)=𝑥 𝑧 +𝑦 Truth table: Explicitly list the output for each input combination

Truth Table Example 𝐹(𝑥, 𝑦,𝑧)=𝑥 𝑧 +𝑦 Inputs Intermediates Output 𝑥 𝑦 𝑧 𝑥 𝑧 + 𝑦 1

Truth Table Example 𝐹(𝑥, 𝑦,𝑧)=𝑥 𝑧 +𝑦 Inputs Intermediates Output 𝑥 𝑦 𝑧 𝑥 𝑧 + 𝑦 1

Logic Gates Boolean functions are implemented in digital computer circuits called gates. A gate is an electronic device that produces a result based on one or more input values. In reality, gates consist of one to six (or more) transistors. Digital designers think of them as a single unit (abstraction).

Logic Gates These gates directly correspond to their respective Boolean operations:

Logical Circuit Example Draw a circuit representing the function: 𝐹 𝑥,𝑦,𝑧 = 𝑥 𝑧 +𝑦

NAND and NOR Gates There are also two other important gates: Note: The circle in the NAND and NOR gates means complement. This shorthand for complement will be used in future circuits.

Logic Gate Variations Gates (except NOT) can have more than two inputs. Sometimes the complement is expressed directly as input (without a NOT gate). The output of gate may also include its complement.

Designing Logical Circuits Beyond correctness, what factors does a hardware designer have to account for? Minimize power consumption Reduce chip area needed Increase speed

Simplifying Boolean Functions There are many different circuits that can be used to implement the same Boolean function. Which is the best one to use? One way of simplifying a complex Boolean function is to use Boolean algebra. Many of the standard algebraic properties apply. Additional properties take advantage of the fact that a variable is either 0 or 1.

Boolean Algebra Properties Here is table of common Boolean algebra properties:

Minterms and Terms A minterm is a product (AND) involving all inputs (some may be complemented) to the function.  For example, F(A, B, C) is a three input function. The following are minterms: 𝐴𝐵𝐶, 𝐴 𝐵 𝐶, 𝐴 𝐵 𝐶 The following are not minterms: 𝐴𝐶 does not involve B 𝐴𝐵𝐶 this is NAND, not AND (𝐴 + 𝐵)𝐶 OR operator not permitted A term is identical to a minterm except that it does not require all inputs. For instance, 𝐴 𝐵 and 𝐴 are considered terms but not minterms.

Sum-of-Products Form The sum-of-products form is a Boolean sum of terms.   Example: 𝐹 𝐴,𝐵,𝐶 =𝐴 𝐵 𝐶+𝐵𝐶+ 𝐴 Any Boolean function can be written in sum-of-products form. Each row in the truth table refers to a different minterm. Simply create a Boolean sum of the minterms that correspond to each row that has an output of 1.

Sum-of-Products Form Example Express the Boolean function represented by the following truth table in sum-of-products form. F = !A!BC + !AB!C + A!BC   𝐴 𝐵 𝐶 𝐹 1