Computer systems 1 The CPU Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

Define a computer

A

A computer is a device that can be programmed to carry out general purpose mathematical and/or logical computations.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Define a system

A

A system is a combination of many connected parts all working together (interacting) to achieve a common goal.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Explain the interactions in a computer system

A

A computer system can be described as one that involves interaction between:
● Hardware is the physical components of a computer system, the computer components.
○ Examples: processor, memory, storage devices, any input or output device, peripherals, registers, logic gates etc.
● Software is the general term used to describe programs/instructions that are executed by the processor.
○ Examples: Any system software package e.g. microsoft word, steam, google.
● Data is the raw material or information that can be processed by any computing machine
● The (human) user

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Define computer architecture

A

Computer architecture refers to how all the computer’s parts are physically, and logically, laid-out or connected.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Describe a basic von Neumann Architecture

A

Basic von Neumann Architecture
1. Central Processing Unit (CPU) carries out computations on data by following instructions, resulting in an output.

  1. Memory stores both the data to be operated on and the instructions (programs) that pirates on that data, and the results.
  2. A bus connecting the CPU and memory (represented by arrows)
  3. Input/output devices.
    The motherboard is a circuit board that devices are physically mounted on. Motherboards typically include: the CPU, main memory, hard drive and many other components, such as I/O devices.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is John von Neumann Known for?

A

John von Neumann (1903-57)
● Hungarian-American
● Outstanding mathematician, physicist, engineer and computer scientist.
● Described the architecture in 1945 - still relevant today.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is a CPU and what does it do?

A

The Central Processing Unit (CPU) is the most important hardware component in a computer. It has two main functions:
● to process data and instructions
● to control the rest of the computer system

All programs and data processing are run in the CPU and all hardware components are, to some extent, controlled by it.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are the six major components of the CPU

A

The CPU consists of 6 major components
● Control Unit (CU)
● Arithmetic Logic Unit (ALU)
● Registers
● Cache
● Clock
● Buses

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is the control unit? (CU)

A

The control unit directs the operations of the CPU.
● It fetches, decodes and executes instructions
● It issues control signals that control hardware
● It moves data around the system

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is the Arithmetic Logic Unit (ALU)

A

The Arithmetic Logic Unit (ALU):
● receives instructions (from memory) and data (again, from memory) and operates on the data according to the instructions.
● acts as a gateway between primary memory and secondary storage.

The ALU allows arithmetic (add, subtract etc) and logic (AND, OR, NOT etc) operations to be carried out.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What are registers? And give examples

A

Registers are small amounts of high-speed memory contained within the CPU. They are used by the processor to store small amounts of data that are needed during processing, such as:
● the address of the next instruction to be executed
● the current instruction being decoded
● the results of calculations

MAR Memory Address Register
Holds the memory location of data that needs to be accessed

MDR Memory Data Register
Holds data that is being transferred to or from memory

ACC Accumulator
Holds the data being processed and the results of processing

PC Program Counter
Contains the address of the next instruction to be executed

CIR Current Instruction Register
Holds the instruction that is currently being decoded and executed

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Explain what the cache is

A

Cache is a small amount of high-speed random access memory (RAM) built directly within the processor.

It is used to temporarily hold data and instructions that the processor is likely to reuse.

This allows for faster processing as the processor does not have to wait for the data and instructions to be fetched from the RAM.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Explain what the clock is

A

The CPU contains a clock which is used to coordinate all of the computer’s components. The clock sends out a regular electrical pulse which synchronises all the components.

The frequency of the pulses is known as the clock speed. Clock speed is measured in hertz (Hz). The higher the frequency, the more instructions can be performed in any given moment of time.

Today, processors commonly run at a rate of 3 gigahertz (GHz) to 5 GHz, which is 3 billion to 5 billion pulses or cycles per second.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Explain what buses are and give examples

A

A bus is a high-speed internal connection. Buses are used to send control signals and data between the processor and other components.

Address Bus
Carries the addresses of data (but not the data) between the processor and memory

Data Bus
Carries data between the processor, the memory unit and the input/output devices

Control Bus
Carries control signals/commands from the CPU (and status signals from other devices) in order to control and coordinate all the activities within the computer. Also carries the clock’s pulses

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is the The Fetch-Decode-Execute Cycle?

A

When a program is being executed, the CPU performs the fetch-decode-execute cycle, which repeats over and over again until reaching the STOP instruction.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is the first step of the fetch execute decode cycle?

A
  1. Program counter has the address of next instruction that has to be fetched
17
Q

What is the second step of the fetch execute decode cycle?

A

2 This address is copied from the PC to the MAR via the address bus

18
Q

What is the third step of the fetch execute decode cycle?

A

3 The instruction at the address contained in the MAR are then copied into the MDR.

19
Q

What is the fourth step of the fetch execute decode cycle?

A

4 The instructions in the MDR is then copied and placed into the CIR

20
Q

What is the fifth step of the fetch execute decode cycle?

A

5 Program counter is then incremented by 1 so that it points to the next instruction

21
Q

What is the sixth step of the fetch execute decode cycle?

A
  1. The instruction is decoded and then executed via the control bus sending the instructions to the various components of the computer
    Results stored in ACC.
22
Q

What is the last(seventh) step of the fetch execute decode cycle?

A
  1. Repeats