Docsity

Data Path, Time Step Generator - Computer Architecture - Lecture Slides, Slides of Computer Architecture and Organization

Partial preview of the text

Download Data Path, Time Step Generator - Computer Architecture - Lecture Slides and more Slides Computer Architecture and Organization in PDF only on Docsity!

Data

Path

CONTROL

To external

CPU bus

General purpose registers

(32-bits each)

ALSU

C

A

R

R

PC

IR

32 lines

2. A Unibus Data Path Implementation

MAR

MBR

ADD

SUB

SHL

Other ALSU

Internal processor bus functions

R

3. Timing Step Generator

• In the next few slides, we will assume

that there exists a “timing step

generator” which provides mutually

exclusive and sequential timing

intervals

• These intervals will be called T0, T1,

T2, …..

Timing Step Generator

Waveforms

Eight mutually exclusive time steps

Timing Step Generator

Waveforms

If more time steps are

required, then a counter

with more bits and a larger

decoder can be used, eg.,

a 4-bit counter along with a

4-to-16 decoder can

produce up to 16 time

steps

Step RTL

T0 MAR PC, C PC + 4;

T1 MBR M[MAR], PC C;

T2 IR MBR;

T3 A R[rb];

T4 C A - R[rc];

T5 R[ra] C;

Structural RTL for the sub instruction

Instruction Fetch

Instruction

Execute

Syntax: sub ra, rb, rc

At the end of each sequence, the timing step generator is initialized to T

To external CPU

bus

General purpose registers

(32-bits each)

ALSU

C

A

R

R

PC

IR

32 lines

A Unibus Data Path Implementation

MAR

MBR

ADD

SUB

SHL

Other ALSU

Internal processor bus functions

R

To external CPU

bus

General purpose registers

(32-bits each)

ALSU

C

A

R

R

PC

IR

32 lines

A Unibus Data Path Implementation

MAR

MBR

ADD

SUB

SHL

Other ALSU

Internal processor bus functions

R1 Question:

What will be the implications if the

connection between register C and the

internal processor bus is bi-directional?

(one would like to have such a

connection to avoid loading C through

the ALSU)

Step RTL T0-T2 Instruction fetch

T3 A R[rb];

T4 C A + R[rc];

T5 R[ra] C;

Structural RTL for the add instruction

other instructions that will have similar tables are:

and, or, sub

Syntax: add ra, rb, rc

Step RTL

T0-T2 Instruction fetch

T3 A R[rb];

T4 C A + c2(sign extend);

T5 R[ra] C;

Structural RTL for the addi instruction

Syntax: addi ra, rb, c

Sign extension for 17-bit c2 is the same as : (15αIR<16> ©IR<16..0>)

Sign extension for 22-bit c1 is the same as : (10αIR<21> ©IR<21..0>)

other instructions that will have similar tables are:

andi, ori

Step RTL for Id RTL for st

T0-T2 Instruction fetch Instruction fetch T3 A ((rb = 0) : 0, (rb ≠ 0): R[rb]); A ((rb = 0): 0, (rb ≠ 0): R[rb]);

T4 C A + (15αIR<16> ©IR<16..0>); C A + (15αIR<16> ©IR<16..0>);

T5 MAR C; MAR C;

T6 MBR M[MAR]; MBR R [ra];

T7 R[ra] MBR; M[MAR] MBR;

RTL for the ld and st instructions

sign extension

Syntax: ld ra, c2(rb) Syntax: st ra, c2(rb)

ld and st are the same up to step T

Note that (15αIR<16> ©IR<16..0>) is the

same as (16αIR<16> ©IR<15..0>) Docsity.com