Docsity

computer hardware and system software 6, Slides of Computer Fundamentals

Partial preview of the text

Download computer hardware and system software 6 and more Slides Computer Fundamentals in PDF only on Docsity!

MIS 2103

Computer Hardware and

System Software

Fall 2023

Lecture

CPU and Memory

CPU and memory

§ The performance of the CPU is affected

by

§ the number of cores,

§ clock speed

§ memory

§ There are different types of volatile

(changeable) and non-volatile memory.

Processing

Graphics

§ Most computers have a CPU and a

separate graphics processing unit (GPU) for

images.

§ The GPU can be around 10 times faster than

the CPU.

§ It is optimised to produce high-quality 3D

graphics for games and films.

§ The GPU is responsible for handling images

and frees up the CPU to do all other tasks.

Measuring performance

§ CPU, memory and bus speeds will all affect

the overall speed of a computer. If one is

significantly slower, then it will slow down the

others.

§ Benchmarking is a test used to assess the

performance of a computer.

§ It is difficult to assess the performance of a CPU

because a computer might excel at some tasks

but not do so well at others.

CPU performance

§ There are four key factors about CPU

architecture that affect its performance:

§ cores

§ clock speed

§ cache size

§ processor type

Cores

CPU cores have to communicate with each other through channels and this consumes some of the extra speed.

Clock speed

§ The clock speed indicates how fast the CPU can

run.

§ It is measured in megahertz (MHz) or gigahertz (gHz) and corresponds with how many instruction cycles the CPU can deal with in a second. § A 2 gHz CPU performs two billion cycles a second. A faster CPU uses more energy and creates more heat. § A computer will normally have a maximum clock speed set by default, but it is possible to change this speed in the computer BIOS. § Some people increase a CPU clock speed to try to make their computer run faster - this is called overclocking.

Cache

§ Cache is a small amount of memory which is a part

of the CPU - closer to the CPU than RAM.

§ It is used to temporarily hold instructions and data that

the CPU is likely to reuse. § The CPU control unit automatically checks cache for instructions before requesting data from RAM. § Transfers to and from cache take less time than transfers to and from RAM. § The more cache there is, the more data can be stored closer to the CPU.

Cache

Cache is graded as Level 1 (L1), Level 2 (L2) and Level 3 (L3): § L1 is usually part of the CPU chip itself and is both the smallest and the fastest to access. Its size is often restricted to between 8 KB and 64 KB. § L2 and L3 caches are bigger than L1. They are extra caches built between the CPU and the RAM. Sometimes L2 is built into the CPU with L1. L2 and L3 caches take slightly longer to access than L1. § There is more space for RAM, which is usually larger and less expensive. § Each CPU core has its own L1 cache, but may share L2 and L caches.

CISC vs. RISC

§ Instructions - RISC has fewer instructions than CISC. § To do complex tasks, RISC CPUs must combine simple operations from their reduced instruction set. § Physical size - in order to handle all those instructions CISC CPUs are larger and require more silicon to make. § Speed - RISC CPUs run at a lower clock speed than CISC CPUs. They can perform simpler tasks more quickly than CISC, but more intensive tasks will be better on a CISC CPU.

CISC vs. RISC

§ Energy consumption - because CISC CPUs are larger, they use more electricity. § RISC CPUs can go into 'sleep mode' when not actively processing a program. § Design: § smartphones and tablets combine their processing architecture into a system on a chip (SOC). § CISC CPUs are usually built into a system which has a heat sink and fan to cool them down. Smartphones or tablets do not have space for heat sinks or fans. § Cost - RISC CPUs use less power and are cheaper to make.

8 - 19 Limitations of CISC Architecture § Complex instructions are infrequently used by programmers and compilers § Memory references, loads and stores are slow § Procedure and function calls are a major bottleneck (delay traffic)

§ Passing arguments

§ Storing and retrieving values in registers

8 - 20 VLIW (very long instruction word) Architecture

§ Transmeta Crusoe CPU

§ 128 - bit instruction bundle = molecule

§ 4 32-bit atoms (atom = instruction) § Parallel processing of 4 instructions

§ 64 general purpose registers