Datapaths

Module 13

Reading Assignment

Schedule of Lectures

Sample Problems

Datapath Elements: 2,3

Single Cycle Datapath: 1, 4,6

Previous Lecture

Next Lecture

The SPIM Simulator

Supplemental Material 1

Supplemental Material 2

Microcode Template

Datapath Elements

Adder/Subtractor

Register File


 

 
 

 

Logical Unit

Shift Unit: A Barrel Shifter

· 

 

A Single Cycle Datapath

Architecture of a Datapath

Operation


 

Step

X

Y

Z

rwe

im en

im va

au en

~a/s

lu en

lf

su en

st

description

1

 

 

 

 

 

 

 

 

 

 

 

 

 


R2 = R2 + R4
R2 = left shift R2 by 1 bit (corresponds to a multiplication by 2)
R1 = R2 - R6


R1 = left shift R2 by 1 (multiplication by 2)
R1 = R1 + R2

 Need for Memory

 

step

X

Y

Z

rwe

im en

im va

au en

-a/s

lu en

lf

su en

st

r/-w

msel

st en

ld en

description

1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

step

X

Y

Z

rwe

im en

im va

au en

-a/s

lu en

lf

su en

st

r/-w

msel

st en

ld en

description

1

 X

 1

 1

 0

 X

 X

 0

 X

1

1

0

1

R1=M[R2]

 

step

X

Y

Z

rwe

im en

im va

au en

-a/s

lu en

lf

su en

st

r/-w

msel

st en

ld en

description

1

2

 1

X

 0

 X

 X

 X

 X

0

1

1

0

M[R2]=R1

Addressing Modes

Writing Microcode

·         Structured Approach to solving problems

o   Algorithm pseudo code

o   Register/memory allocation (variables and data structures)

o   Translate to RTL notation

o   Translate each RTL statement to microcode

Examples

 

Questions and comments to Sudhakar Yalamanchili