Topic 2.1 - Hardware and Components Flashcards

1
Q

What is word length and what are some usual word lengths of processors?

A

The word length is the number of bits that a processor can handle/transfer as a unit. Common word lengths are now 32/64

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

Examples of main (primary) memory:

A
  • RAM

- ROM

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

Examples of secondary storage:

A
  • SSD
  • HDD
  • Magnetic Tape
  • Flash drive
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Describe RAM

A

Random Access Memory temporarily stores currently being used programs and data including the OS so it accessible by the processor.

  • If there is not enough RAM, data must be sent back to secondary storage to free up space (less efficient)
  • Volatile
  • Random Access, given a unique address
  • Made of cheap silicon
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the difference between DRAM and SRAM

A

Dynamic RAM is cheaper and more can be stored in a smaller space however data must be reloaded. Static RAM is more expensive, larger and doesn’t need reloading.

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

What components are found inside the CPU?

A
  • ALU (Arithmetic Logic Unit)
  • PC (Program Counter)
  • Control Unit
  • MAR (Memory Address Register)
  • MDR (Memory Data Register)
  • CIR (Current Instructor Register)
  • SR (Status Register)
  • System Clock
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What busses are used in the Von Neumann architecture?

A
  • Address bus
  • Control bus
  • Data bus
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What’s the difference between the address bus and the data bus?

A

The address bus is uni-directional and sends the addresses to memory so they can be retrieved whereas the data bus is bi-directional and send data to be stored/fetched.

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

What is the definition of a bus?

A

It is a set of parallel wires that connect the different parts of the computer and to send data/addresses to different parts of the computer.

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

What happens in the fetch part of the fetch-decode-execute cycle?

A
  • The program counter is copied to the memory address register
  • The program counter is incremented
  • The address is sent down the address bus and the data at that address is sent back via the data bus into the memory data register,
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What happens in the decode-execute part of the fetch-decode-execute cycle?

A
  • The contents of the memory data register are copied to the current instruction counter
  • The CIR decodes the opcode and that operation is carried out with the operand to update the necessary register or accumulator
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is the status register used for?

A

The status register stores the state of the values of the outcomes of some operations such as:

  • Overflow, underflow, zero, negative, positive
  • Parity
  • Interrupts (enabled disabled)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What are the problems with the Von Neumann architecture?

A
  • Data bus is slower than the CPU’s clock speed

- Data and instructions share the same memory location so there is a risk of accidentally over-writing code

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

What is the Harvard model?

A

The Harvard model splits memory into two parts, one section for programs and one section for data. This means the CPU can both fetch instructions and data at the same time.

  • Less chance of program corruption
  • Used for ABS as the system must respond really quickly
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Why is Cache memory needed?

A

As fetching from memory is a lot slower than the speed of the processor, cache is required to make up this difference and increase efficiency.

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

How does cache memory work?

A
  • Stores regularly used data and instructions
  • Holds intermediate data whilst processing is carried out
  • Cache is made out of logic devices and so is more expensive and therefore only is found in small amounts
17
Q

What are the different types of cache memory?

A

L1 - Embedded in the CPU (fast but expensive)
L2 - Located between the processor and memory
L3 - Located on the memory
- L2 and L3 have their own bus

18
Q

What is the purpose of the cache controller?

A

The cache controller decides what to store in the cache memory and works off the 80/20 rule. The 80/20 rule states that 80% of the time that the program is running, the same 20% of the code is being used.

19
Q

What is parallel processing?

A

Where multiple calculations occur simultaneously to perform a single task

  • Use of multiple cores
  • Complex to design/write
  • Large problems divided into smaller ones
  • Use of concurrency
  • Speed of program found using Amdahl’s law
20
Q

What is concurrency?

A

Executing parts of a program out of order

21
Q

What is Amdahl’s law?

A

T(n) = T(1)(B+1/n)(1-B)

  • n = number of cores or threads
  • B = fraction of program which is sequential
22
Q

What is FTP?

A

File Transfer Protocol

  • Allows transfer of large files over a network
  • In-built error checking and re-transmission is used to ensure the file is transferred
23
Q

What is HTTP?

A

Hypertext Transfer Protocol

  • Allows transfer of multimedia web-pages over the internet
  • Allows different browsers to display and format the pages as the author intended
24
Q

What is SMTP?

A

Simple Mail Transfer Protocol

  • Allows emails to be sent over a network
  • Provides standard way of transferring emails between two different servers
25
Q

What is IMAP and POP3?

A

Internet Message Access Protocol and Post Office Protocol 3

  • Way of uploading/downloading email between PC and the server
  • IMAP stores data on server saving device storage space
  • POP3 downloads the message and then deletes from the server so isn’t as useful
26
Q

What is DHCP?

A

Dynamic Host Control Protocol

  • Temporarily leases IP addresses to devices
  • Ensures unique addresses are allocated
  • If a device is no longer accessing the internet, the DHCP will return their IP address to the pool of addresses.
27
Q

What is UDP?

A

Universal Datagram Protocol

  • For video applications and streaming
  • Has error checking facilities
  • But doesn’t re-send packets as slight drops in quality are acceptable in order to keep the video playing.
28
Q

What is TCP/IP?

A

Transmission Control Protocol / Internet Protocol

  • Allows networked computers to connect with one another
  • Specifies how signals are routed round a network and reduces need for gateways to convert signals into different protocols.
29
Q

What is handshaking?

A
  • Exchange of signals between devices to establish their readiness to transfer data.
30
Q

What is fragmentation?

A

When storing a file on a HDD, there might not be enough space ‘together’ on the disc to store it all in one place. Therefore, files are fragmented and spit up to different parts of the HDD which slows down the HDD access speed.

31
Q

What is defragmentation?

A

Where fragmented files are moved closer together so preferably they are on the same track. This will reduce the movement of the read/write head, increasing access speeds and the life of the disc.