Introduction to Digital Logic Design Appendix A of CO&A Dr. Farag

Slides:



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

Digital Design: Combinational Logic Blocks
Digital Circuits.
Logical Design.
1 KU College of Engineering Elec 204: Digital Systems Design Lecture 9 Programmable Configurations Read Only Memory (ROM) – –a fixed array of AND gates.
التصميم المنطقي Second Course
Appendix A Logic Circuits. Logic circuits Operate on binary variables that assume one of two distinct values, usually called 0 and 1 Implement functions.
Appendix B Digital Logic. Irvine, Kip R. Assembly Language for Intel-Based Computers, NOT AND OR XOR NAND NOR Truth Tables Boolean Operators.
Chapter 11_1 (chap 10 ed 8) Digital Logic. Irvine, Kip R. Assembly Language for Intel-Based Computers, NOT AND OR XOR NAND NOR Truth Tables Boolean.
Combinational Logic Circuits Is the logic circuit where the output always depends on the inputs irrespective of the previous state with out the feed back.
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.
1 Digital Logic
Chapter 4 Gates and Circuits.
TDC 311 Digital Logic. Truth Tables  AND  OR  NOT  NAND  NOR  XOR  XNOR.
ENGG 1203 Tutorial Combinational Logic (I) 1 Feb Learning Objectives
Chapter 12 Digital Logic Circuit Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
CS 105 Digital Logic Design
Sequential Circuits Chapter 4 S. Dandamudi To be used with S. Dandamudi, “Fundamentals of Computer Organization and Design,” Springer,  S.
ReVieW Combinational & Sequential Logic Circuit EKT 221 / 4 DIGITAL ELECTRONICS II.
Digital Computer Design Fundamental
Some Useful Circuits Lecture for CPSC 5155 Edward Bosworth, Ph.D. Computer Science Department Columbus State University.
Chapter 4 Gates and Circuits.
Chapter 10_1 Digital Logic. Irvine, Kip R. Assembly Language for Intel-Based Computers, NOT AND OR XOR NAND NOR Truth Tables Boolean Operators.
Combinational Logic Design
Homework Problems 1. M1 runs the program P in 1.4 * 9 * ns or ns M2 runs the program P in 1.6*9800*10ns or ns Hence M2 is faster by.
Dept. of Computer Science Engineering Islamic Azad University of Mashhad 1 DIGITAL LOGIC CIRCUITS Dept. of Computer Science Engineering Islamic Azad University.
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Logic Circuits I.
Logic Design A Review. Binary numbers Binary numbers to decimal  Binary 2 decimal  Decimal 2 binary.
SUPLEMENTARY CHAPTER 1: An Introduction to Digital Logic The Architecture of Computer Hardware and Systems Software: An Information Technology Approach.
1.Overview of Course Objective 2.Details of course website, BLOG 3.Details of Syllabus 4.Recommended Books 5.Details of Lab Sessions 6.Introductory concepts.
The Digital Logic Level
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Logic Circuits I.
1 DIGITAL ELECTRONICS. 2 OVERVIEW –electronic circuits capable of carrying out logical (boolean) and arithmetic operations on information stored as binary.
1 Boolean Algebra & Logic Gates. 2 Objectives Understand the relationship between Boolean logic and digital computer circuits. Learn how to design simple.
Digital Logic Design Review Dr. Ahmad Almulhem ahmadsm AT kfupm Phone: Office: Ahmad Almulhem, KFUPM 2010.
Chap 4. Sequential Circuits
1 © 2015 B. Wilkinson Modification date: January 1, 2015 Designing combinational circuits Logic circuits whose outputs are dependent upon the values placed.
Module 9.  Digital logic circuits can be categorized based on the nature of their inputs either: Combinational logic circuit It consists of logic gates.
Karnaugh maps for the binary full adder.
1 Lecture 22 Sequential Circuits Analysis. 2 Combinational vs. Sequential  Combinational Logic Circuit  Output is a function only of the present inputs.
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.
Computer Architecture and Organization Unit -1. Digital Logic Circuits – Logic Gates – Boolean Algebra – Map Simplification – Combinational Circuits –
CS/COE0447 Computer Organization & Assembly Language
1 Chapter 4 Combinational Logic Logic circuits for digital systems may be combinational or sequential. A combinational circuit consists of input variables,
Digital Logic Design Basics Combinational Circuits Sequential Circuits Pu-Jen Cheng Adapted from the slides prepared by S. Dandamudi for the book, Fundamentals.
School of Computer and Communication Engineering, UniMAP DKT 122/3 - DIGITAL SYSTEM I Chapter 0: Introduction Mohd ridzuan mohd nor
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.
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.
Prof. Sin-Min Lee Department of Computer Science
DIGITAL LOGIC CIRCUITS
Digital Systems, Principles and Applications, 10th Edition
Combinational Logic Logic circuits for digital systems may be combinational or sequential. A combinational circuit consists of input variables, logic gates,
Lecture 9 Logistics Last lecture Today HW3 due Wednesday
DIGITAL LOGIC CIRCUITS
Reading: Hambley Chapters
Digital Design Fundamentals
Basics Combinational Circuits Sequential Circuits
Basics Combinational Circuits Sequential Circuits Ahmad Jawdat
CS/COE0447 Computer Organization & Assembly Language
29-Nov-18 Counters Chapter 5 (Sections ).
13 Digital Logic Circuits.
Digital Logic Circuits
Synchronous sequential
Synchronous Sequential
Digital Circuits and Logic
Laws & Rules of Boolean Algebra
Presentation transcript:

Introduction to Digital Logic Design Appendix A of CO&A Dr. Farag

Outline Boolean Algebra Gates Combinational Circuits Simplifications of Boolean Functions Multiplexers, Decoders, PLA, ROM, Adders Sequential Circuits Flip-Flops Registers Counters

Boolean Algebra Similar to traditional algebra but it defines a set of logical operations and variables Basic operations: AND, OR, NOT (., +, _) These operations are defined by their truth tables Other operations can be derived from the basic ones. Ex: NAND, NOR, XOR, XNOR

Boolean Algebra (Cont) It defines a set of postulates and another set of identities that can be derived from these postulates A NAND E = NOT(AE) = Ā OR Ē. Proof?

Gates To implement any logic function we need a functionally complete set of gates. Ex (AND, OR, NOT), (AND, NOT), (OR, NOT) (NAND), (NOR) How to implement all basic functions by NAND?? Examine its truth table. Same for NOR From manufacturing point of view, using only one type of gates to implement the circuit is very advantageous. Why? Regular -> Simple -> easy to design -> cheap Gates are the basic building blocks of all digital systems. They are implemented using electronics components (transistors, diodes, resistors, etc.) Different families are TTL, CMOS, ECL, etc. Not our problem

Combinational Logic Circuits It is an interconnected set of gates whose output at any times depends solely on the input at that instant of time. (NOT on a previous output state) These circuits have n inputs & m outputs. They can be defined in terms of truth tables, circuits diagrams, or Boolean equations Implement the following truth by using SOP or POS. Check equivalency

Combinational Logic Circuits (simplification) Simplification: algebraic rules, karnaugh maps, or Quine-McKluskey tables The output of Table 3 can be expressed: F = A’BC’ + A’BC + ABC’ = B(A’+C’) ?? Problem: algebraic rules depend mainly upon observation & experience A more systematic way to simplify digital logic expressions is the use of karnaugh maps

Combinational Logic Circuits (Karnaugh) The map is an array of 2n squares (n # of inputs) How do you fill the map from a truth table?? To use an expression, it should be in canonical form General rules of using the map: Combine ones into groups of (1, 2, 4, 8, …) squares Form the largest group size Form the min number of groups Two group should not intersect unless this will enable a small group to be larger in size Some input combinations shall not occur and in this situation we call the outputs, “do not care” conditions These “ds” can be used as either 1 or 0 Example: designing an incrementer for a BCD number, see Table 4 and Figure 10 in the following slide

Combinational Logic Circuits (Karnaugh) Exercise: Design a 4-bit combinational circuit 2’s complementer (The output generates the 2’s complement of the input binary number)

Combinational Logic Circuits (QMA) Quine-Mckluskey Algorithm is a systematic method to obtain the minimum form of a Boolean expression The details of the algorithm are described in the handout The algorithm is best described by an example Minimize the following function F(A, B, C, D) = Σ (1, 5, 6, 7, 11, 12, 13, 15) This can be expresses as F = A’B’C’D + A’BC’D + A’BCD’ + A’BCD + AB’CD + ABC’D’ + ABC’D + ABCD The minimal expression is F = A’C’D + A’BC + ABC’ + ACD Quiz: Try it using the decimal approach

Applications of Combinational Logic Circuits NAND and NOR implementation Multiplexer: a circuit that has multiple inputs and only one output. At any time one of the input is selected as output based on the value on the select line(s) Below is the truth table for a 4-to-1 multiplexer Implementation?? Application ex: Inputs to PC

Applications of Combinational Logic (Cont) A decoder has n input lines and 2n output lines. Only one output line is selected based on the input Example: Instruction Op code decoding With an additional input line, a decoder can be used as a demultiplexer which connects its single input to one of its outputs based on the value on the address lines PLA (Programmable Logic Array) has the objective of developing a general purpose chip that can be readily adapted to specific purposes It can be implemented by making every possible connection through a fuse. Undesired connections are removed by blowing their fuses This kind is called field-PLA See next slide

Applications of Combinational Logic (Cont)

Applications of Combinational Logic (Cont) ROM is considered a combinational circuit because the outputs are a function only of the current inputs

Applications of Combinational Logic (Cont) How to implement the function of ALU. The basic circuit is the binary adder Sum = A’B’C + A’BC’ + ABC + AB’C’ Carry = AB + AC + BC Implementation??

Applications of Combinational Logic (Cont) We can form n-bit adders by cascading n 1-bit adders The carry of a unit is fed to the next one (ripple adders) The problem with ripple adders is the increasing delay The solution is using carry lookahead technique C0 = A0B0 C1 = A1B1 + A1A0B0 + B1A0 C2, ….. etc. Usually a full adder (32-bit say) is constructed from a number of modules (8-bit) adders where the carries are rippled between modules but each module uses carry lookahead to derive internal carry signals. Quiz: Design an 8-bit carry lookahead adder using two 4-bit units (derive all internal and external carry signals and draw the final diagram)

Sequential Logic Circuits Circuits whose new output depends not only on the current input but also on the past history of that input (in other words on the current output too) Basic application: making memory units (Flip-Flops) A Flip-Flop is a bistable device that has two outputs (one is the complement of the other: Q and Q’) S-R latch: Implementation two NORs with feedback

Sequential Logic Circuits (Cont) S-R characteristic or transition table

Sequential Logic Circuits (Applications) Clocked S-R Flip-Flop: Using AND at the input D Flip-Flop: One input is negated and used as the second input. Implementation & characteristic table J-K Flip-Flop: it differs in that all input combinations are allowed. The last case (J=K=1) causes the output to toggle, a very important feature Implementation and table Flip-Flips are used to implement registers. There are two types of registers A parallel register is a set of 1-bit memories that can be read or written simultaneously. See the following slide A shift register implements the shits function. See the following slide

Sequential Logic Circuits (Applications)

Sequential Logic Circuits (Applications) Counters are one of the most important applications A counter is a register whose value is incremented by 1 modulo its capacity upon the reception of the clock Counters come into two flavors: Ripple counters: straight forward but slow Synchronous counters: Faster but more involved

Sequential Logic Circuits (Applications) Synchronous counters design example. First derive the excitation table of the JK Flip-Flop Construct the truth table then design the input to each latch For each input, use combinational design to implement the required circuit