컴퓨터 구조

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 ..

주니어 개발자의 아카이브
'컴퓨터 구조' 태그의 글 목록