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 | 31 |
Tags
- react
- CSS
- MIPS
- MacOS
- XML
- javascript
- Class
- Pipelining
- DoM
- Algorithm
- web
- while
- Linux
- php
- data structure
- Java
- DATAPATH
- control
- DS
- DB
- mysql
- computer
- function
- python
- system
- github
- html
- instruction
- architecture
- for
Archives
- Today
- Total
YYYEJI
[MIPS] beq Datapath (Single-Clock) 본문
728x90
beq는 PC 값을 조정하는게 중요 포인트입니다.
beq $s0, $s1 label
① Instruction을 fetch하면서 PC의 값을 증가시킵니다.
② Register($s0, $s1)의 값을 읽습니다.
③ Branch or Not Branch
ALU에서 계산된 값이 Non-zero(true)일 경우에 데이터가 이렇게 움직입니다.
label의 값이 SignExt, shift left 2된 값과 PC+4와 더해져서 PC의 값이 조정됩니다.
ALU에서 계산된 값이 Zero(false)일 경우에 데이터가 이렇게 움직입니다.
PC+4의 값이 그대로 PC에 들어갑니다.
◡̈
'Computer architectures' 카테고리의 다른 글
[MIPS] Control unit을 결정하는 Multiplexer (Single-Clock) (0) | 2022.11.07 |
---|---|
[MIPS] ALU를 control하는 signal (Single-Clock) (0) | 2022.11.07 |
[MIPS] sw Datapath (Single-Clock) (0) | 2022.11.07 |
[MIPS] lw Datapath (Single-Clock) (0) | 2022.11.07 |
[MIPS] R-type Datapath (Single-Clock) (0) | 2022.11.07 |