Memory, Bits, & Bytes. Memory Part of the computer where programs and data are stored. Read and written (changed). Bit – Binary digit – Basic unit of.

Slides:



Advertisements
Similar presentations
Data Transfer Chapter 10. File conversion When we upgrade a file after a big time of use, usually it is necessary to change the format of the file. For.
Advertisements

CH10 Instruction Sets: Characteristics and Functions
Microprocessors General Features To be Examined For Each Chip Jan 24 th, 2002.
The Binary Numbering Systems
Lecture - 2 Number systems and computer data formats
IT Systems What Number? EN230-1 Justin Champion C208 –
Figure 0.3: Jacquard’s loom. Figure 0.4: The Mark I computer.
ARM programmer’s model and assembler Embedded Systems Programming.
Chapter 1 Data Storage. 2 Chapter 1: Data Storage 1.1 Bits and Their Storage 1.2 Main Memory 1.3 Mass Storage 1.4 Representing Information as Bit Patterns.
Representation and Conversion of Numeric Types 4 We have seen multiple data types that C provides for numbers: int and double 4 What differences are there.
Data Representation (in computer system) Computer Fundamental CIM2460 Bavy LI.
Chapter 3 Representing Numbers and Text in Binary Information Technology in Theory By Pelin Aksoy and Laura DeNardis.
Data Representation Prepared by Dr P Marais (Modified by D Burford)
Aloha Aloha What you see: What the computer sees: binary number columns binary number columns
IT-101 Section 001 Lecture #3 Introduction to Information Technology.
Fundamental of Computer Architecture By Panyayot Chaikan November 01, 2003.
Pengantar Teknologi Informasi dan Ilmu Komputer Information Technology and Data Representation PTIIK- UB.
EX_01.1/46 Numeric Systems. EX_01.2/46 Overview Numeric systems – general, Binary numbers, Octal numbers, Hexadecimal system, Data units, ASCII code,
Representing Data. Representing data u The basic unit of memory is the bit  A transistor that can hold either high or low voltage  Conceptually, a tiny.
IT253: Computer Organization Lecture 3: Memory and Bit Operations Tonga Institute of Higher Education.
Bits & Bytes A bit is the smallest amount of memory used to store information. A bit is represented by either a “0” or a “1”. “Bit” is a contraction of.
Chapter 1 Data Storage © 2007 Pearson Addison-Wesley. All rights reserved.
How Memory Works Physical Example 0 Water Tank 1 EmptyFull.
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.
Info stored in computer (memory) Numbers All in binaray – can be converted to octal, hex Characters ASCII – 1-byte/char Unicode – 2-byte/char Unicode-table.com/en.
Data Storage © 2007 Pearson Addison-Wesley. All rights reserved.
Copyright 2007 Jim Martin1 Computer Communications Dr. Jim Martin
OFF = 0 ON = 1 = 63 BINARY system
Classful Internet Addresses Chapter 4. Universal Identifiers Designers of TCP/IP determined that each host on the internet would have a 32-bit identifier.
Data Storage © 2007 Pearson Addison-Wesley. All rights reserved.
Group # 3 Jorge Chavez Henry Diaz Janty Ghazi German Montenegro.
Binary 101 Gads Hill School. Aim To strengthen understanding of how computers use the binary number system to store information.
Characters and Strings
Computer Data Formats Microprocessor Course Electrical Engineering Department University of Indonesia.
Address alignment When a word (4-bytes) is loaded or stored the memory address must be a multiple of four. This is called an alignment restriction. Addresses.
Byte Addressability Bytes are always 8 bits Word length typically ranges from 16 to 64 bits. Memory location assignments refer to successive byte locations.
CS 125 Lecture 3 Martin van Bommel. Overflow In 16-bit two’s complement, what happens if we add =
Number Systems and Representations Binary Representation Binary Representation Signed numbers Signed numbers Very small and very big numbers Very small.
THE CODING SYSTEM FOR REPRESENTING DATA IN COMPUTER.
Number Systems Decimal Can you write 12,045 in expanded form? Base? Allowable digits for each place?
1 CSCI 2510 Computer Organization Memory Addressing and Assembly Instruction Basics.
Answer CHAPTER FOUR.
DATA REPRESENTATION - TEXT
Big-Endians Little-Endians and Bi-Endians
Data representation How do we represent data in a digital system?
BINARY CODE.
Data Transfer ASCII FILES.
EPSII 59:006 Spring 2004.
# of Bits is powers of 2 - not conversions
Chapter 1 Data Storage.
Figure 0.3: Jacquard’s loom
Bits and Bytes Topics Representing information as bits
Digital Concepts for PLCs
Bits and Bytes Topics Representing information as bits
Bits and Bytes Topics Representing information as bits
Storing Information Each memory cell stores a set number of bits (usually 8 bits, or one byte) (byte addressable)
Topic 1: Data Representation
Bits and Bytes Topics Representing information as bits
Chapter 9 Instruction Sets: Characteristics and Functions
Digital Encodings.
Data representation How do we represent data in a digital system?
The University of Adelaide, School of Computer Science
Introduction to Microprocessor Programming
Learning Intention I will learn how computers store text.
Electronic Memory.
Data representation How do we represent data in a digital system?
Networks & I/O Devices.
Chapter 10 Instruction Sets: Characteristics and Functions
Presentation transcript:

Memory, Bits, & Bytes

Memory Part of the computer where programs and data are stored. Read and written (changed). Bit – Binary digit – Basic unit of memory – 1 or 0 – Why binary? Because we can most reliably (electronically) distinguish between 1 and 0. Byte = 8 bits – Smallest unit of memory that can be read or written.

Memory addresses Each individually addressable “cell” is an 8-bit byte containing 2 8 = 256 possible values (0..255). The number of memory cells is independent of the cell size. Most modern processors have at least a 32-bit address space = 4G bytes arranged

Representing strings Each byte will contain the ASCII value of a character.

Representing strings So “hello” is the sequence of bytes: But how do we determine the end of the string? – This method is also employed by C. – Other methods are possible.

Integers in memory Each individually addressable “cell” is an 8-bit byte containing 2 8 = 256 possible values (0..255). To allow for larger values, we group bytes together. – byte= 8 bits – word= 16 bits – double word= 32 bits (long word) – quadword= 64 bits

Byte ordering Consider a word consisting of 2 bytes in memory with a value of at address 10. It is a word (2 bytes) so it occupies memory location 10 and memory location 11. It can be stored in memory as either: M[10]M[11] big endian (Motorola) little endian (IA32, VAX) - either (switchable): IA64, ultraSparc

Endian-ness Extends from 4 to 8 (and 16) byte integers too. (Note: For integers larger than 2 bytes, other orderings are possible but they are not used.)

Endian-ness conversion 1.big endian: Motorola 2.little endian: IA32, VAX 3.bi-endian: IA64, ultraSparc – either/both supported – typically switchable at boot time

Endian-ness conversion What happens if one sends a message (that contains multi-byte integers) from one system to another across the internet, and they have different endian-ness? – We need a way to convert from one format to another (future topic; also see htonl Unix/Linux function).