1 - Components of a Computer Flashcards

1
Q

What components does the CPU have to enable it to carry out its task of executing instructions?

A

Control Unit
Buses
Arithmetic Logic Unit (ALU)
Dedicated Registers.

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

What is the Control Unit? What tasks does it carry out?

A

The Control Unit unit directs the operations of the CPU.
Tasks it carries out:
Directs the flow of data between CPU and other devices.
Accepts the next instruction.
Decodes instructions.
Stores resulting data back into memory.

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

What are buses?

A

A bus is a set of parallel wires connecting two or more components of a computer.

The width of the bus is the number of parallel wires the bus has.

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

What is the system bus?

A

The address bus, control bus and data bus make up the system bus.

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

What is the data bus?

A

A bi-directional bus (data is carried in both directions). It’s used for transporting data and instructions between components.

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

What is the address bus?

A

This is the bus used to transmit the memory address specifying where data is to be sent to or retrieved from.

The width of the address bus determines the maximum possible memory capacity of the system. e.g If it was 32 lines it would only have 2^32 memory locations (4,294,967,296).

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

What is the control bus?

A

A bi-directional bus used to transmit control signals between internal and external components. The control bus coordinates the use of address and data buses and provides status information between system components.

Control signals include:

Bus Request: Indicates that a device is requesting the use of the data bus.
Bus Grant: Indicates that the CPU has granted access to the data bus.
Memory Write: Causes data on the data bus to be written into the addressed location.
Memory Read: Causes data from the addressed location to be placed on the data bus.
Interrupt request: Indicates that a device is requesting access to the CPU.
Clock: Used to synchronise operations.

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

What is the arithmetic logic unit?

A

The ALU completes all the arithmetical and logical operations. It can perform instructions like subtract, multiply, divide on fixed or floating point numbers.
Can also perform: shift operations, boolean logic and operations (and, or, not xor).

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

What are Registers?

A

Registers are small memory cells that operate at a very high speed. They’re used to store data and all arithmetic, logical and shift operations occur in these registers.

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

What are the registers and their purpose?

A

Program Counter - Holds the address of the next instruction to be executed.
Accumulator - Stores the results from calculations.
Memory address register - Holds the address of a location that is to be read or written to.
Memory data register - Temporarily stores data that has been read or data that needs to be written.
Current Instruction Register - Holds the current instruction being executed, divided up into operand and opcode.

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

Explain the Fetch-Decode-Execute Cycle.

A

It’s a sequence of operations that are completed in order to execute an instruction.

Fetch:
- Address from the PC is coped to the MAR.
- Instruction held at the address is copied to MDR by the data bus.
-Simultaneously, the contents of the PC are increased by 1.
- The value held in the MDR is copied to the CIR>
Decode:
- The contents of CIR are split into operand and opcode.
Execute:
- The decoded instruction is executed.

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

What is clock speed?

A

● Clock speed is determined by the system clock
● All processor activities begin on a clock pulse
● Each CPU operation starts as the clock changed from 0 to 1
● The clock speed is the number of clock cycles completed in a second.

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

What are cores in a CPU?

A

A core is an independent processor that can run it’s own fetch-execute cycle. More cores = more fetch-execute cycles at any given time. However, not all programs utilise multiple cores efficiently.

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

What is Cache memory?

A

Cache memory is the CPU’s onboard memory. Instructions fetched form main memory are copied to the cache, so if required again, it can be accessed quicker. As cache fills up, unused instructions are replaced.

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

Explain the different levels of cache.

A

Level 1 cache is extremely fast but small.
Level 2 cache is fairly fast and medium sized.
Level 3 cache is much larger but slower memory cell.

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

What is pipelining?

A

Pipe lining is a technique to improve processor performance. It’s the process of completing the fetch, decode and execute cycles of three separate instructions simultaneously, holding appropriate data in a buffer in close proximity to the CPU until it’s required. While one instruction is being executed, another can be decoded and another fetched.

Its aim is to reduce the amount of the CPU which is kept idle.

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

What is the Von Neumann Architecture?

A

This architecture includes the basic components of the computer and processor (control unit, ALU, registers, memory units) in which a shared memory and shared data bus is used for both data and instructions.

18
Q

What is the Harvard architecture?

A

Harvard architecture has physically separate memories for instructions and data, more commonly used with embedded processors. It’s mainly used for embedded processors.

19
Q

What are embedded systems?

A

Embedded systems are special purpose computers built into devices operating in real time. e.g traffic lights.

20
Q

Advantages of Von Neumann Architecture.

A

Cheaper to develop as the control unit is easier to design.

Programs can be optimised in size.

21
Q

Advantages of Harvard Architecture.

A

Quicker execution as data and instructions can be fetched in parallel.
Memories can be different sizes, which can make more efficient use of space.

22
Q

Differences von neumann vs harvard architecture.

A

Von Neumann:
Used in conventional processors in PCs and servers.
Data and programs share the same memory.
One bus is used to transfer data and instructions.

Harvard Architecture:
Used in digital signal processing and in embedded systems, mobile communication systems, audio, speech and image processing systems.
Instructions and data are held in separate memories.
Parallel data and instructions buses may be used.
Large programs.

23
Q

What is contemporary processing?

A

Contemporary processors used a combination of Harvard and Von Neumann architecture. Von Neumann is used when working with data and instructions in main memory, but uses Harvard architecture to divide the cache into instruction cache and data cache.

24
Q

What is opcode?

A

Opcode is used to determine the type of instruction and what hardware to use to execute it.

25
Q

What is operand?

A

The operand is the address of where the operation is performed.

26
Q

What is Complex Instruction Set Computers? (CISC)

A

In these processors there’s a large instruction set. The aim is to try and accomplish tasks in as few lines of assembly code as possible. These instructions are built into the hardware. However, they got replaced by RISC design. Now they’re used in microcontrollers and embedded system.

27
Q

What are reduced instruction set computers (RISC)?

A

In these processors, there’s a small instruction set. Each instruction is approximately one line of machine code and takes one clock cycle.

28
Q

Comparison RISC processor vs CISC Processor.

A

Risc Processor:
The compiler has to do more work to translate high level code into machien code.
More ram is required to store code.
Pipelining is possible since each instruction takes one clock cycle.

CISC Processors:
The compiler has less work to translate high level code into machine code.
Less RAM is used as code is shorter.
Many specialised instructions are made, even though only a few of them are used.

29
Q

What is a co-processor?

A

A co-processor is an extra processor used to supplement the functions of the primary processor. It may be used to perform floating point arithmetic, graphics processing or other functions.

30
Q

Benefit of multi-core CPUs.

A

They’re able to distribute workload across multiple CPU cores, thus achieving significantly higher performance. It depends on the software being able to take advantage of the parallel processing capabilities.

31
Q

What is the Graphical processing Unit?

A

A GPU is a specialised electronic circuit which is very efficient at manipulating computer graphics and image processing. A GPU has lots of independent processors which work in parallel making it very efficient at completing repetitive tasks like image processing. GPUs are a type of co-proessor. It helps accelerate performance offloading computer-intensive parts of an application to the GPU.

32
Q

Explain how Optical Devices work.

A

Optical devices are read from and written to using lasers. Binary information is represented by portions of the disc which either reflect or scatter the incident laser light written in spiral tracks on the disks surface.

33
Q

Explain CDs. How they work.

A

CD (compact disc) use optical technology to store small quantities of information e.g audio files, images.

34
Q

Define DVDs

A

DVD (Digital video disc). Similar to DVDs as they’re optical devices but have a higher storage capacity so it’s more suited to videos.

35
Q

Define Blu-Ray.

A

Advancement over DVDs. They have five times as much storage as DVDs, making them useful for storing HD films.

36
Q

Explain Magnetic Devices and how they work.

A

Devices which store information magnetically represent binary information using two
magnetic states which represent 1 and 0, allowing any information to be represented in
binary form.
The most common type of magnetic storage is hard disk drives. However, magnetic tape
(including cassette tapes) also stores information magnetically.

37
Q

How do HDDs work.

A

HDDs work by rotating magnetic platters at high speeds under a read/write head to access any part of the platter. Most HDDs have multiple platters stacked on top of each other to maximise storage capacity.

38
Q

What is flash storage?

A

Flash storage is fast and compact. The technology makes
use of silicon semiconductors forming the logic gates NAND
and NOR to store electrical charge in one of two states: high
or low. These two states represent the binary values True
and False, which can be used to represent information.

39
Q

Disadvantege of SSd.

A

A disadvantage is their limited lifespan. Every time a page is written to, the voltage
required to write to it increases. Over time, this required voltage will become too
high for the page to be written to.

40
Q

What is RAM.

A

Random access memory is a type of fast main memory used to store data and programs that the computer is currently using. It’s volatile therefore loses data when power is lost.

41
Q

What is ROM?

A

ROM is read only memory. It can’t be modified. It’s useful for storing fixed sequences of instructions like a computers start up (BIOS). It’s non volatile so retains its data when computer is powered off.

42
Q

What is Virtual Storage?

A

Name given to storing information remotely so that it can be accessed by any
computer with access to the same system, for example over the Internet
● Examples include cloud storage services and networked storage used in offices and
schools
● As internet speeds increase, virtual storage is becoming more popular
● Often an abstraction of multiple drives acting like one
● Disadvantages include limitations of a user’s network speed and high costs