EEL4768C - Exam 2 (Ch. 2&4)

studied byStudied by 1 person
5.0(1)
Get a hint
Hint

Immediate addressing

1 / 24

flashcard set

Earn XP

Description and Tags

25 Terms

1

Immediate addressing

  • the operand is specified in the instruction explicitly

  • ex: addi, li

<ul><li><p>the operand is specified in the instruction explicitly</p></li><li><p>ex: addi, li</p></li></ul>
New cards
2

Register addressing

  • the data to be operand is inside the register, and the register is the operand

  • ex: add, sub

<ul><li><p>the data to be operand is inside the register, and the register is the operand</p></li><li><p>ex: add, sub</p></li></ul>
New cards
3

Base addressing

  • the address of the instruction is added to the register content, and is saved to the memory

  • ex: lw, sw

<ul><li><p>the address of the instruction is added to the register content, and is saved to the memory</p></li><li><p>ex: lw, sw</p></li></ul>
New cards
4

PC-relative addressing

  • the address of the instruction is added to the PC content, and is saved to the memory

  • ex: beq, bne

<ul><li><p>the address of the instruction is added to the PC content, and is saved to the memory</p></li><li><p>ex: beq, bne</p></li></ul>
New cards
5

Pseudodirect addressing

  • the address and the PC content are combined with : and saved to the memory

  • ex: j

<ul><li><p>the address and the PC content are combined with : and saved to the memory</p></li><li><p>ex: j</p></li></ul>
New cards
6

instruction fetch

PC (program counter)

New cards
7

instruction decode

IM, RF

New cards
8

instruction execute

ALU, RF

New cards
9

writeback

RF, DM

New cards
10

1

For a single cycle processor, CP1 is always __

New cards
11

jump target address

26 bits from address (given) + 4 bits from MSByte + last 2 bits "00"

New cards
12

branch target address

sign extend from 16 to 32 bits + shift left by 2

New cards
13

instruction memory

used to decode/read instruction (1 clock cycle to decode)

New cards
14

data memory

used to write data

New cards
15

need to access data and instruction from memory in the same clock cycle

Why do we separate memory?

New cards
16

CPI performance factors

  • instruction count

  • CPI and cycle time

New cards
17

instruction count

determined by ISA and compiler

New cards
18

CPI and cycle time

determined by CPU hardware

New cards
19

ALU calculates

  • arithmetic result

  • memory address for load/store

  • BTA

New cards
20

datapath

  • elements that process data and address in the CPU

  • ex: ALUs, registers, multiplexers, memories

New cards
21

execution time formula

(# of instructions) (CPI) (Tc)

New cards
22

single cycle pros

  • simple

  • easy to pipeline because of separate instructions

New cards
23

single cycle cons

  • latency due to longest instruction

  • more hardware is used (ex: adders, ALUs, memories)

New cards
24

CPI formula

(clock cycles) / (# of instructions)

New cards
25

single cycle processor

interface between controller and data path, used to get complete implementation for any instruction

New cards

Explore top notes

note Note
studied byStudied by 91 people
... ago
5.0(2)
note Note
studied byStudied by 26 people
... ago
5.0(1)
note Note
studied byStudied by 15 people
... ago
5.0(1)
note Note
studied byStudied by 62 people
... ago
5.0(1)
note Note
studied byStudied by 16 people
... ago
4.0(1)
note Note
studied byStudied by 9 people
... ago
5.0(1)
note Note
studied byStudied by 15 people
... ago
5.0(1)
note Note
studied byStudied by 100 people
... ago
5.0(1)

Explore top flashcards

flashcards Flashcard (156)
studied byStudied by 7 people
... ago
5.0(1)
flashcards Flashcard (37)
studied byStudied by 7 people
... ago
5.0(2)
flashcards Flashcard (54)
studied byStudied by 31 people
... ago
5.0(1)
flashcards Flashcard (45)
studied byStudied by 88 people
... ago
5.0(2)
flashcards Flashcard (166)
studied byStudied by 6 people
... ago
5.0(1)
flashcards Flashcard (31)
studied byStudied by 7 people
... ago
5.0(1)
flashcards Flashcard (111)
studied byStudied by 169 people
... ago
5.0(2)
flashcards Flashcard (169)
studied byStudied by 13 people
... ago
5.0(1)
robot