Gates AND, OR, NOT NAND, NOR https://www.youtube.com/watch?v=Aw53UIwnJqU Combinational logic No memory A set of inputs uniquely and unambiguously specifies.

Slides:



Advertisements
Similar presentations
Combinational Circuits
Advertisements

Combinational Circuits ENEL 111. Common Combinationals Circuits NAND gates and Duality Adders Multiplexers.
Lecture 19: Hardware for Arithmetic Today’s topic –Designing an ALU –Carry Look-Ahead Adder 1.
1 Lecture 12: Hardware for Arithmetic Today’s topics:  Designing an ALU  Carry-lookahead adder Reminder: Assignment 5 will be posted in a couple of days.
Cosc 2150: Computer Organization Chapter 3: Boolean Algebra and Digital Logic.
Tutorial: Wednesday Week 3 Hand in on Monday, Do the questions for tutorials 1 & 2 at the back of the course notes (answers to tutorial 3 will be published.
Computer Structure - The ALU Goal: Build an ALU  The Arithmetic Logic Unit or ALU is the device that performs arithmetic and logical operations in the.
30 September 2004Comp 120 Fall September 2004 Chapter 4 – Logic Gates Read in Chapter 4 pages , , section 4.8 through top of page.
Homework Reading Machine Projects Labs
Part 2: DESIGN CIRCUIT. LOGIC CIRCUIT DESIGN x y z F F = x + y’z x y z F Truth Table Boolean Function.
Computer Science 210 Computer Organization The Arithmetic Logic Unit.
CS 105 Digital Logic Design
CS 352 : Computer Organization and Design University of Wisconsin-Eau Claire Dan Ernst Constructing a Computer Creating a general purpose computing device.
Lecture 4 Logic gates and truth tables Implementing logic functions
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.
Systems Architecture I1 Propositional Calculus Objective: To provide students with the concepts and techniques from propositional calculus so that they.
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Logic Circuits I.
+ CS 325: CS Hardware and Software Organization and Architecture Combinational Circuits 1.
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)
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Logic Circuits I.
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 Shashidhara H S Dept. of ISE MSRIT. Basic Logic Design and Boolean Algebra GATES = basic digital building blocks which correspond to and perform.
DIGITAL CIRCUITS David Kauchak CS52 – Fall 2015.
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.
CDA 3101 Fall 2013 Introduction to Computer Organization The Arithmetic Logic Unit (ALU) and MIPS ALU Support 20 September 2013.
Lecture 18: Hardware for Arithmetic Today’s topic –Intro to Boolean functions (Continued) –Designing an ALU 1.
The Karnaugh Map.
Kavita Bala CS 3410, Spring 2014 Computer Science Cornell University.
MIPS ALU. Building from the adder to ALU ALU – Arithmetic Logic Unit, does the major calculations in the computer, including – Add – And – Or – Sub –
Appendix C Basics of Digital Logic Part I. Florida A & M University - Department of Computer and Information Sciences Modern Computer Digital electronics.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Complex Combinational Logic Blocks ECE/CS 252, Fall 2010 Prof.
Cpu control.1 2/14 Datapath Components for Lab The Processor! ( th ed)
Chapter 3 Digital Logic Structures
Mehmet Can Vuran, Instructor University of Nebraska-Lincoln Acknowledgement: Schematics adapted from those provided by the authors Hennessey and Patterson.
1 Lecture 11: Hardware for Arithmetic Today’s topics:  Logic for common operations  Designing an ALU  Carry-lookahead adder.
MIPS ALU. Exercise – Design a selector? I need a circuit that takes two input bits, a and b, and a selector bit s. The function is that if s=0, f=a. if.
Simple ALU  Half adder  Full adder  Constructing 4 bits adder  ALU does several operations  General ALU structure  Timing diagram of adder  Overflow.
1 Chapter 4: Arithmetic for Computers (Part 2) CS 447 Jason Bakos.
1 The ALU l ALU includes combinational logic. –Combinational logic  a change in inputs directly causes a change in output, after a characteristic delay.
LOGIC CIRCUITLOGIC CIRCUIT. Goal To understand how digital a computer can work, at the lowest level. To understand what is possible and the limitations.
1 CS/COE0447 Computer Organization & Assembly Language Logic Design Appendix C.
ETE 204 – Digital Electronics Combinational Logic Design Single-bit and Multiple-bit Adder Circuits [Lecture: 9] Instructor: Sajib Roy Lecturer, ETE,ULAB.
Full Adders Vector Notation Multiplexers and Decoders Ellen Spertus MCS 111 September 6, 2001.
1 CSE370, Lecture 4 Lecture 4 u Logistics n HW1 due now n HW2 posted now and is due one week from today n Lab1 going on this week n Feedback on lectures,
Combinational Circuits
ECE 3130 Digital Electronics and Design
Lecture 11: Hardware for Arithmetic
Homework Reading Machine Projects Labs
FUNCTION OF COMBINATIONAL LOGIC CIRCUIT
MIPS ALU.
5. Combinational circuits
Arithmetic Where we've been:
CS/COE0447 Computer Organization & Assembly Language
MIPS ALU.
Boolean Algebra.
Digital Logic.
Lecture 11: Hardware for Arithmetic
COSC 2021: Computer Organization Instructor: Dr. Amir Asif
Homework Reading Machine Projects Labs
Digital Logic.
COMS 361 Computer Organization
Logic Circuits I Lecture 3.
Combinational Circuits
Special Gates Combinational Logic Gates
XOR Function Logic Symbol  Description  Truth Table 
MIPS ALU.
MIPS ALU.
Presentation transcript:

Gates AND, OR, NOT NAND, NOR Combinational logic No memory A set of inputs uniquely and unambiguously specifies what outputs are Defined by a truth table e.g. Inputs – A,B,C; Outputs – D,E,F Design Process: collect input combinations producing ones in the output 4.2. Logic Design

D = A+B+C F = A^B^C E = A’BC + AB’C + ABC’ => canonical form A BCDEF

XOR Logic block – multiplexor (mux), selector c = a when s = 0 c = b when s = 1 Logic block – Decoder a b Out0 Out1 Out2 Out3 a b s c Digital Logic

a b Carry-out Carry-in sum 1-bit Adder: Properties 1.Fill out a Truth Table 2.Write out Boolean Expressions for outputs S = (a’ ⋅ b’ ⋅ Cin) + (a’ ⋅ b ⋅ Cin’) + (a ⋅ b’ ⋅ Cin’) + (a ⋅ b ⋅ Cin) Cout =(b ⋅ Cin) + (a ⋅ Cin) + (a ⋅ b) 3.Simplify expressions, if possible a b Cin S Cout bit Adder

Carry-Out implementation Similar implementation of Sum (not shown)

1-bit ALU 1-bit adder Logical unit: and/or

1-bit ALU ADD, AND, and OR How to add SUB ? a – b = a + (b’ + 1) Add Binvert How to add 1 ?

1-bit ALU (Full) ADD, AND, OR, SUB How to add NOR ? (A+B)’ = A’B’

CarryIn ALU 0 CarryOut CarryInOperation a0a0 b0b0 Result 0 CarryIn ALU 1 CarryOut a1a1 b1b1 Result 1 CarryIn ALU 2 CarryOut a2a2 b2b2 Result 2 CarryIn ALU 31 CarryOut a 31 b 31 Result 31  32-bit ALU Chain carry-out to carry-in to the next bit Set CarryIn in the least significant bit to 1 for subtraction 32-bit ALU

Comparison: a < b ? if a Check for SIGN bit after subtraction However, the result of subtraction is not of interest, Needs only the sign bit and rest of bits of 0’s

Comparison: a = b (beq) ? if a = b, then a-b = 0 we subtract b from a, then test for all 0’s Need a zero detector Zero = 1 if all result bits are 0’s (couter-intuitive) Subtraction: Add (b’ + 1) Use Bnegate = Binvert + CarryIn