Computer Science/Computer Architecture

Computer Science/Computer Architecture

[Computer Organization & Design] The Processor - 2

https://kangcoder.tistory.com/entry/Computer-Organization-Design-The-Processor-1 [Computer Organization & Design] The Processor - 1 Building a Datapath Datapath: CPU에서 데이터와 주소를 처리하는 요소 (register, ALU, MUX 등) Instruction Fetch 모든 Instruction을 처리하기 위한 첫 단계 - PC(Program Counter): 다음 실행할 명령어의 주소를 저장하고 kangcoder.tistory.com Control Unit - Instruction의 상위 6bits인 opcode를 입력으로 받아 명령어에 맞는 signal을 보내 data..

Computer Science/Computer Architecture

[Computer Organization & Design] The Processor - 1

Building a Datapath Datapath: CPU에서 데이터와 주소를 처리하는 요소 (register, ALU, MUX 등) Instruction Fetch 모든 Instruction을 처리하기 위한 첫 단계 - PC(Program Counter): 다음 실행할 명령어의 주소를 저장하고 있는 register. - IM(Instruction Memory): PC로부터 받은 주소에 맞는 Instruction을 내보낸다. - Add(Adder): 다음 명령어의 주소를 가리키기 위해 있다. MIPS는 Instruction의 단위가 word(4byte)이기 때문에 PC + 4를 한다. Decoding Inst. Fetch해온 Instruction을 해석하는 단계 - 명령어의 opcode와 functio..

Computer Science/Computer Architecture

[Computer Organization & Design] Arithmetic for Computers - 1

Integer Addition & Subtraction 컴퓨터에서의 정수형 덧셈 - 결과가 표현 가능한 범위를 벗어나면 Overflow가 일어난다. - 양 + 음의 덧셈에서는 Overflow가 일어나지 않는다. - 양 + 양의 덧셈에서 Overflow가 일어날 수 있다. (MSB가 1로 carry되면서 음수화 발생) - 음 + 음의 덧셈에서 Underflow가 일어날 수 있다. (MSB가 1->0으로 되면서 양수화 발생) 컴퓨터에서의 정수형 뺄셈 - 정수형 뺄셈은 빼지는 수를 음수(2의 보수 + 1)로 만들고 덧셈을 진행하면 된다. - 양 - 음의 뺄셈에서 Overflow가 발생할 수 있고, 음 - 양의 뺄셈에서 Underflow가 발생할 수 있다. Dealing with Overflow 몇몇 언어에서는..

Computer Science/Computer Architecture

[Computer Organization & Design] Instructions: Language of the Computer - Part 3

https://kangcoder.tistory.com/entry/Computer-Organization-Design-Instructions-Language-of-the-Computer-Part-2 [Computer Organization & Design] Instructions: Language of the Computer - Part 2 https://kangcoder.tistory.com/entry/Computer-Organization-Design-Instructions-Language-of-the-Computer-Part-1 [Computer Organization & Design] Instructions: Language of the Computer - Part 1 Instruction Set ..

Computer Science/Computer Architecture

[Computer Organization & Design] Instructions: Language of the Computer - Part 2

https://kangcoder.tistory.com/entry/Computer-Organization-Design-Instructions-Language-of-the-Computer-Part-1 [Computer Organization & Design] Instructions: Language of the Computer - Part 1 Instruction Set 컴퓨터에서 사용되는 명령어들의 집합 - 서로 다른 컴퓨터는 서로 다른 Instruction Set을 가진다 (대부분 유사한 특징을 가지고 있긴 하다) - 초기 컴퓨터는 아주 단순한 IS를 가졌지만, kangcoder.tistory.com MIPS의 여러 Instructions에 대해 살펴보자. Logical Operations AND Ope..

Computer Science/Computer Architecture

[Computer Organization & Design] Instructions: Language of the Computer - Part 1

Instruction Set 컴퓨터에서 사용되는 명령어들의 집합 - 서로 다른 컴퓨터는 서로 다른 Instruction Set을 가진다 (대부분 유사한 특징을 가지고 있긴 하다) - 초기 컴퓨터는 아주 단순한 IS를 가졌지만, 시간이 갈수록 반도체는 발달했지만 메모리는 덜 발달하여 하나의 명령어가 많은 일을 할 수 있도록 점점 IS가 복잡해짐 (CISC) - 많은 현대의 컴퓨터들은 간단한 명령어를 더 많이 씀 -> 하드웨어 구현을 심플하게 하고, 복잡한 명령어는 소프트웨어에게 맡기자 (RISC) Arithmetic Operations 산술 연산 명령어 (Add and Subtract) 2개의 source, 1개의 destination 3개의 operand를 가진다 -> add a, b, c의 꼴 (a =..

Computer Science/Computer Architecture

[Computer Organization & Design] Computer Abstractions & Technology - Part 3

https://kangcoder.tistory.com/entry/Computer-Organization-Design-Computer-Abstractions-Technology-Part-2 [Computer Organization & Design] Computer Abstractions & Technology - Part 2 https://kangcoder.tistory.com/10 [Computer Organization & Design] Computer Abstractions & Technology - Part 1 Computer Organization and Design MIPS Edition | David A. (Pardee Professor of Computer Science, Emeritus, ..

Computer Science/Computer Architecture

[Computer Organization & Design] Computer Abstractions & Technology - Part 2

https://kangcoder.tistory.com/10 [Computer Organization & Design] Computer Abstractions & Technology - Part 1 Computer Organization and Design MIPS Edition | David A. (Pardee Professor of Computer Science, Emeritus, University of Californ Computer Organization and Design MIPS Edition | The fifth edition of Computer Organization and Design-winner of a 2014 Textbook kangcoder.tistory.com Performan..

주니어 개발자의 아카이브
'Computer Science/Computer Architecture' 카테고리의 글 목록