Fundamentals of Computer Organisation and Architecture Flashcards

1
Q

What is the Processor?

A

It executes program instructions to run applications.

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

What is Main Memory?

A

It includes RAM and ROM to store program instructions and frequently used data.

Main Memory is usually much faster than secondary storage so storing frequently used data in main memory helps execute instructions faster.

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

What are Buses in a computer?

A

They are parallel wires connecting internal components, 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

It transports 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

It sends data and instructions to and from different components of the computer system.

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

What is the Control Bus?

A

It carries control signals that regulate the operation of the computer system and the computer’s 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

They 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

What is the Harvard Architecture?

A

It uses two separate main memory locations, one for instructions and another for data.

Used in RISC Processors (embedded systems).

Doesn’t use registers.

Americans don’t share!

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

What are the advantages of Harvard architecture?

A

Avoids possibility of data being executed as code, memory mix-up.

Avoid the “Von Neumann” bottlenecks.

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

CISC

A

Complex Instruction Set Computer. Offers hundreds of instructions of variable sizes.

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

RISC

A

Reduced Instruction Set Computer. Uses a small set of instructions of uniform length.

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

Key difference between RISC and CISC

A

RISC uses simple instructions executed in one clock cycle, while CISC offers a large set of complex instructions.

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

What is the Von Neumann Bottleneck?

A

The Von Neumann bottleneck is a limitation in computer architecture where the speed and performance of a computer are limited by the rate at which data can be transferred between the computer’s processor and its memory.

In simple terms, it’s like a road with heavy traffic where the speed of cars (data) is limited by the narrowness of the road (data bus).

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

How does Harvard Architecture avoid the Von Neumann bottleneck?

A

By having separate storage and buses for instructions and data.

This allows the CPU to fetch instructions AND read/write data simultaneously; increasing speed.

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

What is the Von Neumann Architecture?

A

It stores both instructions and data together in the same memory.

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

What is the Stored Program Concept?

A

Stored Program Concept: It’s the idea that a computer’s instructions (machine code) are kept in main memory and executed one-by-one by the processor, which performs arithmetic and logical operations. This forms the basis of modern computer design.

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

What is the Arithmetic Logic Unit (ALU)?

A

It performs arithmetic and logic operations like addition, AND, OR, and XOR.

It uses general purpose registers to temporarily hold the results of calculations.

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

What is the Control Unit?

A

It coordinates all activities of the CPU, directs data between CPU and other devices, accepts and decodes instructions and handles their execution.

Sends read/write requests to main memory on the control bus.

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

What are General Purpose Registers?

A

They can be used as storage for any data required by instructions during execution.

Found in the processor.

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

What is the Program Counter (PC)?

A

It holds the memory address of the next instruction to be executed in the fetch-execute cycle.

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

What is the Current Instruction Register (CIR)?

A

It holds the instruction that is currently being executed by the processor.

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

What is the Memory Address Register (MAR)?

A

It stores the memory address of a memory location that is to be read from or written to.

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

What is the Memory Buffer Register (MBR)?

A

Also called the memory data register (MDR), it holds the contents of a memory location that has been read from or data that is to be stored.

“Gateway to the processor”

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

What is the Status Register (SR)?

A

It contains a number of bits, the values of which can change to indicate the occurrence of an interrupt.

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

What is the Clock?

A

It generates a regular electronic pulse to synchronise communication between the components of the processor and the rest of the computer system.

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

Fetch:

A

Transfer PC to MAR

use address bus to transfer address to main memory

transfer contents of addressed memory location to MBR

increment PC

copy MBR to CIR.

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

Decode:

A

Decode instruction held in CIR

control unit decodes instruction

split instruction into opcode and operand.

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

Execute:

A

If necessary, fetch data

if necessary, store data in memory

perform operation identified by opcode using ALU

store result in register or accumulator

update status register

if jump or branch required, update PC.

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

During the decode and execute stages the instruction being processed is stored in the CIR. Explain why the instruction could not be processed directly from the MBR

A

To carry out the instruction other data may need to be fetched from main memory
Further memory fetches would overwrite the contents of the MBR

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

What is a processor’s instruction set?

A

The group of instructions that a processor can carry out. Each type of processor has its own instruction set.

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

How are instructions usually stored in a processor?

A

Instructions are usually stored in machine code.

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

What are the two primary parts of an instruction?

A

Opcode and one or more operands.

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

What does the opcode specify?

A

The type of operation that is to be carried out, for example: addition, subtraction or logical shifting.

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

What are operands?

A

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
35
Q

What is an addressing mode?

A

Bits in a machine code instruction is usually assigned to the addressing mode in use.

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

What are the two addressing modes?

A

Immediate and direct.

37
Q

What is immediate addressing?

A

In immediate addressing, the value specified in the operand is to be treated as the actual value.

38
Q

What is direct addressing?

A

Direct addressing differs from immediate addressing in that the value specified by an operand signifies a memory address.

39
Q

Assembly code: Loop WHERE R0 > R1

A

CMP R0,R1

BGT Loop

Loop:
- Do code here when condition R0 > R1 met.

40
Q

Logical shifting

A

An operation that can be performed on binary numbers which involves shifting all of the bits in a number (doubling or halving the number) a specified number of positions to the right or to the left.

41
Q

Example of logical shift left

A

Perform a logical shift left by three places on the binary number 011011010. All we need to do is move all of the digits three places to the left. In doing so, we add three zeros to the end of the number.

42
Q

Interrupts

A

An interrupt is a signal sent to the processor by another part of the computer requesting the attention of the processor.

CPU will check for interrupts before fetching next instruction, if interrupt is found; it’ll do that then carry on.

Sent along the control bus.

43
Q

Describe the role of interrupts

A

Makes the current task be suspended so a device that needs immediate attention of the processor can be dealt with

44
Q

Explain why the contents of registers must be saved before an interrupt is serviced

A

so that the currently running program can be returned to as the interrupt will change register values

45
Q

Hardware interrupts

A

Examples of hardware interrupts could be the computer’s I/O controller informing the processor that the mouse has been moved or that a keyboard key has been pressed.

46
Q

Software interrupts

A

Software can also send interrupts, which could include unexpected errors like division by zero or a stack overflow.

47
Q

Explain the relationship between hardware and software

A

Software executes on hardware

48
Q

Detecting interrupts

A

When an interrupt occurs, it is detected as a change in the content of the status register between the execute and fetch stages of the fetch-execute cycle.

49
Q

Vectored interrupt method

A

Interrupts can be handled using the vectored interrupt method. When an interrupt occurs, the processor stops executing the current program and places the content of its registers onto the system stack. This is referred to as saving the “volatile environment”.

50
Q

Loading interrupt service routine

A

Now that the processor has saved its progress on the system stack, it loads the appropriate interrupt service routine: a series of instructions for handling the interrupt that is specific to the type of interrupt.

51
Q

Restoring volatile environment

A

Once the processor finishes executing the interrupt service routine, it restores the volatile environment from the system stack and resumes execution of any programs that were running before the interrupt.

52
Q

Number of cores

A

The number of cores a processor has directly affects the performance of the processor. Each core can perform its own fetch-execute cycle independently of others.

53
Q

Cache memory

A

A processor’s cache is a small portion of incredibly fast memory. It has read and write speeds far higher than hard disk drives and even SSDs. Cache is used to store frequently used information and reduces time wasted in fetching the same information from main memory time and time again.

54
Q

 How increasing the amount of cache memory can improve the performance of a processor.

A

reduces the need for frequent slower memory retrievals from main memory, which may otherwise keep the CPU waiting.

The more cache the CPU has, the less time the computer spends accessing slower main memory and as a result programs may run faster.

55
Q

Clock speed

A

A processor’s clock speed relates to the frequency of the pulses generated by the system clock. The higher the frequency, the more cycles of the fetch-execute cycle can be completed in the same period.

56
Q

Word length

A

Word length refers to the number of bits processed by a computer’s CPU in one operation. It determines the amount of data a processor can handle at once.

57
Q

Address bus width

A

The width of a bus relates to the number of parallel wires that make up the bus. Increasing the width of the address bus increases the range of addresses that it can specify, hence increasing the computer’s amount of addressable memory.

58
Q

Input and output devices

A

Devices that allow the computer to have data input and output.

59
Q

Barcodes

A

Barcodes are printed diagrams that consist of light and dark portions. They contain information which can be read by a computer using a barcode reader.

60
Q

1D and 2D barcodes

A

1D barcodes are linear and can be read in one direction, while 2D barcodes are matrix codes that can be read both vertically and horizontally. 2D barcodes can contain more information in the same amount of space as a 1D barcode.

61
Q

RFID

A

RFID, which stands for radio frequency identification, is a method of transferring information wirelessly between a tag and a reader. RFID is used in contactless credit and debit cards as well as in some hotel room cards.

62
Q

Secondary storage devices

A

A computer’s primary storage is memory such as RAM and ROM. Secondary storage, which is used to store files and applications, includes hard disk drives (HDDs), solid-state drives (SSDs) and optical disks.

63
Q

Hard disk drives

A

A hard disk drive consists of several circular platters which are made from a magnetic material. Above each platter hovers an actuating arm on which is a read/write head.

64
Q

Solid-state drives

A

Solid-state drives (SSDs) consist of NAND flash memory cells and a controller that manages the structure of data on the drive.

65
Q

Optical disks

A

Optical disks include CDs, DVDs and Blu-rays. They store information which can be read optically by a laser. Optical disks can be either read-only, recordable or rewritable depending on what they are to be used for.

66
Q

What are the different types of barcode readers?

A

Pen-style readers

Laser scanners

Charge-Coupled Device (CCD) readers

Camera-based readers

67
Q

How does a Pen-Type Barcode Reader work?

A

Light source and photo diode are placed on the tip of the pen and the photo diode measures the intensity of light reflected as it passes over the barcode

This generates a waveform (the dark bars absorb light, and the white bars reflect it)

This waveform is then translated to a digital format that can be coded and looked up.

68
Q

How do Laser Barcode Readers work?

A

Typically used at a supermarket checkout.

Like pen-style readers except a laser is used as a light source.

This laser is reflected off a moving mirror (meaning that the barcode can be read in many different positions) across the barcode.

Light reflected back - B/W bands reflect different amounts of light

Light sensor measures amount of reflected light generating a waveform which is converted into electrical signal

69
Q

How do Charge-Coupled Device [CCD] Barcode Readers work?

A

Typically used in high-speed applications where the barcode needs to be scanned quickly.

Uses an array of tiny light sensors in a row, which are placed in the head of the reader

Each sensor measures the intensity of the light in front of it

Every sensor is so small that a voltage pattern which is identical to the pattern of the barcode can be generated

70
Q

How do Camera-Based readers work?

A

Used in smart phones to scan QR codes.

Uses camera and image processing software which then decodes the 1D or 2D barcode

71
Q

What happens when you take a photo with a Digital Camera?

A

Shutter opens

Light enters the camera

Image is projected onto the sensor at the back of the lenses [CCD/CMOS]

Each tiny sensor measures brightness of each pixel

Turns this into and electrical signal and stores this as binary

This digital recreated image is greyscale

72
Q

Mosaic Bayer Filter:

A

A type of colour filter used in digital cameras.

Uses a grid of coloured pixels to capture the full colour spectrum.

Allows for very compact cameras.

73
Q

Other than Mosaic Bayer Filter what other method can be used to make an image coloured?

A

Splitting incoming light into three paths and passes them each through a separate red, blue and green filter. Each pixel is picked up by its own set of sensors and the image is recreated

Creates higher quality images but the cameras tend to be more bulky

74
Q

Compare Change-Coupled Device (CCD) Sensors with Complementor Metal Oxide Semiconductor (CMOS) Sensors.

A

CCD produces a high-quality image and is used in high end cameras

However, CMOS up to 100 times less power than CCD

75
Q

What is the purpose of a laser printer?

A

Produces high quality printing at high speeds

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

76
Q

Describe the principles of operation of a laser printer.

A
  1. Convert the page description into a digital image in memory.
  2. Prepare the photosensitive drum by charging it negatively.
  3. Use a mirror to direct a laser beam at the drum.
  4. Neutralize the negative charge on the drum where the laser strikes.
  5. Drum rotates past toner hoppers
  6. Charged particles of toner are attached to areas of page which haven’t been lasered using a positively charged transfer roller
  7. A heater fuses the toner onto the paper.

For colour printing, use four different colour toners(black, cyan, magenta and yellow) and four drums.

77
Q

Explain why a laser printer with a built-in wireless network adapter is likely to be a suitable choice of printer for a small office.

A

High speed means that it prints many pages per minute

Toner is cheaper per page than ink so, lower cost per printed page

Having a wireless adapter is suitable because it means that its easy to share printer between many devices

Also means you can print directly from computers with WIFI

78
Q

Toner:

A

The powder that is used to print images on paper.

It is charged with electricity to create an image on the drum.

79
Q

Drum:

A

The rotating cylinder in a printer that the toner is applied to.

It is coated with a special material that allows the toner to adhere to it.

80
Q

Active Tags:

A

Physically larger as they contain a power source that actively transmits a signal for a reader to pick up

They are typically used in applications where the tags need to transmit data over long distances, such as cars when they pass motorway toll booth or runners in a marathon as they pass mile markers.

81
Q

Passive Tags:

A

Much cheaper to produce as they do not contain a power source.

Rely on radio waves emitted from reader up to a metre away to provide sufficient electromagnetic power to the card using its coiled antenna. Once energised the transponder can send its data to reader nearby.

They are typically used to tag items such as groceries and contactless bank cards, where the tags do not need to transmit data over long distances.

82
Q

Structure of RFID

A

Consists of….

small microchip transponder

an antenna

83
Q

How does an optical disk work?

A

Optical disks use a laser to read data from pits and lands etched into the disk’s surface.
The laser’s light is focused on a spot on the disk, and as the disk spins, some light is reflected back based on whether the laser hits a pit or a land.
Pits scatter less light, representing a ‘0’, while lands reflect more light, representing a ‘1’. This variation in light reflection is detected by a sensor, converting the pattern of pits and lands into digital data.

84
Q

How does an SSD work?

A

A solid state drive (SSD) works by storing data on interconnected NAND flash memory chips, which are non-volatile and retain data without power.
These chips consist of arrays of memory cells made from floating-gate transistors, separated by oxide layers that trap and store electrons to represent data.
SSDs use a controller to manage data storage and retrieval, ensuring faster access and better reliability compared to traditional hard disk drives (HDDs).

Lower latency and faster transfer speeds than a magnetic disk drive.

85
Q

How does a HDD work?

A

A type of magnetic storage.
A hard disk drive (HDD) works by storing data on rotating magnetic platters.
Data is read and written by a moving read/write head, which alters the magnetization of tiny areas on the platters to represent binary information. The platters spin at high speeds while the head moves across them to access data, managed by a controller to ensure proper read/write operations.

86
Q

Barcodes vs RFID tags for tracking products in a shop?

A

Advantages of Barcodes:
+ Barcodes are cheaper than RFID tags
+ Less electronic waste

Advantages of RFID:
+ Can be scanned from a greater distance
+ Can be scanned automatically
+ Can be scanned faster

87
Q

What happens as you increase the data bus by one bit?

A

The amount of available memory locations will double. Each additional bit doubles it.

88
Q

What happens as you increase the width of the data bus?

A

Speed at which data can be retrieved will increase.

Increases the amount of data that can be transferred in one cycle.