understanding cache

15
PCS Architecture M Haneef Solangi

Upload: haneef-solangi

Post on 05-Aug-2015

32 views

Category:

Engineering


1 download

TRANSCRIPT

Page 1: Understanding Cache

PCS Architecture

M Haneef Solangi

Page 2: Understanding Cache

Processor

• A Microprocessor is the central unit of computer for performing Processing, logical, Arithmetic, and control operations.Bus: is the pathway for carrying data from one part of Computer to an other.

Page 3: Understanding Cache

CPUCU MU

ALUInput devices

Output Devices

Storage Devices

Page 4: Understanding Cache

What Makes a Processor Fast

• Architecture. • Clock.• Buses.• Registers, Cache.• Techniques.

Page 5: Understanding Cache

Cache

Page 6: Understanding Cache

One of the major tasks is to understand the underlying architecture of the available resources. Memory And Cache Utilization.Better and efficient Utilization of Memory.

Page 7: Understanding Cache

Memory Hierarchy Design

• Memory hierarchy design is based on two important principles:– Locality Principle: It states a fact that memory that is

physically located closer to the CPU (Central Processing Unit) can be accessed faster. Temporal locality refers to the tendency of programs to access the same data several times in a short period of time.

– Smaller is faster: These are the levels in a typical memory hierarchy. Moving farther away from the CPU, the memory in the level becomes larger and slower.

Page 8: Understanding Cache

Memory Hierarchy Design

CPUL1

CacheL2 Cache

RAM

HDD

Hub of all the

operations

Fastest and Nearest to CPU [L1 & L2 Cache] Faster and Nearer to

CPU than Hard Disk Drive

Most slow and Most Far

Page 9: Understanding Cache

Alternatively referred to as L1 cache, primary cache, internal cache, or system cache.When referring to computer processors, L1 cache is cache that is built into the processor and is the fastest and most expensive cache in the computer. The L1 cache stores the most critical files that need to be executed and is the first thing the processor looks when performing an instruction.

Level 1 Caching

Page 10: Understanding Cache

L2 cache was first introduced with the Intel Pentium and Pentium Pro computers and has been included with ever process since, with the exception of the early versions of Celeron processor. This cache is not as fast as the L1 cache, but is only slightly slower since it is still located on the same processor chip, and is still faster than the computers memory. The L2 cache is the second thing the computer looks at when performing instructions.

Level 2 Caching

Page 11: Understanding Cache

FILES AND APPLICATIONS INSIDE THE HDD

Word Excel Compiler Task mngr Songs Cntrl pnl

RAM

L1 And L2Cache

CPU

Page 12: Understanding Cache

Bus System

Page 13: Understanding Cache

Lacal Bus

CPU L1 Cache

Hub of all the

operations

Fastest and Nearest to CPU [L1 Cache)

Local Bus

Page 14: Understanding Cache

Back Side Bus

CPU L2 Cache

Hub of all the

operations

2nd Fastest and Nearest to CPU [L2

Cache)

Back Side Bus

Page 15: Understanding Cache

Thanks