일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- while
- computer
- instruction
- Java
- python
- Algorithm
- DATAPATH
- github
- DS
- for
- DB
- react
- DoM
- control
- mysql
- php
- architecture
- html
- web
- MacOS
- Pipelining
- javascript
- CSS
- system
- Class
- function
- MIPS
- data structure
- Linux
- XML
- Today
- Total
목록clock (5)
YYYEJI
↓↓↓ BEQ Control unit ↓↓↓ • RegDst(Register Destination) - X beq instruction format은 register에 값이 저장되지 않기 때문에 어떤 값이 들어오든 상관 없습니다. • RegWrtie(Register Write) - 0 Register에 값이 저장할 필요가 없기 때문에 MUX의 값을 0으로 발생시켜야 됩니다. • ALUSrc(ALU Source) - 0 ALU에서 필요한 두 번째 source가 register에서 읽어진 값이기 때문에 MUX의 값을 0으로 발생시켜야 됩니다. • ALUop(ALU operation) - sub 첫 번째 source와 두 번째 source을 빼야되기 때문에 ALUop를 sub 값으로 발생시킵니다. • MemW..
↓↓↓ SW Control unit ↓↓↓ • RegDst(Register Destination) - X sw instruction format은 register에 값이 저장되지 않기 때문에 어떤 값이 들어오든 상관 없습니다. • RegWrtie(Register Write) - 0 Register에 값이 저장할 필요가 없기 때문에 MUX의 값을 0으로 발생시켜야 됩니다. • ALUSrc(ALU Source) - 1 ALU에서 필요한 두 번째 source가 SignExt을 지나와야 되기 때문에 MUX의 값을 1로 발생시켜야 됩니다. • ALUop(ALU operation) - add 두 번째 source와 immediate 값을 더해야되기 때문에 ALUop를 add의 값으로 발생시킵니다. (주소값 계산) ..
↓↓↓ LW Control unit ↓↓↓ • RegDst(Register Destination) - 0 lw instruction format은 destination이 [20:16] bit에 존재합니다. 그렇기 때문에 MUX의 값을 0로 발생시켜야 됩니다. • RegWrtie(Register Write) - 1 Data memory에서 fetch한 값을 Register에 저장해야 되기 때문에 MUX의 값을 1로 발생시켜야 됩니다. • ALUSrc(ALU Source) - 1 ALU에서 필요한 두 번째 source가 SignExt을 지나와야 되기 때문에 MUX의 값을 1로 발생시켜야 됩니다. • ALUop(ALU operation) - add 두 번째 source와 immediate 값을 더해야되기 때문..
↓↓↓ R-type Control unit ↓↓↓ • RegDst(Register Destination) - 1 R-type instruction format은 destination이 [15:11] bit에 존재합니다. 그렇기 때문에 MUX의 값을 1로 발생시켜야 됩니다. • RegWrtie(Register Write) - 1 ALU에서 계산된 값을 Register에 저장해야 되기 때문에 MUX의 값을 1로 발생시켜야 됩니다. • ALUSrc(ALU Source) - 0 ALU에서 필요한 두 번째 값이 register에서 읽어진 값이기 때문에 MUX의 값을0으로 발생시켜야 됩니다. • ALUop(ALU operation) - Dependent on operation • add - OP(and) • sub..
CPU를 제작할 때 instruction이 결정되면 datapath와 control unit이 결정됩니다. 이때 한 instruction이 실행되는 clock의 cycle 횟수를 뜻합니다. ① Single clock cycle → Instruction이 실행되는데 1 clock cycle만 필요 ↑↑↑ Red clock cycle ↑↑↑ ② Multi clock cycle → Instruction이 실행되는데 여러 clock cycle만 필요 ↑↑↑ Yellow clock cycle ↑↑↑ ◡̈