DLX - PowerPoint PPT Presentation

1 / 16
About This Presentation
Title:

DLX

Description:

Opcode, two registers & a 16-bit constant ... goto L1; f=g h; L1: f=f-i; Problem #2. xor r1 r19 r20. bnez r1 2. add r16 r17 r18. beqz r1 1 ... – PowerPoint PPT presentation

Number of Views:24
Avg rating:3.0/5.0
Slides: 17
Provided by: liorneu
Category:
Tags: dlx | goto

less

Transcript and Presenter's Notes

Title: DLX


1
DLX ?????? GPR ?PC
  • ?????

2
Instruction Formats
R-Type (Register)
I-Type (Immediate)
Opcode, three registers an additional 6-bit
opcode (function)
Opcode, two registers a 16-bit constant
6 5 5 5 5
6
6 5 5 16
Opcode RS1 RS2 RD Function
Opcode RS1 RD Immediate
3
The Datapath
The Datapath consists of several
environments, buses, registers and multiplexers.
At the right there is a general scheme of the
entire Datapath (no drivers, only muxes).
4
The GPR Environment (Mueller Paul)
GPR_WE
5
The GPR Environment (Cont.)
GPR_WE
Drivers to enable the writing of a value to the
bus.
6
The GPR Environment (Cont.)
GPR_WE
A1, A2 are the registers to be read from and A3
is the register to be written to. Their values
are trivial-derived from the IR register.
7
The GPR Environment (Cont.)
GPR_WE
R0 always equals zero Zero Testers check if A1
or A2 equal zero.If so, the A1Zero / A2Zero
signals equal zero.
8
The GPR Environment (Cont.)
GPR_WE
a read from R0 results with a zero value written
to the appropriate register (A or B).
9
The GPR Environment (Cont.)
GPR_WE
A3 can be either IR1511, IR2016 or 11111.
Its value is according to the instructions type
(I-Type or R-Type). The I-Type Control signal
decides what type of instruction we deal with.
10
The GPR Environment (Cont.)
GPR_WE
When dealing with the jalr instruction, we have
to write to R31 and at that case, the Jlink
signal gets the value of 1.
11
The GPR Environment (Cont.)
GPR_WE
Remember The GPR Env. is a dual-port RAM that
supports either two Read operations or one write
operation at a certain time.
12
The PC Environment
The PC Env. is implemented as follows
This constant is used in the Decode stage when
advancing the PC to be PC1
When the computer is turned on, the PUP signal1
, the MUX and the Control signal PCsce get a 1
value and as a result the PC is initialized to
the address.
The DINT bus feeds the new PC.
13
(No Transcript)
14
Problem 1
xor r1 r19 r20 beqz r1 1 add r16 r17 r18 sub r16 r
16 r19
if(ij) goto L1 fgh L1 ff-i
LEGEND r16 f r17 g r18 h r19 i r20
j r21 k
15
Problem 2
xor r1 r19 r20 bnez r1 2 add r16 r17 r18 beqz r1 1
sub r16 r17 r18
if(ij) skip to else fgh else fg-h
16
Problem 3
addi r4 r0 Astart add r1 r4 r19 lw r2 r1 0 add r1
7 r17 r2 add r19 r19 r20 xor r3 r19 r18 bnez r3 -
6
LOOP gg Ai iij if((i!h) goto LOOP
Address of A0 Astart
Write a Comment
User Comments (0)
About PowerShow.com