Section 1 Components Of A Processor Flashcards

1
Q

State 4 components of the CPU

A

ALU
Buses
Control unit
dedicated registers

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

What does the control unit do?

A

Controls and coordinates data flow between CPU and other devices
Accepts the next instruction, decodes it into several sequential steps eg fetching addresses and data from memory, manages its execution and stores the resulting data back in memory or registers

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

What are buses made of?

A

A set of parallel wires connecting 2 or more components of a computer
It typically consists of 8,16,32 or 64 lines

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

How many buses connect the processor to main memory and what are they called? What directions can data flow through each?

A

3, the data bus, the address bus, and the control bus
Data and control buses have 2 way signal flow, the address bus is one way

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

What are the 3 buses known as as a collective?

A

The system bus

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

What is the purpose of the control bus? Give some examples (4) of signals it transmits

A

transmit command, timing and specific status information between system components

Bus Request indicates a device is requesting use of the data bus
Bus Grant indicates the CPU has granted access to the data bus
Clock signals synchronise operations
Interrupt request indicates a device is requesting CPU access

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

What is a “word” in terms of memory?

A

Units memory is divided up internally into, as a fixed size group of digits (16,32,64 bits)

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

What does the data bus transmit?

A

Data and instructions between system components via a bi-directional path

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

What does the address bus transmit?

A

memory addresses of words that are used as operands in program instructions, so the data can be retrieved and sent back to the processor

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

What is the function of the ALU? What operations can be carried out?

A

Performing arithmetic and logical operations on the data

ADD, SUBTRACT, MULTIPLY and DIVIDE on fixed or floating point numbers
Boolean logic operations eg. AND, OR, XOR, NOT comparing 2 values

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

What are registers?

A

Special memory calls that operate at a very high speed
Results of all arithmetic, logic or shifts are stored here

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

What is the accumulator register?

A

One that stores the results of all operations in the ALU

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

What are 4 registers (minus the ACC) and their function

A

Program counter (PC) holds the address of the next instruction to be executed which can be the next one in a sequence, or the address to jump to in a branch/jump instruction copied from the CIR to the PC
Current instruction Register (CIR) holds current instruction being executed, divided into opcode and operand
Memory Address Register (MAR) which holds the address of the memory location from which data (or instructions) can be fetched or to which data can be written
Memory data register (MDR) is used to temporarily store data read from / written to memory (AKA memory buffer register)

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

What is the FDC cycle?

A

The sequence of operations involved in executing an instruction and can be divided into 3 phases, fetch, decode, execute
Repeats as each inst. is executed.

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

How are registers used in the fetch execute cycle? (6)

A

Fetch
1 Address of next instruction is copied from PC to MAR
2 Instruction held at that address is copied to the MDR, and the PC content is incremented simultaneously so it holds the address of the next instruction
3 The contents of the MDR are copied to the CIR

Decode
4 Instruction held in the CIR is decoded. The instruction is split into opcode and operand, where the opcode is used to figure out what hardware to use to execute that type of instruction
The operand holds either
the address of data to be used with the operation, copied to MAR,
the actual data to be operated on, copied to the MDR or the ALU/ACC

Execute
The appropriate instruction /opcode is carried out on the operand

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

Factors affecting processor performance

A

Clock speed
Number of cores linked together on a single chip
Amount and type of cache memory

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

How does clock speed affect processor performance

A

All processor activities begin on a clock pulse, some may take more than one clock cycle to complete
1 clock cycle = 1Hertz
Greater clock speeds lead to faster instruction execution

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

What is the typical speed for a PC processor, and how many clock cycles occur per second

A

2 to 4GHz
2 to 4 billion cycles per second

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

How does an increase in the number of cores affect processor performance, and how might it not affect speed in the desired way

A

Each core can theoretically process a different instruction simulatneously with it’s own fetch execute cycle
Software may not be able to take full advantage of more processors

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

What does it mean when a computer has multiple cores?

A

when a computer has two or more processors linked together in the same integrated circuit

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

3 levels of cache?

A

level 1, extremely fast, small - between 2-64KB
level 2, fairly fast, medium sized - 256KB-2MB
some have a level 3 cache

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

define cache

A

A small amount of expensive very fast memory inside the CPU where frequently fetched instructions or data are held

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

how does amount and type of cache memory affect processor performance?

A

more allows for more frequently fetched instructions to be accessed faster than from main memory
if too large, searching may take long
if level 1, it’s faster than levels 2 and 3

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

why does the width of the address bus limit the maximum possible memory capacity of the system?

A

Each word in memory has its own specific address
When a processor reads a word of data, from memory, it first put the address of the desired word on the address bus

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

how to calculate maximum memory capacity of a system with the width of an address bus?

A

2^(no of lines in the bus)

eg an 8 line bus is 2^8

26
Q

how would a change to the data bus in a processor affect processor performance?

A

an increase in width would allow for transmitting more characters at a time and more bits per instruction

27
Q

if a data bus is 16 bits wide, up to what integer can it transmit?

A

(2^16) -1, or 2 characters

28
Q

How might a 16 bit word be structured to contain a machine code instruction?

A

the opcode has 8 bits and so does the operand
the opcode is split into 6 and 2 bits, which can be the basic machine operation and the addressing mode respectively

29
Q

Defined the stored program concept

A

Machine code instructions are fetched and executed serially by a processor that performs arithmetic and logical operations

30
Q

what features are specific to the Von Neumann machine? (3)

A

1 The same data bus is used to transfer both data and instructions
2 A single address buses used to transfer the addresses of data and instructions
3 The same length is used for all memory, whether it holds data or instructions

31
Q

what is Harvard architecture? What is it used for?

A

it’s a computer architecture, with physically separate memories for instructions and data
It is used in DSP systems often

32
Q

what are 5 examples of digital signal processing (DSP)?

A

audio/speech signal processing
sonar and radar signal processing
biomedical signal processing
seismic data processing
digital image processing

33
Q

Why do embedded systems use Harvard architecture?

A

it can be faster than Von Neumann architecture, because data and instructions can be fetched in parallel, instead of competing for the same bus
This is good for navigation systems, traffic lights and aircraft control systems

34
Q

compare Harvard and Von Neumann architectures (4)

A

VN used in conventional processes in PCs, servers and embedded systems with only control functions. H is used in DSP,communication systems, and audio speech and image processing systems.
VN data and programs share the same memory, but in H they’re held in separate memories
VN uses one bus to transfer data/nstructions, but in H parallel data and instruction buses may be used
VN programs can be optimised but in H programs tend to be large

35
Q

what is contemporary processor architecture?

A

Includes aspects of both architectures

36
Q

Features of CISC, adv and disadv

A

The machine hardware has complex instructions, and these can take multiple clock cycles to be executed
A: Short SC means the compiler only has a little bit of work to do to translate high-level language statements into machine code
The code is relatively short, so very little RAM is required to store the instructions
D: many specialised instructions are built into the hardware, even though 20% of them were used in the average program 

37
Q

features of RISC, advs and disadvs

A

it uses simplest instructions which each take one clock cycle to be executed
A: as each instruction takes the same amount of time (1 clock cycle) pipelining is possible, so the instructions would execute at least as fast as a single CISC instruction
D: the compiler has to do more to translate high-level code into machine code
More RAM is required to store the machine code instructions

38
Q

what is CISC still used for?

A

microcontrollers and embedded systems

39
Q

what does a coprocessor system involve?

A

an extra press processor is used to supplement the functions of the primary processor
it may be used to perform Floating Point arithmetic, graphics processing or digital signal processing
It has only a limited range of instructions

40
Q

what is meant by a parallel system?

A

Systems with multi core CPUs that are able to distribute workloads across multiple CPU cores

41
Q

benefits of a multicore system and an example?

A

they distribute workload across multiple CPU cores achieving higher performance
For example, browsers may use all four CPUs on a phone when tabbed browsing is used

42
Q

Two types of barcodes

A

linear barcodes
2D barcodes such as the quick response code (QR code)

43
Q

four types of barcode readers

A

Pen-type readers, laser scanners, CCD readers, and camera based readers

44
Q

advantage and disadvantage of pen type readers

A

They are the most durable type of scanner because of the simple design
They useful for very low volume scanning applications

However, they have to come into direct contact with the barcode to read it

45
Q

Where are laser scanners most commonly found?

A

In the in-counter units in supermarkets

46
Q

where are camera based readers used?

A

age verification by scanning individual driving licenses
Event ticketing where tickets can be issued electronically then scanned off a phone screen
Phones can scan a QR code which can display a catalogue of movies or DVDs or play an MP3 when scanned

47
Q

Disadvantage and advantage of using a CCD digital camera for scanning barcodes?

A

Power consumption is extremely high

but they are more reliable as the technology has been used for years

48
Q

List 8 output devices

A

LCD monitors, OLED screens, laser printers, inkjet printers, 3-D printers, speakers, multimedia projectors and actuators

49
Q

3 Advantages of OLED screens over LCDs

A

they made of plastic
they are much thinner
they are brighter and need no backlighting, so they consume less power which translates to longer battery life in portable devices

50
Q

When to use a laser printer and when to use an inkjet printer

A

use a laser one where a lot of text needs to be printed and an inkjet printer to produce high quality photograph images

51
Q

what are actuators? Give 3 examples where they’re used

A

they are motors that are commonly used in conjunction with sensors to control the system.
For example, opening a window or valve, stopping or starting a pump and turning a wheel

52
Q

characteristics of magnetic storage

A

it uses rotating platter, coated with magnetic material and iron particles are polarised to become either north or south state south states which represents zero and one
The disc is divided into tracks in concentric circles and each track is subdivided into sectors
data is to or written to disc as it passes under the drive head

53
Q

Hard disk disadvantages

A

not portable
prone to breaking down

54
Q

Hard disk advantages

A

Large capacity so suitable for desktop

55
Q

How does an optical disc work?

A

it uses a high powered laser to burn sections on the surface, making them less reflective
a lower power laser is used to read the disc by shining light onto the surface on a sensor is used to measure the amount of light reflected back

56
Q

how does a read only disc work?

A

During manufacture, the CD has pits and lands on its surface
at the point where a pit starts or ends light is not reflected so well, so reflective and non-reflective areas are read as ones and zeros

57
Q

what is RAM used for?

A

it’s used to store programs and data that are currently being used
it’s volatile

58
Q

What is ROM used for?

A

it’s used to hold information that needs to be permanently in memory, for example, the BIOS, and in embedded systems where the software doesn’t change

59
Q

Why is there a need for virtual storage?

A

storing files and applications on local servers at the same physical site as they are used is becoming less common due to security threats

60
Q

Advantages of using virtual storage

A

Reduced hardware costs
improved reliability and performance
the flexibility to scale storage requirements up and down as needs change over time

61
Q

Disadvantages of virtual storage

A

you will need a full Internet connection to access all of your files
You may need a backup plan in place with your storage provider to keep your data safe in the event of hardware failure
there can be an increasing fee, depending on the volume of storage used
there may be less functionality of the files