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

Slides:



Advertisements
Similar presentations
How to Convert Decimal Numbers to Binary EXAMPLES.
Advertisements

ICS312 Set 2 Representation of Numbers and Characters.
The Binary Numbering Systems
DATA REPRESENTATION Y. Colette Lemard February
1 CSE1301 Computer Programming Lecture 29: Number Representation (Part 1)
J. Michael Moore Computer Organization CSCE 110. J. Michael Moore High Level View Of A Computer ProcessorInputOutput Memory Storage.
Assembly Language and Computer Architecture Using C++ and Java
CSCE 121, Sec 200, 507, 508 Fall 2010 Prof. Jennifer L. Welch.
Assembly Language and Computer Architecture Using C++ and Java
2-1 Computer Organization Part Fixed Point Numbers Using only two digits of precision for signed base 10 numbers, the range (interval between lowest.
Signed Numbers CS208. Signed Numbers Until now we've been concentrating on unsigned numbers. In real life we also need to be able represent signed numbers.
Binary Numbers.
Simple Data Type Representation and conversion of numbers
Numbering systems.
Abstraction – Number Systems and Data Representation.
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.
Number Systems Part 2 Numerical Overflow Right and Left Shifts Storage Methods Subtraction Ranges.
Computer System & Binary Review. Memory Model What memory is supposed to look like.
Computer Science 111 Fundamentals of Programming I Number Systems.
IT253: Computer Organization
Shawlands Academy Higher Computing Data Representation.
ECEN2102 Digital Logic Design Lecture 1 Numbers Systems Abdullah Said Alkalbani University of Buraimi.
Why does it matter how data is stored on a computer? Example: Perform each of the following calculations in your head. a = 4/3 b = a – 1 c = 3*b e = 1.
Digital Logic Design Lecture 3 Complements, Number Codes and Registers.
1 COMS 161 Introduction to Computing Title: Numeric Processing Date: October 29, 2004 Lecture Number: 26.
ICS312 Set 1 Representation of Numbers and Characters.
Cosc 2150: Computer Organization Chapter 2 Part 1 Integers addition and subtraction.
Computer Organization and Assembly Language Bitwise Operators.
Number Systems Revision of conversations What is a register Addition Complementation.
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.
07/12/ Data Representation Two’s Complement & Binary Arithmetic.
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.
Outline Binary Addition 2’s complement Binary Subtraction Half Adder
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.
PHY 201 (Blum)1 Shift registers and Floating Point Numbers Chapter 11 in Tokheim.
CSE1301 Computer Programming Lecture 32: Number Representation
Georgia Institute of Technology Introduction to Programming Part 3 Barb Ericson Georgia Institute of Technology May 2006.
Chapter 1 Representing Data in a Computer. 1.1 Binary and Hexadecimal Numbers.
09/03/20161 Information Representation Two’s Complement & Binary Arithmetic.
Computer Organization 1 Data Representation Negative Integers.
Number Systems. Topics  The Decimal Number System  The Binary Number System  Converting from Binary to Decimal  Converting from Decimal to Binary.
Software Design and Development Storing Data Computing Science.
Department of Computer Science Georgia State University
Topic: Binary Encoding – Part 2
Cosc 2150: Computer Organization
Binary & Hex Review.
David Kauchak CS 52 – Spring 2017
Chapter 3 Data Storage.
Data Representation Integers
Data Structures Mohammed Thajeel To the second year students
BEE1244 Digital System and Electronics BEE1244 Digital System and Electronic Chapter 2 Number Systems.
CSCE Fall 2013 Prof. Jennifer L. Welch.
Data Representation Bits
Data Representation Limitations
Digital Electronics and Microprocessors
CS 101 – Sept. 4 Number representation Integer Unsigned √ Signed √
Plan Attendance Files Posted on Campus Cruiser Homework Reminder
Binary “There are 10 types of people in the world: Those who understand binary, and those who don't.”
How Computers Store Data
Chapter 3 DataStorage Foundations of Computer Science ã Cengage Learning.
Computer Organization
CSCE Fall 2012 Prof. Jennifer L. Welch.
Chapter Four Data Representation in Computers By Bezawit E.
Introduction to Programming Part 3
Binary & Hex Review.
Networks & I/O Devices.
1.6) Storing Integer: 1.7) storing fraction:
Two’s Complement & Binary Arithmetic
Presentation transcript:

J. Michael Moore Computer Organization CPSC 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 ___ –___________ –Smallest unit of measurement Memory Storage Two possible values on off OR

J. Michael Moore How Data Is Stored ___: a group of 8 bits; 2 8 =256 possibilities – , , , , …, ___________: long sequence of locations, each large enough to hold one byte, numbered 0, 1, 2, 3, … ___________: 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 _____________ Numbers –characters –7820 is 7x x x x8 0 _____________ Numbers –characters A B C D E F –2FD6 is 2x Fx Dx x16 0

J. Michael Moore __________ Numbers Can we store a __________ sign? What can we do? –Use a ____ Most common is ____________________

J. Michael Moore Representing ________ Numbers ____________________________ –flip all the bits change 0 to 1 and 1 to zero –add 1 –if the leftmost bit is __, the number is __ or _______________ –if the leftmost bit is __, the number is _______________

J. Michael Moore ______________________ What is -9? –9 is in binary –flip the bits → –add 1 → Addition and Subtraction are easy –always addition

J. Michael Moore _______________________ 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 (____________) numbers Break the bits used into parts ________ Sign bits

J. Michael Moore Limitations of Finite Data Encodings __________ - number is too large –suppose 1 byte stores integers in base 2, from 0 ( ) to 255 ( ) (note: this is not ___________________ although it would have the same problem) –if the byte holds 255, then adding 1 to it results in __, not _____

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

J. Michael Moore ProcessorInputOutput Memory Storage