Boolean Algebra and Logic Gates 1 Computer Engineering (Logic Circuits) Lec. # 8 (Combinational Logic Circuit) Dr. Tamer Samy Gaafar Dept. of Computer.

Slides:



Advertisements
Similar presentations
Combinational Circuits
Advertisements

Computer Engineering (Logic Circuits) Dr. Tamer Samy Gaafar Lec. # 2
Combinational Logic Chapter 4. Digital Circuits Introduction Logic circuits for digital systems may be combinational or sequential. A combinational.
Section 10.3 Logic Gates.
Design of Arithmetic Circuits – Adders, Subtractors, BCD adders
Combinational Logic Chapter 4.
Part 2: DESIGN CIRCUIT. LOGIC CIRCUIT DESIGN x y z F F = x + y’z x y z F Truth Table Boolean Function.
Adders, subtractors, ALUs
CS 105 Digital Logic Design
Combinational Circuits
Combinational Circuits
Morgan Kaufmann Publishers
Chapter 3 Decoder and Encoder Digital Logic Design III
Morgan Kaufmann Publishers
Logic Design CS221 1 st Term combinational circuits Cairo University Faculty of Computers and Information.
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.
Boolean Algebra and Logic Gates 1 Computer Engineering (Logic Circuits) Lec. # 3 Dr. Tamer Samy Gaafar Dept. of Computer & Systems Engineering Faculty.
Dr. Ahmed El-Bialy, Dr. Sahar Fawzy Combinational Circuits Dr. Ahmed El-Bialy Dr. Sahar Fawzy.
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.
ECE 3110: Introduction to Digital Systems Chapter 6 Combinational Logic Design Practices Adders, subtractors, ALUs.
CSE 241 Computer Organization Lecture # 9 Ch. 4 Computer Arithmetic Dr. Tamer Samy Gaafar Dept. of Computer & Systems Engineering.
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 數位系統.
(Combinational Logic Circuit)
CHAPTER 4 Combinational Logic Design- Arithmetic Operation (Section 4.6&4.9)
ECE 3110: Introduction to Digital Systems Chapter 5 Combinational Logic Design Practices X-OR gates and Parity circuits Comparators Adders, subtractors,
Computer Engineering (Logic Circuits) (Karnaugh Map)
Chapter Four Combinational Logic 1. C OMBINATIONAL C IRCUITS It consists of input variables, logic gates and output variables. Output is function of input.
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN Lecture 7 Dr. Shi Dept. of Electrical and Computer Engineering.
Boolean Algebra and Logic Gates CSE-1108 Ahsanullah University of Science and Technology (AUST)
Chapter Four Combinational Logic 1. Discrete quantities of information are represented in digital systems by binary codes. A binary code of n bits is.
1 Chapter 4 Combinational Logic Logic circuits for digital systems may be combinational or sequential. A combinational circuit consists of input variables,
Computing Machinery Chapter 3: Combinational Circuits.
Logic Design CS221 1 st Term combinational circuits Cairo University Faculty of Computers and Information.
COMBINATIONAL LOGIC.
CHAPTER 2 Digital Combinational Logic/Arithmetic Circuits
ECE 320 Homework #4 1. Using 8 data input selector logic (MUX), implement the following two functions: a) F(A,B,C)=S 0 S 2 S 3 S 5 b) F(A,B,C,D)=P 0 +P.
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.
Combinational Circuit Design. Digital Circuits Combinational CircuitsSequential Circuits Output is determined by current values of inputs only. Output.
How does a Computer Add ? Logic Gates within chips: AND Gate A B Output OR Gate A B Output A B A B
MicroProcessors Lec. 4 Dr. Tamer Samy Gaafar. Course Web Page —
ECE 3110: Introduction to Digital Systems Chapter 5 Combinational Logic Design Practices Adders,subtractors, ALUs.
Logic Design (CE1111 ) Lecture 4 (Chapter 4) Combinational Logic Prepared by Dr. Lamiaa Elshenawy 1.
Arithmetic Circuits I. 2 Iterative Combinational Circuits Like a hierachy, except functional blocks per bit.
Chapter 4 Combinational Logic. 4.1 Introduction   Logic circuits for digital systems may be combinational or sequential. A combinational circuit consists.
Gunjeet Kaur Dronacharya Group of Institutions. Binary Adder-Subtractor A combinational circuit that performs the addition of two bits is called a half.
Presented by A. Maleki Fall Semester, 2010
Combinational Circuits
CS2100 Computer Organisation
Part 4 Combinational Logic.
Combinational Functions and Circuits
Lecture 4: Combinational Functions and Circuits
Computer Architecture CST 250
Reference: Moris Mano 4th Edition Chapter 4
FUNCTION OF COMBINATIONAL LOGIC CIRCUIT
Combinational Logic Instructor : Nyoman Karna Course Number : FEH2H3
FIGURE 4.1 Block diagram of combinational circuit
HALF ADDER FULL ADDER Half Subtractor.
ELL100: INTRODUCTION TO ELECTRICAL ENGG.
INTRODUCTION TO LOGIC DESIGN Chapter 4 Combinational Logic
Ch 4. Combinational logic
Digital System Design Combinational Logic
Chapter-4 Combinational Logic
LOGIC Circuits.
Overview of Digital Electronics
Chapter 11 (Part 2): Boolean Algebra
Presentation transcript:

Boolean Algebra and Logic Gates 1 Computer Engineering (Logic Circuits) Lec. # 8 (Combinational Logic Circuit) Dr. Tamer Samy Gaafar Dept. of Computer & Systems Engineering Faculty of Engineering Zagazig University

Boolean Algebra and Logic Gates Course Web Page

Lec. # 8 Ch. 4 Combinational Logic Circuits (Contd.) Boolean Algebra and Logic Gates 3

4 / 65 Binary Adder  Half Adder Adds 1-bit plus 1-bit Produces Sum and Carry HA xyxy SCSC x y C S x + y ─── C S xyxy SCSC

5 / 65 Binary Adder  Full Adder Adds 1-bit plus 1-bit plus 1-bit Produces Sum and Carry x y z C S x + y + z ─── C S FA xyzxyz SCSC y 0101 x1010 z y 0010 x0111 z S = xy'z'+x'yz'+x'y'z+xyz = x  y  z C = xy + xz + yz

6 / 65 Binary Adder  Full Adder xyzxyz SCSC xyzxyz SCSC S = xy'z'+x'yz'+x'y'z+xyz = x  y  z C = xy + xz + yz

7 / 65 Binary Adder  Full Adder XyzXyz SCSC HA xyzxyz SCSC

8 / 65 Binary Adder c3 c2 c1. + x3 x2 x1 x0 + y3 y2 y1 y0 ──────── Cy S3 S2 S1 S0 FA x3 x2 x1 x0 FA y3 y2 y1 y0 S3 S2 S1 S0 C4 C3 C2 C1 0 Binary Adder x3x2x1x0 y3y2y1y0 S3S2S1S0 C0 Cy Carry Propagate Addition

9 / 65 Binary Adder  Carry Propagate Adder CPA A3 A2 A1 A0B3 B2 B1 B0 S3 S2 S1 S0 C0Cy CPA A3 A2 A1 A0B3 B2 B1 B0 S3 S2 S1 S0 C0Cy x3 x2 x1 x0 y3 y2 y1 y0 x7 x6 x5 x4 y7 y6 y5 y4 S3 S2 S1 S0S7 S6 S5 S4 0

10 / 65 BCD Adder  4-bits plus 4-bits  Operands and Result: 0 to 9 + x3 x2 x1 x0 + y3 y2 y1 y0 ──────── Cy S3 S2 S1 S0 X +Y x 3 x 2 x 1 x 0 y 3 y 2 y 1 y 0 SumCyS 3 S 2 S 1 S = = = = = = = = A = = Invalid Code Wrong BCD Value

11 / 65 BCD Adder X +Yx 3 x 2 x 1 x 0 y 3 y 2 y 1 y 0 SumCyS 3 S 2 S 1 S 0 Required BCD OutputValue = = = = = = = = = = = = = = = = = = = = 

12 / 65 BCD Adder  Correct Binary Adder’s Output (+6) If the result is between ‘A’ and ‘F’ If Cy = 1 S 3 S 2 S 1 S 0 Err S1S1 S2S2 S3S S0S0 Err = S3 S2 + S3 S1

13 / 65 BCD Adder Err

14 / 65 Binary Subtractor  Use 2’s complement with binary adder x – y = x + (-y) = x + y’ + 1

15 / 65 Binary Adder/Subtractor  M: Control Signal (Mode) M=0  F = x + y M=1  F = x – y

16 / 65 Overflow  Unsigned Binary Numbers  2’s Complement Numbers FA x3 x2 x1 x0 FA y3 y2 y1 y0 S3 S2 S1 S0 C4 C3 C2 C1 0 Carry FA x3 x2 x1 x0 FA y3 y2 y1 y0 S3 S2 S1 S0 C4 C3 C2 C1 0 Overflow

17 / 65 Magnitude Comparator  Compare 4-bit number to 4-bit number 3 Outputs: Expandable to more number of bits Magnitude Comparator A3A2A1A0 B3B2B1B0 A B

18 / 65 Magnitude Comparator

19 / 65 Magnitude Comparator A3 A2 A1 A0B3 B2 B1 B0 A B I(A>B) I(A=B) I(A<B) x3 x2 x1 x0 y3 y2 y1 y0 x7 x6 x5 x4 y7 y6 y5 y4 A B Magnitude Comparator A3 A2 A1 A0B3 B2 B1 B0 A B I(A>B) I(A=B) I(A<B)

20 / 65 Decoders  Extract “Information” from the code  Binary Decoder Example: 2-bit Binary Number Binary Decoder x1 x0 Only one lamp will turn on

21 / 65 Decoders  2-to-4 Line Decoder I 1 I 0 Y 3 Y 2 Y 1 Y Binary Decoder I1 I0 y3 y2 y1 y0

22 / 65 Decoders  3-to-8 Line Decoder Binary Decoder I2 I1 I0 Y7 Y6 Y5 Y4 Y3 Y2 Y1 Y0

23 / 65 Decoders  “Enable” Control Binary Decoder I1 I0 E Y3 Y2 Y1 Y0 EI 1 I 0 Y 3 Y 2 Y 1 Y 0 0x

24 / 65 Decoders  Expansion I 2 I 1 I 0 Y 7 Y 6 Y 5 Y 4 Y 3 Y 2 Y 1 Y I2 I1 I0 Binary Decoder I0 I1 E Y3 Y2 Y1 Y0 Y7 Y6 Y5 Y4 Y3 Y2 Y1 Y0 Binary Decoder I0 I1 E Y3 Y2 Y1 Y0

Decoders  Active-High / Active-Low I 1 I 0 Y 3 Y 2 Y 1 Y I 1 I 0 Y 3 Y 2 Y 1 Y Binary Decoder I1 I0 Y3 Y2 Y1 Y0 Binary Decoder I1 I0 Y3 Y2 Y1 Y0

Implementation Using Decoders  Each output is a minterm  All minterms are produced  Sum the required minterms Example: Full Adder S(x, y, z) = ∑(1, 2, 4, 7) C(x, y, z) = ∑(3, 5, 6, 7) I2 I1 I0 Y7 Y6 Y5 Y4 Y3 Y2 Y1 Y0 x y z S C Binary Decoder

Implementation Using Decoders I2 I1 I0 Y7 Y6 Y5 Y4 Y3 Y2 Y1 Y0 Binary Decoder x y z S C I2 I1 I0 Y7 Y6 Y5 Y4 Y3 Y2 Y1 Y0 x y z S C Binary Decoder