Combinational Circuits and Boolean

Slides:



Advertisements
Similar presentations
Logic Gates.
Advertisements

Digital Circuits. Review – Getting the truth table The first step in designing a digital circuit usually is to get the truth table. That is, for every.
Digital Circuits.
Combinational Circuits ENEL 111. Common Combinationals Circuits NAND gates and Duality Adders Multiplexers.
Appendix B Digital Logic. Irvine, Kip R. Assembly Language for Intel-Based Computers, NOT AND OR XOR NAND NOR Truth Tables Boolean Operators.
ECE C03 Lecture 21 Lecture 2 Two Level Minimization Hai Zhou ECE 303 Advanced Digital Design Spring 2002.
Relationship Between Basic Operation of Boolean and Basic Logic Gate The basic construction of a logical circuit is gates Gate is an electronic circuit.
Lecture 14 Today we will Learn how to implement mathematical logical functions using logic gate circuitry, using Sum-of-products formulation NAND-NAND.
Contemporary Logic Design Two-Level Logic © R.H. Katz Transparency No. 3-1 Chapter #2: Two-Level Combinational Logic Section 2.1, Logic Functions.
Contemporary Logic Design Two-Level Logic © R.H. Katz Transparency No. 4-1 Chapter #2: Two-Level Combinational Logic Section 2.3, Switches and Tools.
بهينه سازي با نقشة کارنو Karnaugh Map. 2  Method of graphically representing the truth table that helps visualize adjacencies 2-variable K-map 3-variable.
Part 2: DESIGN CIRCUIT. LOGIC CIRCUIT DESIGN x y z F F = x + y’z x y z F Truth Table Boolean Function.
ENGG 1203 Tutorial Combinational Logic (I) 1 Feb Learning Objectives
Chapter 10_1 Digital Logic. Irvine, Kip R. Assembly Language for Intel-Based Computers, NOT AND OR XOR NAND NOR Truth Tables Boolean Operators.
Binary Numbers.
Hardware Logic Diagrams - The Basics - Marshall Thomas CIS 21JA – Fall Quarter 2012.
F = ∑m(1,4,5,6,7) F = A’B’C+ (AB’C’+AB’C) + (ABC’+ABC) Use X’ + X = 1.
1 The Chinese University of Hong Kong Faculty of Education Diploma in Education (Part-Time) Winter 1997 Educational Communications and Technology Assignment.
Computer Organization 1 Logic Gates and Adders. Propositions –Venn Diagrams.
Module 9.  Digital logic circuits can be categorized based on the nature of their inputs either: Combinational logic circuit It consists of logic gates.
Logic Gates Logic gates are electronic digital circuit perform logic functions. Commonly expected logic functions are already having the corresponding.
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.
Chapter 3: Digital Logic Dr Mohamed Menacer Taibah University
4. Computer Maths and Logic 4.2 Boolean Logic Logic Circuits.
Digital Logic. 2 Abstractions in CS (gates) Basic Gate: Inverter IO IO GNDI O Vcc Resister (limits conductivity) Truth Table.
Logic Design CS 270: Mathematical Foundations of Computer Science Jeremy Johnson.
Chapter 2 Two- Level Combinational Logic. Chapter Overview Logic Functions and Switches Not, AND, OR, NAND, NOR, XOR, XNOR Gate Logic Laws and Theorems.
CH51 Chapter 5 Combinational Logic By Taweesak Reungpeerakul.
Computer Arithmetic, K-maps Prof. Sin-Min Lee Department of Computer Science.
Computer Systems 1 Fundamentals of Computing Simplifying Boolean Expressions.
Chapter 3 Digital Logic Structures
Gates AND, OR, NOT NAND, NOR Combinational logic No memory A set of inputs uniquely and unambiguously specifies.
Logic Gates and Boolean Algebra Introduction to Logic II.
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.
LOGIC CIRCUITLOGIC CIRCUIT. Goal To understand how digital a computer can work, at the lowest level. To understand what is possible and the limitations.
K-maps and Decoders Prof. Sin-Min Lee Department of Computer Science.
Combinational Circuits
Lecture 4 Logistics Last lecture --- Boolean algebra Today’s lecture
Eng. Mai Z. Alyazji October, 2016
Lesson Objectives Aims Be able to define problems using Boolean logic
Multiplexer.
Logic Gates.
Summary Half-Adder Basic rules of binary addition are performed by a half adder, which has two binary inputs (A and B) and two binary outputs (Carry out.
XOR, XNOR, and Binary Adders
Reading: Hambley Chapters
Basics Combinational Circuits Sequential Circuits
Basics Combinational Circuits Sequential Circuits Ahmad Jawdat
CSE 311 Foundations of Computing I
CSE 370 – Winter Combinational Logic - 1
XOR, XNOR, & Binary Adders
Number Systems Decimal (base 10) { }
Boolean Algebra.
Week 7: Gates and Circuits: PART II
Lecture 6 Logistics Last lecture Today’s lecture
Lecture 7 Logistics Last lecture Today HW2 due now Lab2 going on
Logic Gates.
Digital Logic.
Logic Gates.
13 Digital Logic Circuits.
Digital Logic.
DIGITAL ELECTRONICS B.SC FY
XOR, XNOR, and Binary Adders
Combinational Circuits
Lecture 4 Logistics Last lecture --- Boolean algebra Today’s lecture
Special Gates Combinational Logic Gates
Digital Circuits.
Lecture 7 Logistics Last lecture Today HW2 due now Lab2 going on
XOR, XNOR, and Binary Adders
More Example.
Presentation transcript:

Combinational Circuits and Boolean Jess Role@UEAB 2006

Common Combinational Circuits NAND gates and Duality Adders Multiplexers Jess Role@UEAB 2006

De Morgan again A NAND gate: Y = A.B = A + B is the same as an OR gate with two NOT gates Similarly a NOR gate is the same as an AND gate with two inverters Y = A + B = A.B not the individual terms change the sign not the lot Jess Role@UEAB 2006

Dual gates not the individual inputs change the gate not the output Jess Role@UEAB 2006

Truth Tables and Boolean Notation NAND Gate Representation It is possible to implement any boolean expression using only NAND gates NOT X X AND A.B A A.B B OR A A+B B Jess Role@UEAB 2006

Truth Tables and Boolean Notation NAND Gate representation Implement the following circuit using only NAND gates x2 x4 x3 De Morgan can also be represented visually: Jess Role@UEAB 2006

Solution Dual the gates, remember two nots together can be removed. x3 x2 x4 A B A.B A+B AND feeding OR Jess Role@UEAB 2006

Exercise Implement NOT, AND and OR using NOR gates Example AND gate dual circuit: Jess Role@UEAB 2006

Solution Similar pattern to using NAND gates (not surprising) NOT AND OR X A B A.B A+B Jess Role@UEAB 2006

Truth Tables and Boolean Notation NOR Gate representation It is also possible to implement any boolean expression using only NOR gates Implement the following circuit using only NOR gates X4 X3 X 2 Jess Role@UEAB 2006

Solution Two NOR gates in sequence acting as NOT’s can be eliminated: X4 X3 X 2 Jess Role@UEAB 2006

Examples The half adder A B S C 1 The half adder is a circuit for adding two single bit numbers Develop a truth table and Boolean expressions for the half adder A B S C 1 0 0 1 1 +0 +1 +0 +1 0 1 1 1 carry 1 S and C are the Sum and Carry A B S C 0 0 0 0 0 1 1 0 1 0 1 0 1 1 0 1 s = notA.B + BnotA = A + B c = A.B Jess Role@UEAB 2006

Half adder The sum is XOR operation and the carry an AND: A B S C 1 C 1 Jess Role@UEAB 2006

Examples The full adder Develop a truth table and Boolean expressions for the full adder, this circuit also includes a carry in. Cin A B S C 0 0 0 0 0 1 0 1 0 0 1 1 1 0 0 1 0 1 1 1 0 1 1 1 Sum A full adder B 0 0 1 1 +0 +1 +0 +1 0 1 1 1 carry 1 Cout Cin 0Cin1 0Cin1 1Cin1 1Cin1 +0 +1 +0 +1 1 0carry1 0carry1 1carry 1 SUM Cin AB 00 01 11 10 Jess Role@UEAB 2006 1 1 Cin A B S C 0 0 0 0 0 0 0 1 1 0 0 1 0 1 0 0 1 1 0 1 1 0 0 1 0 1 0 1 0 1 1 1 0 0 1 1 1 1 1 1 1 1 1 Cout A BC 00 01 11 10 1 1 1 1 1

Truth table for full adder C in A B S C out 1 Exercise: Complete the Karnaugh maps for the Sum and the Carry out columns Jess Role@UEAB 2006

K maps for sum and carry AB C in 00 01 11 10 1 AB C in 00 01 11 10 1 Sum – 1 when odd number of inputs is 1 = XOR gate Carry out - simplifies to 3 pairs AB C in 00 01 11 10 1 AB C in 00 01 11 10 1 C out = A.B + A.Cin + B.Cin Sum = Cin xor A xor B Jess Role@UEAB 2006

Full adder circuit A B Sum Count C in Sum = Cin xor A xor B Cout = A.B + A.Cin + B.Cin Jess Role@UEAB 2006

Examples The Multiplexer Selects one of 2n inputs and copies it to a single output The selected line is determined from the bit combination (address) on the n selection lines e.g. 1 from 2 mutiplexer n = 1 a out 0 0 0 0 0 1 0 1 0 0 1 1 1 0 0 1 0 1 1 1 0 1 1 1 sel a b out b 1 sel 0 0 0 0 0 0 1 0 0 1 0 1 0 1 1 1 1 0 0 0 1 0 1 1 1 1 0 0 1 1 1 1 sel a b out sel ab 00 01 11 10 A BC 00 01 11 10 1 1 1 1 1 1 out = not(sel).a + sel.b out = Jess Role@UEAB 2006

2:1 Multiplexer sel a b out ? 1 sel a b out 1 AB sel 00 01 11 10 1 ? 1 sel a b out 1 if a is selected, don’t care about b. AB sel 00 01 11 10 1 Jess Role@UEAB 2006

K map for 2:1 Multiplexer AB sel 00 01 11 10 1 output = sel.a + sel.b 1 output = sel.a + sel.b data Principal can be extended to 4:1 – 2 select lines and 4 data lines 8:1 – 3 select lines and 8 data lines and so on… out sel Jess Role@UEAB 2006

What you should be able to do: Change circuits using one set of gates (eg AND, OR, NOT) to their equivalent using NAND or NOR gates only (and vice versa). Be familiar with half-, full- adders and multiplexer circuits. Be able to construct and interpret Karnaugh maps with up to 4 input variables. Jess Role@UEAB 2006