Computer Design Overview

The design of a basic computer involves translating operational specifications into actual logic circuits. This process transforms register transfer statements into hardware implementations.

🎯 Key Design Objectives

Transform register transfer statements into functional hardware circuits that can execute computer instructions efficiently.

Fetch
R'T₀: AR ← PC
R'T₁: IR ← M[AR], PC ← PC + 1
Decode
R'T₂: D₀, ..., D₇ ← Decode IR(12-14), AR ← IR(0-11), I ← IR(15)
Indirect
D₇'IT₃: AR ← M[AR]
Interrupt
T₀'T₁'T₂' (IEN)(FGI + FGO): R ← 1
RT₀: AR ← 0, TR ← PC
RT₁: M[AR] ← TR, PC ← 0
RT₂: PC ← PC + 1, IEN ← 0, R ← 0, SC ← 0

Memory-reference Instructions

AND
D₀T₄: DR ← M[AR]
D₀T₅: AC ← AC ∧ DR, SC ← 0
ADD
D₁T₄: DR ← M[AR]
D₁T₅: AC ← AC + DR, E ← Cₒᵤₜ, SC ← 0
LDA
D₂T₄: DR ← M[AR]
D₂T₅: AC ← DR, SC ← 0
STA
D₃T₄: M[AR] ← AC, SC ← 0
BUN
D₄T₄: PC ← AR, SC ← 0
BSA
D₅T₄: M[AR] ← PC, AR ← AR + 1
D₅T₅: PC ← AR, SC ← 0
ISZ
D₆T₄: DR ← M[AR]
D₆T₅: DR ← DR + 1
D₆T₆: M[AR] ← DR, If (DR = 0) then (PC ← PC + 1), SC ← 0

Register-reference Instructions

D₇I'T₃ = r (common to all register-reference instructions)
IR(i) = Bᵢ (i = 0, 1, 2, ..., 11)
r: SC ← 0
Register Operations
CLA - rB₁₁: AC ← 0
CLE - rB₁₀: E ← 0
CMA - rB₉: AC ← AC
CME - rB₈: E ← E
CIR - rB₇: AC ← shr AC, AC(15) ← E, E ← AC(0)
CIL - rB₆: AC ← shl AC, AC(0) ← E, E ← AC(15)
INC - rB₅: AC ← AC + 1
SPA - rB₄: If (AC(15) = 0) then (PC ← PC + 1)
SNA - rB₃: If (AC(15) = 1) then (PC ← PC + 1)
SZA - rB₂: If (AC = 0) then (PC ← PC + 1)
SZE - rB₁: If (E = 0) then (PC ← PC + 1)
HLT - rB₀: S ← 0

Input-output Instructions

D₇I'T₃ = p (common to all input-output instructions)
IR(i) = Bᵢ (i = 6, 7, 8, 9, 10, 11)
p: SC ← 0
I/O Operations
INP - pB₁₁: AC(0-7) ← INPR, FGI ← 0
OUT - pB₁₀: OUTR ← AC(0-7), FGO ← 0
SKI - pB₉: If (FGI = 1) then (PC ← PC + 1)
SKO - pB₈: If (FGO = 1) then (PC ← PC + 1)
ION - pB₇: IEN ← 1
IOF - pB₆: IEN ← 0

Memory Specifications

Click to see details

Memory Unit

4096 words

16 bits per word

Total capacity: 64KB

Hardware Components

🗃️ Registers (9 total)

  • AR - Address Register
  • PC - Program Counter
  • DR - Data Register
  • AC - Accumulator
  • IR - Instruction Register
  • TR - Temporary Register
  • INPR - Input Register
  • OUTR - Output Register
  • SC - Sequence Counter

🔄 Flip-Flops (7 total)

  • I - Indirect address bit
  • S - Start/Stop
  • E - Extended accumulator
  • R - Interrupt Request
  • IEN - Interrupt Enable
  • FGI - Input Flag
  • FGO - Output Flag

🔍 Decoders

  • 3 x 8 Operation decoder (opcodes)
  • 4 x 16 Timing decoder (T0-T15)

🚌 Common Bus System

  • 16-bit common bus
  • Facilitates data transfer
  • Controlled by S2, S1, S0 inputs

Flow Chart for Computer Operation

Control Unit Design

The control unit generates all necessary control signals for computer operation through decoders and logic gates.

🎛️ Control Functions

The control unit manages:

  • Register control inputs (LD, INR, CLR)
  • Memory read/write operations
  • Flip-flop state changes
  • Common bus register selection
  • Arithmetic and logic operations

📊 Address Register (AR) Control Example

Clear Operation:

CLR(AR) = RT0

Load Operation:

LD(AR) = R'T0 + R'T2 + D'7IT3

Increment Operation:

INR(AR) = D4T4
Flowchart of Interrupt

Control Signal Flow

Control signals are derived from register transfer statements and implemented as Boolean logic circuits.

IEN Control

Interrupt Enable Logic

IEN Operations

pB7: IEN ← 1

pB6: IEN ← 0

RT2: IEN ← 0

Flowchart of Interrupt

🚌 Bus Control Logic

The 16-bit common bus is controlled by select inputs S2, S1, S0 of a multiplexer, determining which register's output is placed onto the bus. The control signals are derived from the register transfer statements.

Register Selection (S2, S1, S0)

  • 001: Output of AR
  • 010: Output of PC
  • 011: Output of DR
  • 100: Output of AC
  • 101: Output of IR
  • 110: Output of TR
  • 111: Memory M[AR]

Bus Selection Inputs (S2, S1, S0)

  • S0 = x1 + x3 + x5 + x7
  • S1 = x2 + x3 + x6 + x7
  • S2 = x4 + x5 + x6 + x7

Each binary value listed in the table corresponds to a Boolean variable xi, which activates the specific gate required to select the appropriate register or memory for the bus. When x1 = 1 to S₂S₁S₀ = 001 selects the AR register.

Encoder for Bus Selection Circuit

Inputs Outputs Register Selected
x1x2x3x4x5x6x7 S2S1S0
0000000000None
1000000001AR
0100000010PC
0010000011DR
0001000100AC
0000100101IR
0000010110TR
0000001111Memory

📊 Boolean Derivation Example

To determine the logic for each encoder input, it is necessary to find the control functions that place the corresponding register on the bus. For example, for x1:

D4T4: PC ← AR
D5T5: PC ← AR
x1 = D4T4 + D5T5

For x7, which represents memory selection:

x7 = R'T1 + D7'IT3 + (D0 + D1 + D2 + D6)T4

Encoder for Bus Selection Inputs

Flowchart of Interrupt

Interactive Learning Demo

🚀 Computer Cycle Simulation

Click the button below to simulate a basic computer cycle:

💡 Key Learning Points

Hardware Translation

Register transfer statements become actual logic circuits

Control Logic

Boolean expressions control register operations

Systematic Design

Every microoperation has hardware implementation

🎓 Design Methodology Summary

The systematic approach ensures that every microoperation and control sequence defined for the basic computer has a corresponding hardware implementation, bridging the gap between theoretical computer architecture and practical digital circuit design.