본문 바로가기
[컴퓨터구조] #12. Pipeline MIPS(1) Lec 12. Pipeline MIPS_1 (The Processor) - Processor Performance single-cycle processor ( 한 clk에 하나의 명령어 실행) 의 성능은 long critical path delay 에 의해 제한됨. (critical path 가 clock frequency 를 제한함) ( *lec 11 참고 가장 오래 걸리는 경로가 critical path임. add, sw, lw중에서는 lw가 critical path. critical path가 짧을수록 performance 좋아짐. ) => 더 나은 방법?? 1) 반도체 기술에 의존 (small sized transistors) 2) Pipelining !!! - Pipelining Response.. 2022. 5. 11.
[컴퓨터구조] #11. Single-Cycle MIPS(2) Lec 11. Single-Cycle MIPS_2 (The Processor) * Micro-architecture의 구성요소 (lec10 참고) - Datapath (ALU) - Control (Control Unit) -> (lec11)에서는 design control logic ! - lw - pc - sw - add, sub, and, or - beq - or - ALU (Arithmetic Logic Unit) input : A, B, F output : Y F의 최상위 비트가 1이면 B를 1의 보수를 취함. A + ~B + 1 의 carryout을 반전시키고 zero extend한 값이 SLTU임. A Main Decoder가 Opcode를 보고 ALUOp를 ALU Decoder에게 전달, d.. 2022. 4. 23.
[컴퓨터구조] #10. Single-Cycle MIPS(1) Lec 10. Single-Cycle MIPS_1 (The Processor) - Introduction Architecture : CPU 구조 -> instructions -> registers Micro-architecture : CPU 구조를 이해하고 거기에 맞게 동작하는 hardware structure -> datapaths (데이터 흐름, 경로. 데이터 처리에 사용되는 모든 로직들) : operate on or hold data ex) ALU, register file, MUX, memory -> controllers (data path 제어/지시) : receives the current instructions from memory and tells the datapath how to exe.. 2022. 4. 13.
[컴퓨터구조] #9. Multiplication / Floating Point Lec 9. Multiplication / Floating Point (Arithmetic for Computers) - Multiplication : Multiplicand 피승수 (n-bit) * Multiplier 승수 (m-bit) = Product 결과 (최대 n+m bit) 1) 승수가 1이면 피승수(=피승수*1)을 적절한 공간에 복사한다. 2) 승수가 0이면 0(=피승수*0)을 적절한 공간에 놓는다. - Multiply in MIPS : 32bit * 32bit -> up to 64bit mult $r, $s : multiply $r and $s, and put the result to HI ans LO (HI and LO : 특별 레지스터) mfhi $d (move from hi regis.. 2022. 4. 7.
[컴퓨터구조] #8. Performance Lec 8. Performance (Computer Abstractions and Technology) - Response Time and Throughput -> 컴퓨터 성능 측정 방법 Response Time (Execution time, Latency) 실행 시간 : 시작~종료 시간. individual users에게 중요함, Embedded computers 와 PCs 의 관심사 Throughput : 전체 task가 종료되는 시간. data center / supercomputer managers에게 중요함, Servers의 관심사 Pipeline 사용 후 Throughput이 향상되었음. (response time 향상에는 도움 안됨) Let's focus on response time for.. 2022. 4. 1.
[컴퓨터구조] #7. MIPS 명령어(7) Lec 7. MIPS Instructions_7 (Language of the Computer) - Procedure (Function) : 파라미터를 매개로 callee와 caller 간에 서로 필요한 task를 주고 리턴할 수 있도록 만들어진 subroutine. -> make the program modular and easy, code to be reused(생산성) Parameters (arguments) : interface 역할. caller와 callee 모두 접근 가능한 특정 저장공간에 담아두고 함수 호출&인자 전달 Caller : Passes arguments to a callee, Jumps to the callee Callee : Performs the procedure, Retur.. 2022. 3. 31.