CSO5 MIPS DATAPATH Flashcards

1
Q

SINGLE-CYCLE MIPS

A
  • memory reference
    -arithmetic and logic
    -control flow
    instructions
    pc(program counter) for instruction address
    mem->read/write register file-> execute
    1 cycle 32-bit alu instructions
  1. IF - instruction fetch: send pc counter and fetch instruction
  2. ID - instruction decode: decode instruction and read regs
  3. EX - execution: reconfiguration of hw depending on instruction type using multiplexers
    4.MEM-WB - memory writeback: read/write in mem components
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

INSTRUCTION FETCH

A

CPU is infinite loop
-gets instruction from instruction memory
-updates pc with address of next instruction
instruction memory and pc are always active

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

INSTRUCTION DECODING

A

-parse registers
-read 2 at a time
-write when regWrite =1

memory access is slow (takes multiple cycles) thats why we use cache memory-registers 1 and 2 cycle cache for instruction data

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

R-TYPE EXECUTION

A

fetch->decode->do alu operation and write data to register

op rs rt rd shift amount function

pc (after it goes to instruction memory we add 4 to get the next instruction
->instruction memory
-> register file get rs rt rd
-> feed rt rd to ALU and perform operation
-> store in register rs

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

I-TYPE MEMORY INSTRUCTIONS EXECUTION

A

-memory reference instructions:
op rs rt i
pc (after it goes to instruction memory we add 4 to get the next instruction
->instruction memory
-> register file get rs rt
->

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

BRANCH INSTRUCTIONS

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

DATAPATH

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

MIPS SINGLE-CYCLE DATAPATH

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly