1 Combinational Circuits Alexander Titov 10/27/2012.

Slides:



Advertisements
Similar presentations
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.
Advertisements

Digital Circuits.
Lecture 5 EGRE 254 1/28/09. 2 Boolean algebra a.k.a. “switching algebra” –deals with Boolean values -- 0, 1 Positive-logic convention –analog voltages.
Chapter 2 Logic Circuits.
Binary Addition. Binary Addition (1) Binary Addition (2)
CK Cheng Tuesday 10/2/02 CS 140 Lecture 2. Part I. Combinational Logic I) Specification –a. Language –b. Truth Table –c. Boolean Algebra –d. Incompletely.
CS 300 – Lecture 3 Intro to Computer Architecture / Assembly Language Digital Design.
1 CSE 20: Lecture 7 Boolean Algebra CK Cheng 4/21/2011.
Propositional Calculus Math Foundations of Computer Science.
Part 2: DESIGN CIRCUIT. LOGIC CIRCUIT DESIGN x y z F F = x + y’z x y z F Truth Table Boolean Function.
Propositional Equivalence Goal: Show how propositional equivalences are established & introduce the most important such equivalences.
XOR, XNOR, and Binary Adders
Digital Logic Circuits – Chapter 1 Section 1-3, 1-2.
1 CHAPTER 4: PART I ARITHMETIC FOR COMPUTERS. 2 The MIPS ALU We’ll be working with the MIPS instruction set architecture –similar to other architectures.
Binary Addition CSC 103 September 17, 2007.
XOR and XNOR Logic Gates. XOR Function Output Y is TRUE if input A OR input B are TRUE Exclusively, else it is FALSE. Logic Symbol  Description  Truth.
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.
SUPLEMENTARY CHAPTER 1: An Introduction to Digital Logic The Architecture of Computer Hardware and Systems Software: An Information Technology Approach.
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Logic Circuits I.
1 Sequential Digital Circuits Alexander Titov 11 October 2014.
EE2420 – Digital Logic Summer II 2013 Hassan Salamy Ingram School of Engineering Texas State University Set 4: Other Gates.
Lecture 9 Topics: –Combinational circuits Basic concepts Examples of typical combinational circuits –Half-adder –Full-adder –Ripple-Carry adder –Decoder.
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.
+ CS 325: CS Hardware and Software Organization and Architecture Gates and Boolean Algebra Part 2.
Computer Science 101 Circuit Design - Examples. Sum of Products Algorithm Identify each row of the output that has a 1. Identify each row of the output.
IT253: Computer Organization Lecture 7: Logic and Gates: Digital Design Tonga Institute of Higher Education.
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.
1 Lecture 6 BOOLEAN ALGEBRA and GATES Building a 32 bit processor PH 3: B.1-B.5.
Boolean Algebra AND gate A B | AB 0 0 | | | | 1 OR gate A B | A + B 0 0 | | | | 1 NOT gate _ A | A or A’ 0 | 1 1 |
Universal college of engineering & technology. .By Harsh Patel)
Sneha.  A combinational circuit that performs the addition of two bits is called a half adder.  It has two inputs.  It has two outputs.
Boolean Algebra and Logic Gates CSE-1108 Ahsanullah University of Science and Technology (AUST)
BOOLEAN ALGEBRA – Digital Circuit 1 Choopan Rattanapoka.
R. Johnsonbaugh Discrete Mathematics 5 th edition, 2001 Chapter 9 Boolean Algebras and Combinatorial Circuits.
Chapter 3 Digital Logic Structures
NAND, NOR, and EXOR (more primitive logical gates) CS Computer Architecture David Mayer.
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 12. Chapter Summary Boolean Functions Representing Boolean Functions Logic Gates Minimization of Circuits (not currently included in overheads)
Department of Preparatory Year, Umm Al Qura University
Propositional Equivalence
CHAPTER 2 Boolean Algebra
Computer Organization and Design Transistors & Logic - II
Combinational Circuits
Computer Architecture CST 250
Dr. Clincy Professor of CS
XOR, XNOR, and Binary Adders
CSE 311 Foundations of Computing I
Boolean Algebra.
Basic Logic Gates 1.
Lecture 14: Boolean Algebra
Digital Circuits.
XOR, XNOR, & Binary Adders
Boolean Algebra.
Week 7: Gates and Circuits: PART II
Digital Logic.
Number Systems and Circuits for Addition
Boolean Algebra Introduction CSCI 240
Logic Gates.
COMS 361 Computer Organization
Digital Logic.
DIGITAL ELECTRONICS B.SC FY
Logic Circuits I Lecture 3.
XOR, XNOR, and Binary Adders
Lecture 4 Logistics Last lecture --- Boolean algebra Today’s lecture
XOR Function Logic Symbol  Description  Truth Table 
NTU DSD (Digital System Design) 2007
XOR, XNOR, and Binary Adders
Presentation transcript:

1 Combinational Circuits Alexander Titov 10/27/2012

2 Moscow Institute of Physics and Technology uArchSim Project Layers of Abstraction in Computes Science (CS) Application Algorithms Programming Language Operating System Instruction Set Architecture Microarchitecture Gates/Register-Transfer Level (RTL) Circuits Physics Topics of this lecture Less about physics, wires and transistors… More about logical circuits

3 Moscow Institute of Physics and Technology uArchSim Project Boolean Algebra Boolean Algebra (BA) works with object that can take only two values (true and false, or 1 and 0 ). Such object is called a Boolean object (term bit of information is used in CS) BA defines operations on Boolean objects → Boolean operations and functions It is convenient to represent these operations and functions via truth tables: abc b a c Boolean function Truth table abc 00 abc 00 abc

4 Moscow Institute of Physics and Technology uArchSim Project Main Boolean operations The simplest Boolean operation is … AND (or Boolean multiplication) inversion (NOT) x!x xx x*y x y xy

5 Moscow Institute of Physics and Technology uArchSim Project Main Boolean operations OR (or Boolean addition) x+y x y xy XOR (or exclusive OR, or addition by module 1) xyx + y x y

6 Moscow Institute of Physics and Technology uArchSim Project Boolean functions Boolean operations can be combined into functions F(x, y, z) = x + !y*z x y z x + !y*z xyzF ……

7 Moscow Institute of Physics and Technology uArchSim Project Main axioms There about ten axioms that can be used to create new or to simplify existed functions AxiomAND formOR form AxiomAND formOR form Identity law1*x = x0 + x = x AxiomAND formOR form Identity law1*x = x0 + x = x Idempotent lawx*x = xx + x = x AxiomAND formOR form Identity law1*x = x0 + x = x Idempotent lawx*x = xx + x = x Inverse law!x*x = 0!x + x = 1 AxiomAND formOR form Identity law1*x = x0 + x = x Idempotent lawx*x = xx + x = x Inverse law!x*x = 0!x + x = 1 Commutativity lawx*y = y*xx + y = y + x AxiomAND formOR form Identity law1*x = x0 + x = x Idempotent lawx*x = xx + x = x Inverse law!x*x = 0!x + x = 1 Commutativity lawx*y = y*xx + y = y + x Associativity law(x*y)*z = x*(y*z)(x + y) + z = x + (y + z) AxiomAND formOR form Identity law1*x = x0 + x = x Idempotent lawx*x = xx + x = x Inverse law!x*x = 0!x + x = 1 Commutativity lawx*y = y*xx + y = y + x Associativity law(x*y)*z = x*(y*z)(x + y) + z = x + (y + z) … There are a lot of other useful equations: !(xy) = !x + !y or something more complex … n(n(x) + y) + n(n(x) + n(y)) = x (Huntington equation)

8 Moscow Institute of Physics and Technology uArchSim Project Combinational logic If the output of a function is completely defined by the current input then the function is called combinational. F t = F(x t, y t, z t )F = F(x t, y t, z t, F t- 1 ) combinational sequentional Combinational logic (scheme) is an implementation of a combinational function. Ok, but how does this all connect with the microarchitecture?

9 Moscow Institute of Physics and Technology uArchSim Project Half adder scheme x y z0z0 z1z1 xyz0z0 z1z It is an adder, but it is not a full adder, because it does not have input carry It is called a half adder half + y x sum carry sum carry It is an adder, but it is not a full adder, because it does not have input carry

10 Moscow Institute of Physics and Technology uArchSim Project Full adder scheme half + ynyn xnxn c n-1 half + snsn Cn xnxn ynyn c n-1 snsn cncn

11 Moscow Institute of Physics and Technology uArchSim Project Wide adder half + ynyn xnxn y n+1 x n+1 c n-1 cncn c n+1 snsn s n+1

Thank You 12