ISA + pipelining

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/21

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

22 Terms

1
New cards

5 factors to consider when picking an ISA

  • instruction length

  • operands/instruction type

  • memory organisation

  • addressing modes

  • operations available

2
New cards

3 main measures for an ISA

  1. memory space (RAM as expensive)

  2. instruction complexity

  3. number of available instructions

3
New cards

endianness

byte ordering, how data is stored

  • ordering of bytes of data

4
New cards

little endian machines

LSB → MSB

  • flexible for casting

  • 16 to 32 bit integer address doesn’t require any arithmetic

5
New cards

big endian machines

MSB → LSB

  • natural

  • sign of number obvious by looking at byte at address offset 0

  • strings and integers are stored in same order

6
New cards

3 types of register architectures

  • stack architecture

  • accumulator architecture

  • general purpose register architecture

    • tradeoff is between simplicity and cost of hardware, and execution speed and ease of use

7
New cards

stack architecture

instructions and operands taken from stack

  • cannot be accessed randomly

8
New cards

stack machine

use 1 and 0 operand instructions

  • instructions operate on elements on top of stack

  • access instructions are push and pop that need 1 memory address operand

9
New cards

accumulator architecture

1 operand of binary operand is stored in accumulator

  • one operand in memory, creating bus traffic

10
New cards

GPR architecture

registers used instead of memory

  • faster than ACC architecture

  • longer instructions

11
New cards

3 types of GPR architecture

  1. memory-memory: 2/3 operands in memory

  2. register-memory: at least 1 operand in register

  3. load-store: no operands in memory

  • move data to CPU, work with it, move out when done

12
New cards

immediate addressing

data is part of instruction

13
New cards

direct addressing

address of data is given in instruction

14
New cards

indirect addressing

address of address of data is given in instruction

15
New cards

index addressing

uses register as offset (index , for index addressing, base for base addressing)

  • added to address in operand to find effective address of data

16
New cards

register addressing

data located in a register

17
New cards

register indirect addressing

register stores address of address of data

18
New cards

stack addressing

operand assumed to be on top of stack

19
New cards

FDE broken down into instruction level

  1. fetch instruction

  2. decode opcode

  3. calculate effective address of operand

  4. fetch operand

  5. execute instruction

  6. store result

20
New cards

theoretical speed offered by pipeline

  • each instruction is a task T, no. of tasks is N

  • Tp is time pers take, K is number of stages in pipeline

    • for no pipelining, time is NKtp

<ul><li><p>each instruction is a task T, no. of tasks is N</p></li><li><p>Tp is time pers take, K is number of stages in pipeline</p><ul><li><p>for no pipelining, time is NKtp</p></li></ul></li></ul><p></p>
21
New cards

pipeline speed up equation

knowt flashcard image
22
New cards

3 pipeline hazards

  • resource conflicts

  • data dependencies

  • conditional branching