1 Digital Logic

Slides:



Advertisements
Similar presentations
컴퓨터구조론 교수 채수환. 교재 Computer Systems Organization & Architecture John D. Carpinelli, 2001, Addison Wesley.
Advertisements

التصميم المنطقي Second Course
Sequential Circuits1 DIGITAL LOGIC DESIGN by Dr. Fenghui Yao Tennessee State University Department of Computer Science Nashville, TN.
Multiplexors Sequential Circuits and Finite State Machines Prof. Sin-Min Lee Department of Computer Science.
1 CS/COE0447 Computer Organization & Assembly Language Logic Design.
The Map Method Boolean expressions may be simplified by algebraic means as discussed in Previous lecture However, this procedure of minimization is awkward.
1 Chapter 4 Combinational and Sequential Circuit.
Propositional Calculus Math Foundations of Computer Science.
Sequential Circuits Chapter 4 S. Dandamudi To be used with S. Dandamudi, “Fundamentals of Computer Organization and Design,” Springer,  S.
Lecture 10 Topics: Sequential circuits Basic concepts Clocks
Digital Computer Design Fundamental
Introduction to Digital Logic Design Appendix A of CO&A Dr. Farag
Some Useful Circuits Lecture for CPSC 5155 Edward Bosworth, Ph.D. Computer Science Department Columbus State University.
Systems Architecture I1 Propositional Calculus Objective: To provide students with the concepts and techniques from propositional calculus so that they.
1 Fundamentals of Computer Science Propositional Logic (Boolean Algebra)
Dept. of Computer Science Engineering Islamic Azad University of Mashhad 1 DIGITAL LOGIC CIRCUITS Dept. of Computer Science Engineering Islamic Azad University.
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.
1 The Chinese University of Hong Kong Faculty of Education Diploma in Education (Part-Time) Winter 1997 Educational Communications and Technology Assignment.
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Logic Circuits I.
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.
Chap 4. Sequential Circuits
1 Lecture 22 Sequential Circuits Analysis. 2 Combinational vs. Sequential  Combinational Logic Circuit  Output is a function only of the present inputs.
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.
Department of Computer and IT Engineering University of Kurdistan Computer Architecture (Review of Digital Design) By: Dr. Alireza Abdollahpouri.
CHAPTER-2 Fundamentals of Digital Logic. Digital Logic Digital electronic circuits are used to build computer hardware as well as other products (digital.
In1200/04-PDS 1 TU-Delft Digital Logic. in1200/04-PDS 2 TU-Delft Unit of Information l Computers consist of digital (binary) circuits l Unit of information:
Computer Architecture and Organization Unit -1. Digital Logic Circuits – Logic Gates – Boolean Algebra – Map Simplification – Combinational Circuits –
CS/COE0447 Computer Organization & Assembly Language
Sahar Mosleh PageCalifornia State University San Marcos 1 More on Flip Flop State Table and State Diagram.
Digital Logic Design Basics Combinational Circuits Sequential Circuits Pu-Jen Cheng Adapted from the slides prepared by S. Dandamudi for the book, Fundamentals.
CS151 Introduction to Digital Design Chapter 5: Sequential Circuits 5-1 : Sequential Circuit Definition 5-2: Latches 1Created by: Ms.Amany AlSaleh.
LOGIC CIRCUITLOGIC CIRCUIT. Goal To understand how digital a computer can work, at the lowest level. To understand what is possible and the limitations.
Chapter 3 Boolean Algebra and Digital Logic T103: Computer architecture, logic and information processing.
1 CS/COE0447 Computer Organization & Assembly Language Logic Design Appendix C.
1 Binary Signals Logic gate circuits are designed to input and output only two types of signals: “high” (1) and “low” (0), as represented by a variable.
Lecture 1 Gunjeet kaur Dronacharya group of institutions.
Boolean Algebra & Logic Gates
Digital Logic.
Morgan Kaufmann Publishers
Chapter 11 (Part 1): Boolean Algebra
Lecture 6: Universal Gates
DIGITAL LOGIC CIRCUITS
מבנה מחשב תרגול 3.
Jeremy R. Johnson Wed. Sept. 29, 1999
DIGITAL LOGIC CIRCUITS
Basics of Digital Logic Design Presentation D
Asynchronous Inputs of a Flip-Flop
ECE 434 Advanced Digital System L03
Reading: Hambley Chapters
ECE Digital logic Lecture 16: Synchronous Sequential Logic
Lecture 3 Boolean Algebra and Digital Logic Lecture Duration: 2 Hours
Basics Combinational Circuits Sequential Circuits Ahmad Jawdat
CPE/EE 422/522 Advanced Logic Design L02
Jeremy R. Johnson Anatole D. Ruslanov William M. Mongan
Karnaugh Maps References: Lecture 4 from last semester
CS/COE0447 Computer Organization & Assembly Language
ECE434a Advanced Digital Systems L02
Week 7: Gates and Circuits: PART II
Lecture 17 Logistics Last lecture Today HW5 due on Wednesday
Lecture 6: Universal Gates
13 Digital Logic Circuits.
CS/COE0447 Computer Organization & Assembly Language
Logic Circuits I Lecture 3.
Synchronous sequential
Synchronous Sequential
Lecture 17 Logistics Last lecture Today HW5 due on Wednesday
Digital Circuits and Logic
Presentation transcript:

1 Digital Logic

Outline 1.Basics of Boolean algebra and digital implementation 2.Sum of products form and digital implementation 3.Functional Units 4.Repeated Operations 5.Other Building Blocks

TU-Delft TI1400/11-PDS 3 Unit of Information Computers consist of digital (binary) circuits Unit of information: bit (Binary digIT), e.g. 0 and 1 There are two interpretations of 0 and 1: as data values as truth values ( true and false )

TU-Delft TI1400/11-PDS 4 Bit Strings By grouping bits together we obtain bit strings e.g which can be given a specific meaning For instance, we can represent non-negative numbers by bitstrings:

TU-Delft TI1400/11-PDS 5 Boolean Logic We want a computer that can calculate, i.e transform strings into other strings: 1 +2 = 3   = To calculate we need an algebra being able to use only two values George Boole (1854) showed that logic (or symbolic reasoning) can be reduced to a simple algebraic system

TU-Delft TI1400/11-PDS 6 Boolean algebra Rules are the same as school algebra: There is, however, one exception: ! Commutative Law Distributive Law Associative Law

TU-Delft TI1400/11-PDS 7 Boolean algebra To see this we have to find out what the operations “+” and “.” mean in logic First the “.” operation: x.y (or x  y ) Suppose x means “black” and y means “cows”. Then, x.y means “black cows” Hence “.” implies the class of objects that has both properties. Also called AND function.

TU-Delft TI1400/11-PDS 8 Boolean algebra The “+” operation merges independent objects: x + y (or x  y) Hence, if x means “man” and y means “woman” Then x+y means “man or woman” Also called OR function

TU-Delft TI1400/11-PDS 9 Boolean algebra Now suppose both objects are identical, for example x means “cows” Then x.x comprises no additional information Hence

TU-Delft TI1400/11-PDS 10 Boolean algebra Next, we select “0” and “1” as the symbols in the algebra This choice is not arbitrary, since these are the only number symbols for which holds x 2 = x What do these symbols mean in logic? “0” : Nothing “1” : Universe So 0.y = 0 and 1.y = y

TU-Delft TI1400/11-PDS 11 Boolean algebra Also, if x is a class of objects, then 1-x is the complement of that class It holds that x(1-x) = x -x 2 = x-x =0 Hence, a class and its complement have nothing in common x We denote 1-x as x

TU-Delft TI1400/11-PDS 12 Boolean algebra A nice property of this system that we write any function f(x) as We can show this by observing that virtually every mathematical function can be written in polynomial form, i.e

TU-Delft TI1400/11-PDS 13 Boolean algebra Now Hence, Let b = a 0 and a = a 0 + a 1 Then we have From this it follows that

TU-Delft TI1400/11-PDS 14 Boolean algebra So More dimensional functions can be derived in an identical way:

TU-Delft TI1400/11-PDS 15 Binary addition We apply this on the modulo-2 addition

TU-Delft TI1400/11-PDS 16 Binary multiplication Same for modulo-2 multiplication

TU-Delft TI1400/11-PDS 17 Functions Let X denote bitstring, e.g., Any polynomial function Y=f(X) can be constructed using Boolean logic Also holds for functions with more arguments Functions can be put in table form or in formula form

TU-Delft TI1400/11-PDS 18 Gates We use basic components to represent primary logic operations (called gates) Components are made from transistors x y OR x+y x y x.y x x AND INVERT

TU-Delft TI1400/11-PDS 19 Networks of gates We can make networks of gates x y EXOR

TU-Delft TI1400/11-PDS Outline 1.Basics of Boolean algebra and digital implementation 2.Sum of products form and digital implementation 3.Functional Units 4.Repeated Operations 5.Other Building Blocks

TU-Delft TI1400/11-PDS 21 Sum of product form x y f simplify

TU-Delft TI1400/11-PDS 22 Minimization of expressions Logic expressions can often be minimized Saves components Example:

TU-Delft TI1400/11-PDS 23 Karnaugh maps (1) Alternative geometrical method x y v w

TU-Delft TI1400/11-PDS 24 Karnaugh maps (2) w v y x Different drawing

TU-Delft TI1400/11-PDS 25 Don’t Cares Some outputs are indifferent Can be used for minimization

TU-Delft TI1400/11-PDS 26 NAND and NOR gates NAND and NOR gates are universal They are easy to realize de Morgan’s Laws

TU-Delft TI1400/11-PDS Outline 1.Basics of Boolean algebra and digital implementation 2.Sum of products form and digital implementation 3.Functional Units 4.Repeated Operations 5.Other Building Blocks

TU-Delft TI1400/11-PDS 28 Delay Every network of gates has delays input output transition time propagation delay time

TU-Delft TI1400/11-PDS 29 Packaging Vcc Gnd

TU-Delft TI1400/11-PDS 30 Making functions time A,B Y  delay A B Y ADD nand gates

TU-Delft TI1400/11-PDS 31 Functional Units It would be very uneconomical to construct separate combinatorial circuits for every function needed Hence, functional units are parameterized A specific function is activated by a special control string F

TU-Delft TI1400/11-PDS 32 Arithmetic and Logic Unit A B Y F F F A B Y F

TU-Delft TI1400/11-PDS Outline 1.Basics of Boolean algebra and digital implementation 2.Sum of products form and digital implementation 3.Functional Units 4.Repeated Operations 5.Other Building Blocks

TU-Delft TI1400/11-PDS 34 Repeated operations Y : = Y + B i, i=1..n Repeated addition requires feedback Cannot be done without intermediate storage of results B Y F F

TU-Delft TI1400/11-PDS 35 Registers B Y F F = storage element

TU-Delft TI1400/11-PDS 36 SR flip flop Storage elements are not transient and are able to hold a logic value for a certain period of time R S Qa Qb

TU-Delft TI1400/11-PDS 37 Clocks In many circuits it is very convenient to have the state changed only at regular points in time This makes design of systems with memory elements easier Also, reasoning about the behavior of the system is easier This is done by a clock signal clock period

TU-Delft TI1400/11-PDS 38 D flip flop D flip flop samples at clock is high and stores if clock is low QnQn QnQn C D DQ n+101

TU-Delft TI1400/11-PDS 39 Edge triggered flip flops In reality most systems are built such that the state only changes at rising edge of the clock pulse We also need a control signal to enable a change state change

TU-Delft TI1400/11-PDS 40 Basic storage element O C I R/W time C D Q C I O R/W enables a state change

TU-Delft TI1400/11-PDS Outline 1.Basics of Boolean algebra and digital implementation 2.Sum of products form and digital implementation 3.Functional Units 4.Repeated Operations 5.Other Building Blocks

TU-Delft TI1400/11-PDS 42 4-bit register C R/W C D Q I O C D Q I O C D Q I O C D Q I O

TU-Delft TI1400/11-PDS 43 Some basic circuits Y MPLEX m AB Y = A if m=1 Y = B if m=0 Y Decoder A Only output y A = 1, rest is 0

TU-Delft TI1400/11-PDS 44 Decoder Y A Only output y A = 1, rest is 0 a2 a a1 a2#y

TU-Delft TI1400/11-PDS 45 Multiplexer Y MPLEX m AB Y = A if m=1 Y = B if m=0 y m a b

TU-Delft TI1400/11-PDS End of Lecture Comments? Questions?

TU-Delft TI1400/11-PDS 47 Memory REG1 REG2 REG3 REG4 mplex decoder Address Din Dout R/W

TU-Delft TI1400/11-PDS 48 Counter MPLEX INC 0001 R/W preset output REG

TU-Delft TI1400/11-PDS 49 Sequential circuits The counter example shows that systems have state The state of such systems depend on the current inputs and the sequence of previous inputs The state of a system is the union of the values of the memory elements of that system

TU-Delft TI1400/11-PDS 50 State diagrams We call the change from one state to another a state transition Can be represented as a state diagram S0 S1 S2 code

TU-Delft TI1400/11-PDS 51 Conditional Change S0 S1 S2 x=0 x=1

TU-Delft TI1400/11-PDS 52 Coding of State

TU-Delft TI1400/11-PDS 53 Put in Karnaugh map 00d1 10d1 x y z 10d0 00d0 x y z Y Z

TU-Delft TI1400/11-PDS 54 Scheme DQ DQ x Y Z z y

TU-Delft TI1400/11-PDS 55 General scheme Combinatorial Logic Delay elements Inputs Outputs

TU-Delft TI1400/11-PDS 56 Procedure FST 1.Make State Diagram 2.Make State Table 3.Give States binary code 4.Put state update functions in Karnaugh Map 5.Make combinatorial circuit to realize functions