Input output port 7 Inputoutput port ALU 11

  • Slides: 40
Download presentation

입출력 포트(Input output port, 또는 인터페이스 ) 7 Input-output port

입출력 포트(Input output port, 또는 인터페이스 ) 7 Input-output port

ALU 구조 11 � ALU (Arithmetic Logic Unit) 구조 opcode operand 1 operand 2

ALU 구조 11 � ALU (Arithmetic Logic Unit) 구조 opcode operand 1 operand 2 명령어(instruction) opcode가 2비트 opcode operand 1, operand 2 ADD AX, 0 x 15

산술장치 12 Arithmetic processor Sel 0이 0이면 A + B Sel 0이 1이면 A

산술장치 12 Arithmetic processor Sel 0이 0이면 A + B Sel 0이 1이면 A - B

논리 연산 장치 13 Logic processor

논리 연산 장치 13 Logic processor

2. Components (7) 14 Shift processor Sel 0이 0이면 shift right CP가 빠져 있음

2. Components (7) 14 Shift processor Sel 0이 0이면 shift right CP가 빠져 있음

I/O Addressing 17 Memory Mapped I/O와 Isolated I/O

I/O Addressing 17 Memory Mapped I/O와 Isolated I/O

4 x 3 SRAM 구조(중요) 21 D 2 D 1 D 0 CS 0

4 x 3 SRAM 구조(중요) 21 D 2 D 1 D 0 CS 0 D 2 0번지 CS 1 1번지 2 x 4 디코더 2번지 CS 2 3번지 CS 3 CS D 2 D 1 D 0

펌웨어 25 Firmware � Micro program stored in ROM � S/W firmware 속도 향상

펌웨어 25 Firmware � Micro program stored in ROM � S/W firmware 속도 향상 � H/W firmware 속도 저하

메모리 액세스 29 � Memory access

메모리 액세스 29 � Memory access

데이타 입출력 버스 타이밍 • instruction cycle • machine cycle • T cycle 30

데이타 입출력 버스 타이밍 • instruction cycle • machine cycle • T cycle 30

CPU와 주변 장치의 데이터 전송 31 I/O device access � Via I/O controller Status

CPU와 주변 장치의 데이터 전송 31 I/O device access � Via I/O controller Status register Data register

명령어 사이클(Instruction Cycle) 35 하나의 기계 명령어를 실행하는 과정 � Fetch instruction과 동시에 Increment

명령어 사이클(Instruction Cycle) 35 하나의 기계 명령어를 실행하는 과정 � Fetch instruction과 동시에 Increment PC � Decode Instruction � Execute instruction � Increment PC 프로그램 카운트 증가 데이터 인출 명령어 실행

Instruction fetch 36 t 0 t 1 Fetch Instruction CIR = IR t 2

Instruction fetch 36 t 0 t 1 Fetch Instruction CIR = IR t 2 Decode Instruction Execute Instruction

실행 사이클 37 � ADD AC [300] MAR <- 300 MBR <- [MAR] AC,

실행 사이클 37 � ADD AC [300] MAR <- 300 MBR <- [MAR] AC, MBR가 ALU로 전송 더하기

프로그램 38 Programming � Mnemonics Symbol Ex: ADD, LOAD, STORE

프로그램 38 Programming � Mnemonics Symbol Ex: ADD, LOAD, STORE

기계어 구성 39 � Machine language

기계어 구성 39 � Machine language