CHAPTER 3: HARDWARE AND VIRTUAL MACHINES

3.1 RISC AND CISC PROCESSORS

3.1.1 RISC (Reduced Instruction Set Computers)

Characteristics:

3.1.2 CISC (Complex Instruction Set Computers)

Characteristics:

3.1.3 Pipelining

Definition: Instruction-level parallelism where the fetch-decode-execute cycle is separated into several stages.

Five Stages:

  1. Instruction Fetch (IF)
  2. Instruction Decode (ID)
  3. Operand Fetch (OF)
  4. Instruction Execution (IE)
  5. Result Write Back (WB)

Advantages:

Disadvantages:

Interrupt Handling in Pipelines:

3.1.4 Parallel Processing Architectures

SISD (Single Instruction Single Data):

SIMD (Single Instruction Multiple Data):

MISD (Multiple Instruction Single Data):

MIMD (Multiple Instruction Multiple Data):

Massively Parallel Computers:


3.2 BOOLEAN ALGEBRA AND LOGIC CIRCUITS

3.2.1 Boolean Algebra Laws

Identity Law:

<TEXT>

A + 0 = A
A · 1 = A

Null Law:

<TEXT>

A + 1 = 1
A · 0 = 0

Idempotent Law:

<TEXT>

A + A = A
A · A = A

Inverse Law:

<TEXT>

A + A' = 1
A · A' = 0

Commutative Law:

<TEXT>

A + B = B + A
A · B = B · A

Associative Law:

<TEXT>

(A + B) + C = A + (B + C)
(A · B) · C = A · (B · C)

Distributive Law:

<TEXT>

A + B·C = (A + B) · (A + C)
A · (B + C) = A·B + A·C

De Morgan's Laws:

<TEXT>

(A + B)' = A' · B'
(A · B)' = A' + B'

3.2.2 Karnaugh Maps (K-Maps)

Purpose: Simplify Boolean expressions and reduce number of gates needed.

Benefits:

Methodology:

  1. Fill K-map from truth table
  2. Group '1's in powers of 2 (1, 2, 4, 8)
  3. Wrap around edges allowed
  4. Within each group, only constant values remain
  5. Write expression from groups

Example K-map (2 variables):

<TEXT>

AB'
0 1
A 0 0 1
1 1 1

3.2.3 Half Adders and Full Adders

Half Adder:

A B Sum Carry
0 0 0 0
0 1 1 0
1 0 1 0
1 1 0 1

Sum = A XOR B Carry = A AND B

Full Adder:

3.2.4 Flip-Flops

SR Flip-Flop:

JK Flip-Flop:

Purpose:


3.3 VIRTUAL MACHINES

3.3.1 Concept of Virtual Machines

Definition: Software that provides an exact copy of hardware. The process interacts with the software interface provided by the OS, which provides this copy. The OS kernel handles interaction with actual host hardware.

Benefits:

Drawbacks:

Examples:


Revision #1
Created 2026-03-16 12:16:01 UTC by Samuel Lee
Updated 2026-03-16 12:16:15 UTC by Samuel Lee