گارگاه کامپیوتر cpu and main memory

68
ي م ش ها ادران ر ب ي عل ده: ن ن ك ه ي ه ت ر ب و ی# ن م گارگاه کاCPU and Main Memory

Upload: varick

Post on 25-Feb-2016

79 views

Category:

Documents


2 download

DESCRIPTION

گارگاه کامپیوتر CPU and Main Memory. تهيه كننده: علي برادران هاشمي. Central Processing Unit (CPU). The CPU is the main chip in the computer Brain of the PC The CPU is also called the microprocessor The most important chip in the computer - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: گارگاه کامپیوتر CPU and Main Memory

تهيه كننده: علي برادران هاشمي

گارگاه کامپیوتر

CPU and Main Memory

Page 2: گارگاه کامپیوتر CPU and Main Memory

2

The CPU is the main chip in the computer Brain of the PC The CPU is also called the microprocessor The most important chip in the computer

Modern processors contain millions of transistors which are etched onto a tiny square silicon called a die, which is about the with of a standard thumb.

The CPU processes instructions, performs calculations, and manages the flow of information through a computer

The CPU performs millions of calculations every second

Central Processing Unit (CPU)

Page 3: گارگاه کامپیوتر CPU and Main Memory

3

CPU (Cont.)

InputDevice

OutputDevice

Primary Memory

Second Memory

Input Processing Output

CPUCU ALU

CPU: Central Processing UnitALU: Arithmetic Logic Unit CU : Control Unit

Page 4: گارگاه کامپیوتر CPU and Main Memory

4

Send signals to execute strored programs DOES NOT execute programs but tells other to

execute Primary functions :

1. Read & Interpret program instructions2. Direct operation of process3. Control memory access (Data In/Out)

Program is loaded in RAM. During the execution program instructions

moves to control unit.

Control Unit (CU)

Page 5: گارگاه کامپیوتر CPU and Main Memory

5

Arithmetic Operations: Addition, subtraction, division, multipication

Logical operations : Equal, Greater than,…

ALU

Page 6: گارگاه کامپیوتر CPU and Main Memory

6

How the CPU executes Program Instructions ?

main Memory

Control Unit Arithmetic/Logic Unit

Step 1 : Fetching

Step 2: Decoding Step 3: Executing

Step 4: Storing

Instruction Time Execution Time

Page 7: گارگاه کامپیوتر CPU and Main Memory

7

Page 8: گارگاه کامپیوتر CPU and Main Memory

8

Coprocessors take over calculations floating-point math.

Math coprocessors will speed your computer's operation when utilizing software applications that take advantage of its capabilities. Built-in in modern CPUs.

Math Coprocessor

Page 9: گارگاه کامپیوتر CPU and Main Memory

9

INTEL 4004 - microprocessor introduced in 1970 with the speed of 108khz was the worlds first microprocessor.

INTEL 8080 running at the speed of 2 MHz was used in the

world's first PC, the Altair. INTEL 8086 1976 16-bit architecture that allowed it to work with

16-bit binary numbers and pass them through a 16-bit data bus.

The 8086 was available in clock speeds of 5Mhz, 8Mhz, and 10Mhz.

Processor History

Page 10: گارگاه کامپیوتر CPU and Main Memory

10

INTEL 8088 1979 The 8088 was the first processor used in the

original IBM PC and XT personal computers. INTEL 80286 1982 286 processor. The 286 processor supported 16-bit

architecture, supported virtual memory, and was available in clock speeds of 8Mhz, 10Mhz, and 12Mhz.

Processor History(Cont.)

Page 11: گارگاه کامپیوتر CPU and Main Memory

11

INTEL 80386DX 1985 The chip was available in clock speeds of

16mhz, 20mhz,  25mhz, and 33mhz. INTEL 80486DX 1989

The 486DX featured a built-in memory cache and 32-bit architecture. It had more than three times the computing power of the 386DX and was available in clock speeds of 25mhz, 33mhz, and 50mhz.

DX

Page 12: گارگاه کامپیوتر CPU and Main Memory

12

INTEL 80386SX (1989) The 80386SX lacked a math coprocessor however

still featured the 32-bit architecture and built-in multitasking. The chip was available in clock speeds of 16mhz, 20mhz,  25mhz, and 33mhz.

INTEL 80486SX (1991) less expensive version of the 80486DX. It lacked the math coprocessor of the 80486DX

and ran at lower clock speeds then the DX it ran at 16mhz, 20mhz, 25mhz, or 33 MHz.

SX

Page 13: گارگاه کامپیوتر CPU and Main Memory

13

INTEL 80486DX2 (march 2, 1992). Based upon the popular 486DX. Internal clock speeds that doubled that of

the system that operated it. A DX2 on a system with a 33mhz bus

would run at 66mhz. INTEL 80486DX4  (1993)

The 486DX4 would triple that of the system that operated it.

100 MHz.

Dx2 – Dx4

Page 14: گارگاه کامپیوتر CPU and Main Memory

14

INTEL PENTIUM (march 22, 1993) designed to replace the 486 processors. The Pentium has a 32-bit address bus and a

64-bit data bus. It can operate at speeds of 60mhz to

200mhz. The Pentium was released in three

generations.

Pentium

Page 15: گارگاه کامپیوتر CPU and Main Memory

15

The first-generation of Pentium processors was the Pentium 60 and 66 MHz.

The second-generation introduced march 7, 1994 included new processors from 75, 90, 100, 120, 133, 150, 166, and 200 MHz.

The third-generation of Pentium processors code named P55C were introduced January 1997,  which incorporated the new technology MMX.

The Pentium MMX processors were available 166, 200, 233 MHz, and 266 MHz mobile version.

Pentium Generations

Page 16: گارگاه کامپیوتر CPU and Main Memory

16

INTEL PENTIUM PRO designed for the corporate users and for

high-end servers and workstations, preferably those using windows NT. 

The Pentium pro CPUs are extremely fast with 32-bit applications and 3-D image processing and rendering when compared to previous Intel processors.

The chip runs at 166mhz and higher

INTEL PENTIUM PRO!

Page 17: گارگاه کامپیوتر CPU and Main Memory

17

INTEL PENTIUM II The Pentium II 233mhz was released in

1997 previous owners of Pentium motherboard

could not upgrade to this new type of chip unless the motherboard!?

they had included a SLOT 1 technology. The Pentium II runs from 233mhz to 450mhz.

P2

Page 18: گارگاه کامپیوتر CPU and Main Memory

18

INTEL PENTIUM III (1999) The Pentium III chip continued to use

the SLOT 1 and could be used on previous Pentium II motherboards with BIOS support.

The Intel Pentium III chips have a ID for each chip helping to authenticate peoples purchase over the internet. Privacy

P3

Page 19: گارگاه کامپیوتر CPU and Main Memory

19

Processors can be identified by two main parameters :

How wide they are and how fast they are.

The speed of a processor is fairly simple concept. Speed is counted in MegaHertz, which

means millions of cycles per second.

Processor Specifications

Page 20: گارگاه کامپیوتر CPU and Main Memory

20

A little more complicated to discuss because there are three main

specifications in a process that are expressed in width: Internal registers. Data input and output bus. Memory address bus.

Processor Specifications

Page 21: گارگاه کامپیوتر CPU and Main Memory

21

The size of the internal registers A register is a holding cell within the

processor; For example the processor can add

numbers in two different registers, storing the result in a third register.

The register size determines the size of the data the processor can operate on.

Internal Registers or Internal Data Bus

Page 22: گارگاه کامپیوتر CPU and Main Memory

22

The address bus is the set of wires that carries the addressing information used to describe the memory location to which the data is being sent or from which the data is being retrieved.

As with the data bus, each wire in an address bus carries a single bit of information.

Address Bus

Page 23: گارگاه کامپیوتر CPU and Main Memory

23

This single bit is a single digit in the address.

The more digits used in calculating these addresses, the greater the total number of address locations.

The size of the address bus indicates the maximum amount of RAM that a chip can address.

Address Bus

Page 24: گارگاه کامپیوتر CPU and Main Memory

24

Process Memory-addressingProcessor Address Bus MB

8088/8086 20-bit 1

286/386SX 24-bit 16386DX/486/Pentium 32-bit 4,096

Pentium II, III, IV 36-bit 65,536

Page 25: گارگاه کامپیوتر CPU and Main Memory

25

A small very fast memory. Holding recently accessed data,

designed to speed up subsequent access to the same data.

When data is read from, or written to, main memory a copy is also saved in the cache, along with the associated main memory address.

Cache memory

Page 26: گارگاه کامپیوتر CPU and Main Memory

26

All modern processors starting with the 486 family include integrated L1 cache.

L1 cache is built in to the processor die, this means it runs at full core speed of the processor.

Main system RAM is often slower than the CPU so L1 cache works as a temporary storage space between the CPU and memory.

Internal Level 1 (L1) Cache

Page 27: گارگاه کامپیوتر CPU and Main Memory

27

Think of L1 cache as local computer distributor. When a client (CPU) calls up and requires a

certain part for a computer, the distributor (L1) checks its inventory for that part.

If it has it in stock, it sends that part out right away and you get it very quickly. (Cache hit).

If that part is not in stock, it must call up its head office (RAM) and have them ship it, which takes much longer to receive. (Cache miss).

Ok… But What Does It Do?

Page 28: گارگاه کامپیوتر CPU and Main Memory

28

When there is a cache miss, the processor must go to memory and read through it and locate the information. Main memory runs a lot slower then L1 cache. Because of this, it takes much longer to get the appropriate information.

L2 cache is an even larger storage space that gathers information from RAM incase there is a cache miss with the L1. This way we can speed up the process a little better.

Level 2 (L2) Cache

Page 29: گارگاه کامپیوتر CPU and Main Memory

29

This of L2 cache as a Regional Office When the distributor (L1) does not have a

certain item in stock, instead of calling all the way to the head office (RAM), they call the regional office (L2) which is much closer.

If the regional office (L2) has the part, they can ship it out much fast than the head office.

If the regional office (L2) does not have this part, then the head office (RAM) must be called.

Ok… Again what does it do?

Page 30: گارگاه کامپیوتر CPU and Main Memory

30

Depending on the type of processor you purchase will depict the type of motherboard you will buy.

Most computers up to the 3rd generation of Pentiums used socket technology.

When Pentium 2 CPUs arrived, slot 1 became the new style.

Socket VS Slot

Page 31: گارگاه کامپیوتر CPU and Main Memory

31

Slot 1

Page 32: گارگاه کامپیوتر CPU and Main Memory

32

In the late 1990's, Intel decided to abandon the Socket type CPU design and move to a edge connected, or slot form CPU.

This allows for a much larger CPU package, which usually includes tightly coupled cache to boost CPU performance.

Intel Pentium II was the first of these slot type CPUs, utilizing Slot 1,

However, in order to compete in lower cost, easier to manufacture systems, Intel returned to the Socket for with Socket 370, and both the Pentium III and Celeron are now available in Socket 370 form.

Slot 1

Page 33: گارگاه کامپیوتر CPU and Main Memory

33

developed by Digital Equipment for their Alpha processor

supports the new AMD Athlon, at speeds from 500 MHz to 800 MHz.

support for the Athlon’s 266MHz front side bus (FSB) appeared in the Fall of 2000 when AMD introduces it's new chipsets that support DDR (Double Data Rate) SDRAM.

AMD is phasing out Slot A in favor of Socket A.

Slot A

Page 34: گارگاه کامپیوتر CPU and Main Memory

34

Socket 7

Page 35: گارگاه کامپیوتر CPU and Main Memory

35

The Intel Pentium CPU is a Socket 8 device

The Intel Pentium PRO CPU is a Socket 8 device

Pentium PCs can be loosely divided into families by their CPU socket.

The majority of Pentium motherboards is Socket 7, But some Pentium and other upgrade processors can be used

on motherboards equipped with Socket 3 (486 and OverDrive CPU's), Socket 4 (60 and 66MHz Intel Pentiums) or Socket 5 (some of the mid-range Pentiums).

Socket 7 and 8

Page 36: گارگاه کامپیوتر CPU and Main Memory

36

Socket 370

In January 1999, Intel released a new socket for P6 class processors.

The new socket is called socket 370, because it has 370 pins and was designed for lower-cost PGA versions of the Celeron and the P3.

Page 37: گارگاه کامپیوتر CPU and Main Memory

37

Intel has decided to take it's Celeron CPU back into competiton in the PGA (Pin Grid Array) Socket world, in parallel with continuing to produce it as a Slot 1 device. Socket 370, so named for it's 370 pin grid, is NOT

compatible with Socket 7 or Super 7, it just looks similar. The Pentium III is now also available for Socket 370, but

make sure your Socket 370 motherboard can handle a 100MHz or 133MHz bus before wasting a FCPGA (Flip Chip Pin Grid Array) Pentium III on it.

The Socket 370 motherboards don't carry external cache, the new Celeron for Socket 370 has 128KB on the die, the Pentium III for socket 370 has 256KB on-board.

Socket 370 (cont.)

Page 38: گارگاه کامپیوتر CPU and Main Memory

38

Socket 423, named for its 423 pins, The original Pentium 4 socket. Socket 478 is the successor to 423,

supporting new sizes and speeds of the P4. current P4s only support Rambus RIMM

for high performance or the old PC133 memory for slower systems, support for 266MHz DDR is now.

The P4 is not available in a slot format.

Socket 423 and 478

Page 39: گارگاه کامپیوتر CPU and Main Memory

39

AMD is currently the only manufacturer of Socket A CPUs, these being the Athlon and the Duron. Socket A CPUs are somewhat less

expensive than their Slot A brothers, due to the smaller package and reduced amount of cache memory integrated with the CPU.

AMD warns that Socket A CPUs should not be used with adapters as Slot A CPUs.

Socket A

Page 40: گارگاه کامپیوتر CPU and Main Memory

40

Definitions of Memory Memory is the workspace of the computer’s

processor. A temporary storage space where the programs

and data being operated on must reside.

Memory refers to integrated circuits that store program instructions and data that can be retrieved.

Memory is the part of the computer that holds data and instructions for processing.

Names of Memory primary storage ,primary memory, main storage, internal

storage, main memory

Memory

Page 41: گارگاه کامپیوتر CPU and Main Memory

41

Random Access Memory (RAM) Memory that provides temporary storage for data

and program instructions. The programs and data stored in RAM are erased

when the power to the computer is turned off.

Read Only Memory (ROM) Memory that can be read-only and that store data or

instructions that do not change. Data and instructions in it remains after the power is

turned off.

RAM and ROM - Memory (2)

Page 42: گارگاه کامپیوتر CPU and Main Memory

42

Read Only Memory

This type of memory is Read Only meaning that it is almost impossible to write to it!

ROM is non volatile, meaning it does not require electricity for information to remain in ROM.

ROM

Page 43: گارگاه کامپیوتر CPU and Main Memory

43

Programmable ROM Similar to ROM, except there is a fuse

connected to ground. Hence, the default value is 0. Burn the

fuse to get 1. It can only be write to once.

Firmware Instructions that are stored in ROM are

called firmware.

ROM (cont.)

Page 44: گارگاه کامپیوتر CPU and Main Memory

44

Erasable PROM A special transistor instead of the fuse (as in PROM) is

used. It allows the stored data to be erased and

reprogrammed. EPROM uses ultraviolet light to erase the content.

EEPROM uses higher than normal electricity voltage to erase the content.

The number of times it can be reprogrammed is limited.

The speed of EEPROM is slower than RAM as it can only erase and reprogram one byte at a time.

ROM (cont.)

Page 45: گارگاه کامپیوتر CPU and Main Memory

45

Flash memory is based on EEPROM technology. It uses normal voltage to erase and reprogram. Faster than EEPROM as it can erase and

reprogram one block of memory at a time (instead of one byte at a time).

Flash memory is used in digital cellular phones, PDAs, digital cameras, LAN switches, digital set-up boxes, embedded controllers, and other devices.

In modem PCs, flash memory is commonly used to store system BIOS.

Flash memory

Page 46: گارگاه کامپیوتر CPU and Main Memory

46

Basic Input/Output System The BIOS is built-in software that determines

what a computer can do without accessing programs

from a disk. It tells the microprocessor what to do after

right after you turn on the computer. On PCs, the BIOS contains all the code required

to control the keyboard, display screen, disk drives, serial communications, and a number of miscellaneous functions.

BIOS

Page 47: گارگاه کامپیوتر CPU and Main Memory

47

DRAM :Dynamic RAM) built from capacitors; it’s called dynamic because it must

periodically refresh the capacitors. higher density, lower speed used in main memory Refreshing the memory takes processor

time from other tasks. For each refresh cycle, there are multiple

processor cycles.

RAM

Page 48: گارگاه کامپیوتر CPU and Main Memory

48

SDRAM: Synchronous Dynamic RAM

DDR SDRAM: Double Data Rate SDRAM

RDRAM: Rambus DRAM (proprietary) (DRDRAM)

Page 49: گارگاه کامپیوتر CPU and Main Memory

49

SRAM: Static RAM because it does not require refreshing. Not only are refreshes not required, SRAM is much

faster then DRAM. SRAM is available in access times of 2ns or less,

which means it can keep pace with modern processors.

lower density, higher speed SRAM uses a cluster of six transistors for each bit of

storage. Problem with SRAM is it is very expensive. SRAM is mostly used in CACHE memory inside of

processors and on motherboards

SRAM

Page 50: گارگاه کامپیوتر CPU and Main Memory

50

Extended Data Out RAM became available with Pentium systems in 1995.

Allowing the memory controller to begin a new instruction while it is currently reading data at that current address.

The actually use EDO memory, your motherboard chipset must support it.

EDO is great for systems with bus speeds of up to 66mhz, which fit perfectly with the PC market through 1997.

However, in 1998 EDO lost out to a newer fast memory called SDRAM.

EDO DRAM

Page 51: گارگاه کامپیوتر CPU and Main Memory

51

Synchronous DRAM A type of DRAM that runs in synchronization with

the memory bus. SDRAM delivers information in very high-speed

bursts using a high-speed, clocked interface. SDRAM synchronizes with the motherboards clock

speed.

SDRAM is sold in DIMM form and is often rated by MHz speed rather than nanosecond cycling time.

SDRAM is sold as PC66, PC100, PC133.

SDRAM

Page 52: گارگاه کامپیوتر CPU and Main Memory

52

Rambus DRAM (late 1999). Intel endorsed and supported RDRAM in most of the

new PC motherboard chipsets from 1999 and beyond. Conventional memory systems that use EDO or

SDRAM are know as wide channel systems. They have memory channels as wide as the

processor’s data bus, which for the Pentium is 64 bits.

The DIMM is a 64-bit wide device, meaning data can be transferred to it 64 bits or 8 bytes at a time.

The fastest DIMMs are the SDRAM type, which run at 133mhz, meaning the overall throughput is 100x8 = 800Mb/sec.

RDRAM

Page 53: گارگاه کامپیوتر CPU and Main Memory

53

RDRAMs are a narrow channel devices. They transfer data only 16 bits at a time,

but at much faster speeds. They normally run 800Mhz, meaning the

overall throughput is 800 x 2 = 1.6GB per second.

Each individual chip is serially connected to the next on a package called a RIMM (Rambus inline memory module).

RDRAM (Cont.)

Page 54: گارگاه کامپیوتر CPU and Main Memory

54

Double data rate (DDR) SDRAM Data is transferred twice as fast. Instead of doubling the actual clock rate, DDR

memory achieves the doubling in performance by transferring twice per transfer cycle, once at the leading and once at the trailing edge of the cycle.

DDR-SDRAM uses a new DIMM module design with 184 pins.

DDR DIMMs are rated for either PC200 (100mhz x 2) or PC266 (133mhz x 2) operation and normally run on 2.5 volts.

DDR SDRAM

Page 55: گارگاه کامپیوتر CPU and Main Memory

55

Originally, memory was installed into computers via individual chips.

These chips were often called DIP (Dual Inline Package).

The original XT and AT had 36 sockets on the motherboard for these individual chips.

Because it was very time consuming and tedious to install, SIMMs and DIMMs became very popular

DIPs

Page 56: گارگاه کامپیوتر CPU and Main Memory

56

Single Inline Memory Module. SIMMs are little circuit boards that have

memory chips soldered onto them. There are two main types of SIMMs.

30-pin (8 Bit) 72-pin (32 Bit)

30-pin SIMMs were smaller than the 72-pin SIMMs and often had chips on both sides.

SIMMs

Page 57: گارگاه کامپیوتر CPU and Main Memory

57

The main problem with SIMMs was one 30-pin SIMM was only 8 bits and one 72-pin SIMM was only 32 bits.

In order for a computer to function, memory must have the same BUS width as the motherboard.

If a motherboard’s bus was 32 bits and the computer only supported 30-pin SIMMs, you needed to install the memory in groups of 4 to make a 32 bit memory bus.

If a motherboard’s bus was 64 bits and the computer supported 72-pin SIMMs, you needed to install the memory in groups of 2 to make a 64 bit memory bus.

Problem with SIMMs

Page 58: گارگاه کامپیوتر CPU and Main Memory

58

Dual Inline Memory Module. DIMMs, which are more popular now are 168-pin

units with 64-bit data paths. You only have to install 1 DIMM into a computer for it to

work with the 64 bit data bus. To have a reliable system, you must install SIMMs

or DIMMs with gold plated contacts into gold-plated sockets and SIMMs or DIMMs with tin-plated contacts into tin-plated sockets.

If you don’t follow this rule, you will get memory errors! When tin and gold come into contact, because one surface is hard,

the oxidation builds up and does not break easily under pressure. This leads to interruptions in electrical signals between SIMM or

DIMM and the memory socket.

DIMMs

Page 59: گارگاه کامپیوتر CPU and Main Memory

59

In communications, parity checking refers to the use of parity bits to check that data has been transmitted accurately.

The parity bit is added to every data unit (typically seven or eight bits ) that are transmitted.

The parity bit for each unit is set so that all bytes have either an odd number or an even number of set bits.

Parity?

Page 60: گارگاه کامپیوتر CPU and Main Memory

60

Error Correcting Circuits, Error Correcting Code, or Error Correction Code not only detects both single-bit and multi-bit

errors, it will actually correct single-bit errors on the fly.

a step beyond simple parity checking. ECC memory.

specifically designed to allow the use of ECC on modern systems that have a chipset that supports it.

ECC

Page 61: گارگاه کامپیوتر CPU and Main Memory

61

Real Mode Memory Model

Page 62: گارگاه کامپیوتر CPU and Main Memory

62

It resides in the first 1 meg of memory DOS systems have an address space of 1MB

but the top 384K is reserved for system use. This leaves 640K of conventional memory

DOS -based systems, upper memory refers to the memory area between the first 640K and 1 megabyte

Expanded Memory Specification Expanded Memory Manager (EMM) EMM386.EXE driver which is included with MS-

DOS, Windows 3.1 and Windows 95 systems

Conventional memory

Page 63: گارگاه کامپیوتر CPU and Main Memory

63

Imaging RAM When RAM is full!? Run no more program! Virtual memoy is a system software

addition to OS. Use secondary storage as Primary!

Virtual Memory

Page 64: گارگاه کامپیوتر CPU and Main Memory

64

Page 65: گارگاه کامپیوتر CPU and Main Memory

65

Registers RAM Internal clock (Hz) BUS

Path between component of a computer 16 bit,32 bit, 64 bit.

Factors affecting processing speed

Page 66: گارگاه کامپیوتر CPU and Main Memory

66

ISA (Industry Standard Architecture) 16 bit

EISA (Extended ISA) 32bit

PCI (Peripheral Component Interconnect) 1992 33MHz , 32 bit 132 MB/s

BUS

Page 67: گارگاه کامپیوتر CPU and Main Memory

67

Firewire (IEEE1394) 100,200,300,400 MB/s Digital camera, DV Camcorders

USB (Universal Serial Bus) 12MB/s Plug & Play

BUS (Cont.)

Page 68: گارگاه کامپیوتر CPU and Main Memory

68

Any Question?Any Question?