Chapter 4 Combinational Logic. 4.1 Introduction   Logic circuits for digital systems may be combinational or sequential. A combinational circuit consists.

Slides:



Advertisements
Similar presentations
Chapter 4 Combinational Logic.
Advertisements

Cs 1110 Ch 4-1 Combinational Logic. ° Introduction Logic circuits for digital systems may be: °2°2 combinational sequential OR A combinational circuit.
COE 202: Digital Logic Design Combinational Circuits Part 1
Combinational Circuits. Analysis Diagram Designing Combinational Circuits In general we have to do following steps: 1. Problem description 2. Input/output.
التصميم المنطقي Second Course
DPSD This PPT Credits to : Ms. Elakya - AP / ECE.
08/07/041 CSE-221 Digital Logic Design (DLD) Lecture-8:
Combinational Logic Chapter 4. Digital Circuits Introduction Logic circuits for digital systems may be combinational or sequential. A combinational.
Design of Arithmetic Circuits – Adders, Subtractors, BCD adders
Combinational Logic Chapter 4.
Combinational Logic1 DIGITAL LOGIC DESIGN by Dr. Fenghui Yao Tennessee State University Department of Computer Science Nashville, TN.
Chapter 3 Combinational Logic Design
CS 105 Digital Logic Design
Combinational Circuits
Combinational Circuits
Digital Logic Lecture 08 By Amr Al-Awamry. Combinational Logic 1 A combinational circuit consists of an interconnection of logic gates. Combinational.
Morgan Kaufmann Publishers
Combinational Logic Design CS341 Digital Logic and Computer Organization F2003.
Combinational Logic Design
Combinational Logic Chapter 4.
Outline Analysis of Combinational Circuits Signed Number Arithmetic
Combinational Logic Chapter 4. Digital Circuits Combinational Circuits Logic circuits for digital system Combinational circuits the outputs are.
1 COMBINATIONAL LOGIC One or more digital signal inputs One or more digital signal outputs Outputs are only functions of current input values (ideal) plus.
Chap 3. Chap 3. Combinational Logic Design. Chap Combinational Circuits l logic circuits for digital systems: combinational vs sequential l Combinational.
CORRECTION Last session, I have made a mistake about two digital coding methods. I explained Hamming code as Grey code mistakenly. Here is correct explanation.
+ CS 325: CS Hardware and Software Organization and Architecture Combinational Circuits 1.
Chapter 3 Combinational Design Digital Logic Design III
Combinational Circuits
Combinational Logic. Outline 4.1 Introduction 4.2 Combinational Circuits 4.3 Analysis Procedure 4.4 Design Procedure 4.5 Binary Adder- Subtractor 4.6.
F = ∑m(1,4,5,6,7) F = A’B’C+ (AB’C’+AB’C) + (ABC’+ABC) Use X’ + X = 1.
1 Chapter 4 Combinational Logic Logic circuits for digital systems may be combinational or sequential. A combinational circuit consists of input variables,
WEEK #10 FUNCTIONS OF COMBINATIONAL LOGIC (ADDERS)
1 Adders & Subtractors Adders –An adder is a combinational logic circuit that performs the addition of 2 binary numbers (A & B) to generate the sum (S)
Combinational Logic. Digital Circuits Introduction Logic circuits for digital systems may be combinational or sequential. A combinational circuit.
Digital System Ch4-1 Chapter 4 Combinational Logic Ping-Liang Lai ( 賴秉樑 ) Digital System 數位系統.
Boolean Algebra and Logic Gates 1 Computer Engineering (Logic Circuits) Lec. # 8 (Combinational Logic Circuit) Dr. Tamer Samy Gaafar Dept. of Computer.
Module 9.  Digital logic circuits can be categorized based on the nature of their inputs either: Combinational logic circuit It consists of logic gates.
Lecture 9 Topics: –Combinational circuits Basic concepts Examples of typical combinational circuits –Half-adder –Full-adder –Ripple-Carry adder –Decoder.
CHAPTER 4 Combinational Logic
Unit 2 Combinational Circuits. Introduction Logic circuits for digital systems may be either combinational or sequential. A combinational circuit consists.
Chapter 4 Combinational Logic 授課教師: 張傳育 博士 (Chuan-Yu Chang Ph.D.)
Logic Gates Logic gates are electronic digital circuit perform logic functions. Commonly expected logic functions are already having the corresponding.
Chapter Four Combinational Logic 1. C OMBINATIONAL C IRCUITS It consists of input variables, logic gates and output variables. Output is function of input.
CS 105 DIGITAL LOGIC DESIGN Chapter 4 Combinational Logic 1.
Chap 2. Combinational Logic Circuits
Fuw-Yi Yang1 數位系統 Digital Systems Department of Computer Science and Information Engineering, Chaoyang University of Technology 朝陽科技大學資工系 Speaker: Fuw-Yi.
Digital Integrated Circuit Design Laboratory Department of Computer Science and Information Engineering National Cheng Kung University Experiment on digital.
1 Chapter 4 Combinational Logic Logic circuits for digital systems may be combinational or sequential. A combinational circuit consists of input variables,
Logic Design CS221 1 st Term combinational circuits Cairo University Faculty of Computers and Information.
Combinational Circuits
CHAPTER 2 Digital Combinational Logic/Arithmetic Circuits
Chapter Four Combinational Logic 1. C OMBINATIONAL C IRCUITS It consists of input variables, logic gates and output variables. Output is function of input.
1 Combinational Logic EE 208 – Logic Design Chapter 4 Sohaib Majzoub.
C OMBINATIONAL L OGIC D ESIGN 1 Eng.Maha AlGubali.
Logic Design (CE1111 ) Lecture 4 (Chapter 4) Combinational Logic Prepared by Dr. Lamiaa Elshenawy 1.
Fuw-Yi Yang1 數位系統 Digital Systems Department of Computer Science and Information Engineering, Chaoyang University of Technology 朝陽科技大學資工系 Speaker: Fuw-Yi.
ETE 204 – Digital Electronics Combinational Logic Design Single-bit and Multiple-bit Adder Circuits [Lecture: 9] Instructor: Sajib Roy Lecturer, ETE,ULAB.
Lecture 1 Gunjeet kaur Dronacharya group of institutions.
CS151 Introduction to Digital Design Chapter 3: Combinational Logic Design 3-4 Verification 1Created by: Ms.Amany AlSaleh.
Chap 3. Combinational Logic Design
Combinational Circuits
Combinational Logic Logic circuits for digital systems may be combinational or sequential. A combinational circuit consists of input variables, logic gates,
Computer Architecture CST 250
Chapter 4 Combinational Logic
FIGURE 4.1 Block diagram of combinational circuit
Ch 4. Combinational logic
Digital System Design Combinational Logic
Combinational Circuits
Chapter-4 Combinational Logic
Overview of Digital Electronics
Presentation transcript:

Chapter 4 Combinational Logic

4.1 Introduction   Logic circuits for digital systems may be combinational or sequential. A combinational circuit consists of logic gates whose outputsat anytime are determined from only the present combinationof inputs. 2

4.2 Combinational Circuits  Logic circuits for digital system  Sequential circuits    contain memory elements the outputs are a function of the current inputs and the state of the memory elements the outputs also depend on past inputs 3

 A combinational circuits  2possible combinations of input values n Combinationa l circuits Combinatixnal xoxic Circuit n inputm output variables 4  Specific functions  Adders, subtractors, comparators, decoders, encoders, andmultiplexers

4-3 Analysis Procedure  A combinational circuit    make sure that it is combinational not sequential  No feedback path derive its Boolean functions (truth table) designverification

A straight-forward procedure = AB+AC+BCF 2 T 1 = A+B+C 6 1 = AxB+C T T = ABC = F2'T1 = T3+T2F

 F = (AB+AC+BC)'(A+B+C)+ABC = (A'+B')(A'+C“)(B'+C')(A+B+C)+ABC = (A'+B'C')(AB'+AC'+BC'+B'C)+ABC = A'BC'+A'B‘C+AB‘C'+ABC = T+T=F=F'T+ABC 7

 The truth table 8

4-4 Design Procedure The design procedure ofcombinational circuits      State the problem (system spec.) determine the inputs and outputs the inputand output variables are assigned symbols derivethe truth table xerive the simplified Boolxan functionx draw the logic diagram and verify the correctness 9   derive the simplifi edb oolean functions

 Functional description    Boolean function HDL (Hardware description language)   Verilog HDL VHDL Schematicentry number of gates number of inputs to a gate Propagation delay number ofinterconnection limitations of the driving capaeilities 10  Logic minimization     

Cdde conversion example  BCD to excess-3 code  Thetruth table 11

The maps 12

 The simplified functions  z = D' y = CD +C'D‘ x = B'C + B‘D+BC'D' w = A+BC+BD  z = D' y = CD +C'D'= CD + (C+D)' x = B'C +B'D+BC'D‘ = B'(C+D) +B(C+D)' w = A+BC+BD 13  Another implementation 

 The logic diagram 14

4-5Binary Adder-Subtractor  Half adder     = 0 ; = 1 ; = 1 ;1+ 1 = 10 two input variables: x, y two output variables: C (carry), S (sum) truth table 15

    S = x'y+xy' C = xy the flexibility for implementation S=x  y S = (x+y)(x'+y')  S = (C+x'y')' C = xy = (x'+y')x  16  S‘= xy+x'y'

17

CS  A full adder is similar to a half adder, but includes a carry-in bit from lower stages. Like the half-adder, it computes a sum bit, S and a carry bit, C. ◦ For a carry-in (Z) of 0, it is the same as the half-adder: ◦ For a carry- in (Z) of 1: Z0000 X Y C S Z1111 X Y C S

 Full-Adder    The arithmetic sum of three inputbits three input bits   x, y: two significant bits z: the carrybit from the previous lower significant bit Two outputbits: C, S 18

19

  S = x'y'z+x'yz'+ xy'z'+xyz C = xy+ xz + yz S = z  (x  y) = z'(xy'+x‘y)+z(xy'+x'y)' = z‘xy'+z'x'y+z(xy+x‘y') = xy'z'+x'yz'+xyz+x'y'z C = z(xy'+x'y)+xy = xy'z+x'yz+ xy 20

Binary adder 21

 Carry propagation   when the correct outputs are available the critical path counts (the worst case) 22

 Reduce the carry propagation delay    employ faster gates look-ahead carry (more complex mechanism, yet faster) carrypropagate: P iiiiii = A BB carry gxnerate: G= AB       carry generate: G iiiiii = AB sum: S = P iiiiii CC carry: C i+1iii = G +P C C C =G=G+PC = G+PC= G+P(G+PC) = G PG PC C= G+PC= G+PG PG+P+PPPC

 Logicdiagram Digitxl Circuits 2x2x

4-bit carry-look ahead adder  propagation delay xigital Cixcuits 25

Binary subtractor   A-B = A+(2’s complement of B) 4-bit Adder-subtractor  M=0, A+B; M=1, A+B’+1 26

 Overflow     The storage is limited Add two positive numbers and obtain a negative number Add two negative numbers and obtain a positive number V = 0, no overflow; V = 1, overflow 27 Example: