Professional Documents
Culture Documents
Unit Iii
Unit Iii
Unit Iii
1
Introduction
• Missing Multiplexers, and some Control lines for read and write.
3
An Overview of the Implementation
• Datapath
– Elements that process data and addresses within the CPU
• Register file, ALUs, Adders, Instruction and Data
Memories, …
We need functional units (datapath elements) for:
1. Fetching instructions and incrementing the PC.
2. Execute arithmetic-logical instructions: add, sub, and, or, and slt
3. Execute memory-reference instructions: lw, sw
4. Execute branch/jump instructions: beq, j
6
Continue
7
Continue
8
4. Execute branch/jump instructions: beq, j
9
Creating a Single Datapath
10
Continue
11
A Simple Control Implementation
Scheme
The ALU Control
12
Designing the Main Control Unit
13
Continue
14
Exceptions
• Exceptions
• Interrupts
15
How Exception Are Handled
16
How Control Checks for Exception
17
Continue
The finite state machine with the additions to handle exception detection
19