Chapterبەش 6 · Lectureوانە 6.4
NAND, NOR and the Negative Gatesگەیتی NAND، گەیتی NOR و گەیتە نەرێنییەکان
NAND and NOR are AND and OR with a NOT on the output. Their switch models, truth tables, symbols and timing diagrams (including a 3-input NOR); what a bubble means; the negative-OR and negative-AND gates that do the same jobs; the course author's homework circuits that build NOR and NAND from OR and NOT; and why NAND and NOR are universal gates.
و بریتین لە AND و OR بە NOTـێک لەسەر . نموونەی سویچییان، ، و (لەوانە NORـی سێ )؛ واتای ؛ و کە هەمان کار دەکەن؛ سووڕەکانی ئەرکی خاوەنی کۆرسەکە کە NOR و NAND لە OR و NOT دروست دەکەن؛ و بۆچی NAND و NOR .
What you will learnچی فێر دەبیت
- Explain NAND as NOT-AND and NOR as NOT-OR, and write their expressions.
- Write the truth table of a NAND or NOR gate with any number of inputs.
- Draw the output of NAND and NOR gates (2 and 3 inputs) in a timing diagram.
- Read a bubble as inversion and recognise negative-OR = NAND and negative-AND = NOR.
- Explain why NAND and NOR are called universal gates.
- NAND وەک NOT-AND و NOR وەک NOT-OR ڕوون بکەیتەوە و بنووسیت.
- یان بە هەر ژمارەیەک بنووسیت.
- و (دوو و سێ ) لە بکێشیت.
- وەک پێچەوانەکردنەوە بخوێنیتەوە و بزانیت Negative-OR = NAND و Negative-AND = NOR.
- ڕوونی بکەیتەوە بۆچی NAND و NOR پێیان دەوترێت .
Adding NOT to AND and ORزیادکردنی NOT بۆ AND و OR
You already know the three basic gates. Now connect a to the output of an : every output of the AND is flipped. This pair is used so often that it has its own name and symbol, NAND (NOT-AND). In the same way, an followed by a NOT is a NOR gate (NOT-OR). In the symbol we do not draw the whole NOT triangle, only its small circle, the , on the output.
ئێستا سێ دەناسیت. ئەمجارە بە ببەستە: هەموو AND پێچەوانە دەبنەوە. ئەم جووتە ئەوەندە بەکار دێت کە ناو و تایبەتی خۆی هەیە: NAND (NOT-AND). بە هەمان شێوە کە NOTـێکی بەدوادا بێت دەبێتە NOR (NOT-OR). لە هەموو سێگۆشەی NOT ناکێشین، تەنها بازنە بچووکەکەی، واتە ، لەسەر دادەنێین.
In an expression the NOT is a bar over the whole AND or OR: NAND is and NOR is . The long bar tells you the order: first do the AND (or the OR), then invert the result.
لە NOT هێڵێکە لەسەر هەموو AND یان OR: NAND بریتییە لە و NOR بریتییە لە . هێڵە درێژەکە ڕیزبەندییەکە پێت دەڵێت: سەرەتا AND (یان OR) بکە، پاشان ئەنجامەکە پێچەوانە بکەرەوە.
The small circle drawn on an input or output of a gate symbol. It means inversion (NOT); a bubble on an output marks an active-LOW output.
ئەو بازنە بچووکەیە کە لەسەر یان هێمای دەکێشرێت. واتای پێچەوانەکردنە (NOT)؛ بازنەیەک لەسەر واتە ئەو لە LOWـدا چالاکە.
The NAND gateگەیتی NAND
An AND gate followed by a NOT gate: its output is 0 only when all inputs are 1. NAND is a universal gate.
بریتییە لە کە بەدوایدا دێت: تەنها کاتێک 0ـە کە هەموو 1 بن. NAND .
NAND gives the opposite of AND in every row. AND outputs 1 only when all its inputs are 1, so NAND outputs 0 only when all its inputs are 1. In every other row its output is 1. In the words of the slides: the output is LOW only when all the inputs are HIGH.
NAND لە هەموو ڕیزێکدا پێچەوانەی AND دەدات. AND تەنها کاتێک 1 دەدات کە هەموو 1 بن، بۆیە NAND تەنها کاتێک 0 دەدات کە هەموو 1 بن. لە هەموو ڕیزەکانی تردا 1ـە. بە وتەی سلایدەکان: تەنها کاتێک LOWـە کە هەموو HIGH بن.
| A | B | ||
|---|---|---|---|
| 0 | 0 | 0 | 1 |
| 0 | 1 | 0 | 1 |
| 1 | 0 | 0 | 1 |
| 1 | 1 | 1 | 0 |
Two symbols mean NAND: the distinctive shape (the AND shape with a bubble on the output) and the rectangular IEC shape (a box marked & with a bubble, or a small triangle called a polarity indicator, on the output). See the two symbol styles.
دوو واتای NAND دەدەن: شێوە تایبەتەکە (شێوەی AND بە بازنەیەک لەسەر ) و شێوە لاکێشەییەکەی IEC (سندووقێک بە نیشانەی & و بازنەیەک، یان سێگۆشەیەکی بچووک بە ناوی نیشانەی جەمسەر، لەسەر ). بڕوانە دوو شێوازەکەی هێما.
The NAND gateگەیتی NAND
A switch model of NANDنموونەی سویچیی NAND
We can build NAND with two switches and a lamp. A battery feeds the lamp through a R. The two switches A and B are joined in series (one after the other), and this pair is connected across the lamp, side by side with it. A closed switch means 1, an open switch 0; a lit lamp means 1.
دەتوانین NAND بە دوو و گڵۆپێک دروست بکەین. پاترییەک لە ڕێگەی (R) کارەبا دەداتە گڵۆپەکە. دوو A و B بە دوای یەکدا (زنجیرەیی) بەستراون و ئەم جووتە بە دەوری گڵۆپەکەدا بەستراوە، واتە لە تەنیشتیەوە. داخراو واتە 1 و کراوە 0؛ گڵۆپی هەڵکراو واتە 1.
When both switches are closed they make an easy path around the lamp, so the current goes through the switches and the lamp goes dark (the resistor stops the battery from being shorted). If A or B is open, that path is broken and the current must pass through the lamp. So the lamp lights when both switches are open or when one of them is open, and it is off only when both are closed — exactly the NAND table.
کاتێک هەردوو داخراون، ڕێگایەکی ئاسان بە دەوری گڵۆپەکەدا دروست دەکەن، بۆیە تەزووەکە بە ناو دەڕوات و گڵۆپەکە دەکوژێتەوە ( ڕێگە نادات پاترییەکە ڕاستەوخۆ ببەسترێتەوە). ئەگەر A یان B کراوە بێت، ئەو ڕێگایە دەپچڕێت و تەزووەکە ناچار بە ناو گڵۆپەکەدا دەڕوات. کەواتە گڵۆپەکە هەڵدەکات کاتێک هەردوو کراوەن یان یەکێکیان کراوەیە. تەنها کاتێک دەکوژێتەوە کە هەردووکیان داخراون — ڕێک وەک NAND.
The NAND gateگەیتی NAND
NAND in a timing diagramNAND لە هێڵکاریی کاتبەندیدا
In a the inputs change over time and we draw the output under them. Work one interval at a time: write A and B, then the NAND of the two. The output X is LOW only in the intervals where A and B are both HIGH; at all other times it is HIGH.
لە بە درێژایی کات دەگۆڕێن و لە ژێریاندا دەکێشین. ماوە بە ماوە کار بکە: A و B بنووسە، پاشان NANDـی هەردووکیان. X تەنها لەو ماوانەدا LOWـە کە A و B هەردووکیان HIGH بن؛ لە هەموو کاتەکانی تردا HIGHـە.
The bubble on a NAND output marks an active-LOW output. The gate “announces” its special case — all inputs are HIGH — by pulling the output LOW, while HIGH means “nothing special”. Many chip pins work this way: a reset or enable pin with a bubble (or a bar over its name, like ) is switched on by a 0.
لەسەر NAND نیشانەی ئەوەیە کە ئەو لە LOWـدا چالاکە. دۆخە تایبەتەکەی — هەموو HIGHـن — بە LOW کردنی ڕادەگەیەنێت، بەڵام HIGH واتە «هیچ شتێکی تایبەت نییە». زۆر قاچی بەم شێوەیە کار دەکەن: قاچی reset یان enable کە بازنەی هەبێت (یان هێڵێک لەسەر ناوەکەی، وەک ) بە 0 کارا دەبێت.
The NOR gateگەیتی NOR
An OR gate followed by a NOT gate: its output is 1 only when all inputs are 0. NOR is a universal gate.
بریتییە لە کە بەدوایدا دێت: تەنها کاتێک 1ـە کە هەموو 0 بن. NOR .
NOR gives the opposite of OR in every row. OR outputs 0 only when all its inputs are 0, so NOR outputs 1 only when all its inputs are 0. As soon as any input is HIGH, the output is LOW.
NOR لە هەموو ڕیزێکدا پێچەوانەی OR دەدات. OR تەنها کاتێک 0 دەدات کە هەموو 0 بن، بۆیە NOR تەنها کاتێک 1 دەدات کە هەموو 0 بن. هەر کە یەکێک لە HIGH بوو، LOW دەبێت.
| A | B | ||
|---|---|---|---|
| 0 | 0 | 0 | 1 |
| 0 | 1 | 1 | 0 |
| 1 | 0 | 1 | 0 |
| 1 | 1 | 1 | 0 |
Its distinctive symbol is the OR shape with a bubble on the output; the rectangular IEC symbol is a box marked with a bubble (polarity indicator) on the output.
تایبەتەکەی شێوەی ORـە بە بازنەیەک لەسەر ؛ لاکێشەییەکەی IEC سندووقێکە بە نیشانەی و بازنەیەک (نیشانەی جەمسەر) لەسەر .
The NOR gateگەیتی NOR
A switch model of NORنموونەی سویچیی NOR
For NOR the two switches are joined in parallel (side by side), and again the pair is connected across the lamp. Now one closed switch is enough to make the easy path around the lamp. The lamp lights only when A and B are both open, that is, when both are 0.
بۆ NOR دوو بە تەریبی (لە تەنیشت یەکەوە) بەستراون و دیسان ئەم جووتە بە دەوری گڵۆپەکەدا بەستراوە. ئەمجارە یەک داخراو بەسە بۆ دروستکردنی ڕێگا ئاسانەکەی دەوری گڵۆپەکە. گڵۆپەکە تەنها کاتێک هەڵدەکات کە A و B هەردووکیان کراوە بن، واتە هەردووکیان 0 بن.
A city bus has a front door and a back door. A lamp in front of the driver says “ready to move” only when neither door is open. If the front door or the back door is open, the lamp is off. Call an open door 1: the lamp is the NOR of the two doors — 1 only when both inputs are 0.
پاسێکی ناو شار دەرگایەکی پێشەوە و دەرگایەکی دواوەی هەیە. گڵۆپێک لەبەردەم شۆفێرەکە تەنها کاتێک دەڵێت «ئامادەیە بۆ ڕۆیشتن» کە هیچ کام لە دەرگاکان کراوە نەبێت. ئەگەر دەرگای پێشەوە یان دەرگای دواوە کراوە بێت، گڵۆپەکە کوژاوەیە. دەرگای کراوە بە 1 دابنێ: گڵۆپەکە NORـی هەردوو دەرگاکەیە — تەنها کاتێک 1ـە کە هەردوو 0 بن.
Where the analogy stops workingسنووری ئەم نموونەیە
A real bus checks more things (brakes, speed) and the driver can override it; a NOR gate looks only at its inputs and answers in a few nanoseconds.
پاسی ڕاستەقینە شتی زیاتر دەپشکنێت (بریک، خێرایی) و شۆفێرەکە دەتوانێت ڕێگای لێ بگرێت؛ تەنها سەیری دەکات و لە چەند نانۆچرکەیەکدا وەڵام دەداتەوە.
The NOR gateگەیتی NOR
NOR in a timing diagramNOR لە هێڵکاریی کاتبەندیدا
For a NOR gate, every HIGH on A and every HIGH on B pulls the output LOW. X is HIGH only while A and B are both LOW.
بۆ ، هەر HIGHـێک لەسەر A و هەر HIGHـێک لەسەر B دەکاتە LOW. X تەنها ئەو کاتە HIGHـە کە A و B هەردووکیان LOW بن.
The NOR gateگەیتی NOR
A 3-input NOR in a timing diagramNORـی سێ نێوخستە لە هێڵکاریی کاتبەندیدا
The slides ask for the output of a 3-input NOR gate with the right timing. Read it like a relay race: the output falls when the first input goes HIGH, and it can only come back when the last HIGH input has gone LOW. In between, at least one input is always HIGH, so X stays LOW the whole time.
سلایدەکان داوای سێ دەکەن بە کاتبەندیی دروست. وەک پێشبڕکێی ڕاکردنی گواستنەوە بیخوێنەوە: کاتێک دادەبەزێت کە یەکەم HIGH دەبێت و تەنها کاتێک دەگەڕێتەوە کە دوایین HIGH بووبێتە LOW. لە نێوانیاندا هەمیشە لانیکەم یەک HIGHـە، بۆیە X بە درێژایی ئەو ماوەیە LOW دەمێنێتەوە.
NAND and NOR with more inputsNAND و NOR بە نێوخستەی زیاتر
Like AND and OR, NAND and NOR gates can have three, four or more inputs: , , and so on. The rules do not change. A NAND output is 0 in one row only (all inputs 1); a NOR output is 1 in one row only (all inputs 0). With n inputs the table has rows.
وەک AND و OR، و دەتوانن سێ، چوار یان زیاتر هەبێت: ، ، و هتد. یاساکان ناگۆڕێن. NAND تەنها لە یەک ڕیزدا 0ـە (هەموو 1)؛ NOR تەنها لە یەک ڕیزدا 1ـە (هەموو 0). بە n ، خشتەکە ڕیزی هەیە.
| A | B | C | ||
|---|---|---|---|---|
| 0 | 0 | 0 | 1 | 1 |
| 0 | 0 | 1 | 1 | 0 |
| 0 | 1 | 0 | 1 | 0 |
| 0 | 1 | 1 | 1 | 0 |
| 1 | 0 | 0 | 1 | 0 |
| 1 | 0 | 1 | 1 | 0 |
| 1 | 1 | 0 | 1 | 0 |
| 1 | 1 | 1 | 0 | 0 |
Negative-OR and negative-ANDگەیتی Negative-OR و گەیتی Negative-AND
A bubble can also sit on an input. Then that input is inverted before the gate sees it. An OR gate with bubbles on all its inputs is called a ; an AND gate with bubbles on all its inputs is a . The same circuits can be drawn with separate NOT gates: two inverters feeding an OR, or two inverters feeding an AND.
دەتوانێت لەسەر دابنرێت. ئەو کاتە ئەو پێش ئەوەی بگاتە پێچەوانە دەکرێتەوە. کە لەسەر هەموو بازنەی هەبێت پێی دەوترێت ؛ کە لەسەر هەموو بازنەی هەبێت ـە. هەمان سووڕەکان دەتوانرێت بە جیا بکێشرێن: دوو کە دەچنە ناو OR، یان دوو کە دەچنە ناو AND.
| A | B | Negative-AND | NOR | Negative-OR | NAND | ||
|---|---|---|---|---|---|---|---|
| 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 |
| 0 | 1 | 1 | 0 | 0 | 0 | 1 | 1 |
| 1 | 0 | 0 | 1 | 0 | 0 | 1 | 1 |
| 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 |
Compare the columns: the negative-AND column equals the NOR column, and the negative-OR column equals the NAND column, in every row. So they are the same gates drawn two ways: NAND ≡ negative-OR and NOR ≡ negative-AND.
ستوونەکان بەراورد بکە: ستوونی Negative-AND لە هەموو ڕیزێکدا یەکسانە بە ستوونی NOR و ستوونی Negative-OR یەکسانە بە ستوونی NAND. کەواتە ئەمانە هەمان کە بە دوو شێوە کێشراون: NAND ≡ Negative-OR و NOR ≡ Negative-AND.
Negative-OR and negative-ANDگەیتی Negative-OR و گەیتی Negative-AND
Why two symbols for one gate?بۆچی دوو هێما بۆ یەک گەیت؟
Why keep two symbols for one gate? Each one tells the reader what the designer has in mind. The NAND symbol says “output goes LOW when all inputs are HIGH”. The negative-OR symbol says “output goes HIGH when any input is LOW”. These two equalities are , which a later lesson proves: and .
بۆچی دوو بۆ یەک دەهێڵینەوە؟ هەر یەکێکیان بە خوێنەر دەڵێت دیزاینەرەکە بیر لە چی دەکاتەوە. NAND دەڵێت « LOW دەبێت کاتێک هەموو HIGH بن». Negative-OR دەڵێت « HIGH دەبێت کاتێک هەر LOW بێت». ئەم دوو یەکسانییە بە ناسراون و وانەیەکی داهاتوو دەیانسەلمێنێت: و .
Lab: NOR and NAND from OR and NOTتاقیگە: NOR و NAND لە OR و NOT
The course author tested these ideas in a logic . His homework asks: what happens to a 3-input OR gate when we add NOT gates? The circuits use switches A, B and C (a closed switch = 1) and an LED as the output lamp. The two screens that follow show both examples with their truth tables.
خاوەنی کۆرسەکە ئەم بیرۆکانەی لە لۆجیکیدا تاقی کردەوە. ئەرکەکەی دەپرسێت: کاتێک بۆ سێ زیاد دەکەین چی ڕوو دەدات؟ سووڕەکان A، B و C ( داخراو = 1) و وەک گڵۆپی بەکار دەهێنن. دوو پەڕەکەی داهاتوو هەردوو نموونەکە لەگەڵ پیشان دەدەن.
Lab: NOR and NAND from OR and NOTتاقیگە: NOR و NAND لە OR و NOT
Example 1: a NOT on the output of ORنموونەی یەکەم: NOT لەسەر دەرخستەی OR
The three switches feed a 3-input OR gate. Its output X goes into a NOT gate, and the NOT output, , drives the LED.
سێ دەچنە ناو سێ . ، X، دەچێتە ناو و NOT، واتە ، هەڵدەکات.
| A | B | C | ||
|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 1 |
| 0 | 0 | 1 | 1 | 0 |
| 0 | 1 | 0 | 1 | 0 |
| 0 | 1 | 1 | 1 | 0 |
| 1 | 0 | 0 | 1 | 0 |
| 1 | 0 | 1 | 1 | 0 |
| 1 | 1 | 0 | 1 | 0 |
| 1 | 1 | 1 | 1 | 0 |
is 1 in one row only, the first, where all three inputs are 0. That is the NOR table. So OR followed by NOT is a NOR gate, and the author's caption names it correctly: this gate is Negative-AND, which means NOR — the same gate as on the previous screen.
تەنها لە یەک ڕیزدا 1ـە، ڕیزی یەکەم، کە هەر سێ تێیدا 0ـن. ئەمە NORـە. کەواتە OR و پاشان NOT دەبێتە و ڕوونکردنەوەی وێنەکەی خاوەنی کۆرسەکە ڕاستە: ئەم Negative-ANDـە، واتە NORـە — هەمان کە لە پەڕەی پێشوودا بینیمان.
Lab: NOR and NAND from OR and NOTتاقیگە: NOR و NAND لە OR و NOT
Example 2: a NOT on every input of ORنموونەی دووەم: NOT لەسەر هەموو نێوخستەیەکی OR
Now each switch goes through its own NOT gate before it reaches the OR gate. The OR gate therefore receives , and .
ئێستا هەر پێش ئەوەی بگاتە بە تایبەتی خۆیدا تێدەپەڕێت. بۆیە ، و وەردەگرێت.
| A | B | C | ||||
|---|---|---|---|---|---|---|
| 0 | 0 | 0 | 1 | 1 | 1 | 1 |
| 0 | 0 | 1 | 1 | 1 | 0 | 1 |
| 0 | 1 | 0 | 1 | 0 | 1 | 1 |
| 0 | 1 | 1 | 1 | 0 | 0 | 1 |
| 1 | 0 | 0 | 0 | 1 | 1 | 1 |
| 1 | 0 | 1 | 0 | 1 | 0 | 1 |
| 1 | 1 | 0 | 0 | 0 | 1 | 1 |
| 1 | 1 | 1 | 0 | 0 | 0 | 0 |
The output is 0 in one row only, the last, where A, B and C are all 1; every other row gives 1. That is the NAND table: . The author called this circuit Negative-OR, which means NAND — correct. In his rule “when any input equals 0, the output is 1”, input means a switch A, B or C of the circuit; the OR gate itself receives the inverted values.
تەنها لە یەک ڕیزدا 0ـە، ڕیزی کۆتایی، کە A، B و C هەموویان 1ـن؛ هەموو ڕیزەکانی تر 1 دەدەن. ئەمە NANDـە: . خاوەنی کۆرسەکە ئەم سووڕەی ناو نا Negative-OR، واتە NAND — ڕاستە. لە یاساکەیدا «کاتێک هەر یەکسان بێت بە 0، دەبێتە 1»، مەبەست لە A، B یان Cـی سووڕەکەیە؛ خۆی نرخە پێچەوانەکراوەکان وەردەگرێت.
NAND and NOR are universal gatesNAND و NOR گەیتی گشتگیرن
The first gates lesson called NAND and NOR . Universal means that one kind of gate is enough to build any logic circuit. The idea in one line: every circuit can be written with NOT, AND and OR, and NAND gates alone can make all three. The smallest example: join the two inputs of a NAND and feed A into both. It becomes a NOT gate: . (A NOR with joined inputs is a NOT too: .)
یەکەم وانەی گەیتەکان NAND و NORـی بە ناو برد. گشتگیر واتە یەک جۆر بەسە بۆ دروستکردنی هەر . بیرۆکەکە بە کورتی: هەموو سووڕێک دەتوانرێت بە NOT، AND و OR بنووسرێت و بە تەنها دەتوانن هەر سێکیان دروست بکەن. بچووکترین نموونە: هەردوو پێکەوە ببەستە و A بدە بە هەردووکیان. دەبێتە : . ( بە بەستراو بە یەکەوەش NOTـە: .)
Put two of these NOTs in front of a third NAND, and the three gates work as one OR gate. The animation steps through all four input pairs: the last NAND gives 0 only when .
دوو لەم NOTـانە بخە پێش NANDـێکی سێیەم، ئەوا هەر سێ وەک یەک کار دەکەن. ئەنیمەیشنەکە بە هەر چوار جووتە نرخەکەی دەڕوات: NANDـی کۆتایی تەنها کاتێک 0 دەدات کە .


The full method — AND and OR from NAND gates, the same with NOR gates, and whole circuits built as NAND–NAND — is taught in NAND and NOR: the universal gates and Everything from NOR gates.
ڕێگا تەواوەکە — دروستکردنی AND و OR لە ، هەمان کار بە و دروستکردنی سووڕی تەواو بە شێوەی NAND–NAND — لە NAND و NOR: گەیتە گشتگیرەکان و هەموو شتێک لە گەیتەکانی NOR فێر دەکرێت.
Kurdish (Sorani): NAND as a universal gate (NOT, AND, OR from NANDs, the two NAND symbols) and turning an SOP into a NAND-NAND circuit.
بە کوردیی سۆرانی: NAND وەک (NOT، AND و OR لە NAND، هەروەها دوو NAND) و گۆڕینی SOP بۆ NAND-NAND.
4:26-10:00: NAND and NOR are universal; NOT, AND and OR from NAND gates; the two NAND symbols (AND-invert, invert-OR).
لە 4:26 تا 10:00: NAND و NOR ؛ NOT، AND و OR لە ؛ دوو NAND (AND و پاشان پێچەوانەکردنەوە؛ پێچەوانەکردنەوە و پاشان OR).
Common mistakesهەڵە باوەکان
| Mistakeهەڵە | What is rightڕاستەکەی |
|---|---|
| Reading (one long bar) as (two short bars).خوێندنەوەی (یەک هێڵی درێژ) وەک (دوو هێڵی کورت). | They differ. For , : but . The long bar is NAND; two short bars are negative-AND, which is NOR.جیاوازن. بۆ و : بەڵام . هێڵی درێژ NANDـە؛ دوو هێڵی کورت Negative-ANDـە کە NORـە. |
| “NAND is 0 when any input is 0.”«NAND کاتێک 0ـە کە هەر 0 بێت.» | That describes AND. NAND is 0 only when all inputs are 1.ئەوە وەسفی ANDـە. NAND تەنها کاتێک 0ـە کە هەموو 1 بن. |
| “A NOR output is 1 when all inputs are 1.” (the homework's English sentence)« NOR کاتێک 1ـە کە هەموو 1 بن.» (ڕستە ئینگلیزییەکەی ئەرکەکە) | A NOR output is 1 only when all inputs are 0. NOR تەنها کاتێک 1ـە کە هەموو 0 بن. |
| Dropping the bubble when copying a symbol.لەبیرچوونی بازنەکە لە کاتی کێشانەوەی . | Without its bubble a NAND becomes an AND. Check every output and input for bubbles.بەبێ بازنەکەی NAND دەبێتە AND. هەموو و بۆ بازنە بپشکنە. |
| Thinking negative-OR is a new function.بیرکردنەوە لەوەی Negative-OR کارێکی نوێیە. | Negative-OR has the same truth table as NAND; it is the same gate drawn another way.Negative-OR هەمان NANDـی هەیە؛ هەمان بە شێوەیەکی تر کێشراوە. |
Exercisesڕاهێنانەکان
Write the truth table of a 3-input NOR gate, . In how many rows is ?
سێ ، ، بنووسە. X لە چەند ڕیزدا 1ـە؟
Hintئاماژە
Count from 000 to 111 and remember: one HIGH input is enough to make NOR LOW.
لە 000 تا 111 بژمێرە و لەبیرت بێت: یەک HIGH بەسە بۆ ئەوەی NOR LOW بێت.
Show answerوەڵامەکە پیشان بدە
| A | B | C | X |
|---|---|---|---|
| 0 | 0 | 0 | 1 |
| 0 | 0 | 1 | 0 |
| 0 | 1 | 0 | 0 |
| 0 | 1 | 1 | 0 |
| 1 | 0 | 0 | 0 |
| 1 | 0 | 1 | 0 |
| 1 | 1 | 0 | 0 |
| 1 | 1 | 1 | 0 |
in one row only: . Any 1 on an input makes .
X تەنها لە یەک ڕیزدا 1ـە: . هەر 1ـێک لەسەر X دەکاتە 0.
Over six intervals and . Write the output X of a NAND gate and of a NOR gate for each interval.
لە شەش ماوەدا و ـە. X بۆ و بۆ لە هەر ماوەیەکدا بنووسە.
Hintئاماژە
Look for the intervals where both inputs are 1 (NAND) and where both are 0 (NOR).
بۆ ئەو ماوانە بگەڕێ کە هەردوو 1ـن (NAND) و ئەوانەی هەردووکیان 0ـن (NOR).
Show answerوەڵامەکە پیشان بدە
| Intervalماوە | t1 | t2 | t3 | t4 | t5 | t6 |
|---|---|---|---|---|---|---|
| A | 1 | 1 | 0 | 0 | 1 | 0 |
| B | 0 | 1 | 1 | 0 | 1 | 1 |
| NAND | 1 | 0 | 1 | 1 | 0 | 1 |
| NOR | 0 | 0 | 0 | 1 | 0 | 0 |
NAND is 0 only in t2 and t5 (both inputs 1). NOR is 1 only in t4 (both inputs 0).
NAND تەنها لە t2 و t5ـدا 0ـە (هەردوو 1ـن). NOR تەنها لە t4ـدا 1ـە (هەردوو 0ـن).
A circuit sends A and B through two NOT gates and then into an AND gate. Write its expression, fill in its truth table and name the single gate that could replace it.
سووڕێک A و B بە دوو دەنێرێت و پاشان بۆ ناو . بنووسە، پڕ بکەرەوە و ناوی ئەو تاکە بنێ کە دەتوانێت جێگەی بگرێتەوە.
Show answerوەڵامەکە پیشان بدە
. Rows 00, 01, 10, 11 give 1, 0, 0, 0. This is the negative-AND gate, which has the NOR table, so one NOR gate replaces the three gates.
. ڕیزەکانی 00، 01، 10 و 11 بەم شێوەیە دەبن: 1، 0، 0، 0. ئەمە کە NORـی هەیە، بۆیە یەک جێگەی هەر سێ دەگرێتەوە.
In your own words, write the rule of Example 1 (a NOT on the output of a 3-input OR) so that it matches its truth table.
بە وشەی خۆت یاسای نموونەی یەکەم (NOT لەسەر ORـی سێ ) بنووسە بە شێوەیەک کە لەگەڵ بگونجێت.
Show answerوەڵامەکە پیشان بدە
“If any input is 1, the output is 0. Only when all the inputs are 0 is the output 1.” This is the NOR rule.
«ئەگەر هەر 1 بێت، 0ـە. تەنها کاتێک هەموو 0 بن 1ـە.» ئەمە یاسای NORـە.
Summaryپوختە
- NAND = NOT-AND, : the output is 0 only when all inputs are 1.
- NOR = NOT-OR, : the output is 1 only when all inputs are 0.
- A bubble means inversion. On an output it marks an active-LOW output.
- NAND ≡ negative-OR and NOR ≡ negative-AND (De Morgan's theorems).
- OR + NOT = NOR and NOTs + OR = NAND, as the homework circuits showed.
- NAND and NOR are universal: one kind of gate is enough for any circuit (a NAND with joined inputs is already a NOT). The full method: the universal gates.
- NAND = NOT-AND، : تەنها کاتێک 0ـە کە هەموو 1 بن.
- NOR = NOT-OR، : تەنها کاتێک 1ـە کە هەموو 0 بن.
- واتە پێچەوانەکردنەوە. لەسەر نیشانەی چالاک لە LOWـدایە.
- NAND ≡ Negative-OR و NOR ≡ Negative-AND ().
- OR + NOT = NOR و NOTـەکان + OR = NAND، وەک سووڕەکانی ئەرکەکە پیشانیان دا.
- NAND و NOR گشتگیرن: یەک جۆر بەسە بۆ هەر سووڕێک (NANDـێک بە بەستراو بە یەکەوە خۆی NOTـە). ڕێگا تەواوەکە: گەیتە گشتگیرەکان.
When is the output of a NAND gate LOW?دەرخستەی گەیتی NAND کەی LOWـە؟
Only when all of its inputs are HIGH.
تەنها کاتێک هەموو HIGH بن.
What single gate is an AND gate with a bubble on each input?گەیتی AND بە بازنەیەک لەسەر هەر نێوخستەیەک کام تاکە گەیتە؟
A NOR gate (the negative-AND form).
(شێوەی Negative-AND).
Why are NAND and NOR called universal?بۆچی NAND و NOR پێیان دەوترێت گشتگیر؟
Because one kind of gate — NAND alone, or NOR alone — can make NOT, AND and OR, and so every circuit.
چونکە یەک جۆر — تەنها NAND، یان تەنها NOR — دەتوانێت NOT، AND و OR دروست بکات و بەمەش هەموو سووڕێک.
Videoڤیدیۆ
Watch a videoسەیری ڤیدیۆیەک بکە
A video that viewers liked a lot and praised in their comments, chosen for this lesson.ڤیدیۆیەک کە بینەران زۆریان پێ خۆش بووە و لە کۆمێنتەکانیاندا ستایشیان کردووە، بۆ ئەم وانەیە هەڵبژێردراوە.
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، لەگەڵ و .
Chapter 'NAND and NOR' (3:28-5:17): AND/OR followed by NOT, truth tables.
بەشی NAND and NOR (3:28 تا 5:17): AND و OR کە NOTـێکیان بە دوادا دێت، لەگەڵ .
Lesson complete!وانەکە تەواو بوو!
Well done. Review the key terms, then go on to the next lesson.دەستخۆش. سەیرێکی زاراوە سەرەکییەکان بکەرەوە، پاشان بڕۆ بۆ وانەی داهاتوو.
Key termsزاراوە سەرەکییەکان
XOR, XNOR and All Gates at a Glanceگەیتی XOR، گەیتی XNOR و هەموو گەیتەکان بە یەک سەیرکردن
Related lecturesوانە پەیوەندیدارەکان
References and further readingسەرچاوەکان و خوێندنەوەی زیاتر
- Wikipedia: NAND gate (truth table, De Morgan equivalent, 7400/4011 chips, why CMOS prefers NAND)
- Wikipedia: NOR gate (functional completeness, the 7402 chip, why CMOS prefers NAND to NOR)
- Wikipedia: NAND logic (NOT, AND, OR, NOR, XOR built from NAND gates)
- T. L. Floyd, Digital Fundamentals, 11th ed. (the course reference book): sections 3-4 and 3-5, used for topic order only
This lecture is a first edition. The Kurdish text and terminology are waiting for review by Kurdish IT teachers.ئەم وانەیە چاپی یەکەمە. دەقە کوردییەکە و زاراوەکانی چاوەڕێی پێداچوونەوەی مامۆستایانی کوردی بواری IT ن.