Chapter 15: Hardware And Virtual Machines Flashcards

1
Q

Explain RISC, 4 - 7 marks

A

Reduced Instruction Set Computers
- Uses simple, fixed-length instructions, fewer instruction formats & addressing modes
- Instruction only require one clock cycle
- Uses many general purpose registers and a hard-wired CPU
- Makes use of pipelining - executes instructions in parallel, where the output of one instruction is the input of the next
- Makes more use of RAM than cache
- Design emphasis is on software
- Processor chips require fewer transistor

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

What is Pipelining (1 mark)

A

Allows several instructions to be processed simultaneously
- Pipelining is used to increase instruction that is passed through the F-E cycle

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

Process of Pipelining

A

Instructions are divided into subtasks
- Instruction fetch
- Instruction decode
- operand fetch
- opcode
- result store

Each subtask is completed during one clock cycle

No 2 instructions can execute at their same stage at the same clock cycle
- The second instruction begins in the second clock cycle, while the first instruction has moved on to its second subtask etc.

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

Explain CISC - 5 marks

A

Complex Instruction Set Computers
- Uses many instruction formates
- Makes use of different addressing modes
- Uses few registers and a programmable CPU
- Multi-cycle: Instruction may need many clock cycles
- Requires complex circuits and frequently uses cache (uses less RAM)

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

Interrupt Handling in both RISC and CISC

A
  1. Process detects an interrupt at the start/end of FE cycle
  2. The program is paused and the contents of the registers are stored in a stack
  3. Appropriate ISR routine is called and executed
  4. After the interrupt has been serviced/ resolved the data are restored from stack to the registers, returning them to their original status
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Effect of Pipelining

A

This only in RISC
- Adds additional complexity: Since pipelining means instructions are processed at the same time, if theres an interrupt, it would be messy
- All currently operating instructions are discarded except for the last one - the interrupt handling routine is applied to the remaining instruction
—> the last one meaning the one at the last stage of its process
- Once the interrupt has been serviced the processor can restart with the next instruction in the sequence

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

4 Different Computer Architectures

A

SISD, SIMD, MISD, MIMD

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

Explain SISD

A

Single Instruction Single Data
- One processor executes a single instruction using the same data set
- Data is taken from one single source and only a single instruction is performed on it

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

Explain SIMD

A

Single Instruction Multiple Data
- One single instruction on multiple different data sets simultaneously
- Instructions can be performed sequentially, using pipelining

Parallel computers with multiple processors

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

Explain MISD

A

Multiple Instruction Single Data
- Multiple instructions are used on the same set of data
- Each processor works on the same data set independently
- Parallel computers with multiple processors

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

Explain MIMD

A

Multiple Instruction Multiple Data
- Many processors that operate independently
- Any processors can execute different instructions on different data sets

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

Explain Massively Parallel Computers

A
  • Its a kind of network infrastructure
  • a large number of computer or separate computers connected together -> simultaneously performing a set of coordinated computations
  • communicates using a message interface (send messages between each other)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Virtual Machines - Define/ Explain (2 marks)

A

They are an emulation of a computer using a host computer system
- uses guess OS for emulation

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

Benefits of Virtual machines (2 - 4 marks)

A
  1. Cost Saving - new system can be tried on virtual machines without needing to buy new hardware
  2. Security - if a virus is downloaded on the emulated system, it only affects the VM not the host
  3. Can emulate old software on a newer system using compatible guest OS
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Limitations of Virtual Machines

A
  1. The cannot emulate some hardware
  2. Using VM puts more load on the host computer system - makes the host less efficient, increases processing time and uses more RAM
  3. Increases the maintenance expenses as both host and VM must be maintained

(And more)

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

Host OS (relating to virtual machines)

A
  • The normal OS used by the host machine
  • Has control of all the resources of the host machine/ computer
  • Provides UI to operate the VM
  • Actually runs the VM
17
Q

Roles of Guest OS

A
  • OS that runs within VM
  • Controls the virtual hardware and software during emulation - access actual hardware through host
  • Provides UI for the emulated software
18
Q

Half Adder/ Full Adder