Memory Smallest unit of storage is a Bit

Slides:



Advertisements
Similar presentations
Intro to IT - Bits and Bytes 1 Bits and Bytes. BIT Modern computers are binary: Everything is represented as being on one of two possible states: the.
Advertisements

Computer Systems Nat 4/5 Computing Science Computer Structure:
Introduction to Computers Section 4A. home Decimal Number System Called base 10 because 10 symbols are available.
Chapter 2 Microprocessor Bus Transfers. Big- and Little-Endian Ordering Bit-endian processor architecture –High-order-byte-first (H-O-B-F) map the highest-order.
J. Michael Moore Computer Organization CSCE 110. J. Michael Moore High Level View Of A Computer ProcessorInputOutput Memory Storage.
J. Michael Moore Computer Organization CPSC 110. J. Michael Moore High Level View Of A Computer ProcessorInputOutput Memory Storage.
Computer System Structures memory memory controller disk controller disk controller printer controller printer controller tape-drive controller tape-drive.
Boolean Algebra Discrete Mathematics and Its Applications Baojian Hua
Informationsteknologi Friday, October 19, 2007Computer Architecture I - Class 61 Today’s class Floating point numbers Computer systems organization.
Introduction to Computing CPSC 203 January 24, 2006 Heejin Lim Chapter 1 Chapter 2 (part of)
Introduction to Computer Engineering by Richard E. Haskell 8086 Memory Module M14.1 Sections 9.3.
Chapter 2. Definition Characteristics ExamplesNon-examples Input Graphic.
CS402 PPP # 2 MIPS BASIC INFORMATION By George Koutsogiannakis 1.
CS1104-8Memory1 CS1104: Computer Organisation Lecture 8: Memory
MANINDER KAUR RAM and ROM Chips 24-Nov
The CPU The Central Presentation Unit Main Memory and Addresses Address bus and Address Space Data Bus Control Bus The Instructions set Mnemonics Opcodes.
Instruction Set Architecture
Fundamental of Computer Architecture By Panyayot Chaikan November 01, 2003.
Fill in the blanks: (1) _________ has only two possible values 0 and 1. (2) There are __________bits in a byte. (3) 1 kilobyte of memory space can store.
1 COMS 161 Introduction to Computing Title: Numeric Processing Date: October 29, 2004 Lecture Number: 26.
Problems in Memory Management CS 1550 Recitation October 9 th, 2002 The questions in this slide are from Andrew S. Tanenbaum's textbook page 264.
OBJECTIVES  Explain why a computer represents data in the form of binary  Explain the terms related to data storage: bit, byte, character, word  Calculate.
20-Sep Fall 2001: copyright ©T. Pearce, D. Hutchinson, L. Marshall Sept lecture7-8-compstate 1 Machine Organization  Systems (including.
C programming or Fun with pointers Tutorial #2 CPSC 261.
Number Systems 2.1 Information Storage Why not decimal numbers in computers ? Difficult to store ENIAC (1 st electronic computer) used 10 vacuum tubes.
Getting to know Storage Media 1.Stores information 2.Retrieve information for later use.
Lecture 8. MIPS Instructions #2 – Memory Access (Load/Store) Instructions Prof. Taeweon Suh Computer Science Education Korea University 2010 R&E Computer.
Lecture 4. MIPS Instructions #2 Memory Access (Load/Store) Instructions Prof. Taeweon Suh Computer Science Education Korea University ECM534 Advanced Computer.
Bits and Bytes IGCSE. A binary number is either a 0 or a 1 and is known as a 'bit' or b inary dig it. However, the CPU cannot deal with just one bit at.
Virtual Memory By Steven LaBarbera. What I plan to cover  The history of virtual memory  How virtual memory has evolved  How virtual memory is used.
4-1 Chapter 4 - The Instruction Set Architecture Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring Principles.
CSNB374: Microprocessor Systems Chapter 1: Introduction to Microprocessor.
How Memory Works Physical Example 0 Water Tank 1 EmptyFull.
Chapter 2 Number Systems: Decimal, Binary, and Hex.
Data Representation Hexadecimal  Although computers work in binary it is sometimes inconvenient for humans to read everything in Binary. For example in.
Computer Architecture EKT 422
Fall EE 333 Lillevik 333f06-l14 University of Portland School of Engineering Computer Organization Lecture 14 Memory hierarchy, locality Memory.
Computer Architecture Lecture 03 Fasih ur Rehman.
Computer Organization 1 Instruction Fetch and Execute.
Computer Math CPS120: Binary Representations. Binary computers have storage units called binary digits or bits: Low Voltage = 0 High Voltage = 1 all bits.
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.
University of Sargodha, Lahore Campus Prepared by Ali Saeed.
EMBEDDED SYSTEM SOFTWARE AND HARDWARE BASICS HOME TASK E MBEDDED S YSTEMS S OFTWARE T RAINING C ENTER 1.
Memory Characteristics Location Capacity Unit of transfer Access method Performance Physical type Physical characteristics Organisation.
Logical & Physical Address Nihal Güngör. Logical Address In simplest terms, an address generated by the CPU is known as a logical address. Logical addresses.
Representation of Data Binary Representation of Instructions teachwithict.weebly.com.
Byte Addressability Bytes are always 8 bits Word length typically ranges from 16 to 64 bits. Memory location assignments refer to successive byte locations.
نظام المحاضرات الالكترونينظام المحاضرات الالكتروني Cache Memory.
First Foray into Programming (the hard way). A reminder from last lesson: A machine code instruction has two parts:  Op-code  Operand An instruction.
Recap – Our First Computer WR System Bus 8 ALU Carry output A B S C OUT F 8 8 To registers’ read/write and clock inputs Sequence of control signal combinations.
How do Computers Work ?.
Computer Organisation
Integer Real Numbers Character Boolean Memory Address CPU Data Types
Memory Parts of a computer
A Closer Look at Instruction Set Architectures
Instruction Set.
Binary Code  
BINARY SYSTEM.
Computer Electronic device Accepts data - input
Computer Programming Machine and Assembly.
Binary Lesson 3 Hexadecimal
Presenting information as bit patterns
Storing Information Each memory cell stores a set number of bits (usually 8 bits, or one byte) (byte addressable)
Computer Organization
How to Represent Numbers on a Computer
Binary Lesson 4 Hexadecimal and Binary Practice
Presentation transcript:

Memory Smallest unit of storage is a Bit However, smallest addressable unit is a Byte (8 bits) bit 7 6 5 4 3 2 1 0 msb lsb Most computers permit access of memory through words (16 bits, 32 bits or 64 bits) bits 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 MSByte LSByte 0 1 0 1 1 0 1 1 1 1 0 1 0 0 1 1 0 1 0 1 1 0 1 1

Main Memory System Bus connects major computer components – CPU, Memory, I/O Main Memory stores both program instructions and data. CPU puts the memory location that should be accessed on the address bus with width k, (each wire carries a 1 or a 0). The contents of that location are transferred via the data bus. Typically memory addresses will range from 0 to 2 𝑘 ‐1 distinct values A 16 bit address (k = 16) provides 2 16 = 65536 (64K) addressable locations. Memory is organized so that a group of n bits are stored or retrieved in a single operation. Group of n bits is referred to as a word, and n is called the word length. Address bus CPU Main Memory k-bit n-bit Data bus

Main Memory Internally data is always represented in binary, although Hex is more readable Address bus CPU Main Memory 1 $FD 0 1 0 0 0 0 1 0 $FD location 1 Data bus Read operation

Memory Addressing Successive addresses refer to successive byte locations in memory. Byte locations have addresses 0, 1, 2, …. If word length of the machine is 16 bits, successive words are located at addresses 0, 2, 4, ….(these even addresses are also called word boundary) If word length of the machine is 32 bits (long word), successive words are located at addresses 0, 4, 8, …. Words must be accessed at their word boundaries, otherwise exception occurs Some machines allow long words to be accessed at even addresses – address 0 for bytes at locations 0,1,2,3 – address 2 for bytes at locations 2,3,4,5 8 bits 8 bits 1 2 3 4 5 6 7 8 Word length 16 bits Word length 32 bits

Big-Endian and Little-Endian Lower memory address correspond to MSByte Address of word is defined as address of MSByte Little-Endian: Lower memory address correspond to LSByte Address of word is defined as address of LSByte

Memory Capacity Capacity (C): number of bytes that can be stored in a memory (KB, MB, GB) For Byte Organized memory, C = 2 𝑘 bytes since there are 2 𝑘 locations and each location is a byte For Word Organized memory, C = 2 𝑘 x 2 bytes since there are 2 𝑘 locations and each location is 2 bytes In general, C = 2 𝑘 x 𝑚 8 bytes Ex: If C = 1MB = 2 20 bytes, what is k for a byte organized memory? 1 2 3 4 5 6 7 8 k-bit m = 8 bits m =16 bits Byte Organized Memory Word Organized Memory

512 x8