목록Computer/CS (54)
Machineboy空
만들 것HalfAdderFullAdderAdd16Inc16ALU기본 개념, 가산기(Adder)란?컴퓨터의 기본 요소.논리 대수에 따라서 동작하도록 반도체로 만든 논리 소자를 사용하여 구성한 회로.입력값에 의해 불대수(boolean algebra)의 값이 출력되는 논리회로.기억 능력은 가지지 않는다.반가산기(Half Adder)전가산기(Full Adder)2진수로 나타낸 수들을 1비트씩 합하여 그 결과로 1비트의 합과 1비트의 자리올림(carry)을 발생하는 회로자릿수가 많은 2진수의 덧셈에서 어떤 자리의 덧셈을 할 때,낮은 자리로부터의 올림수를 고려한 2진 1자리의 가산기.일정한 수의 비트로 나타낸 수의 가산은 불가능자리올림은 신호로 출력 이상은 지식백과 정의인데 무슨 말인지 잘 이해가 가지 않아서 강..
project 1에서 만든 chipset을 가지고 Adder를 만들 것이고, 다음으로는 ALU(Arithmetic Logic Unit)을 만들것이다.그리고 그걸로 CPU(Central Processing Unit)을 만들 것이다.Adder : chips designed to add numbersALU(Arithmetic Logic Unit) : designed to perform whole set of arithmetic and logical operations, computer's calculating brainCPU(Central Processing Unit) : ALU as the counterpiece chip Key Conceptbinary numbersbinary additiontwo's co..
1) Or8way/** * 8-way Or gate: * out = in[0] Or in[1] Or ... Or in[7] */CHIP Or8Way { IN in[8]; OUT out; PARTS: Or(a=in[0], b=in[1], out=or1); Or(a=in[2], b=in[3], out=or2); Or(a=in[4], b=in[5], out=or3); Or(a=in[6], b=in[7], out=or4); Or(a=or1, b=or2, out=or5); Or(a=or3, b=or4, out=or6); Or(a=or5, b=or6, out=out); }2) Mux4Way16/** * 4-way 16-bit multiplexor: * o..
https://nand2tetris-hdl.github.io/#mux16 HDL API & Gate Designin[16], load out[16]nand2tetris-hdl.github.io 기존 And, Not, Or,Mux 연산을 16bit로만 바꿔주면 된다.1)Not16/** * 16-bit Not gate: * for i = 0, ..., 15: * out[i] = Not(a[i]) */CHIP Not16 { IN in[16]; OUT out[16]; PARTS: Nand16(a= in[0..15], b= in[0..15], out= out);}2)And16/** * 16-bit And gate: * for i = 0, ..., 15: * out[i] = a[i] And b..
https://m.blog.naver.com/junb7/222792228046 논리게이트의 종류(AND, OR, NOT, NAND, NOR, XOR, XNOR)안녕하세요, 동반자 여러분. 이번 포스트는 다양한 논리게이트의 종류에 대해서 알아보시는 시간을 갖고자 ...blog.naver.com Elementary logic gates 1) Not/** * Not gate: * if (in) out = 0, else out = 1 */CHIP Not { IN in; OUT out; PARTS: Nand(a= in, b= in, out= out);} 2) And/** * And gate: * if (a and b) out = 1, else out = 0 */ CHIP And { I..
Key conceptsBoolean algebraBoolean functionsgate logicelementary logic gatesHardware Description Language(HDL)hardware simulation1.1 Boolean Logicthe reason that computer only have 0s and 1s is because that's what they can get away with.It's simplest to have only two possible values that you need to maintain.And that's going to be enough as we will see today.We're starting with actual, the compl..
0.0 강의 목표complete, general purpose working computer from the ground up. hardware and software.1. build the hardware of the computer, which we call Hack2. complete the picture and build the software hierarchy that sits on top of the computer컴퓨터가 어떻게 구성되는지를 살펴볼 것이다. 하드웨어부터 그 위에 쌓일 소프트웨어의 계층까지0.1 앞으로 나아갈 길보편적인 강의에서 하는 just prints Hello World on the screen.그리곤 어떤 줄이 어떤 명령을 내리고 하는 것을 배울텐데, There are ..
프로그래밍(Programming)을 배운다는 것은 컴퓨팅 사고력(Computing thinking)이라는 사고 체계를 배우는 것 Wing, Jeanette M(2006) 프로그래밍컴퓨터 프로그램을 이용하여 문제를 해결하는 것컴퓨터에게 일을 시킬 수 있는 방법론문제를 분석하고 해답을 도출해 가는 과정에서 컴퓨팅 사고력을 사용하는 것컴퓨팅 사고력은 이렇듯 우리를 둘러싼 현상을 주의 깊게 분석하여 컴퓨터와 협업을 해서 풀 만한 문제와 그렇지 않은 문제를 가려내는 작업부터 시작한다.분해(Decomposition)패턴인식(Pattern Recognition)/ 데이터 표현(Data Representation)일반화(Generalization) / 추상화(Abstraction)알고리즘(Algorithm)(ex) 퀴..
