COMP 4300 Computer Architecture Datapath - PowerPoint PPT Presentation

1 / 20
About This Presentation
Title:

COMP 4300 Computer Architecture Datapath

Description:

... on the instruction, register file input WN is fed by different fields of the instruction ... need an additional multiplexer on WN input. op. rs. rt. offset ... – PowerPoint PPT presentation

Number of Views:506
Avg rating:3.0/5.0
Slides: 21
Provided by: Xiao89
Category:

less

Transcript and Presenter's Notes

Title: COMP 4300 Computer Architecture Datapath


1
COMP 4300 Computer Architecture Datapath
Dr. Xiao Qin Auburn Universityhttp//www.eng.aubu
rn.edu/xqin xqin_at_auburn.edu
Fall, 2010
2
Datapath for Branch Instructions
beq rs, rt, offset
if (Rrs Rrt) then PC ? PC4
s_extend(offsetltlt2)
3
Datapath More Detailed View
4
Simple Implementation
  • Include the functional units we need for each
    instruction

5
RTL Code for MIPS add
  • Fetch
  • Instruction ROMPC, PCPC4
  • Read Operands
  • ALUOp1 Registersrs-value,
  • ALUOp2 Registersrt-value
  • Add
  • ALUOut ALUOp1ALUOp2
  • Write Result
  • Registersrd-value ALUOut

6
Datapath Components for MIPS add
add R1, R2, R3
7
Datapath Connections for MIPS add
add R1, R2, R3
Interconnections
What is missing?
8
Critical Path for MIPS add
add R1, R2, R3
CLK
Interconnections
Critical path
9
Datapath Components for MIPS lw/sw
lw R1, -100(R2) sw R1, -100(R2)
16
ROM
Instruction Memory
REGISTERS
Data Memory
10
Connections for lw
lw R1, -100(R2)
ALU
16
ROM
Instruction Memory
REGISTERS
Data Memory
11
Critical Path for lw
lw R1, -100(R2)
12
Connections for sw
sw R1, -100(R2)
Data
Port1
WriteRegister
ALU
ReadRegister1
16
Port2
ROM
ReadRegister2
Instruction Memory
REGISTERS
Address
DataOut
DataIn
RAM
Data Memory
13
Critical Path for sw
sw R1, -100(R2)
Data
Port1
WriteRegister
ALU
ReadRegister1
16
Port2
ROM
ReadRegister2
Instruction Memory
REGISTERS
Address
DataOut
DataIn
RAM
Data Memory
14
Datapath Connections for MIPS add and lw
add R1, R2, R3
CLK
15
Datapath Connections for MIPS add and lw
16
Combined Datapath R-Type and Load/Store
Instructions
17
Combined Datapath Executing an R-Type
Instruction
add rd,rs,rt
18
Combined Datapath Executing a load instruction
lw rt,offset(rs)
19
Combined Datapath Executing a store instruction
sw rt,offset(rs)
20
Summary
  • Read Ch B.7-9
Write a Comment
User Comments (0)
About PowerShow.com