Paper 3 · Unit 15. RISC/CISC, pipelining, parallel processing, virtual machines, Boolean algebra and circuits.

1. RISC and CISC processors

RISCCISC
Small set of simple instructionsLarge set of complex instructions
Each instruction takes about one clock cycleInstructions take several cycles
Fixed-length instructions; easier to pipelineVariable-length instructions; harder to pipeline
More general-purpose registersFewer registers; more memory access
Compiler does more work; programs are longerHardware does more work; shorter programs

Pipelining overlaps the stages of several instructions (fetch, decode, execute, memory access, write back) so one instruction can complete each cycle. When an interrupt occurs, the pipeline can be flushed, or the instructions already in it completed, before the ISR is run.

2. Parallel processing

ArchitectureMeaning
SISDSingle instruction, single data: one processor (traditional)
SIMDSingle instruction, multiple data: same operation on many items, e.g. graphics, sound
MISDMultiple instruction, single data: rare
MIMDMultiple instruction, multiple data: multicore processors running different tasks

Massively parallel computers link huge numbers of processors to work on one problem; programs must be written to split the work.

3. Virtual machines

A virtual machine is software that emulates a computer, so a guest operating system or program runs on a host system. Benefits: run several OSs on one computer, test software safely, run old software. Drawbacks: slower than real hardware and needs extra memory and processing.

4. Boolean algebra and Karnaugh maps

Key laws: De Morgan’s NOT(A AND B) = NOT A OR NOT B, and NOT(A OR B) = NOT A AND NOT B. Also identity, absorption, distribution and double complement laws.

A Karnaugh map simplifies an expression: place the 1s from the truth table (Gray code order 00, 01, 11, 10), group adjacent 1s in rectangles of 1, 2, 4 or 8 (as large as possible, wrapping round the edges), then write one term per group keeping only the variables that do not change.

5. Adders and flip-flops

A half adder adds two bits: Sum = A XOR B, Carry = A AND B. A full adder adds two bits plus a carry in, using two half adders and an OR gate.

Try it: full adder

Click the inputs to toggle them.

A flip-flop stores one bit and is the basis of registers and SRAM. An SR flip-flop has Set and Reset inputs; S = R = 1 is invalid. A JK flip-flop adds a clock and removes the invalid state: J = K = 1 toggles the output.

6. Examiner tips

  1. RISC vs CISC: compare in matched pairs.
  2. Pipelining: draw a table of stages against clock cycles if asked.
  3. Karnaugh maps: use Gray code order and the largest possible groups.
  4. JK flip-flop is used because it has no invalid state.
  5. Show each Boolean law you use when simplifying.

7. Practice questions

Practice: answer and check instantly

Type a short answer, then press Check or Enter.

Show answer

RISC.

Show answer

SIMD.

Show answer

MIMD.

Show answer

XOR.

Show answer

AND.

Show answer

JK flip-flop.

Show answer

De Morgan’s law.

Show answer

Gray code.

Exam-style questions

9. Explain how pipelining improves processor performance. [3]

Show mark guide

The fetch, decode and execute stages of different instructions overlap [1] · while one instruction executes, the next is decoded and another fetched [1] · so ideally one instruction completes every clock cycle, increasing throughput [1].

10. Give two benefits and one drawback of virtual machines. [3]

Show mark guide

Can run several operating systems on one machine [1] · safe testing/isolation, or run legacy software [1] · drawback: slower performance / needs more resources than real hardware [1].

8. Topic test: predict your grade

Topic test: predict your grade

15 questions, about 10 minutes. Answer them all, then press Mark my test.

1. RISC instructions usually take…
2. CISC has…
3. Pipelining is easier with…
4. SIMD is used for…
5. MIMD means…
6. A virtual machine…
7. NOT(A OR B) =
8. Karnaugh map groups must be sizes…
9. A full adder adds…
10. A full adder uses two half adders and…
11. In an SR flip-flop, S = R = 1 is…
12. A flip-flop stores…
13. JK flip-flop with J = K = 1…
14. Massively parallel computers…
15. When an interrupt occurs in a pipeline…

Frequently asked questions

What is the difference between RISC and CISC?

RISC processors use a small set of simple, fixed-length instructions that take about one clock cycle each. CISC processors use many complex instructions that take several cycles.

How do you simplify a Karnaugh map?

Place the 1s from the truth table in Gray code order, group adjacent 1s in the largest possible rectangles of 1, 2, 4 or 8, then write one term per group using only the variables that do not change.

What is the difference between an SR and a JK flip-flop?

An SR flip-flop has an invalid state when both inputs are 1. A JK flip-flop is clocked and toggles its output when both J and K are 1, so it has no invalid state.

Was this page helpful?