Processors, I/O and storages devices Flashcards

1
Q

Describe the fetch stage of the FDE cycle

A

-Contents of PC copied from PC to MAR
-Address is sent along address bus
-Control unit sends a read signal to main memory along control bus
-Content stored in memory address copied to MDR (sent along data bus)
-PC incremented to next instruction
-Contents of MDR copied to CIR

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

Describe the decode stage of the FDE cycle

A

-Instruction held in CIR is decoded by the CU, split into opcode and operand
-Opcode determines type of instruction and hardware needs
-Operand holds either the address of the data (copied to MAR), the actual data (copied to MDR) or the data to be operated on (copied to ALU/ACC)

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

Describe the execute stage of the FDE cycle

A

Instruction carried out on the operand

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

What is the function of the control unit?

A

-Synchronisation of FDE cycle
-Sends control signals to coordinate movement of data through processor
-Controls buses

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

What are registers and why are the needed?

A

-Temporary storage/memory location inside the CPU, used for a specific purpose
-Needed because they allow fast access to frequently needed data (1), faster that accessing RAM/secondary storage (1)

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

In what situation may a register value change?

A

-PC increments during FDE cycle
-Jump instruction from CIR (1), PC changes to address given (1)

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

What is the function of the program counter?

A

PC stores address of next instruction, sends this to MAR then increments

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

What is the function of the memory address register?

A

MAR stores the memory location of the data to be fetched

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

What is the function of the memory data register?

A

MDR stores the data from memory location specified by MAR

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

What is the function of the address bus?

A

Address bus transfers the memory location to access the data

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

What is the function of the data bus?

A

Data bus transfers the data from the memory location specified by MAR

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

What is the function of the control bus?

A

Control bus transmits control signals from the control unit

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

What is the function of the accumulator?

A

-Holds all input/output
-Holds results of calculations (from the ALU)
-Checked for conditional branching (e.g. BRZ)
-Stores data which has come from the MDR/RAM
-Temporary storage for data being processed / during calculations
-I/O in processor, used as buffer

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

What is a GPU?

A

-Specialised electronic circuit for graphics
-Has parallel structure
-Thousands of small but efficient cores
-Can process huge blocks of visual data simultaneously
-However, CPU is general purpose
-SIMD device (Single Instruction, multiple data)

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

What is meant by CISC?

A

-Complex instruction set computer
-Each instruction may take multiple cycles
-Single register set
-Many instructions available
-Complicated processor design
-Integrated circuit is expensive

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

What is meant by RISC?

A

-Reduced instruction set computer
-Each instruction performs a single task
-Limited number of instructions available
-Complex tasks can only be performed by combining multiple instructions
-Simple processor design (less transistors)

17
Q

Explain one advantage of RISC over CISC

A

Programs run faster (1) due to simpler instructions (1)

18
Q

What is meant by a coprocessor?

A

-Does floating point arithmetic
-Can do calculations
-So processing is faster

19
Q

What are the characteristics of Von Neumann architecture?

A

-Instructions executed in linear sequence
-Single control unit
-One instruction at a time
-FDE cycle
-Instructions and data stored together / in the same format

20
Q

What is meant by array processing?

A

-Single instruction multiple data (SIMD)
-Allows same instruction to operate simultaneously on multiple locations / many ALU’s

21
Q

What is pipelining and how does it improve performance?

A

-Concurrent processing of multiple instructions
-One instruction can be fetched whilst the previous one is being decoded…
-…and the one before is being executed.
-In case of a branch pipeline is flushed
-Increases throughput
-Prevents idle components

22
Q

What are the characteristics of Harvard architecture?

A

-Uses separate memory blocks for instructions and data
-Has separate buses (data and address) for data and instructions
-Has fixed memory sizes for data and instructions
-Instruction memory may be ROM
-Can read/write data and instructions
simultaneously (2024 MS)

23
Q

What is meant by a character set?

A

-Number of values represented with n bits is 2^n
-Character set means all the characters a computer can understand (1), may include control characters (1), binary code equates to symbols (1), e.g. ASCII (1)

24
Q

What is Unicode?

A

-Each character is represented by 1-4 bytes
-Supports very large number of characters
-Backward compatible with ASCII

25
What is a D-type flip flop?
Stores a value of one bit when signal is given
26
How does a magnetic hard drive work?
Works by magnetic patterns being read off platters that mechanically spin at high speeds
27
Explain a disadvantage of a magnetic hard drive
-Not very portable, as it is susceptible to damage if moved quickly/suddenly due to head coming in contact with platter
28
How does a solid state drive work?
They use memory chips, which can have contents erased and subsequently overwritten when electrical charge is applied
29
Explain an advantage of a solid state drive
-No moving parts, so can be compact -Silent, so lower power consumption
30
How does optical media work?
-Read / written to, using a laser -Read / written onto a reflective surface -Data is stored using pits and lands -E.g. Blu-Ray / CD
31
State the advantages of optical media
– Cheap to produce / buy – Capacity big enough to hold film – Robust enough to be used over long periods / moved around – Portable – Does not need an internet connection
32
What is meant by RAM?
-Random Access Memory -A form of primary memory -Used to hold data and / or programs in use (active/running data) -Volatile / Loses its contents when power is lost
33
What needs to be stored in RAM?
-Software / user files need to be stored in RAM to offer direct access and allow use to alter contents of files, fast read/write speeds
34
How does adding RAM improve performance?
-Reduces reliance on VM, and RAM is faster to access than VM, and it prevents disk thrashing
35
What is meant by ROM?
-Read only memory -Volatile -Stores boot program (bootstrap loader) -Quick to start up
36
What are some uses of ROM in embedded systems?
-Storing OS as it doesn’t need to be updated, so it is quicker to access -Storing encryption keys that cannot be changed -Used as primary/secondary storage
37
What is BIOS and what does it do?
-Basic input/output system -Contains the computer start-up instructions -Loads settings/configuration (CMOS) -Checks hardware devices are available / carries out POST (power-on self-test) check -…and reports errors -Determines the drive on which OS is stored -Loads the bootstrap / OS (into main memory)
38
What is meant by virtual storage, state its advantages?
-Virtual storage is storage that appears to the user as local, but is actually stored on remote servers and accessed via the internet, such as in cloud storage solutions (CHAT GPT) -Can be accessed from elsewhere / other machines -Storage can be expanded as necessary//no limit on size -No on site maintenance required -Allows more local storage capacity for data