Chapterبەش 6 · Lectureوانە 6.1

Logic Gates, Truth Tables and the NOT Gateگەیتە لۆجیکییەکان، خشتەکانی ڕاستی و گەیتی NOT

What a logic gate is and why the same inputs always give the same output; the gate family (basic, universal and other gates); truth tables with 2n2^n rows and a printable 16-row template; the two symbol styles (distinctive shapes and IEC rectangles); the NOT gate or inverter with its switch model, truth table, notation and timing diagram; and the real 74HC chips that hold the gates, with their power, delay and fan-out.

چییە و بۆچی هەمان هەمیشە هەمان دەدەن؛ خێزانی (، و ئەوانی تر)؛ بە 2n2^n ڕیز و قاڵبێکی شانزە ڕیزی بۆ چاپکردن؛ دوو شێوازی (شێوەی تایبەت و لاکێشەی IEC)؛ یان پێچەوانەکەر بە نموونەی ، ، نووسینەکەی و ؛ و ⁦74HC⁩ کە هەڵدەگرن، لەگەڵ وزە، دواکەوتن و ⁦fan-out⁩ـیان.

15 min read15 خولەک خوێندنەوە · 15 stepsهەنگاو

What you will learnچی فێر دەبیت

  • Explain what a logic gate and a combinational circuit are, and name the basic, universal and other gates.
  • Build a truth table with 2n2^n rows for a gate with n inputs.
  • Recognise gates in both symbol styles: distinctive shapes and IEC rectangles.
  • Describe the NOT gate with its switch model, truth table, expression X=A‾X = \overline{A} and timing diagram.
  • Say how gates are sold as real chips (74HC00, 04, 08, 32 …) and how they are powered.
  • ڕوونی بکەیتەوە و چین و ، و ئەوانی تر ناو ببەیت.
  • بە 2n2^n ڕیز بۆ بە n دروست بکەیت.
  • لە هەردوو شێوازی بناسیتەوە: شێوە تایبەتەکان و لاکێشەکانی IEC.
  • وەسف بکەیت بە نموونەی ، ، دەربڕینی X=A‾X = \overline{A} و .
  • بڵێیت چۆن وەک ڕاستەقینە دەفرۆشرێن (⁦74HC00⁩، ⁦04⁩، ⁦08⁩، ⁦32⁩ …) و چۆن وزەیان پێ دەدرێت.

What is a logic gate?گەیتی لۆجیکی چییە؟

Every digital machine — a calculator, a phone, a computer — is built from small circuits that take some (0s and 1s) and produce . In a the outputs depend only on the inputs at this moment: whenever the same set of inputs is fed in, the same outputs come out. It has no memory of what happened before.

هەموو ئامێرێکی — ، مۆبایل، — لە بچووک دروست کراوە کە هەندێک (⁦0⁩ و ⁦1⁩) وەردەگرن و دەدەن. لە تەنها بەندن بە ئەم ساتە: هەر کاتێک هەمان کۆمەڵە بدرێت، هەمان دێنە دەرەوە. هیچ ئەوەی پێشتر ڕوویداوە نییە.

Three inputs A = 1, B = 0 and C = 1 go into a box labelled logic gates (no memory). One output X = 1 comes out. A note says that the same inputs always give the same output.سێ نێوخستە: A = 1، B = 0 و C = 1 دەچنە ناو سندووقێکەوە کە لەسەری نووسراوە گەیتە لۆجیکییەکان (بێ بیرگە). یەک دەرخستە: X = 1 دێتە دەرەوە. تێبینییەک دەڵێت هەمان نێوخستەکان هەمیشە هەمان دەرخستە دەدەن.
A combinational circuit: inputs in, an answer out — the same answer every time.: دەچنە ژوورەوە و وەڵامێک دێتە دەرەوە — هەموو جارێک هەمان وەڵام.CêIT
The exam-hall doorkeeperدەرگاوانی هۆڵی تاقیکردنەوە

Think of the doorkeeper at an exam hall. He checks a few yes/no facts (Do you have your student card? Is your name on the list?) and gives one answer: you may enter, or not. He follows a fixed rule, so two students with the same facts get the same answer.

بیر لە دەرگاوانی هۆڵی تاقیکردنەوە بکەرەوە. چەند ڕاستییەکی بەڵێ/نەخێر دەپشکنێت (ناسنامەی قوتابیت پێیە؟ ناوت لە لیستەکەدایە؟) و یەک وەڵام دەدات: دەتوانیت بچیتە ژوورەوە یان نا. یاسایەکی جێگیر پەیڕەو دەکات، بۆیە دوو قوتابی بە هەمان ڕاستییەکان هەمان وەڵام وەردەگرن.

Where the analogy stops workingسنووری ئەم نموونەیە

A person can change his mind or remember yesterday. A combinational gate has no memory, never changes its rule and decides in a few billionths of a second.

مرۆڤ دەتوانێت بیروڕای بگۆڕێت یان دوێنێی لەبیر بێت. تێکەڵەیی هیچ نییە، هەرگیز یاساکەی ناگۆڕێت و لە چەند بەشێکی ملیارێکی چرکەیەکدا بڕیار دەدات.

Quick checkپشکنینی خێراWhich sentence is true for every combinational circuit?کام ڕستە بۆ هەموو ڕاستە؟

What is a logic gate?گەیتی لۆجیکی چییە؟

A gate: one decision, one outputگەیتی لۆجیکی: یەک بڕیار، یەک دەرخستە

The simplest combinational circuits are called . A logic gate is an electronic circuit that makes one logical decision. The course author's report describes gates as devices made of connected transistors that give a 0 or a 1 according to the inputs they receive, and notes that every electronic system works with them. That is why digital systems are said to be built from logic gates.

سادەترین پێیان دەوترێت . ئەلیکترۆنییە کە یەک بڕیاری لۆجیکی دەدات. ڕاپۆرتی خاوەنی کۆرسەکە وەک ئامێر یان وەسف دەکات کە لە کۆمەڵێک پێکەوە بەستراو پێکهاتوون و بەپێی 0 یان 1 دەدەن. هەروەها دەڵێت هەرچی سیستەمی ئەلیکترۆنییە بەم کار دەکات. بۆیە دەوترێت سیستەمە لە دروست کراون.

Definitionپێناسە

A small electronic circuit that takes one or more binary inputs and gives one binary output by a fixed rule. NOT, AND and OR are the basic gates, and every digital circuit is built from gates.

سووڕێکی ئەلیکترۆنیی بچووکە کە یەک یان چەند وەردەگرێت و بەپێی یاسایەکی جێگیر یەک دەدات. NOT، AND و OR گەیتە بنەڕەتییەکانن و هەموو سووڕێکی لە گەیت دروست دەکرێت.

Quick checkپشکنینی خێراHow many outputs does one logic gate have?یەک چەند هەیە؟

What is a logic gate?گەیتی لۆجیکی چییە؟

The gate familyخێزانی گەیتەکان

  • Basic gates: AND, OR and NOT. Every other gate can be described with these three.
  • Universal gates: NAND and NOR. Any logic circuit at all can be built from NAND gates alone, or from NOR gates alone — the lesson NAND and NOR shows how.
  • Other gates: XOR (also written EXOR) and XNOR (EXNOR).
  • : AND، OR و NOT. هەموو تر دەتوانرێت بەم سێیانە وەسف بکرێت.
  • : NAND و NOR. هەر دەتوانرێت تەنها بە یان تەنها بە دروست بکرێت — وانەی NAND و NOR پیشانی دەدات چۆن.
  • تر: XOR (کە EXORـیشی پێ دەنووسرێت) و XNOR ⁦(EXNOR)⁩.

In this chapter you will learn to recognise each gate by its shape (AND, OR, NAND, NOR, NOT, XOR, XNOR, and the negative-OR and negative-AND forms), describe how it works, write its truth table for any number of inputs, draw its timing diagram for any input waveforms, and write its logic expression.

لەم بەشەدا فێر دەبیت هەر لە شێوەکەیەوە بناسیتەوە (AND، OR، NAND، NOR، NOT، XOR، XNOR و شێوەکانی ⁦Negative-OR⁩ و ⁦Negative-AND⁩)، شێوازی کارکردنی وەسف بکەیت، بۆ هەر ژمارەیەک بنووسیت، بۆ هەر بکێشیت و بنووسیت.

Quick checkپشکنینی خێراWhich two gates are called universal gates?کام دوو پێیان دەوترێت ؟

Truth tablesخشتەکانی ڕاستی

A lists every possible combination of the inputs and the output for each one. It works like a map of how a gate behaves. It has one column for each input — usually named A, B, C … or x and y — and one more column for the output.

هەموو تێکەڵەیەکی گونجاوی و بۆ هەر یەکێکیان ڕیز دەکات. وەک نەخشەیەک یان پلانێک وایە بۆ زانینی شێوازی کارکردنی . بۆ هەر ستوونێکی هەیە — بە زۆری بە A، B، C … یان x و y ناو دەنرێن — و ستوونێکی تر بۆ .

Each input can be 0 or 1, so every new input doubles the number of rows: a gate with n inputs needs N=2nN = 2^n rows (21=22^1 = 2, 22=42^2 = 4, 23=82^3 = 8, 24=162^4 = 16). To be sure no row is missing, write the input columns by counting in binary from 00…0 up to 11…1.

هەر دەتوانێت 0 یان 1 بێت، بۆیە هەر نوێ ژمارەی ڕیزەکان دوو هێندە دەکات: بە n پێویستی بە N=2nN = 2^n ڕیز هەیە (21=22^1 = 2، 22=42^2 = 4، 23=82^3 = 8، 24=162^4 = 16). بۆ ئەوەی دڵنیا بیت هیچ ڕیزێک نەماوە، ستوونەکانی بە ژماردن بە لە ⁦00⁩…0 تا ⁦11⁩…1 بنووسە.

The 8 input rows of any 3-input gate (count 0 to 7 in binary)8 ڕیزی بۆ هەر سێ (لە 0 تا 7 بە بژمێرە)
ABCX
000?
001?
010?
011?
100?
101?
110?
111?

The output column is what makes each gate different. The next screens fill it in for NOT, and the next lessons for AND and OR.

ستوونی ئەوەیە کە هەر جیاواز دەکات. پەڕەکانی داهاتوو بۆ NOT پڕی دەکەنەوە و وانەکانی دواتر بۆ AND و OR.

Quick checkپشکنینی خێراHow many rows does the truth table of a 4-input gate have? چوار چەند ڕیزی هەیە؟

Truth tablesخشتەکانی ڕاستی

A 16-row table for lab workخشتەیەکی ڕاستی بە شانزە ڕیز بۆ تاقیگە

With four inputs you need 24=162^4 = 16 rows. The course's lab template saves you the counting: a Dec column numbers the rows 0 to 15, the four input columns already hold those numbers in binary, and two output columns are left empty for you to fill in.

بە چوار پێویستت بە 24=162^4 = 16 ڕیز هەیە. قاڵبی تاقیگەی کۆرسەکە ژماردنەکەت لەسەر کەم دەکاتەوە: ستوونی Dec () ڕیزەکان لە 0 تا ⁦15⁩ ژمارە دەکات، چوار ستوونەکەی هەمان ژمارەکانیان بە تێدایە و دوو ستوونی بەتاڵ ماونەتەوە بۆ ئەوەی خۆت پڕیان بکەیتەوە.

A blank truth-table template in two halves. Columns: Dec, inputs A, B, C, D and empty outputs X and Y. Rows 0 to 7 on the left and 8 to 15 on the right; each row's inputs are its number in binary, for example row 11 is 1011.قاڵبێکی بەتاڵی خشتەی ڕاستی لە دوو نیوەدا. ستوونەکان: Dec، نێوخستەکان A، B، C، D و دەرخستەکان بەتاڵی X و Y. ڕیزەکانی 0 تا 7 لە چەپ و 8 تا 15 لە ڕاست؛ نێوخستەکان هەر ڕیزێک ژمارەی ڕیزەکەیە بە دووانی، بۆ نموونە ڕیزی 11 = 1011.
The course's 4-input lab template, redrawn. Print it and use it for any gate or circuit with up to four inputs.قاڵبە چوار تاقیگەی کۆرسەکە، دووبارە کێشراوە. چاپی بکە و بۆ هەر یان تا چوار بەکاری بهێنە.CêIT

The decimal row number is more than a label. Later you will call it the row's minterm number: row 11 is the row where ABCD=1011ABCD = 1011 (see minterms).

ژمارە ڕیزەکە تەنها ناونیشانێک نییە. دواتر پێی دەڵێیت ژمارەی ئەو ڕیزە: ڕیزی ⁦11⁩ ئەو ڕیزەیە کە ABCD=1011ABCD = 1011ـە (بڕوانە مینتێرمەکان).

Quick checkپشکنینی خێراIn the 16-row template, which inputs ABCD stand in row 6?لە قاڵبە شانزە ڕیزییەکەدا، ABCD لە ڕیزی 6ـدا چین؟

Two ways to draw gatesدوو ڕێگا بۆ کێشانی گەیتەکان

Each gate has a distinctive shape (standard ANSI/IEEE 91). This is the style used in this course and in most textbooks. Europe and many data sheets also use the rectangular IEC 60617 style: every gate is a box, and a mark inside it says what the gate does:

هەر شێوەیەکی تایبەتی هەیە (ستانداردی ⁦ANSI/IEEE 91⁩). ئەمە ئەو شێوازەیە کە لەم کۆرسەدا و لە زۆربەی کتێبەکاندا بەکار دێت. ئەوروپا و زۆر پەڕەی زانیاریی شێوازی لاکێشەیی ⁦IEC 60617⁩یش بەکار دەهێنن: هەر سندووقێکە و نیشانەیەک لە ناویدا دەڵێت چی دەکات:

  • & — AND: all inputs must be 1.
  • ≥1\geq 1 — OR: at least one input is 1.
  • 1 — one input passed straight through; with a bubble on the output it is NOT.
  • =1 — XOR: exactly one input is 1.
  • & — AND: هەموو دەبێت 1 بن.
  • ≥1\geq 1 — OR: لانیکەم یەک 1ـە.
  • 1 — یەک ڕاستەوخۆ دەگوازرێتەوە؛ بە لەسەر دەبێتە NOT.
  • =1 — XOR: تەنها یەک 1ـە.
A chart with three columns: gate name, distinctive shape and rectangular IEC shape, for NOT (triangle with a bubble; box marked 1 with a bubble), AND (D shape; box marked &), OR (curved shield; box marked at least 1), NAND and NOR (the same with a bubble on the output), XOR (OR shape with an extra curved line at the back; box marked =1) and XNOR (XOR with a bubble).خشتەیەک بە سێ ستوون: ناوی گەیت، شێوەی تایبەت و شێوەی لاکێشەیی IEC، بۆ NOT (سێگۆشە بە بازنەیەکی بچووک؛ سندووقی 1 بە بازنە)، AND (شێوەی D؛ سندووقی &)، OR (قەڵغانی کەوانەیی؛ سندووقی «لانیکەم 1»)، NAND و NOR (هەمان شت بە بازنەیەک لەسەر دەرخستە)، XOR (شێوەی OR بە هێڵێکی کەوانەیی زیادە لە دواوە؛ سندووقی =1) و XNOR (XOR بە بازنە).
The seven common gates in both styles. This course draws the distinctive shapes.حەوت باوەکە لە هەردوو شێوازەکەدا. ئەم کۆرسە شێوە تایبەتەکان دەکێشێت.CêIT

In both styles a small circle — a — means NOT: the signal is inverted at that point. That is the only difference between AND and NAND, or between OR and NOR.

لە هەردوو شێوازەکەدا بازنەیەکی بچووک — — واتە NOT: لەو شوێنەدا پێچەوانە دەکرێتەوە. ئەمە تاکە جیاوازیی نێوان AND و NAND، یان نێوان OR و NORـە.

Quick checkپشکنینی خێراA rectangular symbol is marked &. Which gate is it? لاکێشەیی نیشانەی &ـی لەسەرە. کام ؟

The NOT gate (inverter)گەیتی NOT (پێچەوانەکەر)

Definitionپێناسە

A gate with one input that gives the opposite value: input 0 gives 1 and input 1 gives 0. It is also called an inverter; NOT A is written A‾\overline{A} or A′A'.

کە یەک هەیە و نرخی پێچەوانە دەدات: 0 دەکاتە 1 و 1 دەکاتە 0. پێی دەگوترێت پێچەوانەکەر؛ ⁦NOT A⁩ بە A‾\overline{A} یان A′A' دەنووسرێت.

The NOT operation turns a statement from TRUE to FALSE and from FALSE to TRUE: it inverts it. The NOT gate does this to a signal. It has a single input: when the input is 0 the output is 1, and when the input is 1 the output is 0. That is why it is also called an inverter — the course author's homework puts it simply: the NOT gate inverts the value, so it is called “Inverter”.

NOT ڕستەیەک لە ڕاستەوە دەکات بە هەڵە و لە هەڵەوە دەکات بە ڕاست: پێچەوانەی دەکاتەوە. ئەمە بە دەکات. تەنها یەک هەیە: کاتێک 0 بێت 1ـە و کاتێک 1 بێت 0ـە. بۆیە پێی دەوترێت پێچەوانەکەر — هەروەک ئەرکی ماڵەوەی خاوەنی کۆرسەکە دەڵێت: « نرخەکە پێچەوانە دەکات بۆیە پێیشی وتراوە (Inverter: پێچەوانەکەر)».

If the input is called A, the output is called NOT A and is written A‾\overline{A} (A with a bar) or A′A'. So the logic expression of the gate is X=A‾X = \overline{A}. Its symbol is a triangle with a small bubble at the tip: the triangle means “pass the signal on” and the bubble means “invert it”.

ئەگەر ناوی A بێت، ناوی ⁦NOT A⁩ـیە و بە A‾\overline{A} (A بە هێڵێک لەسەری) یان A′A' دەنووسرێت. کەواتە X=A‾X = \overline{A}ـە. سێگۆشەیەکە بە لە نووکەکەیدا: سێگۆشەکە واتە « بگوازەرەوە» و بازنەکە واتە «پێچەوانەی بکەرەوە».

Truth table of the NOT gate
AAX=A‾X = \overline{A}
01
10
Quick checkپشکنینی خێراThe input of a NOT gate is 1. What is the output? 1ـە. چییە؟

The NOT gate (inverter)گەیتی NOT (پێچەوانەکەر)

A switch model of NOTنموونەی سویچی NOT

You can build a NOT with a battery, a resistor R, a lamp and one switch A connected across the lamp (side by side with it). Let switch open = 0 and closed = 1, lamp ON = 1 and OFF = 0. When A is open (0), the current goes through the lamp, so it is ON (1). When A is closed (1), the current takes the easy path through the switch and the lamp gets none, so it is OFF (0). The lamp always shows A‾\overline{A}. The resistor stops the battery from being short-circuited when the switch is closed.

دەتوانیت NOT دروست بکەیت بە پاترییەک، ⁦(R)⁩، گڵۆپێک و یەک A کە بە تەنیشت گڵۆپەکەوە بەستراوە. با کراوە = 0 و داخراو = 1 بێت، گڵۆپی هەڵکراو = 1 و کوژاوە = 0. کاتێک A کراوەیە ⁦(0)⁩، تەزووەکە بە گڵۆپەکەدا دەڕوات، بۆیە هەڵکراوە ⁦(1)⁩. کاتێک A داخراوە ⁦(1)⁩، تەزووەکە ڕێگا ئاسانەکەی ناو دەگرێت و هیچ بە گڵۆپەکە ناگات، بۆیە کوژاوەیە ⁦(0)⁩. گڵۆپەکە هەمیشە A‾\overline{A} پیشان دەدات. ڕێگە دەگرێت لەوەی پاترییەکە کاتێک داخراوە ڕاستەوخۆ کورت ببەسترێتەوە.

Animation of the NOT switch circuit: a battery, a resistor R, a lamp and a switch A in parallel with the lamp. With A open (0) the lamp is lit and the NOT gate beside it shows input 0 and output 1. With A closed (1) the current bypasses the lamp, which goes dark, and the gate shows input 1 and output 0. The matching row of the truth table lights up each time.
Animation of the NOT switch circuit: a battery, a resistor R, a lamp and a switch A in parallel with the lamp. With A open (0) the lamp is lit and the NOT gate beside it shows input 0 and output 1. With A closed (1) the current bypasses the lamp, which goes dark, and the gate shows input 1 and output 0. The matching row of the truth table lights up each time.
The lamp always does the opposite of the switch: the lamp shows A‾\overline{A}.گڵۆپەکە هەمیشە پێچەوانەی دەکات: گڵۆپەکە A‾\overline{A} پیشان دەدات.CêIT
The fridge lightگڵۆپی سەلاجە

A fridge light works like an inverter. When the door is closed it presses a small switch (1) and the light is off (0). Open the door, the switch is released (0) and the light comes on (1).

گڵۆپی سەلاجە وەک پێچەوانەکەر کار دەکات. کاتێک دەرگاکە داخراوە بچووک دادەگرێت ⁦(1)⁩ و گڵۆپەکە کوژاوەیە ⁦(0)⁩. دەرگاکە بکەرەوە، بەر دەبێتەوە ⁦(0)⁩ و گڵۆپەکە هەڵدەبێت ⁦(1)⁩.

Where the analogy stops workingسنووری ئەم نموونەیە

The fridge switch is a mechanical part pressed by a door. A real NOT gate is made of transistors, switches billions of times faster, and its output can feed the inputs of other gates.

سەلاجە پارچەیەکی میکانیکییە کە دەرگا دایدەگرێت. ڕاستەقینە لە دروست کراوە، ملیارەها جار خێراتر دەگۆڕێت و دەتوانێت ببێتە تر.

Quick checkپشکنینی خێراIn the switch model of NOT, what happens to the lamp when switch A is closed?لە نموونەی NOTـدا، کاتێک A داخراوە چی بە گڵۆپەکە دەبێت؟

Boolean Logic & Logic Gates: Crash Course Computer Science #3CrashCourse · Englishئینگلیزی · 3.4M viewsبینین · 65K likesلایک · Partبەشی 2:27–4:44 (ofلە 10:07)

How transistors make NOT and AND gates: an inverter flips its input; two transistors in series give 1 only when both inputs are 1.

دروستکردنی NOT و AND لە : پێچەوانەکەر پێچەوانە دەکاتەوە؛ دوو بە تەنها کاتێک 1 دەدەن کە هەردوو 1 بن.

2:27-4:44: an inverter built from one transistor used as a switch: when the input is on, the current bypasses the output, so the output is off.

لە ⁦2:27⁩ تا ⁦4:44⁩: پێچەوانەکەرێک لە یەک کە وەک بەکار دێت: کاتێک هەڵکراوە، بە ڕێگایەکی تردا دەڕوات و بە ناچێت، بۆیە دەکوژێتەوە.

The NOT gate (inverter)گەیتی NOT (پێچەوانەکەر)

NOT in a timing diagramNOT لە هێڵکاریی کاتبەندیدا

A timing diagram draws signals over time, one under another. For a NOT gate the output is simply the input turned upside down. If the input pulse goes HIGH (1) at time t1 and back LOW (0) at t2, the output goes LOW at t1 and back HIGH at t2 — at every moment it is the opposite of the input.

هێڵکاریی کاتبەندی بە درێژایی کات لەژێر یەکتری دەکێشێت. بۆ ، تەنها کە سەرەوژێر کراوە. ئەگەر لە کاتی ⁦t1⁩ بچێتە ⁦HIGH (1)⁩ و لە ⁦t2⁩ بگەڕێتەوە ⁦LOW (0)⁩، لە ⁦t1⁩ دەچێتە LOW و لە ⁦t2⁩ دەگەڕێتەوە HIGH — لە هەموو ساتێکدا پێچەوانەی .

Timing diagram over six intervals t1 to t6. Input A is 0, 1, 1, 0, 1, 0. Output X = NOT A is 1, 0, 0, 1, 0, 1: it is LOW wherever A is HIGH and HIGH wherever A is LOW.هێڵکاریی کاتبەندی لە شەش ماوەدا، t1 تا t6. نێوخستە A: 0، 1، 1، 0، 1، 0. دەرخستە X = NOT A: 1، 0، 0، 1، 0، 1: هەر کاتێک A HIGH بێت LOWـە و هەر کاتێک A LOW بێت HIGHـە.
The output of a NOT gate is the mirror image of its input. وێنەی ئاوێنەیی .CêIT

Two inverters in a row cancel out: the second one undoes the first, so A‾‾=A\overline{\overline{A}} = A. You will meet this again as rule 9 of Boolean algebra, and the statistics course shows the same NOT law.

دوو پێچەوانەکەر بە دوای یەکدا یەکتر پووچ دەکەنەوە: دووەمیان کاری یەکەمیان هەڵدەوەشێنێتەوە، بۆیە A‾‾=A\overline{\overline{A}} = A. دواتر وەک یاسای 9ی جەبری بوول دووبارە دەیبینیتەوە. کۆرسی ئامار هەمان یاسای NOT پیشان دەدات.

Quick checkپشکنینی خێراThe input of a NOT gate over four intervals is 1, 1, 0, 1. What is the output? لە چوار ماوەدا 1، 1، 0، 1ـە. چییە؟

Gates are real chipsگەیتەکان چیپی ڕاستەقینەن

A gate is not just a drawing. Inside, it is a few working as electronic switches; a CMOS inverter needs only two. Gates are sold as small integrated circuits (). The best-known family is the 7400 series, started by Texas Instruments in the 1960s. Today the CMOS version 74HC (supply 2 V to 6 V) is common; older TTL versions such as 74LS need 5 V (4.75 V to 5.25 V). How a few transistors make a gate is shown in Building gates from transistors.

تەنها وێنەیەک نییە. لە ناوەوە چەند کە وەک ئەلیکترۆنی کار دەکەن؛ پێچەوانەکەرێکی CMOS تەنها دوانی پێویستە. وەک بچووک دەفرۆشرێن. ناسراوترین خێزان زنجیرەی ⁦7400⁩ـە کە ⁦Texas Instruments⁩ لە ساڵانی ⁦1960⁩دا دەستی پێکرد. ئەمڕۆ وەشانی CMOS ⁦74HC⁩ (وزە 2 تا 6 ) باوە؛ وەشانە کۆنەکانی TTL وەک ⁦74LS⁩ پێویستیان بە 5 (⁦4.75⁩ تا ⁦5.25⁩ ). چۆنیەتیی دروستکردنی لە چەند لە دروستکردنی گەیتەکان لە ترانزیستۆرەکانەوەدا پیشان دراوە.

Common 74HC gate chips (14 pins each) ⁦74HC⁩ بۆ (هەر یەکە ⁦14⁩ پین)
ChipContainsچی تێدایە
74HC004 NAND gates, 2 inputs each4 ، هەر یەکە دوو
74HC024 NOR gates, 2 inputs each4 ، هەر یەکە دوو
74HC046 NOT gates (hex inverter)6 (پێچەوانەکەری شەشی)
74HC084 AND gates, 2 inputs each4 ، هەر یەکە دوو
74HC324 OR gates, 2 inputs each4 ، هەر یەکە دوو
74HC864 XOR gates, 2 inputs each4 ، هەر یەکە دوو
Top view of a 14-pin 74HC04 chip with a notch at the pin-1 end. Bottom row pins 1 to 7: 1A, 1Y, 2A, 2Y, 3A, 3Y, GND. Top row pins 14 to 8: VCC, 6A, 6Y, 5A, 5Y, 4A, 4Y. Six inverter symbols inside connect each input A to its output Y.چیپی 74HC04 بە 14 پین لە سەرەوە، بە کونێکی نیوە بازنەیی لای پینی 1. ڕیزی خوارەوە پینەکانی 1 تا 7: 1A، 1Y، 2A، 2Y، 3A، 3Y، GND. ڕیزی سەرەوە پینەکانی 14 تا 8: VCC، 6A، 6Y، 5A، 5Y، 4A، 4Y. شەش هێمای پێچەوانەکەر لە ناوەوە هەر نێوخستەیەک A بە دەرخستەکەی Y دەبەستنەوە.
Six NOT gates share one chip. Pin 14 (VCC) and pin 7 (GND) power them all.شەش یەک بەش دەکەن. پینی ⁦14 (VCC)⁩ و پینی ⁦7 (GND)⁩ وزە بە هەموویان دەدەن.CêIT
Quick checkپشکنینی خێراWhich chip would you buy to get six NOT gates?بۆ ئەوەی شەش بەدەست بهێنیت کام دەکڕیت؟

How Logic Gates Work - The Learning Circuitelement14 presents · Englishئینگلیزی · 159K viewsبینین · 4.2K likesلایک · Partبەشی 7:00–8:43 (ofلە 8:43)

OR as two switches in parallel lighting a lamp, and real chips holding several gates, such as the hex inverter with six NOT gates.

OR وەک دوو بە کە گڵۆپێک دادەگیرسێنن، هەروەها کە چەند تێدایە، وەک پێچەوانەکەری شەشی کە شەش تێدایە.

From 7:00: pin diagrams of real gate chips; six inverters in a 14-pin IC make a hex inverter.

لە ⁦7:00⁩ـەوە: هێڵکاریی قاچەکانی ؛ شەش پێچەوانەکەر لە ⁦14⁩ قاچیدا پێچەوانەکەری شەشی پێک دەهێنن.

Gates are real chipsگەیتەکان چیپی ڕاستەقینەن

Power, delay and fan-outوزە، دواکەوتن و ⁦fan-out⁩

Every gate needs power: the drawings in this course leave the VCC and GND pins out, but they are always connected. And a real gate is not instant: its output changes a few nanoseconds after its input (the propagation delay). In fast circuits these small delays add up — the ripple-carry adder is a famous example.

هەموو پێویستی بە وزە هەیە: وێنەکانی ئەم کۆرسە پینەکانی VCC و GND ناکێشن، بەڵام هەمیشە بەستراون. هەروەها ڕاستەقینە دەستبەجێ نییە: چەند نانۆچرکەیەک دوای دەگۆڕێت (). لە خێراکاندا ئەم دواکەوتنە بچووکانە کۆ دەبنەوە — کۆکەرەوەی زنجیرەیی نموونەیەکی ناسراوە.

One output cannot feed an unlimited number of inputs. The number of inputs it can drive safely is its fan-out: a standard TTL output drives about 10 TTL inputs. CMOS outputs can drive more, but every extra input slows the signal down. When one signal must reach many inputs, a buffer (a triangle without a bubble) is put in between to give it more strength.

یەک ناتوانێت بێ سنوور بدات. زۆرترین ژمارەی کە یەک دەتوانێت بە سەلامەتی بیانبات پێی دەوترێت ⁦fan-out⁩: ستانداردی TTL نزیکەی ⁦10⁩ TTL دەبات. CMOS زیاتر دەبەن، بەڵام هەر زیادە خاو دەکاتەوە. کاتێک دەبێت بگاتە زۆر ، بافەرێک (سێگۆشەیەک بێ بازنە) دەخرێتە نێوانیان بۆ ئەوەی هێزی زیاتری پێ بدات.

How many gates one chip holds (integration scales, approximate)یەک چەند هەڵدەگرێت (پلەکانی یەکخستن، نزیکەیی)
ScaleپلەGates per chip لە یەک Exampleنموونە
SSIfewer than about 12کەمتر لە نزیکەی ⁦12⁩the 74HC gate chips above ⁦74HC⁩ کە لە سەرەوە باسکران
MSIabout 12 to 100نزیکەی ⁦12⁩ تا ⁦100⁩a 4-bit adder chip; the multiplexer and decoder chips چوار بیتی؛ چیپەکانی مەڵتیپلێکسەر و کۆدهەڵوەشێنەر
LSIabout 100 to 10,000نزیکەی ⁦100⁩ تا ⁦10,000⁩the first processors (1971) and memory chipsیەکەم ⁦(1971)⁩ و
VLSI10,000 and far more⁦10,000⁩ و زۆر زیاترthe CPU of a phone or a PC (billions of transistors) مۆبایل یان کەسی (ملیارەها )
Quick checkپشکنینی خێراOne gate output must feed 30 inputs, more than its fan-out allows. What is the usual fix? دەبێت بگاتە ⁦30⁩ ، زیاتر لەوەی ⁦fan-out⁩ـەکەی ڕێگە دەدات. چارەسەری ئاسایی چییە؟

Common mistakesهەڵە باوەکان

MistakeهەڵەFixچارەسەر
Giving a gate “one or more outputs”.دانانی «یەک یان چەند » بۆ .One gate has exactly one output. Circuits of several gates can have more.یەک تەنها یەک هەیە. چەند دەتوانێت زیاتری هەبێت.
Missing rows in a truth table.نەمانی هەندێک ڕیز لە .n inputs need 2n2^n rows; list them by counting in binary.n پێویستی بە 2n2^n ڕیز هەیە؛ بە ژماردن بە بیاننووسە.
Forgetting the bubble when drawing NOT, or drawing it on the wrong side.لەبیرکردنی بازنەکە لە کاتی کێشانی NOT، یان کێشانی لە لای هەڵە.The triangle alone is a buffer (no change). NOT needs the bubble at the output tip.سێگۆشە بە تەنها بافەرە (هیچ ناگۆڕێت). NOT پێویستی بە بازنەکە هەیە لە نووکی .
Writing NOT A as A⁻ or −A-A.نووسینی ⁦NOT A⁩ وەک A⁻ یان −A-A.Write A‾\overline{A} or A′A'. A minus sign means subtraction, not NOT.A‾\overline{A} یان A′A' بنووسە. نیشانەی کەم واتە لێدەرکردن نەک NOT.
Thinking a closed switch in the NOT model turns the lamp on.وا بیرکردنەوە کە داخراو لە نموونەی NOTـدا گڵۆپەکە هەڵدەکات.The switch is across the lamp: closing it takes the current away from the lamp. بە تەنیشت گڵۆپەکەوەیە: داخستنی تەزووەکە لە گڵۆپەکە دوور دەخاتەوە.

Exercisesڕاهێنانەکان

ExerciseڕاهێنانRows of a truth tableڕیزەکانی خشتەی ڕاستی

How many rows does a truth table need for a gate with 1, 2, 3 and 5 inputs?

پێویستی بە چەند ڕیز هەیە بۆ بە 1، 2، 3 و 5 ؟

Show answerوەڵامەکە پیشان بدە
21=2,22=4,23=8,25=322^1 = 2,\quad 2^2 = 4,\quad 2^3 = 8,\quad 2^5 = 32
ExerciseڕاهێنانTwo inverters in a rowدوو پێچەوانەکەر بە دوای یەکدا

Signal A goes into a NOT gate, and its output goes into a second NOT gate. Write a truth table with the columns A, A‾\overline{A} and the final output.

A دەچێتە ناو و دەچێتە ناو دووەمەوە. بنووسە بە ستوونەکانی A، A‾\overline{A} و کۆتایی.

Show answerوەڵامەکە پیشان بدە
AAA‾\overline{A}A‾‾\overline{\overline{A}}
010
101

The final output equals A: two inversions cancel.

کۆتایی یەکسانە بە A: دوو پێچەوانەکردن یەکتر پووچ دەکەنەوە.

ExerciseڕاهێنانRead a timing diagramهێڵکارییەکی کاتبەندی بخوێنەرەوە

Input A of an inverter over six intervals is 1, 1, 0, 1, 0, 0. Draw (or write) the output X.

پێچەوانەکەرێک ⁦(A)⁩ لە شەش ماوەدا 1، 1، 0، 1، 0، 0ـە. X بکێشە (یان بینووسە).

Show answerوەڵامەکە پیشان بدە

X = 0, 0, 1, 0, 1, 1 — every interval is inverted. The output is LOW for the first two intervals, HIGH in the third, LOW in the fourth and HIGH in the last two.

X = 0, 0, 1, 0, 1, 1 — هەموو ماوەیەک پێچەوانە دەکرێتەوە. لە دوو ماوەی یەکەمدا LOWـە، لە سێیەمدا HIGH، لە چوارەمدا LOW و لە دوو ماوەی کۆتاییدا HIGH.

ExerciseڕاهێنانName the rectangular symbolsهێما لاکێشەییەکان ناو ببە

Name the gate drawn as: (a) a box marked &; (b) a box marked ≥1\geq 1; (c) a box marked 1 with a bubble on the output; (d) a box marked & with a bubble on the output.

ناوی ئەم بنووسە: (أ) سندووقێک بە نیشانەی &؛ (ب) سندووقێک بە ≥1\geq 1؛ (ج) سندووقێک بە 1 و بازنەیەک لەسەر ؛ (د) سندووقێک بە & و بازنەیەک لەسەر .

Show answerوەڵامەکە پیشان بدە

(a) AND; (b) OR; (c) NOT; (d) NAND (AND followed by NOT).

(أ) AND؛ (ب) OR؛ (ج) NOT؛ (د) NAND (AND و دوای ئەو NOT).

Summaryپوختە

  • A combinational circuit has no memory: the same inputs always give the same outputs. Logic gates are its simplest parts.
  • A gate has one output. Basic gates: AND, OR, NOT. Universal: NAND, NOR. Others: XOR, XNOR.
  • A truth table for n inputs has 2n2^n rows, listed by counting in binary.
  • Gates have distinctive shapes (this course) and IEC rectangles (&, ≥1\geq 1, 1, =1); a bubble means NOT.
  • NOT (inverter): one input, X=A‾X = \overline{A}; 0→10 \to 1 and 1→01 \to 0 at every moment.
  • Real gates come in 14-pin 74HC chips that need power (VCC, GND), have a small propagation delay and a limited fan-out.
  • هیچ نییە: هەمان هەمیشە هەمان دەدەن. سادەترین پارچەکانین.
  • یەک هەیە. بنەڕەتی: AND، OR، NOT. گشتگیر: NAND، NOR. ئەوانی تر: XOR، XNOR.
  • بۆ n 2n2^n ڕیزی هەیە کە بە ژماردن بە دەنووسرێن.
  • شێوەی تایبەتیان هەیە (لەم کۆرسەدا) و لاکێشەی IEC (&، ≥1\geq 1، 1، =1)؛ بازنەیەکی بچووک واتە NOT.
  • NOT (پێچەوانەکەر): یەک ، X=A‾X = \overline{A}؛ لە هەموو ساتێکدا 0→10 \to 1 و 1→01 \to 0.
  • لە ⁦74HC⁩ـی ⁦14⁩ پینیدان کە پێویستیان بە وزەیە (VCC، GND)، دواکەوتنێکی کەمیان هەیە و ⁦fan-out⁩ـیان سنووردارە.
Review questionsپرسیارەکانی پێداچوونەوە
Why does a 3-input truth table have 8 rows?بۆچی خشتەیەکی ڕاستیی سێ نێوخستە 8 ڕیزی هەیە؟

Each input is 0 or 1, so there are 2×2×2=23=82 \times 2 \times 2 = 2^3 = 8 combinations.

هەر 0 یان 1ـە، بۆیە 2×2×2=23=82 \times 2 \times 2 = 2^3 = 8 تێکەڵە هەیە.

What is another name for the NOT gate?ناوێکی تری گەیتی NOT چییە؟

Inverter, because it inverts its input.

پێچەوانەکەر، چونکە پێچەوانە دەکاتەوە.

What does a small bubble on a gate symbol mean?بازنەی پێچەوانەکردن لەسەر هێمای گەیتێک واتای چییە؟

Inversion (NOT) at that point.

پێچەوانەکردنەوە ⁦(NOT)⁩ لەو شوێنەدا.

Videoڤیدیۆ

Watch a videoسەیری ڤیدیۆیەک بکە

A video that viewers liked a lot and praised in their comments, chosen for this lesson.ڤیدیۆیەک کە بینەران زۆریان پێ خۆش بووە و لە کۆمێنتەکانیاندا ستایشیان کردووە، بۆ ئەم وانەیە هەڵبژێردراوە.

Understanding Logic GatesSpanning Tree · Englishئینگلیزی · 1.5M viewsبینین · 34K likesلایک

From transistors to the seven logic gates: NOT, AND, OR, NAND, NOR, XOR and XNOR, with their symbols and truth tables.

لە بۆ حەوت : NOT، AND، OR، NAND، NOR، XOR و XNOR، لەگەڵ و .

0:00 transistors; 1:21 NOT; 2:13 AND and OR; 3:28 NAND and NOR; 5:17 XOR and XNOR.

⁦0:00⁩ ؛ ⁦1:21 NOT⁩؛ ⁦2:13 AND⁩ و OR؛ ⁦3:28 NAND⁩ و NOR؛ ⁦5:17 XOR⁩ و XNOR.

Lesson complete!وانەکە تەواو بوو!

Well done. Review the key terms, then go on to the next lesson.دەستخۆش. سەیرێکی زاراوە سەرەکییەکان بکەرەوە، پاشان بڕۆ بۆ وانەی داهاتوو.

Key termsزاراوە سەرەکییەکان

Next lessonوانەی داهاتوو

The AND Gateگەیتی AND

References and further readingسەرچاوەکان و خوێندنەوەی زیاتر

This lecture is a first edition. The Kurdish text and terminology are waiting for review by Kurdish IT teachers.ئەم وانەیە چاپی یەکەمە. دەقە کوردییەکە و زاراوەکانی چاوەڕێی پێداچوونەوەی مامۆستایانی کوردی بواری IT ن.