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 |
Tags
- web
- control
- system
- Algorithm
- computer
- DB
- data structure
- javascript
- while
- XML
- for
- php
- html
- react
- MacOS
- Linux
- DS
- CSS
- architecture
- github
- function
- Class
- DATAPATH
- Pipelining
- python
- instruction
- MIPS
- Java
- mysql
- DoM
Archives
- Today
- Total
YYYEJI
[MIPS] R-type Datapath (Single-Clock) 본문
728x90
R-type의 instruction은 add, sub, and, or, slt 가 있습니다.
데이터가 어떤 경로로 이동하는지 보겠습니다.
• add $s0, $t0, $t1 # $s0 = $t0 + $t1
• sub $s0, $t0, $t1 # $s0 = $t0 - $t1
• and $s0, $t0, $t1 # $s0 = $t0 & $t1
• or $s0, $t0, $t1 # $s0 = $t0 | $t1
• slt $s0, $t0, $t1
① Instruction을 fetch하면서 PC의 값을 증가시킵니다.
② Register($t0, $t1)의 값을 읽습니다.
$s0는 나중에 수행된 값이 저장될 곳으로 $s0임을 인지합니다.
③ ALU를 통해 값을 계산합니다.
두 개의 register 안에 있는 data를 instruction에 맞춰 계산을 수행하고,
계산된 계산을 write data로 옮깁니다.
④ Clock이 1이 되면 destination($s0)에 계산된 값을 저장합니다.
◡̈
'Computer architectures' 카테고리의 다른 글
[MIPS] sw Datapath (Single-Clock) (0) | 2022.11.07 |
---|---|
[MIPS] lw Datapath (Single-Clock) (0) | 2022.11.07 |
[MIPS] Instruction에 따른 Functional units (0) | 2022.10.31 |
[MIPS] Register File Design (2) | 2022.10.31 |
[MIPS] RTL 이란? (0) | 2022.10.31 |