4.7 - Fundamentals of computer organisation and architecture Flashcards

1
Q

What is main memory?

A

A place where the computer stores program instructions and frequently used data, consisting of the RAM (random access memory) and ROM (read only memory).

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

What is the benefit of main memory?

A

It is much faster than secondary storage so storing frequently used data helps the processor execute instructions quickly.

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

What is a bus?

A

A series of parallel wires that connects internal components of a computer, allowing signals to pass between them.

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

What is the address bus?

A

A bus used to transport memory addresses, specifying where data is to be sent or retrieved from.

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

What is the data bus?

A

A bus used to send data and instructions to and from different components of a computer.

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

What is the control bus?

A

A bus used to carry control signals that regulate the operation of the computer system. It also carries the clock signal.

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

What are I/O controllers?

A

Pieces of hardware that control the communication of data between the processor and external hardware devices.

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

How do Harvard and Von Neumann architecture differ?

A

Harvard : Two separate memory locations (and sets of buses), one for instructions, the other for data.

Von Neumann : Both instructions and data stored in same memory and share the same buses

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

Why is Harvard architecture considered better than Von Neumann architecture?

A

It avoids the bottleneck of a single set of buses and avoids the possibility of data being executed as instructions. It also allows each part of memory to have different characteristics, such as making instruction memory read only.

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

What is the stored program concept?

A

A computer that uses the stored program concept serially fetches and executes machine code instructions stored in main memory by a processor that performs arithmetic and logical operations.

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

Why is the stored program concept important?

A

It forms the foundation of modern computers. Early computers were designed to execute one specific program, but the stored program concept allows one set of instructions to be switched out for another, so numerous different applications can be run.

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

What is a processor’s instruction set?

A

The group of instructions that it can carry out. Each type of processor has its own instruction set, so instructions for one may not be compatible with others.

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

What are the two primary parts of an instruction?

A

Opcode, which specifies the type of operation as well as the addressing mode.

One or more operands, which are the pieces of data on which the operation is performed.

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

What is immediate addressing?

A

The value specified in the operand is to be treated as the actual value to use.

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

What is direct addressing?

A

The value specified in the operand signifies a memory address to access.

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

What is an interrupt?

A

A signal sent to the processor by another part of the computer requesting the attention of the processor.

17
Q

How are interrupts handled?

A

It is first detected as a change in the content of the status register between the execute and fetch stages of the FDE cycle.

Then, the processor stops executing the current program and places the content of its registers onto the system stack, known as ‘saving the volatile environment’.

Now that it has saved its progress, loads appropriate interrupt service routine (series of instructions for handling a specific interrupt).

Once ISR finished, processor restores volatile environment from system stack and resumes execution of any programs running before the interrupt.

18
Q

How does the number of cores affect processor performance?

A

Each core can perform its own FDE cycle independently of others, so different applications can be allocated different cores. This means that multiple tasks can be processed at the same time, increasing efficiency.

19
Q

How does cache memory affect processor performance?

A

Cache memory is a small portion of incredibly fast memory, with read and write speeds far higher than HDDs and even SSDs. It stores frequently used information and reduces time wasted in fetching the same information from main memory time and time again. The more cache memory, the more information it can store and the more time it can save in fetching information from main memory.

20
Q

How does clock speed affect processor performance?

A

The higher the frequency of pulses, the more cycles of the FDE cycle can be completed per unit time. However, errors can occur when clock speed is increased too far, and the processor can overheat.

21
Q

How does word length affect processor performance?

A

A word is a group of bits treated as a single unit by the processor, and can represent instructions or data. Word length is the number of bits assigned to it, so higher word length allow more bits to be transferred and manipulated as a single unit.

22
Q

How does address bus width affect processor performance?

A

Increasing width increases range of addresses it can specify, hence increasing computer’s amount of addressable memory.

23
Q

How does data bus width affect processor performance?

A

Increasing width increases volume of data that can be transferred over the bus at any one time. More data can be fetched per cycle, reducing number of cycles required to fetch large volumes of data.

24
Q

How does a barcode reader work?

A

Consists of a laser light source, a lens, photodiodes and a mirror.

Mirror directs laser onto barcode. Light reflected by barcode passes through lens and is incident on photodiode which turns light into electrical charge. Charge measured and processed to form digital signal representing content of barcode.

Barcodes have error detection and prevention built in such as parity bits and check digits, which indicate if barcode has been read correctly.

25
Q

How does a digital camera work?

A

Consists of a lens that focuses light onto a sensor, and a shutter that regulates the path of light between lens and sensor.

Sensor converts incident light into electrical charge. Charge builds up in cells, each of which represents a pixel. Once photo taken, charge in each cell measured and converted to digital value, which is processed and stored as digital image.

In colour cameras, multiple cells for each pixel, each with filter. Lets camera build up separate image for intensity of each colour, which is combined to form full colour image.

26
Q

How does a laser printer work?

A

Consists of laser light source, mirror, drum, toner roller and fusers.

Drum positively charged all over before laser directed at its surface by mirror. Areas where laser is incident are discharged, leaving impression of page in electrical charge on drum. Toner roll dispenses negatively charged toner onto drum, which is attracted to positively charged portions of drum. Toner applied to paper by drum before paper is heated by fusers, fixing toner to paper.

Colour printers use four different colours of toner.

27
Q

How does RFID work?

A

Inside RFID tag is a chip containing small amount of memory. Chip attached to coil of wire which acts as an antenna.

When tag scanned, reader emits radio waves which are picked up by tag’s antenna. Power induced in antenna is enough to power chip, which emits own radio wave through antenna, containing info held on chip. Wave picked up by reader, decodes it and returns info to computer.

Most tags are passive, induce power wirelessly from reader. Active tags contain small power supply to power chip, and can be used much further away.

28
Q

How does a hard disk drive work?

A

Consists of a number of circular platters made from magnetic material. Above each plate hovers actuating arm, on which is a read/write head, which changes magnetic polarity of parts of the platter.

Data written in concentric tracks, each divided into sectors. Platter rotates 1000s of times per minute. Binary data stored on platter as a series of polarised states representing either 1s or 0s.

Capacity 500GB - 5TB. Adding more platters and decreasing width of tracks increases capacity.

Susceptible to damage from movement, so unsuitable for portable devices.

29
Q

How does a solid-state drive work?

A

Consists of NAND flash memory cells and a controller that manages the structure of data on the drive. NAND flash memory is non-volatile, meaning contents retained even with no power.

Memory cells formed from floating gate transistors which store info by trapping electrical charge.

Data stored in pages, which are combined to form blocks.

SSDs not capable of overwriting data - must completely erase entire page before writing new info.

No moving parts so higher read/write speeds than HDD, and suitable for portable devices.

30
Q

How does an optical disk work?

A

Info read optically by laser. Either read-only, recordable or rewritable. Consists of series of pits and lands. Pits are burned into surface by high-power laser, permanently deforming surface. One continuous track which spirals from centre. When low-power laser passes over lands it reflects back onto photodiode. However, when incident on pit, light is scattered and not reflected back. Pattern of reflections and scatters converted to digital binary signal.

Recordable and rewritable: Opaque dye instead of pits.

Recordable: Photosensitive dye changes from opaque to transparent under high-powered laser which is used to write info to disk. Dye unaffected by low-power read laser.

31
Q

Storage capacity of HDD vs SSD vs Optical disk

A

HDD: High, 500GB - 5TB, typically 1TB
SSD: Relatively low, typically 256GB
Disk: Very low - 700MB (CD) - 25GB (Blue-ray)

32
Q

Speed of HDD vs SSD vs Optical disk

A

HDD: Good, 100MB/s
SSD: Very high, 500MB/s
Disk: Relatively low, 30MB/s