CPU and Memory Basics

0.0(0)
studied byStudied by 0 people
full-widthCall with Kai
GameKnowt Play
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/51

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

52 Terms

1
New cards

How is CPU and Memory connected

Every instruction executed by the CPU requires memory access

2
New cards

Primary memory

holds program instructions and data

3
New cards

Secondary storage

Used for long term storage

4
New cards

Memory Hierarchy

Can be thought of as a pyramid

<p>Can be thought of as a pyramid</p>
5
New cards

CPU Architecture Designs

Complex Instruction Set Computers

Reduced Instruction Set Computers

6
New cards

CISC

Larger vocabulary, uses less steps to complete a task

7
New cards

RISC

Smaller Vocabulary, uses fewer unique instructions

8
New cards

Arithmetic Logic Unit

Performs calculations and comparisons

9
New cards

Control Unit processes (3)

Performs fetch/execute cycle

Accesses program instructions and issues commands to the ALU

Moves data to and from CPU registers and other hardware components

10
New cards

Control Unit Subcomponents (2)

Memory management unit

I/O Interface

11
New cards

Memory Management Unit

Supervises fetching instructions and data from memory

12
New cards

I/O Interface

sometimes combined with memory

management unit as Bus Interface Unit

13
New cards

Stored Program Computer

Computer that store their programs in electronic memory

14
New cards

Von Neumann Architecture

Computer has a single storage system for storing data as well as program to be executed and there is a single set of address/data buses between CPU and memory

15
New cards

Von Neumann Bottleneck

Processor can process an instruction faster than it can be transferred in from memory, therefore processor is left idle, waiting for transfer

16
New cards

Harvard Architecture

Two separate memory and data buses for data and instructions.

17
New cards

Registers

Small, permanent storage locations within the CPU used for a particular purpose

18
New cards

What directly manipulates Registers?

Control Unit

19
New cards

What size do registers hold?

bits or bytes

20
New cards

What can registers hold? (3)

data, address, instruction

21
New cards

General Purpose Register

Hold intermediate results or data values, e.g. loop counters

22
New cards

How many general purpose registers are in a CPU

Typically several dozen

23
New cards

Instruction Register

Stores instruction fetched from memory

24
New cards

IP

Instruction Pointer

25
New cards

MAR

Memory Address Register

26
New cards

Memory Address Register

Stores address of memory source

27
New cards

MDR

Memory Data Register

28
New cards

Memory Data Register

Stores data from memory

29
New cards

Status Registers

Status of CPU and currently executing program

Flags to track conditions like arithmetic carry and overflow, power failure, internal computer error

30
New cards

Where is the address from an instruction copied to?

the MAR

31
New cards

What does transfer take place between

MDR and memory

32
New cards

T/F MDR is a two-way register

True

33
New cards

Fetch

Decode/find instruction, load from memory into register and signal ALU

34
New cards

Execute

Performs operation that instruction requires and moves/transforms data

35
New cards

What is used for timing purposes for each step of the instruction cycle?

Computer Clock

36
New cards

Bus

The physical connection that makes it possible to transfer data from one location in the computer system to another

37
New cards

Bus Signal Types (4)

Data

Address

Control

Power

38
New cards

Parallel Bus

All bits of a word are transmitted simultaneously

39
New cards

Serial Bus

1 bit transmitted at a time

40
New cards

Parallel Bus Disadvantages (2)

Expensive and requires lots of space

Subject to radio-generated electrical interference

41
New cards

why is serial throughput typically higher for many applications than parallel?

Lack of electrical interference

42
New cards

When is parallel Buses typically used

for short distances

43
New cards

Blocks

between 8 and 64 bytes

44
New cards

Cache Line

Unit of transfer between storage and cache memory

45
New cards

Tags

Pointer to location in main memory

46
New cards

Cache Controller

Hardware that checks tags to determine if in cache

47
New cards

Hit Ratio

ratio of hits out of total requests

48
New cards

Principle of Locality

Once a byte is accessed, it is likely that a nearby data element will be needed soon

49
New cards

Three forms of locality

Temporal

Spatial

Sequential

50
New cards

Temporal Locality

Recently-accessed data elements tend to be accessed again

51
New cards

Spatial Locality

Accesses tend to cluster

52
New cards

Sequential Locality

Instructions tend to be accessed sequentially