CS2340.005 Class Notes 103023
CS2340.005 Class Notes 103023
The Processor
2
The Processor
CS/SE 2340
Introduction
3
The Processor
CS/SE 2340
Introduction
• CPU performance factors
Instruction count
Determined by ISA and compiler
CPI and Cycle time
Determined by CPU hardware
• We will examine two MIPS implementations
A simplified version
A more realistic pipelined version
• Simple subset, shows most aspects
Memory reference: lw, sw
Arithmetic/logical: add, sub, and, or, slt
Control transfer: beq, j
4
The Processor
CS/SE 2340
Instruction Execution
5
The Processor
CS/SE 2340
CPU Overview
Multiplexers
7
The Processor
CS/SE 2340
Control
8
The Processor
CS/SE 2340
9
The Processor
CS/SE 2340
Combinational Elements
• AND-gate • Adder
Y=A&B Y=A+B
11
The Processor
CS/SE 2340
Sequential Elements
• Register: stores data in a circuit
Uses a clock signal to determine when to update the stored value
Edge-triggered: update when Clk changes from 0 to 1
12
The Processor
CS/SE 2340
Sequential Elements
• Register with write control
Only updates on clock edge when write control input is 1
Used when stored value is required later
13
The Processor
CS/SE 2340
Clocking Methodology
• Combinational logic transforms data during clock cycles
Between clock edges
Input from state elements, output to state element
Longest delay determines clock period