Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- for
- CSS
- react
- Java
- github
- Linux
- while
- system
- DS
- DATAPATH
- Pipelining
- Algorithm
- function
- XML
- python
- DoM
- computer
- control
- architecture
- instruction
- javascript
- php
- data structure
- DB
- mysql
- MIPS
- MacOS
- web
- Class
- html
Archives
- Today
- Total
YYYEJI
[MIPS] lw Datapath (Single-Clock) 본문
728x90

lw, sw는 datapath가 다릅니다.
lw $t0, 32($t1)
sw $t0, 32($t1)
LW
① Instruction을 fetch하면서 PC의 값을 증가시킵니다.

② Register($t1)의 값을 읽습니다.

immediate 값은 SignExt한 값이 ALU로 들어갑니다.
계산된 값은 주소값 입니다.
③ ALU를 통해 주소 값을 계산합니다.

계산된 주소 값을 Data memory로 보냅니다.
④ Data memory에서 계산된 주소 값을 통해 값을 fetch 해옵니다.

fetch 된 값을 write data로 보냅니다.
⑤ Clock이 1이 되면 destination($s0)에 계산된 값을 저장합니다.

◡̈
'Computer architectures' 카테고리의 다른 글
[MIPS] beq Datapath (Single-Clock) (0) | 2022.11.07 |
---|---|
[MIPS] sw Datapath (Single-Clock) (0) | 2022.11.07 |
[MIPS] R-type Datapath (Single-Clock) (0) | 2022.11.07 |
[MIPS] Instruction에 따른 Functional units (0) | 2022.10.31 |
[MIPS] Register File Design (2) | 2022.10.31 |