J. Michael Moore Computer Organization CSCE 110. J. Michael Moore High Level View Of A Computer ProcessorInputOutput Memory Storage.

Slides:



Advertisements
Similar presentations
DATA REPRESENTATION Y. Colette Lemard February
Advertisements

Lecturer: Omid Jafarinezhad Sharif University of Technology Department of Computer Engineering 1 Fundamental of Programming (C) Lecture 2 Number Systems.
COMP3221: Microprocessors and Embedded Systems--Lecture 1 1 COMP3221: Microprocessors and Embedded Systems Lecture 3: Number Systems (I)
Arithmetic & Logic Unit Does the calculations Everything else in the computer is there to service this unit Handles integers May handle floating point.
CS 151 Digital Systems Design Lecture 3 More Number Systems.
Assembly Language and Computer Architecture Using C++ and Java
CSCE 121, Sec 200, 507, 508 Fall 2010 Prof. Jennifer L. Welch.
Agenda Shortcuts converting among numbering systems –Binary to Hex / Hex to Binary –Binary to Octal / Octal to Binary Signed and unsigned binary numbers.
Assembly Language and Computer Architecture Using C++ and Java
J. Michael Moore Computer Organization CPSC 110. J. Michael Moore High Level View Of A Computer ProcessorInputOutput Memory Storage.
2-1 Computer Organization Part Fixed Point Numbers Using only two digits of precision for signed base 10 numbers, the range (interval between lowest.
ENGIN112 L3: More Number Systems September 8, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 3 More Number Systems.
Introduction to Number Systems
COMP201 Computer Systems Number Representation. Number Representation Introduction Number Systems Integer Representations Examples  Englander Chapter.
Simple Data Type Representation and conversion of numbers
CSCI-365 Computer Organization Lecture Note: Some slides and/or pictures in the following are adapted from: Computer Organization and Design, Patterson.
Numbering Systems CS208.
CMPE 325 Computer Architecture II Cem Ergün Eastern Mediterranean University Integer Representation and the ALU.
Number Systems Part 2 Numerical Overflow Right and Left Shifts Storage Methods Subtraction Ranges.
2-1 Chapter 2 - Data Representation Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring Chapter Contents.
Computer System & Binary Review. Memory Model What memory is supposed to look like.
NUMBER REPRESENTATION CHAPTER 3 – part 3. ONE’S COMPLEMENT REPRESENTATION CHAPTER 3 – part 3.
Computer Science 111 Fundamentals of Programming I Number Systems.
Chapter 1 Data Storage(3) Yonsei University 1 st Semester, 2015 Sanghyun Park.
IT253: Computer Organization
Data Representation and Computer Arithmetic
ECEN2102 Digital Logic Design Lecture 1 Numbers Systems Abdullah Said Alkalbani University of Buraimi.
1 COMS 161 Introduction to Computing Title: Numeric Processing Date: October 29, 2004 Lecture Number: 26.
CHAPTER 1 INTRODUCTION NUMBER SYSTEMS AND CONVERSION.
Representation of Data Ma King Man. Reference Text Book: Volume 2 Notes: Chapter 19.
©Brooks/Cole, 2003 Chapter 3 Number Representation.
The Teacher CP4 Binary and all that… CP4 Revision.
Cosc 2150: Computer Organization Chapter 2 Part 1 Integers addition and subtraction.
Positional Number Systems
ECE2030 Introduction to Computer Engineering Lecture 2: Number System Prof. Hsien-Hsin Sean Lee School of Electrical and Computer Engineering Georgia Tech.
Lecture 2 Binary Values and Number Systems. The number 943 is an example of a number written in positional notation. The relative positions of the digits.
The Teacher CP4 Binary and all that… CP4 Revision.
Number Systems Revision of conversations What is a register Addition Complementation.
Number Systems and Logic Prepared by Dr P Marais (Modified by D Burford)
EEL 3801C EEL 3801 Part I Computing Basics. EEL 3801C Data Representation Digital computers are binary in nature. They operate only on 0’s and 1’s. Everything.
How a Computer Processes Information. Java – Numbering Systems OBJECTIVE - Introduction to Numbering Systems and their relation to Computer Problems Review.
07/12/ Data Representation Two’s Complement & Binary Arithmetic.
COMPUTER SCIENCE Data Representation and Machine Concepts Section 1.6 Instructor: Lin Chen Sept 2013.
Irvine, Kip R. Assembly Language for Intel-Based Computers 6/e, Signed Integers The highest bit indicates the sign. 1 = negative, 0 = positive.
Digital Representations ME 4611 Binary Representation Only two states (0 and 1) Easy to implement electronically %0= (0) 10 %1= (1) 10 %10= (2) 10 %11=
Monday, January 14 Homework #1 is posted on the website Homework #1 is posted on the website Due before class, Jan. 16 Due before class, Jan. 16.
CS1Q Computer Systems Lecture 2 Simon Gay. Lecture 2CS1Q Computer Systems - Simon Gay2 Binary Numbers We’ll look at some details of the representation.
Computer Organization CS345 David Monismith Based upon notes by Dr. Bill Siever and notes from the Patternson and Hennessy Text.
Topic 14.1 Extended Hexadecimal  Decimal is base 10 and uses 10 digits (0,1,2,3,4,5,6,7,8,9).  Binary is base 2 and uses 2 digits (0,1).  Computers.
Floating Point Binary A2 Computing OCR Module 2509.
CS 160 Lecture 4 Martin van Bommel. Overflow In 16-bit two’s complement, what happens if we add =
©Brooks/Cole, 2003 Chapter 3 Number Representation.
1 Ethics of Computing MONT 113G, Spring 2012 Session 4 Binary Addition.
Chapter 1 Representing Data in a Computer. 1.1 Binary and Hexadecimal Numbers.
09/03/20161 Information Representation Two’s Complement & Binary Arithmetic.
Number Systems. Topics  The Decimal Number System  The Binary Number System  Converting from Binary to Decimal  Converting from Decimal to Binary.
CS 125 Lecture 3 Martin van Bommel. Overflow In 16-bit two’s complement, what happens if we add =
{ Binary “There are 10 types of people in the world: Those who understand binary, and those who don't.”
Software Design and Development Storing Data Computing Science.
Dr. ClincyLecture 2 Slide 1 CS Chapter 2 (1 of 5) Dr. Clincy Professor of CS Note: Do not study chapter 2’s appendix (the topics will be covered.
Data Representation Integers
EPSII 59:006 Spring 2004.
CSE 102 Introduction to Computer Engineering
CSCE Fall 2013 Prof. Jennifer L. Welch.
Data Representation Bits
Data Representation Limitations
How Computers Store Data
Computer Organization
CSCE Fall 2012 Prof. Jennifer L. Welch.
Presentation transcript:

J. Michael Moore Computer Organization CSCE 110

J. Michael Moore High Level View Of A Computer ProcessorInputOutput Memory Storage

J. Michael Moore Getting Data In Input Others?

J. Michael Moore ProcessorInputOutput Memory Storage

J. Michael Moore Getting Data Out Output Others?

J. Michael Moore ProcessorInputOutput Memory Storage

J. Michael Moore Unit of Storage Bit –Binary digit –Smallest unit of measurement Memory Storage Two possible values on off OR

J. Michael Moore How Data Is Stored Byte: a group of 8 bits; 2 8 =256 possibilities – , , , , …, Memory: long sequence of locations, each large enough to hold one byte, numbered 0, 1, 2, 3, … Address: The number of the location

J. Michael Moore How Data Is Stored Contents of a location can change –e.g can become Use consecutive locations to store longer sequences –e.g. 4 bytes = 1 word bytes 012 bits

J. Michael Moore Binary Numbers Base Ten Numbers (Integers) –characters –5401 is 5x x x x10 0 Binary numbers are the same –characters 0 1 –1011 is 1x x x x2 0

J. Michael Moore Converting Binary to Base = = = = = ____ 10 = 2.1x x x x2 0 = 3.1x8 + 0x4 + 0x2 + 1x1 = = = ____ 10 (Try yourself) = 6 10

J. Michael Moore Converting Base 10 to Binary 2 8 = = = = = = = = = = ____ (2 8 ) = (2 7 ) = (2 2 ) = 0

J. Michael Moore Converting Base 10 to Binary = ____ / 2 = Remainder / 2 = Remainder / 2 = Remainder / 2 = Remainder / 2 = Remainder / 2 = 6 10 Remainder / 2 = 3 10 Remainder / 2 = 1 10 Remainder / 2 = 0 10 Remainder

J. Michael Moore Other common number representations Octal Numbers –characters –7820 is 7x x x x8 0 Hexadecimal Numbers –characters A B C D E F –2FD6 is 2x Fx Dx x16 0

J. Michael Moore Negative Numbers Can we store a negative sign? What can we do? –Use a bit Most common is two’s complement

J. Michael Moore Representing Negative Numbers Two’s Complement –flip all the bits change 0 to 1 and 1 to zero –add 1 –if the leftmost bit is 0, the number is 0 or positive –if the leftmost bit is 1, the number is negative

J. Michael Moore Two’s Complement What is -9? –9 is in binary –flip the bits –add Addition and Subtraction are easy –always addition

J. Michael Moore Two’s Complement Addition – = 4 –13 + (-9) = 4 – = ? = 1 This bit is lost But that doesn’t matter since we get the correct answer anyway

J. Michael Moore Real (Floating point) numbers Break the bits used into parts MantissaExponent Sign bits

J. Michael Moore Limitations of Finite Data Encodings Overflow - number is too large –suppose 1 byte stores integers in base 2, from 0 ( ) to 255 ( ) (note: this is not two’s complement although it would have the same problem) –if the byte holds 255, then adding 1 to it results in 0, not 256 – – TwosComplement.htmlhttp://classes.engr.oregonstate.edu/eecs/fall2007/cs160/applets/ TwosComplement.html

J. Michael Moore Limitations of Finite Data Exchange Roundoff Error –Insufficient precision (size of word) ex. Try to store 1/8, which is in binary, with only two bits –Nonterminating expansions in current base ex. Try to store 1/3 in base 10, which is … –Nonterminating expansions in every base ex. Irrational numbers such as 

J. Michael Moore ProcessorInputOutput Memory Storage