cse 341 torture

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/34

encourage image

There's no tags or description

Looks like no tags are added yet.

35 Terms

1
New cards

first cycle

instruction fetch and increment pc

2
New cards

second cycle

instruction decode and register fetch

3
New cards

third cycle

execution, memory addr computation, or branch completion

4
New cards

fourth cycle

memory access or r type instruction completion step

5
New cards

fifth cycle

memory read completion step

6
New cards

[second cycle] ALUOut =

PC + (sign extend IR « 2)

7
New cards

Each cycles is one of:

alu operation, register file access, memory access

8
New cards

for multicycle, data needed in a later clock cycle must be

stored in a register

9
New cards

cycles needed per instruction:

  1. load

  2. store

  3. alu

  4. branch

  5. jump


5 4 4 3 3

10
New cards

Write Control

pc memory registers ir

11
New cards

read control

memory

12
New cards

alu control

refer to single cycle datapath designm

13
New cards

multiplexors

two 2 input mux, one 4 input mux

14
New cards

[jump and branch]

PC Source:

ALU Output =

PC + 4

15
New cards

[jump and branch]

PC Source:

ALUOut register =

branch register

16
New cards

[jump and branch]

PC Source:

IR0…26 concatenated w/ upper 4 bits of pc =

jump target

17
New cards

[jump and branch]

Ctrl signals:

PCWrite =

PCWriteCond =

unconditional conditional

18
New cards

PCWriteCond is combined with ____ to control…

zero pcwrite

19
New cards

regdst

0 =

1 =

rt selects write reg num, rd selects write reg num

20
New cards

regwrite

0 =

1 =

none, gpr data written

21
New cards

ALUSrcA

0 =

1 =

pc selected as first operand, a reg selected as first operand

22
New cards

MemWrite

0 =

1 =

nothing, data read from memory

23
New cards

MemtoReg

0 =

1 =

write data input supplied by ALUOut reg, rite data input supplied by MDR

24
New cards

IorD

0 =

1 =

pc supplied addr to mem unit, aluout register supplies addr to mem unit

25
New cards

IRWrite

0 =

1 =

none, output of mem written to ir

26
New cards

PCWrite

0 =

1 =

none, pc written

27
New cards

PCWriteCond

0 =

1 =

none, pc written if zero output from alu is active

28
New cards

ALUOp

00 =

01 =

10 =

add, sub, funct field deteremines operation

29
New cards

ALUSrcB (selects 2nd input to ALU)

00 =

01 =

10 =

11 =

b reg, 4, sign ext lower 16 bits of ir, sign ext lower bits of ir * 4

30
New cards

PCsource (selects source of pc data)

00 =

01 =

10 =

alu output (PC + 4), aluout contents (branch target), ir[25…0] * 4 concat w pc[31..28] (jump target)

31
New cards

lw and sw have an ____

offset

32
New cards

loads: base reg must be read from…

register file

33
New cards

stores: base reg & val to be stored must be…

read from reg file

34
New cards

16 bit offset is stored in… [for load store]

instruction

35
New cards

branch offset needs to be…

left shifted