Computer Architecture Flashcards

1
Q

What is the definition of a computer system?

A

A computer system takes a set of digital inputs, processes them and creates a set of outputs. This is done by a combination of hardware and software.

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

How does data get into a computer system?

A

The data gets into a computer system by using an ‘input device’, such as a keyboard.

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

List three examples of input devices which can be used to input data.

A

Keyboard
Microphone
Mouse

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

What is another name he CPU might be known by?

A

Microprocessor.

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

Explain the role of a program within a computer system?

A

A computer program, otherwise known as software, provides the CPU with a set of instructions to perform a specific task. The instructions are carried out in the CPU.

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

Give an example of software which might provide instructions.

A

Systems software such as the operating system.

Applications software such as a music player or word processing application.

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

What is meant by output, giving reference to output devices?

A

After data has been processed it will normally by output, which provides the processed data in a format that the user can understand and use. In order to output the data you need an output device, for example if the output is music then headphones or speakers would be an appropriate output device.

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

Explain why processed data is sometimes stored rather than output.

A

The processed data might be part of a larger task and the CPU needs to store it until the rest of the data is ready to be used all together.

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

Explain the role of the data bus within a computer system.

A

A data bus is a set of wires or tracks laid down on a printed circuit board. A data bus carries the data around the computer system, for example from the input device to the CPU to the output device. Each wire or track carries a single bit.

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

Explain what is meant by an embedded computer and give an example?

A

An embedded computer is one that is part of a larger piece of equipment and is usually out of sight. For example, it would be part of a smart TV washing machine or car.

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

State the main role of the CPU.

A

The CPU fetches instructions from memory, it decodes the instructions and then executes those instructions. It processes data using the instructions.

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

List three examples of hardware the CPU might control.

A

Hard Disk
DVD Drive
Sound System

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

State were the CPU is located within a computer.

A

On the motherboard under the heat sink and cooling fan.

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

Name the three main parts found within a CPU.

A

Control Unit
Arithmetic Logic Unit
Registers

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

What is used to carry data within the CPU and also to and from main memory?

A

Data Buses

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

Identify three tasks that the Control Unit performs.

A

It controls the way data moves around the CPU. (Main Task)
It controls and monitors the flow of data between the CPU and other components, such as input devices, memory, graphic card etc.
It executes the instructions provided by the program

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

Identify the two tasks the ALU performs.

A

Arithmetic operation - It performs standard arithmetic operations such as addition, subtraction, multiplication etc.
Logical operation - It deals with the logic and comparisons such as ‘is this value greater than that value?’ the answer is always either ‘true’ or ‘false’.

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

Briefly explain the role of a register within the CPU.

A

Registers are used to hold temporary data while a software program is running. As the CPU processes the data, the software program will shift the data in and out of the registers.

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

State the purpose of the cache.

A

The cache is a small, but extremely fast type of RAM. It can help speed up processing time.

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

Explain why there is a clock inside the CPU.

A

The clock is a small quartz crystal which ‘ticks’ at a steady speed. During each ‘tick’ the CPU can process a single instruction.

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

Outline the function of the clock inside the CPU.

A

The clock inside the CPU ‘ticks’ at a regular speed. Each time it ticks, the CPU can process a single instruction.

22
Q

Identify why there is an upper limit at which the CPU clock can comfortably run.

A

As the clock ticks it generates power and this heats up the CPU chip. If the clock speed is too high, the temperature of it would increase too much and the CPU could get burned out.

23
Q

Explain what is meant by overclocking and identify why people might want to overclock their CPU.

A

If you want to overclock your CPU, you increase the frequency at which the clock ‘ticks’ at. Overclocking your CPU can help make your computer faster as more instructions can be processed each second. Meaning the CPU can run faster than its normal design speed. People may want to overclock their CPU, if they are keen gamers, to make their game faster. (This can be useful playing video games which require intense processing).

24
Q

A CPU has been overclocked. Identify how it is possible to do this without permanently damaging the CPU chip.

A

It is possible if you improve the cooling system to cool down the CPU. For example a water-cooled computer or a computer cooled by liquid nitrogen.

25
Q

What is meant by the term ‘core’.

A

A core is a complete processing unit within the CPU - it contains an ALU, CU and registers.

26
Q

Outline how increasing the number of cores can lead to an improvement in the CPU’s performance.

A

Each core can process a single task when the clock ticks. If there are 2 cores then two tasks can be processed each tick of the clock. If there are 4 cores then four tasks can be processed simultaneously, therefore extra cores means that more tasks can be processed at the same time.

27
Q

What is meant by multi tasking?

A

Multi tasking is the ability to carry out more than one task at the same time. For this more than one core is required. Clearly, with two cores, a CPU can run two tasks simultaneously.

28
Q

What is meant by parallel processing?

A

Parallel processing is when a single task is split into two or more parts and each part is processed at the same time.

29
Q

Why won’t parallel processing necessarily lead to an improvement in CPU performance?

A

Because many programs can’t be split neatly into two independent parts. This is because they are mostly sequential (each task depends on the outcome of the previous task so it has to wait for the first task to be completed).

30
Q

Outline the role of the cache.

A

It’s a small temporary store for frequently used instructions.

31
Q

Identify why having a larger cache can speed up processing time.

A

Having a larger cache will speed up processing time because the CPU can access data and instructions faster than they can from RAM. If frequently used instructions or data are stored in cache, the CPU doesn’t have to fetch them directly from RAM. And with a larger cache, more instructions or data can be stored there, resulting in a faster processing time.

32
Q

Why is there usually a limit to how much cache memory is used in a computer system?

A

The more cache included in the computer system, the more expensive the computer system.

33
Q

What is the purpose of RAM in a computer system?

A

RAM is the main memory that is used to store computer programs and data that are currently in use.

34
Q

What is the purpose of virtual memory?

A

Virtual memory is an area set aside on the hard disk to act as a very slow form of RAM. It is used to store some of the currently running programs and data if RAM is full.

35
Q

Why will your computer appear to be running slow if it doesn’t have sufficient RAM?

A

If RAM is full virtual memory would have to be used. As virtual memory is an area of the hard drive, it would be slower to access. If the virtual memory is in heavy use, the computer will seem to be running very slowly.

36
Q

If too much RAM is added you are unlikely to see a further improvement in performance. Explain why this might happen.

A

If too much RAM is added there isn’t a further improvement in performance as there is lots of excess RAM which isn’t being used, as there is more RAM than memory required by all of the other programs to run the applications.

37
Q

If you are running a video game, explain how installing a graphics card could help improve the performance of your system.

A

The graphics card contains a graphics processing unit which is designed to handle graphics and images much faster than the CPU. Therefore after installing a graphics card, the CPU will send any graphics related tasks directly to the GPU while it continues to process other tasks, therefore the performance of your system would improve as graphics files are large and often require much processing.

38
Q

Name some issues that you might need to consider when thinking about installing a graphics card to improve performance.

A

They’re expensive.
They only improve performance on graphics or video files.
They use a lot of power, therefore the computer would need to be fitted with a more powerful power supply.
Because they use a lot of power, they need a cooling fan, which are noisy.

39
Q

What is meant by Von Neumann architecture?

A

Von Neumann architecture is where both the data and the software that are currently being used are stored in computer memory (RAM).

40
Q

Give another name for Von Neumann architecture.

A

A stored program computer.

41
Q

Give the features of the Von Neumann architecture.

A

There is a CU responsible for handling the movement of instructions and data around the computer.
There is a ALU responsible for carrying out calculations and logic comparisons.
Data and instructions are carried on buses.
There needs to be enough memory to hold both programs and data.
There are registers inside the CPU, eg the accumulator.
There is a way to input into the computer and to output information.

42
Q

What is an alternative computer architecture to Von Neumann?

A

Harvard Architecture.

43
Q

Describe the role of the memory data register.

A

The MDR temporarily stores data and instructions as they are fetched from RAM, before passing them on to be processed. Data can also be temporarily stored after being processed before being passed back to RAM.

44
Q

Describe the role of the memory address register.

A

Every piece of data or each instruction has it’s own unique address in RAM. The address of the data or instruction being accessed for processing is temporarily stored in the MAR.

45
Q

Describe the role of the program counter.

A

As each instruction is processed, the software that is currently running updates the program counter with the address of the next instruction to fetch. The program counter then passes this next address to the MAR as part of the standard fetch/decode/execute cycle.

46
Q

Describe the role of the accumulator.

A

The accumulator is used to temporarily store data whilst calculations are being performed within the ALU.

47
Q

List the five registers involved with the fetch/decode/execute cycle.

A

Program counter, memory address register, memory data register, instruction register, accumulator.

48
Q

At the start of the fetch/decode/execute cycle, where will the instruction or data be fetched from?

A

Main memory (RAM).

49
Q

Only one program can be running in main memory, true or false?

A

False.

50
Q

Describe what happens during the fetch part of the fetch/decode/execute cycle.

A

The program counter is updated with the location. The address location is copied to the MAR. The CU loads the address from the MAR onto the address bus. The data is taken from that location in main memory. That data is loaded onto the data bus. The data is stored in the MDR. The instruction in the MDR is copied into the instruction register. The program counter is now incremented by one location.

51
Q

Explain what happens in the decode part of the fetch/decode/execute cycle.

A

The CU reads the instruction register and makes sure that it’s an instruction that the CPU can carry out. It does this by checking the instruction register against the instruction set. If the instruction is not recognised as valid it may flag an error or crash the program.

52
Q

What happens in the execute part of the fetch/decode/execute cycle.

A

It may involve making a calculation or a logical comparison, which is handled by the ALU. The results of the calculation may be stored in a register in the CPU, or may be returned to main memory if the program requests it.