Logic gates
도입됨
22:37
컴퓨터 & 구성 요소
어떤 컴퓨터를 열어도 — 케이스를 벗겨내, 칩을 넘어, 실리콘에 이르기까지 — 스위치를 발견할 수 있습니다. 수천 개가 아니라, 수십억 개의 스위치입니다. 그리고 각각의 스위치는…
영어 내레이션 · 영어와 중국어 자막 전환 가능
이 수업의 내용
| English | 의미 |
|---|---|
| on-off relays | Switches that use electricity to open or close a circuit. |
| telephone exchanges | Centres that connect telephone calls between different telephone lines. |
| logical statement | A statement that has a value of either true or false. |
| circuit/ˈsɜːkɪt/ | A complete path through which electric current can flow. |
| switches | Devices that open or close a path for electricity. |
| AND/ænd/ | |
| processor/ˈprəʊsesə/ | The component that executes instructions and performs the operations of a computer or similar system. |
| truth table/truːθ ˈteɪbl/ | 진표 |
| logic gate/ˈlɒdʒɪk ɡeɪt/ | 논리 게이트 |
| Boolean/ˈbuːlɪən/ | 부울 |
| operation/ˌɒpəˈreɪʃn/ | An action that uses one or more inputs to produce an output. |
| low voltage | An electrical level used to represent 0 in a logic circuit. |
| high voltage | An electrical level used to represent 1 in a logic circuit. |
| function/ˈfʌŋkʃn/ | The rule that describes the output for each possible set of inputs. |
| bubble | A small circle on a gate symbol showing that the output is changed from 0 to 1 or from 1 to 0. |
| XOR/ˈeksɔː/ | |
| exclusive OR | |
| logic expression/ˈlɒdʒɪk ekˈspreʃn/ | 논리 식 |
디지털 세계를 구축한 학사 논문
- 1937에서 21살 학생 클로드 섀넌은 전화 교환소의 온오프 릴레이가 백년 전 조지 불이 쓴 참거짓 대수와 정확히 일치함을 발견했습니다.
- 그의 논문은 논리적 문장이 스위치 회로로 구성될 수 있으며, 모든 스위치 회로도 논리적 문장으로 서술될 수 있음을 보여주었습니다.
- Every processor made since is a very large number of those switches, arranged into a handful of standard logic gates.
- 이 수업은 그few개입니다: 여섯 개의 게이트, 기호, 그리고 진위표.

논리 게이트란 무엇인가
- 논리 게이트는 하나의 부울 연산을 수행하는 작은 회로입니다. 모든 입력과 출력은either 0(거짓, 저전압) 또는 1(참, 고전압)입니다.
- 각 게이트마다 알고 있어야 하는 세 가지 요소는: 기호, 기능(단어로 설명), 그리고 모든 입력 조합에 대한 출력을 나열한 진위표입니다.
- 이 과정의 모든 게이트는 NOT를 제외하고 두 개의 입력을 가집니다.

여섯 가지 게이트: 각각 모양과 출력 반전을 나타내는 버블이 하나씩 있습니다

Logic gates
output from the truth table
Toggle A and B through a gate and watch the truth table row light up.
NOT, AND, OR
- NOT는 단일 입력을 반전시킵니다: 0이 1이 되고 1이 0이 됩니다.
- AND는 두 입력이 모두 1일 때만 출력 1을 내보냅니다.
- OR는 최소 하나 이상의 입력이 1일 때 출력 1을 내보내므로, 두 입력이 모두 0일 때만 0입니다.
| A | B | A AND B | A OR B |
|---|---|---|---|
| 0 | 0 | 0 | 0 |
| 0 | 1 | 0 | 1 |
| 1 | 0 | 0 | 1 |
| 1 | 1 | 1 | 1 |
A NOT gate outputs 1 when its input is 0.
난이도 1/5 · 100코인 + 오늘 첫 완료 시 작은 보너스 추가
NOT inverts: 0 → 1 and 1 → 0.
An AND gate outputs 1 when:
난이도 1/5 · 100코인 + 오늘 첫 완료 시 작은 보너스 추가
AND outputs 1 only if every input is 1; otherwise 0.
An OR gate outputs 0 only when:
난이도 1/5 · 100코인 + 오늘 첫 완료 시 작은 보너스 추가
OR is 1 if at least one input is 1, so it is 0 only when every input is 0.
NAND, NOR, XOR
- NAND는 NOT AND입니다: 출력은 두 입력이 모두 1일 때만 0이며, 나머지는 1입니다.
- NOR는 NOT OR입니다: 출력은 두 입력이 모두 0일 때만 1입니다.
- XOR(배타적 OR, EOR라고도 표기)는 입력이 다를 때 출력 1을 내보내고, 같을 때 0을 내보냅니다.
| A | B | A NAND B | A NOR B | A XOR B |
|---|---|---|---|---|
| 0 | 0 | 1 | 1 | 0 |
| 0 | 1 | 1 | 0 | 1 |
| 1 | 0 | 1 | 0 | 1 |
| 1 | 1 | 0 | 0 | 0 |
A XOR gate outputs 1 when:
난이도 1/5 · 100코인 + 오늘 첫 완료 시 작은 보너스 추가
XOR (exclusive OR) is 1 when the inputs differ (0,1 or 1,0) and 0 when they are the same.
A NAND gate outputs 0 only when:
난이도 1/5 · 100코인 + 오늘 첫 완료 시 작은 보너스 추가
NAND = NOT AND, so it is 0 exactly when AND would be 1 (all inputs 1), and 1 otherwise.
A NOR gate with both inputs 0 outputs what value (0 or 1)?
난이도 1/5 · 100코인 + 오늘 첫 완료 시 작은 보너스 추가
NOR = NOT OR. OR of (0,0) is 0, so NOR is 1. NOR is 1 only when all inputs are 0.
이 카드는 내용이 수정되어 번역이 업데이트될 때까지 영어로 표시됩니다.
Worked example: building a truth table
- Task: construct the truth table 真值表 for a NOR gate.
- Write the input columns A and B and list every combination in binary counting order: 00, 01, 10, 11. Four rows, never three, never repeated.
- Apply the rule to each row. NOR is 1 only when both inputs are 0, so the output column reads 1, 0, 0, 0.
- Check that every input combination appears once and that its output is correct. Binary counting order makes this easier.

Put the rows of a two-input truth table in binary counting order.
난이도 3/5 · 200코인 + 오늘 첫 완료 시 작은 보너스 추가
Binary counting order: 00, 01, 10, 11. The output column is then compared with the mark scheme row by row.
worked example: 문장으로 게이트 정의하기
- 과업: XOR 게이트의 기능을 정의하십시오.
- 정답 기준 설명: 입력이 서로 다를 때 출력이 1이며, 이는 정확히 하나의 입력이 1일 때와 동일합니다. 두 입력이 동일할 때 출력은 0입니다.
- NAND 게이트의 경우:출력은 두 입력이 모두 1인 경우에만 0입니다. NOR 게이트의 경우:출력은 두 입력이 모두 0인 경우에만 1입니다.
- 이 문장에서 '단 한 번만(only when)'과 '최소 하나(at least one)'가 핵심 역할을 합니다. 이를 빼버리면 다른 게이트를 설명하는 정의가 되어 버립니다.
기호 읽기
- AND 게이트는 평평한 뒷면과 둥근 앞면을 가지고 있어 D 글자 같습니다. OR 게이트는 굽은 뒷면과 뾰족한 앞면을 가집니다. XOR 게이트는 OR 게이트에 입력 부분에 추가된 곡선이 하나 더 있는 형태입니다.
- 출력 끝에 있는 작은 원형, 즉 버블(bubble) 은 '반전(invert)'을 의미합니다. AND 게이트에 버블이 있으면 NAND이고, OR 게이트에 버블이 있으면 NOR입니다.
- NOT 게이트는 버블이 달린 삼각형으로, 입력이 하나이고 출력이 하나입니다.

AND는 평평한 뒷면, OR은 굽은 뒷면, XOR은 추가된 선, NOT은 버블

Match each description of a symbol to its gate.
난이도 2/5 · 140코인 + 오늘 첫 완료 시 작은 보너스 추가
The back of the shape says AND or OR; the extra line says exclusive; the bubble says inverted.
출력 열에서 게이트 식별하기
- 진리표의 00 행부터 11 행까지 출력 열을 아래로 읽으십시오.
- 0 0 0 1은 AND입니다. 0 1 1 1은 OR입니다. 0 1 1 0은 XOR입니다.
- 1 1 1 0은 NAND입니다. 1 0 0 0은 NOR입니다. 반전 게이트는 상대 게이트가 0으로 시작하는 위치에서 1로 시작합니다.

For inputs A = 0 and B = 1, which gates output 1? Select 모든 that apply.
난이도 2/5 · 140코인 + 오늘 첫 완료 시 작은 보너스 추가
One input is 1, so OR and XOR give 1; both are not 1, so AND gives 0 and NAND gives 1; both are not 0, so NOR gives 0.
논리 식 작성하기
- 논리 식(logic expression) 은 게이트를 글자로 표현한 것입니다:
X = A AND B,X = A OR B,X = NOT A,X = A NAND B,X = A NOR B,X = A XOR B. - 괄호는 게이트가 연결되었을 때 어떤 연산이 먼저 수행되는지를 나타냅니다:
X = (A AND B) OR C. - 논리 식, 진리표, 회로는 하나의 기능을 보여주는 세 가지 관점입니다. 다음 수업에서는 게이트를 회로로 연결하고 이 세 가지 사이를 오가는 법을 배웁니다.

A circuit outputs 1 only when both of its inputs are 1. Which logic expression describes it?
난이도 1/5 · 100코인 + 오늘 첫 완료 시 작은 보너스 추가
"Only when both" is the AND definition. NAND is its inverse, OR needs only one input, XOR needs them to differ.
이 카드는 내용이 수정되어 번역이 업데이트될 때까지 영어로 표시됩니다.
Marks that slip away
- XOR is not OR. For inputs 1 and 1, OR gives 1 and XOR gives 0.
- NAND is NOT (A AND B), not (NOT A) AND B. The bubble 反相小圆圈 is on the output.
- List every input combination once, with its correct output. Binary counting order 00, 01, 10, 11 makes the table easy to check.
- A NOT gate has one input. Every other gate in this course has exactly two.
이해했습니다
- 게이트(gate) 는 0과 1 입력에 대해 하나의 부울 연산을 수행하며, 각 기호, 기능, 진리표를 알고 있어야 합니다.
- AND = 둘 다 1 · OR = 최소 하나 1 · NOT = 반전 · NAND = 둘 다 1일 때만 0 · NOR = 둘 다 0일 때만 1 · XOR = 입력이 다름
- 기호의 버블은 출력을 반전하며, 진리표는 00, 01, 10, 11 순서로 진행됩니다.
- 논리 식은 같은 기능을 글로 표현합니다:
X = A NAND B
어떤 문제가 있었나요? 사이트 팀만 이 내용을 볼 수 있습니다.