Topic: Arithmetic Circuits Course: Digital Systems Slide no. 1 Chapter # 5: Arithmetic Circuits.

Slides:



Advertisements
Similar presentations
EET 1131 Unit 7 Arithmetic Operations and Circuits
Advertisements

Comparator.
HEXADECIMAL NUMBERS Code
ELEC353 S. al Zahir UBC Sign-Magnitude Representation High order bit is sign: 0 = positive (or zero), 1 = negative Low order bits represent the magnitude:
Addition (2). Outline Full Adder 3-Bit Adder 2’s Complement Subtraction.
Arithmetic Operations and Circuits
EECS Components and Design Techniques for Digital Systems Lec 17 – Addition, Subtraction, and Negative Numbers David Culler Electrical Engineering.
Fixed-Point Arithmetics: Part I
ECE C03 Lecture 61 Lecture 6 Arithmetic Logic Circuits Hai Zhou ECE 303 Advanced Digital Design Spring 2002.
Chapter # 5: Arithmetic Circuits Contemporary Logic Design Randy H
Lecture 8 Arithmetic Logic Circuits
Contemporary Logic Design Arithmetic Circuits © R.H. Katz Lecture #24: Arithmetic Circuits -1 Arithmetic Circuits (Part II) Randy H. Katz University of.
Computer ArchitectureFall 2008 © August 25, CS 447 – Computer Architecture Lecture 3 Computer Arithmetic (1)
Homework Reading Machine Projects Labs
ECE 301 – Digital Electronics
DIGITAL SYSTEMS TCE1111 Representation and Arithmetic Operations with Signed Numbers Week 6 and 7 (Lecture 1 of 2)
Computer ArchitectureFall 2007 © August 29, 2007 Karem Sakallah CS 447 – Computer Architecture.
Chapter 5 Arithmetic Logic Functions. Page 2 This Chapter..  We will be looking at multi-valued arithmetic and logic functions  Bitwise AND, OR, EXOR,
Chapter 7 Arithmetic Operations and Circuits Hexadecimal Arithmetic 4 binary bits represent a single hexadecimal digit Addition –Add the digits.
Arithmetic Operations and Circuits
Computer Organization & Programming Chapter2 Number Representation and Logic Operations.
Chapter 7 Arithmetic Operations and Circuits Binary Arithmetic Addition –When the sum exceeds 1, carry a 1 over to the next-more-significant column.
Adders and Multipliers Review. ARITHMETIC CIRCUITS Is a combinational circuit that performs arithmetic operations, e.g. –Addition –Subtraction –Multiplication.
Chapter 6 Digital Arithmetic: Operations and Circuits ECE 221 Intro
3-1 Chapter 3 - Arithmetic Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring Principles of Computer Architecture.
Basic Arithmetic (adding and subtracting)
The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Arithmetic Circuits II Anselmo Lastra.
1 CMSC 250 Chapter 1, con't., Combinatorial circuits.
Chapter # 5: Arithmetic Circuits
5-1 Programmable and Steering Logic Chapter # 5: Arithmetic Circuits.
CSE 241 Computer Organization Lecture # 9 Ch. 4 Computer Arithmetic Dr. Tamer Samy Gaafar Dept. of Computer & Systems Engineering.
Basic Arithmetic (adding and subtracting)
Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. Terms of Use (Hyperlinks are active in View Show mode) Terms of Use Logic and Computer Design.
ECE 2110: Introduction to Digital Systems Signed Addition/Subtraction.
درس مدارهای منطقی دانشگاه قم مدارهای منطقی محاسباتی تهیه شده توسط حسین امیرخانی مبتنی بر اسلایدهای درس مدارهای منطقی دانشگاه.
Arithmetic Logic Unit (ALU) Anna Kurek CS 147 Spring 2008.
Half Adder & Full Adder Patrick Marshall. Intro Adding binary digits Half adder Full adder Parallel adder (ripple carry) Arithmetic overflow.
EE2174: Digital Logic and Lab Professor Shiyan Hu Department of Electrical and Computer Engineering Michigan Technological University CHAPTER 8 Arithmetic.
Combinational Circuits
Topics covered: Arithmetic CSE243: Introduction to Computer Architecture and Hardware/Software Interface.
69 Decimal (Base 10) Numbers n Positional system - each digit position has a value n 2534 = 2*1, * *10 + 4*1 n Alternate view: Digit position.
CPS3340 Computer Architecture Fall Semester, 2013
Arithmetic Operations
CPEN Digital System Design
Digital Electronics Tutorial: Number System & Arithmetic Circuits Solutions.
CHAPTER 2 Digital Combinational Logic/Arithmetic Circuits
ECE 171 Digital Circuits Chapter 2 Binary Arithmetic Herbert G. Mayer, PSU Status 1/14/2016 Copied with Permission from prof. Mark PSU ECE.
1 Lecture 14 Binary Adders and Subtractors. 2 Overview °Addition and subtraction of binary data is fundamental Need to determine hardware implementation.
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN Lecture 8 Dr. Shi Dept. of Electrical and Computer Engineering.
Lecture #23: Arithmetic Circuits-1 Arithmetic Circuits (Part I) Randy H. Katz University of California, Berkeley Fall 2005.
1 Ethics of Computing MONT 113G, Spring 2012 Session 4 Binary Addition.
ECE DIGITAL LOGIC LECTURE 15: COMBINATIONAL CIRCUITS Assistant Prof. Fareena Saqib Florida Institute of Technology Fall 2015, 10/20/2015.
Simple ALU  Half adder  Full adder  Constructing 4 bits adder  ALU does several operations  General ALU structure  Timing diagram of adder  Overflow.
Integer Operations Computer Organization and Assembly Language: Module 5.
MicroProcessors Lec. 4 Dr. Tamer Samy Gaafar. Course Web Page —
Electrical Engineering Engineering the Future Digital Circuits Fundamentals Hands-on Full-Adder Simulation (afternoon)
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 6. Digital Arithmetic: Operations and Circuits
Gunjeet Kaur Dronacharya Group of Institutions. Binary Adder-Subtractor A combinational circuit that performs the addition of two bits is called a half.
1 Arithmetic Building Blocks Today: Signed ArithmeticFirst Hour: Signed Arithmetic –Section 5.1 of Katz’s Textbook –In-class Activity #1 Second Hour: Adder.
Addition and Subtraction
Negative Integers Unsigned binary representation can not be used to represent negative numbers. With paper and pencil arithmetic, a number is made negative.
Digital Arithmetic Wen-Hung Liao, Ph.D..
Computer Architecture & Operations I
Computer Organization and ASSEMBLY LANGUAGE
Arithmetic Circuits (Part I) Randy H
EE207: Digital Systems I, Semester I 2003/2004
Homework Reading Machine Projects Labs
Presentation transcript:

Topic: Arithmetic Circuits Course: Digital Systems Slide no. 1 Chapter # 5: Arithmetic Circuits

Topic: Arithmetic Circuits Course: Digital Systems Slide no. 2 Chapter Overview Binary Number Representation Sign & Magnitude, Ones Complement, Twos Complement Binary Addition Full Adder Revisited BCD Circuits Combinational Multiplier Circuit

Topic: Arithmetic Circuits Course: Digital Systems Slide no. 3 Number Systems Representation of Negative Numbers Representation of positive numbers same in most systems Major differences are in how negative numbers are represented Three major schemes: sign and magnitude ones complement twos complement Assumptions: we'll assume a 4 bit machine word 16 different values can be represented roughly half are positive, half are negative

Topic: Arithmetic Circuits Course: Digital Systems Slide no. 4 Number Systems Sign and Magnitude Representation High order bit is sign: 0 = positive (or zero), 1 = negative Three low order bits is the magnitude: 0 (000) through 7 (111) Number range for n bits = +/-2 -1 Representations for 0 n-1

Topic: Arithmetic Circuits Course: Digital Systems Slide no. 5 Number Systems Sign and Magnitude Cumbersome addition/subtraction Must compare magnitudes to determine sign of result Examples on Sign and Magnitude (To be done during class)

Topic: Arithmetic Circuits Course: Digital Systems Slide no. 6 Number Systems Ones Complement Shortcut method: simply compute bit wise complement > 1000

Topic: Arithmetic Circuits Course: Digital Systems Slide no. 7 Number Systems Ones Complement Subtraction implemented by addition & 1's complement Still two representations of 0! This causes some problems Some complexities in addition

Topic: Arithmetic Circuits Course: Digital Systems Slide no. 8 Examples on Ones Complement (to be done during the class)

Topic: Arithmetic Circuits Course: Digital Systems Slide no. 9 Number Representations Twos Complement Only one representation for 0 like 1's comp except shifted one position clockwise

Topic: Arithmetic Circuits Course: Digital Systems Slide no. 10 Number Systems Twos Complement Numbers Shortcut method: Twos complement = bitwise complement > > 0111 (representation of 7)

Topic: Arithmetic Circuits Course: Digital Systems Slide no. 11 Number Systems Examples on Twos Complement Numbers (To be done during class)

Topic: Arithmetic Circuits Course: Digital Systems Slide no. 12 Number Systems Overflow Conditions Add two positive numbers to get a negative number or two negative numbers to get a positive number = =

Topic: Arithmetic Circuits Course: Digital Systems Slide no. 13 Number Systems Examples on Overflow Conditions ( to be done during class)

Topic: Arithmetic Circuits Course: Digital Systems Slide no. 14 Networks for Binary Addition Half Adder With twos complement numbers, addition is sufficient Half-adder Schematic

Topic: Arithmetic Circuits Course: Digital Systems Slide no. 15 Networks for Binary Addition Full Adder Cascaded Multi-bit Adder usually interested in adding more than two bits this motivates the need for the full adder

Topic: Arithmetic Circuits Course: Digital Systems Slide no. 16 Networks for Binary Addition Example: Full Adder To be done during class

Topic: Arithmetic Circuits Course: Digital Systems Slide no. 17 Networks for Binary Addition Adder/Subtractor A - B = A + (-B) = A + B + 1

Topic: Arithmetic Circuits Course: Digital Systems Slide no. 18 Arithmetic Logic Unit Design TTL ALU

Topic: Arithmetic Circuits Course: Digital Systems Slide no. 19 BCD Addition BCD Number Representation Decimal digits 0 through 9 represented as 0000 through 1001 in binary Addition: 5 = = = 8 5 = = = 13! Problem when digit sum exceeds 9 Solution: add 6 (0110) if sum exceeds 9! 5 = = = = 1 3 in BCD 9 = = = 16 in binary 6 = = 1 6 in BCD

Topic: Arithmetic Circuits Course: Digital Systems Slide no. 20 BCD Addition Adder Design Add 0110 to sum whenever it exceeds 1001 (11XX or 1X1X)

Topic: Arithmetic Circuits Course: Digital Systems Slide no. 21 Combinational Multiplier Basic Concept multiplicand multiplier 1101 (13) 1011 (11) * (143) Partial products product of 2 4-bit numbers is an 8-bit number

Topic: Arithmetic Circuits Course: Digital Systems Slide no. 22 Combinational Multiplier Partial Product Accumulation A0 B0 A0 B0 A1 B1 A1 B0 A0 B1 A2 B2 A2 B0 A1 B1 A0 B2 A3 B3 A2 B0 A2 B1 A1 B2 A0 B3 A3 B1 A2 B2 A1 B3 A3 B2 A2 B3 A3 B3 S6 S5 S4 S3S2 S1S0 S7

Topic: Arithmetic Circuits Course: Digital Systems Slide no. 23 Combinational Multiplier Partial Product Accumulation Note use of parallel carry-outs to form higher order sums 12 Adders, if full adders, this is 6 gates each = 72 gates 16 gates form the partial products total = 88 gates!

Topic: Arithmetic Circuits Course: Digital Systems Slide no. 24 Chapter Review We have covered: Binary Number Representation positive numbers the same difference is in how negative numbers are represented twos complement easiest to handle: one representation for zero, slightly complicated complementation, simple addition Binary Networks for Additions basic HA, FA BCD Adders Simple extension of binary adders