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/ | 論理式 |
デジタル世界を築いた修士論文
- In 1937 a 21-year-old student, Claude Shannon, noticed that the on-off relays in telephone exchanges behaved exactly like the true-false algebra George Boole had written a century earlier.
- その修士論文は、いかなる論理式もスイッチの回路として構築でき、いかなるスイッチの回路も論理式として記述できることを示した。
- それ以降のすべてのプロセッサは、これらのスイッチの膨大な数が数種類の標準的なロジックゲートに配置されたものである。
- この授業は、その数少ないセットである:6つのゲート、そのシンボル、および真理表。

ロジックゲートとは
- ロジックゲートは1つのブール演算を実行する小型回路である。すべての入出力は0(false、低電圧)か1(true、高電圧)のいずれかである。
- 各ゲートについて、シンボル、言葉での機能、そして入力組み合わせごとの出力をリスト化した真理表の3つを理解している必要がある。
- このコースのすべてのゲートは2つの入力を持つが、NOTゲートのみ1つの入力を持つ。

6つのゲート:それぞれ形状があり、出力が反転する位置にバブルがある

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のとき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ゲートの機能的定义を述べる。
- マーク Scheme の記述:入力が異なる場合、または等価的にちょうど一つの入力が1の場合、出力は1である;両方の入力が同じ場合、出力は0である。
- NANDについて:出力が0になるのは両方の入力が1のときだけである。NORについて:出力が1になるのは両方の入力が0のときだけである。
- 「only when(~のときだけ)」や「at least one(少なくとも一つ)」がこれらの文脈で重要な役割を果たしている。これらを省略すると、別のゲートも定義されてしまう。
シンボルの読み方
- ANDは平らな背面と丸い前面を持ち、Dのような形状である。ORは湾曲した背面と尖った前面を持つ。XORはORに入力側に追加された湾曲した線がある。
- 出力側にある小さな円、すなわちバブルは「反転」を意味する。バブル付きのANDはNAND、バブル付きのORはNORである。
- NOTはバブル付きの三角形であり、入力が1つ、出力が1つである。

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.
論理式を書く
- 論理式とは、ゲートを言葉で書いたものであり:
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.
理解できましたか
- 一つのゲートは0と1の入力に対して一つのブール演算を行う;各シンボル、機能、真値表を理解しておくこと
- AND = 両方が1 · OR = 少なくとも一つ1 · NOT = 反転 · NAND = 両方が1のときだけ0 · NOR = 両方が0のときだけ1 · XOR = 入力が異なる
- シンボル上のバブルは出力を反転します;真値表は00, 01, 10, 11の順で並ぶ
- 一つの論理式は言葉を介して同じ関数を記述する:
X = A NAND B
何が問題でしたか?この内容はサイトの運営チームだけが確認します。