CSE 246: Computer Arithmetic Algorithms and Hardware Design Instructor: Prof. Chung-Kuan Cheng Fall 2006 Lecture 1: Introduction and Numbers.

Slides:



Advertisements
Similar presentations
CSE 246: Computer Arithmetic Algorithms and Hardware Design Instructor: Prof. Chung-Kuan Cheng Winter 2004 Lecture 2.
Advertisements

CENG536 Computer Engineering Department Çankaya University.
CSE 246: Computer Arithmetic Algorithms and Hardware Design Instructor: Prof. Chung-Kuan Cheng Lecture 6.
1 Lecture 9: Floating Point Today’s topics:  Division  IEEE 754 representations  FP arithmetic Reminder: assignment 4 will be posted later today.
CSE 246: Computer Arithmetic Algorithms and Hardware Design Instructor: Prof. Chung-Kuan Cheng Lecture 5.
MOHD. YAMANI IDRIS/ NOORZAILY MOHAMED NOOR 1 Lecture 3 Number System.
Copyright 2008 Koren ECE666/Koren Part.1.1 Israel Koren Spring 2008 UNIVERSITY OF MASSACHUSETTS Dept. of Electrical & Computer Engineering Digital Computer.
CSE 246: Computer Arithmetic Algorithms and Hardware Design
CSE 246: Computer Arithmetic Algorithms and Hardware Design Instructor: Prof. Chung-Kuan Cheng Winter 2004 Lecture 1.
Computer ArchitectureFall 2008 © August 25, CS 447 – Computer Architecture Lecture 3 Computer Arithmetic (1)
CSE 246: Computer Arithmetic Algorithms and Hardware Design Instructor: Prof. Chung-Kuan Cheng Fall 2006 Lecture 9: Floating Point Numbers.
1 CSE1301 Computer Programming Lecture 28 Number Representation (Integer)
CSE 246: Computer Arithmetic Algorithms and Hardware Design Instructor: Prof. Chung-Kuan Cheng Winter 2005 Lecture 1: Numbers.
ECE 331 – Digital System Design
CSE 246: Computer Arithmetic Algorithms and Hardware Design Instructor: Prof. Chung-Kuan Cheng Winter 2004 Lecture 7.
Slide 1 Instructor: Dr. Hong Jiang Teaching Assistant: Mr. Sheng Zhang Department of Computer Science & Engineering University of Nebraska-Lincoln Classroom:
S. Barua – CPSC 240 CHAPTER 2 BITS, DATA TYPES, & OPERATIONS Topics to be covered are Number systems.
Computer ArchitectureFall 2007 © August 29, 2007 Karem Sakallah CS 447 – Computer Architecture.
CSE 20 Discrete Mathematics Instructor CK Cheng, CSE2130 tel: Teaching Assistants Jingwei Lu
Data Representation – Binary Numbers
Click to edit Master title style Click to edit Master text styles –Second level Third level –Fourth level »Fifth level 1 Today’s Topics How information.
Computer Architecture
COMPUTER ORGANIZATIONS CSNB123 May 2014Systems and Networking1.
Data Representation and Computer Arithmetic
Lecture 1 Binary Representation Topics Terminology Base 10, Hex, binary Fractions Base-r to decimal Unsigned Integers Signed magnitude Two’s complement.
07/19/2005 Arithmetic / Logic Unit – ALU Design Presentation F CSE : Introduction to Computer Architecture Slides by Gojko Babić.
Number Representation Part 1 Fixed-Radix Unsigned Representations ECE 645: Lecture 1.
مدار منطقي مظفر بگ محمدي Course Structure & Grading Homework: 25% Midterm: 30% Final:50% There is 5% extra! ( =105!) Textbook:
CHAPTER 1 INTRODUCTION NUMBER SYSTEMS AND CONVERSION
Mohammad Amin Kuhail M.Sc. (York, UK) University of Palestine Faculty of Engineering and Urban planning Software Engineering Department Digital Logic Design.
Lecture 9: Floating Point
Mohammad Reza Najafi Main Ref: Computer Arithmetic Algorithms and Hardware Designs (Behrooz Parhami) Spring 2010 Class presentation for the course: “Custom.
CSE 8351 Computer Arithmetic Fall 2005 Instructor: Peter-Michael Seidel.
ECE 456 Computer Architecture
1 Number Systems Lecture 10 Digital Design and Computer Architecture Harris & Harris Morgan Kaufmann / Elsevier, 2007.
 Lecture 2 Processor Organization  Control needs to have the  Ability to fetch instructions from memory  Logic and means to control instruction sequencing.
Lecture 2 Binary Arithmetic Topics Terminology Fractions Base-r to decimal Unsigned Integers Signed magnitude Two’s complement August 26, 2003 CSCE 211.
FAMU-FSU College of Engineering 1 Part III The Arithmetic/Logic Unit.
Number Representation Lecture Topics How are numeric data items actually stored in computer memory? How much space (memory locations) is.
Orange Coast College Business Division Computer Science Department CS 116- Computer Architecture Logic Design: Part 1.
FAMU-FSU College of Engineering 1 Computer Architecture EEL 4713/5764, Spring 2006 Dr. Michael Frank Module #9 – Number Representations.
CSE 246: Computer Arithmetic Algorithms and Hardware Design Instructor: Prof. Chung-Kuan Cheng Fall 2006 Lecture 7 Division.
CSC 331: DIGITAL LOGIC DESIGN COURSE LECTURER: E. Y. BAAGYERE. CONTACT: LECTURE TIME: 15:40 – 17:45 hrs. VENUE: SP-LAB.
Computer Arithmetic — Number Representation EPFL – I&C – LAP EPFL – CSDA and UC Davis – ACSEL.
Welcome to CSE 370 Introduction to Digital Design Jan 10, 2002.
Dr. Nermin Hamza 1. Materials Book: Digital Design 4 th M. Morris Mano and Michael D. Ciletti 2.
Floating Point Arithmetic – Part I
Addition and Subtraction
CSE 575 Computer Arithmetic Spring 2003 Mary Jane Irwin (www. cse. psu
UNIVERSITY OF MASSACHUSETTS Dept
CHAPTER 9 COMPUTER ARITHMETIC - ALU
Lecture 9: Floating Point
CSE 102 Introduction to Computer Engineering
CSE 575 Computer Arithmetic Spring 2003 Mary Jane Irwin (www. cse. psu
Overview Introduction Data representation Fixed Point Representation
Systems Architecture I
EEL 3705 / 3705L Digital Logic Design
EEL 3705 / 3705L Digital Logic Design
Data Representation in Computer Systems
Arithmetic Logical Unit
EEL 3705 / 3705L Digital Logic Design
Digital Systems and Binary Numbers
Digital Logic Design (CSNB163)
Systems Architecture I
COMS 161 Introduction to Computing
COMS 161 Introduction to Computing
CSE 140: Computer Arithmetic Algorithms and Hardware Design
Presentation transcript:

CSE 246: Computer Arithmetic Algorithms and Hardware Design Instructor: Prof. Chung-Kuan Cheng Fall 2006 Lecture 1: Introduction and Numbers

CSE 2462 Agenda  Administration  Motivation  Lecture 1: Numbers

CSE 2463 Administration  Textbook: Computer Arithmetic Algorithms and Hardware Designs, Behrooz Parhami, Oxford  Recommended: Art of Computer Programming, Volume 2, Seminumerical Algorithms (3rd Edition), Donald E. Knuth  Numerical Computing with IEEE Floating Point Arithmetic, Michael L. Overton, SIAM  Computer Arithmetic Algorithms, Israel Koren, A K Peters, Natick, Massachusetts  Digital Arithmetic, Milos D. Ercegovac and Tomas Lang, Morgan Kaufmann  CMOS VLSI Design, Neil H.E. Weste and David Harris, Addison Wesley  Principles and Practices of Interconnection Networks, William James Dally and Brian Towles, Morgan Kaufmann  In addition: set of papers to read

CSE 2464 Administration  No classes on the following days Tu 10/17 BIBE Tu 10/24 EPEP Tu 11/7 ICCAD

CSE 2465 Administration  Grading: Homework – 20% Midterm – 35% Project  Report – 25%  Presentation – 20%  Midterm: Thursday, 10/2/06

CSE 2466 Administration  Potential project samples: Interconnect and switch modules Data path components using FPGAs, nano technologies Low power logic styles Reconfigurable blocks Low power data path components Low power/reliable coding systems

CSE 2467 Agenda  Administration  Motivation  Lecture 1: Numbers

CSE 2468 Motivation Why do we care about arithmetic algorithms and hardware design?  Classic problems – well defined  Advancements will have a huge impact Solutions will be widely used  New paradigms Interconnect effects: clock, control, bus, signal Low power designs Wider bit width Reliability centric designs FPGAs and nano technologies

CSE 2469 Motivation  Should a new business focus on building market or new technology?  New technology: a market will be built around new technology

CSE Topics  Numbers Binary numbers, negative numbers, redundant numbers, residual numbers  Addition/Subtraction Prefix adders (zero deficiency)  Multiplication/Division  Floating point operations  Functions: (sqrt),log, exp, CORDIC  Optimization, analysis, fault tolerance

CSE Other Topics  Potential focus on the following topics: Power reduction Interconnect FPGAs

CSE Goals/Background  Why do you want to take this class? What would you like to learn? Fulfill course requirement Hardware Software Work Research Curiosity

CSE Agenda  Administration  Motivation  Lecture 1: Numbers

CSE Numbers  Special Symbols Symbols used to represent a value Roman Numerals 1 = I 100 = C 5 = V 500 = D 10 = X1000 = M 50 = L For example: 2004 = MMIV

CSE Numbers  Position Symbols The value depends on the position of the number  For example: 125 = One 100, Two 10s, and Five 1s Another example: 1 hour, 3 minutes Positional systems includes radixes: 2, -2, 2, 2j (imaginary)

CSE Numbers  Summation of positional numbers Given: Value is: (where y is the base) For example:  Consider   Note that position systems provide a complete range of numbers (e.g. – 2 to 5)

CSE Numbers (Radix Conversion)  Repeatedly divide the integer by (R)r  Repeatedly multiply the fraction by (R)r  Example (201.31) 10 =( ) 5 (x k-1, …, x 0. X -1, …, x -l ) r =(X K-1, …, X 0. X -1, …, X -L ) R

CSE Numbers  Avoid Division (Montgomory System)  Simplify Mod operation mod r-1, mod r+1 Example: mod 9 = mod 9 = 12 mod 9 = mod 11 = 2-9+1mod 11 = -6 mod 11 = 5

CSE Signed Numbers  Biased numbers  Signed Bit  Complementary representation Positive number: x (mod p) Negative number:(M-x) (mod p) (Note: mod p is added implicitly) One ’ s complement Two ’ s complement Flip each bit Flip each bit + 1 Two ’ s complement can be used for subtraction M=2 n -1 M=2 n

CSE Signed Numbers  Two ’ s complement subtraction: (M-x+M-y) mod M = M-(x+y)  Two ’ s complement conversion: Positive number: To negative:

CSE Signed Numbers  Two ’ s complement Proof as follows: Which leads to: Example:

CSE Next time  Talk about redundant numbers