1 / 11

4 장 CPU

4 장 CPU. 2009081103 정유진 2009081108 신순호. CPU 란 ?. CPU 와 Main Memory 의 관계는 ?. 내부구조. 범용 레지스터 (ACC) 누산기 전용 레지스터 = 특수 레지스터 명령어 레지스터 (IR) 메모리 지정 레지스터 (MAR, MBR, SI, DI, PC…) 스택 레지스터 상태 레지스터 = 플래그 레지스터 (Carry Flag, Zero Flag, oVerflow Flag, Sign Flag,

goldy
Download Presentation

4 장 CPU

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 4장 CPU 2009081103 정유진 2009081108 신순호

  2. CPU란? CPU와 Main Memory의 관계는?

  3. 내부구조 • 범용 레지스터 (ACC) • 누산기 • 전용 레지스터 = 특수 레지스터 • 명령어 레지스터(IR) • 메모리 지정 레지스터 • (MAR, MBR, SI, DI, PC…) • 스택 레지스터 • 상태 레지스터 = 플래그 레지스터 • (Carry Flag, Zero Flag, • oVerflow Flag, Sign Flag, • Direction Flag ) • 산술논리연산장치(ALU)

  4. 명령어 연산코드 - CPU에서 실행되어야할 동작 오퍼랜드 – 참조해야 되는 기억장치의 주소 명령어 START 명령어 요구과정 → 명령어 주기 (Instruction Cycle) instruction fetch Fetch Cycle instruction execution Execution Cycle STOP

  5. 주소 명령어 형식 • 0 주소 명령어 형식 • 1 주소 명령어 형식 • 2 주소 명령어 형식 • 3 주소 명령어 형식 ???? PUSH & POP ????

  6. 주소 지정 방식 • 즉시 주소 지정 방식 • 직접 주소 지정 방식 1 … 10 11 12 ….

  7. 1 … 10 … 12 …. • 간접 주소 지정 방식 • 레지스터 주소 지정 방식 1 … 10 11 12 ….

  8. 연산자코드 연산자코드 pointer a Memory 500 b 800 실제데이터(700) • 레지스터 간접 주소 지정방식 • 상대 주소 방식 Register 실제데이터(900) Memory a=20 유효주소 + a + b (220) b=200 b Program counter

  9. 연산자코드 Base register 변위 Memory a(400) b(15) + • 베이스 레지스터 주소 지정 방식 • 인덱스 레지스터 주소 지정 방식 실제데이터(600) 실제데이터(600) a + b (415) 연산자코드 a b Memory 50 유효 주소 cc + b (350) + 300 cc Index register

  10. 데이터 주소의 표현방식 • 스택 주소 지정 방식 Ex) 20*40+44 Stack pointer Stack pointer Stack pointer 100 100 100 주소 주소 주소 1000 1000 1000 100 100 100 1001 1001 1001 44 44 844 1002 1002 1002 40 800 1003 1003 1003 20 1004 1004 1004 (2) + 연산 (1) *연산

  11. THANK YOU

More Related