Professional Documents
Culture Documents
16-Characteristics, Byte Storage Methods-16-02-2023
16-Characteristics, Byte Storage Methods-16-02-2023
L T PC
3 0 0 3
Dr. M. Bhuvaneswari
Assistant Professor Senior Gr.2
School of Computer Science and Engineering
Vellore Institute of Technology, Vellore
m.bhuvaneswari@vit.ac.in
BCSE205L - Computer Architecture and Organization
• Syllabus
2
Introduction
• Memory is one of the most important functional units of a computer.
• Used to store both instructions and data.
• Stores as bits (0’s and 1’s), usually organized in terms of bytes.
• How are the data stored in memory accessed?
• Every memory location has a unique address.
• A memory is said to be byte addressable, if every byte of data has
a unique address.
• Some memory systems are word addressable also (every addressed
locations consists of multiple bytes, say 32 bits or 4 bytes)
3
Introduction
• Programmers want unlimited amount of memory with very low latency.
• Fast memory technology is more expensive per bit than slower memory.
• SRAM is more expensive than DRAM, DRAM is more expensive than
disk.
• Possible solution for having large size of memory with average latency in
affordable cost?
• Organize the memory system in several levels, called memory
hierarchy.
• Exploit temporal and spatial locality on computer programs.
• Try to keep the commonly accessed segments of program / data in the
faster memories.
• Results in faster access times on the average.
4
Memory Location
Memory Location and Addresses
Byte Addressable Memory
Big-Endian and Little-Endian Assignments
• Big-Endian: lower byte addresses are used for the most significant
bytes of the word
• Little-Endian: opposite ordering. lower byte addresses are used for
the less significant bytes of the word
Memory Hierarchy
• The memory system is organized in several levels, using
progressively faster technologies as we move towards the processor.
• The entire addressable memory space is available in the largest
(but slowest) memory (typically, magnetic disk or flash storage).
• We incrementally add smaller (but faster) memories, each
containing a subset of the data stored in the memory below it.
• We proceed in steps towards the processor.
Memory Hierarchy
• Typical hierarchy (starting with closest to the processor):
• Processor registers
• Level-1 cache (typically divided into separate instruction and
data cache)
• Level-2
• Level-3
• Main memory
• Secondary memory (magnetic disk / flash drive)
• As we move away from the processor:
• Size increases
• Cost decreases
• Speed decreases
Memory Hierarchy
Memory Hierarchy Comparison
Characteristics of Memories
Location Access methods
CPU Capacity
Sequential access Word size
Internal(main) Direct access
External (secondary) Random access Number of words
Associative access
Performance
Access time Physical characteristics
Cycle time
Transfer rate Based on different aspects Erasable/non erasable
Volatile/non volatile