Chapterبەش 6 · Lectureوانە 6.3
The OR Gateگەیتی OR
The OR gate: two switches in parallel, the rule “0 only when all inputs are 0”, the plus notation , both symbols, gates with more inputs, timing diagrams, the course author's own 3-input OR experiment in a circuit simulator, and why OR is logical addition but not binary addition (, while in binary arithmetic ).
: دوو هاوتەریب، یاسای «0 تەنها کاتێک هەموو 0 بن»، نووسینی کۆ ، هەردوو ، بە زیاتر، ، تاقیکردنەوەی OR بە سێ خاوەنی کۆرسەکە لە . هەروەها بۆچی OR کۆکردنەوەی لۆجیکییە بەڵام نییە (، بەڵام لە ژمێرکاریی ).
What you will learnچی فێر دەبیت
- Explain the OR gate with two switches in parallel and state its rule.
- Write , draw both OR symbols and build truth tables for any number of inputs.
- Draw the output of an OR gate in a timing diagram.
- Explain why OR is logical addition and how it differs from binary addition.
- بە دوو هاوتەریب ڕوون بکەیتەوە و یاساکەی بڵێیت.
- بنووسیت، هەردوو OR بکێشیت و بۆ هەر ژمارەیەک دروست بکەیت.
- لە بکێشیت.
- ڕوونی بکەیتەوە بۆچی OR کۆکردنەوەی لۆجیکییە و چۆن لە جیاوازە.
Two switches in parallelدوو سویچی هاوتەریب
Now put the two switches A and B side by side (in parallel), so that each one gives the current its own path to the lamp. The lamp lights when A is closed, or B is closed, or both are closed. It is dark only when both switches are open. With switch closed = 1 and lamp ON = 1: the lamp is 1 when or (or both). Why every parallel branch gets the full battery voltage is explained in Series and parallel circuits; the same OR built from transistors is in OR: two transistors in parallel.
ئێستا دوو A و B لە تەنیشت یەک (هاوتەریب) دابنێ، بەجۆرێک هەر یەکێکیان ڕێگایەکی تایبەت بە تەزووەکە بدات بۆ گڵۆپەکە. گڵۆپەکە هەڵدەبێت کاتێک A داخراو بێت، یان B داخراو بێت، یان هەردووکیان داخراو بن. تەنها کاتێک کوژاوەیە کە هەردوو کراوە بن. بە داخراو = 1 و گڵۆپی هەڵکراو = 1: گڵۆپەکە 1ـە کاتێک یان بێت (یان هەردووکیان). بۆچی هەر لقێکی هاوتەریب هەموو پاترییەکە وەردەگرێت لە بەستنی زنجیرەیی و بەستنی هاوتەریبدا ڕوون کراوەتەوە؛ هەمان OR بە لە OR: دوو ترانزیستۆر بە بەستنی هاوتەریبدایە.
A house has a bell button at the front gate and another at the back door, both wired to the same bell. The bell rings if a guest presses the front button, or the back button, or both at once. It is silent only when nobody presses anything.
ماڵێک دوگمەیەکی زەنگی لە دەرگای پێشەوە و یەکێکی تری لە دەرگای دواوە هەیە و هەردووکیان بە هەمان زەنگەوە بەستراون. زەنگەکە لێدەدات ئەگەر میوانێک دوگمەی پێشەوە، یان دوگمەی دواوە، یان هەردووکیان پێکەوە دابگرێت. تەنها کاتێک بێدەنگە کە کەس هیچ دانەگرێت.
Where the analogy stops workingسنووری ئەم نموونەیە
Pressing both buttons does not ring the bell twice or twice as loud — it just rings. In the same way , not 2. Remember this for the last screen of the lesson.
داگرتنی هەردوو دوگمەکە زەنگەکە دوو جار یان دوو هێندە بەرز لێنادات — تەنها لێدەدات. بە هەمان شێوە ، نەک 2. ئەمە بۆ دوایین پەڕەی وانەکە لەبیر بێت.
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 وەک دوو بە کە گڵۆپێک دادەگیرسێنن، هەروەها کە چەند تێدایە، وەک پێچەوانەکەری شەشی کە شەش تێدایە.
4:05-5:37: the OR gate as two switches in parallel lighting a lamp, with its truth table.
لە 4:05 تا 5:37: وەک دوو بە کە گڵۆپێک دادەگیرسێنن، لەگەڵ .
The OR gate and its truth tableگەیتی OR و خشتەی ڕاستییەکەی
A gate whose output is 1 when at least one input is 1; it is 0 only when all inputs are 0. In Boolean algebra OR is written with a plus sign: .
کە 1ـە کاتێک لانیکەم یەکێک لە 1 بێت؛ تەنها کاتێک 0ـە کە هەموو 0 بن. لە OR بە نیشانەی کۆ دەنووسرێت: .
The OR gate is one of the three basic gates. It has two or more inputs and one output, and it gives a HIGH output (1) if one or more of its inputs are HIGH. The course author's report puts the rule like this: if one of the inputs is 1, the output becomes 1; only when all the inputs are 0 does the output become 0.
یەکێکە لە سێ . دوو یان زیاتر و یەک هەیە و HIGH (1) دەدات ئەگەر یەک یان زیاتر لە HIGH بن. ڕاپۆرتی خاوەنی کۆرسەکە یاساکە بەم شێوەیە دەڵێت: «ئەگەر یەکێک لە یەک بێت، ئەوا دەبێتە 1. بەڵام ئەگەر هەموو 0 بن، ئەوا ئینجا دەبێتە 0.»
In Boolean algebra OR is written with a plus sign: , read “A OR B”. Here + does not mean ordinary addition — the last screen of this lesson shows exactly where the two differ.
لە OR بە نیشانەی کۆ دەنووسرێت: ، کە دەخوێنرێتەوە «A OR B». لێرەدا + واتای کۆکردنەوەی ئاسایی نییە — دوایین پەڕەی ئەم وانەیە ڕێک پیشان دەدات ئەم دووانە لە کوێدا جیاوازن.
| 0 | 0 | 0 |
| 0 | 1 | 1 |
| 1 | 0 | 1 |
| 1 | 1 | 1 |
The AND gate gives 1 only when all inputs are 1, also with more inputs; the OR gate gives 1 when any input is 1.
تەنها کاتێک 1 دەدات کە هەموو 1 بن، چ دوو بن چ زیاتر؛ کاتێک کە هەر یەکێکیان 1 بێت.
5:54-7:26: the OR gate and its truth table.
لە 5:54 تا 7:26: و .
The OR gate and its truth tableگەیتی OR و خشتەی ڕاستییەکەی
The OR symbol, and how many inputsهێمای OR و ژمارەی نێوخستەکان
The OR symbol has a curved back and a pointed front, like a shield. In the rectangular IEC style it is a box marked , which reads “the output is 1 when at least one input is 1”.
OR پشتێکی کەوانەیی و پێشێکی نووکتیژی هەیە، وەک قەڵغانێک. لە شێوازی لاکێشەیی IECـدا سندووقێکە بە نیشانەی ، واتە « 1ـە کاتێک لانیکەم یەک 1 بێت».
OR gates with more inputsگەیتەکانی OR بە نێوخستەی زیاتر
Like AND, an OR gate can have more inputs. The expression just adds more terms: . The output is 0 only in the one row where every input is 0; in all the other rows it is 1. As the course author's report notes, 2-input and 3-input OR gates are the ones used most often.
وەک AND، دەتوانێت زیاتری هەبێت. دەربڕینەکە تەنها بڕگەی زیاتر زیاد دەکات: . تەنها لەو یەک ڕیزەدا 0ـە کە هەموو 0 بێت؛ لە هەموو ڕیزەکەی تردا 1ـە. هەروەک ڕاپۆرتی خاوەنی کۆرسەکە دەڵێت، بە دوو و سێ زۆرترین جار بەکار دەهێنرێن.
OR gates with more inputsگەیتەکانی OR بە نێوخستەی زیاتر
A 3-input OR in a simulatorOR بە سێ نێوخستە لە هاوشێوەسازێکدا
The course author tested the OR gate himself in a homework report. His aim: to show how the OR gate works in an electric circuit, and what happens when NOT gates are added. The report has two examples — a 3-input OR gate, and the same gate with a NOT gate on its output. The first one is below; the second becomes a NOR gate and is in the lesson NAND and NOR.
خاوەنی کۆرسەکە لە ڕاپۆرتێکی ئەرکی ماڵەوەدا خۆی تاقی کردەوە. ئامانجەکەی: «لەڕێی ئەم ڕاپۆرتەوە دەریدەخەین کە چۆن لە کار دەکات و کاتێک — یان کۆمەڵێک — پێوە دەکەین چی ڕوو دەدات.» ڕاپۆرتەکە دوو نموونەی هەیە: یەکەم بە سێ ؛ دووەم هەمان بە لەسەر . یەکەمیان لە خوارەوەیە؛ دووەمیان دەبێتە و لە وانەی NAND و NOR باس کراوە.
His conclusion from the experiment matches the gate's rule: when any input of the OR gate equals 1, the output is also 1, except in the one case where all the inputs are 0 — then the output is 0.
دەرئەنجامی تاقیکردنەوەکەی لەگەڵ یاسای یەک دەگرێتەوە: «هەر یەکسان بێت بە 1، دەبێتە 1؛ تەنها لەو کاتەدا نەبێت کە گشت 0 بن، ئینجا دەکاتە 0.»
OR gates with more inputsگەیتەکانی OR بە نێوخستەی زیاتر
All eight rows of the 3-input ORهەر هەشت ڕیزی OR بە سێ نێوخستە
The animation flips the three switches through all eight combinations, from 000 to 111, exactly as the truth table of the report lists them. Watch the LED: it is dark only in the first row.
ئەنیمەیشنەکە سێ بە هەموو هەشت تێکەڵەکەدا دەگۆڕێت، لە 000 تا 111، ڕێک وەک ڕاپۆرتەکە ڕیزیان دەکات. سەیری LEDـەکە بکە: تەنها لە ڕیزی یەکەمدا کوژاوەیە.


| 0 | 0 | 0 | 0 |
| 0 | 0 | 1 | 1 |
| 0 | 1 | 0 | 1 |
| 0 | 1 | 1 | 1 |
| 1 | 0 | 0 | 1 |
| 1 | 0 | 1 | 1 |
| 1 | 1 | 0 | 1 |
| 1 | 1 | 1 | 1 |
OR in a timing diagramOR لە هێڵکاریی کاتبەندیدا
Work interval by interval, as for AND. In the lecture's example, over four intervals A is and B is , so is : the output drops to LOW only in t3, where both inputs are LOW.
ماوە بە ماوە کار بکە، هەروەک بۆ AND. لە نموونەی وانەکەدا، لە چوار ماوەدا A بریتییە لە و B لە ، بۆیە دەبێتە : تەنها لە t3دا دادەبەزێت بۆ LOW، کە هەردوو LOWـن.
Drawing the output waveform of AND and of OR gates from two input waveforms, one time interval at a time.
کێشانی و لە دوو ، هەنگاو بە هەنگاو بە درێژایی کات.
Plays 1:04-1:36: the OR output drawn from the same A and B waveforms; stops before XOR.
لە 1:04 تا 1:36 پەخش دەبێت: OR لە هەمان A و B دەکێشرێت؛ پێش XOR ڕادەوەستێت.
OR in a timing diagramOR لە هێڵکاریی کاتبەندیدا
Three inputs in a timing diagramسێ نێوخستە لە هێڵکاریی کاتبەندیدا
With three inputs, X follows every HIGH pulse of every input and stays HIGH as long as any one of them is HIGH. It is LOW only in the gaps where A, B and C are all LOW together.
بە سێ ، X هەموو HIGHـی هەموو پەیڕەو دەکات و تا یەکێکیان HIGH بێت HIGH دەمێنێتەوە. تەنها لەو بۆشاییانەدا LOWـە کە A، B و C هەموویان پێکەوە LOW بن.
OR is logical addition, not binary additionOR کۆکردنەوەی لۆجیکییە، نەک کۆکردنەوەی دووانی
The report ends with a conclusion: the OR gate works like addition in binary — , , and . The first three rows are right, and they explain why OR is written with a plus sign. The last row is where OR and real binary addition part ways.
ڕاپۆرتەکە بە دەرئەنجامێک کۆتایی دێت: وەک کۆکردنەوە لە کار دەکات — ، ، و . سێ ڕیزی یەکەم ڕاستن و ڕوونی دەکەنەوە بۆچی OR بە نیشانەی کۆ دەنووسرێت. ڕیزی کۆتایی ئەو شوێنەیە کە OR و ڕاستەقینە لێک جیا دەبنەوە.
A OR BA OR B | A + B in binary arithmeticA + B لە ژمێرکاریی | ||
|---|---|---|---|
| 0 | 0 | 0 | 0 |
| 0 | 1 | 1 | 1 |
| 1 | 0 | 1 | 1 |
| 1 | 1 | 1 | 10 (sum 0, carry 1)10 (کۆ 0، 1) |
OR is logical addition, not binary additionOR کۆکردنەوەی لۆجیکییە، نەک کۆکردنەوەی دووانی
Logical addition, and the circuit that really addsکۆکردنەوەی لۆجیکی و ئەو سووڕەی کە بەڕاستی کۆ دەکاتەوە
The statistics course shows the same OR laws as algebra, with as a law: AND and OR laws.
کۆرسی ئامار هەمان یاساکانی OR وەک جەبر پیشان دەدات و وەک یاسایەک دادەنێت: یاساکانی AND و OR.
Common mistakesهەڵە باوەکان
| Mistakeهەڵە | Fixچارەسەر |
|---|---|
| Writing (or 10) in an OR truth table.نووسینی (یان 10) لە ORـدا. | In logic, + means OR: .لە لۆجیکدا + واتە OR: . |
| Thinking OR is 0 when the inputs are different.وا بیرکردنەوە کە OR کاتێک جیاوازن 0ـە. | OR is 0 only when all inputs are 0. (“1 only when different” is XOR.)OR تەنها کاتێک 0ـە کە هەموو 0 بن. («1 تەنها کاتێک جیاوازن» XORـە.) |
| Mixing up the switch models.تێکەڵکردنی نموونەکانی . | Series (one after the other) = AND; parallel (side by side) = OR.زنجیرەیی (یەک لە دوای یەک) = AND؛ هاوتەریب (لە تەنیشت یەک) = OR. |
| Drawing OR with a flat back.کێشانی OR بە پشتێکی ڕاست. | A flat back and round front is AND. OR has a curved back and a pointed front.پشتی ڕاست و پێشی خڕ ANDـە. OR پشتێکی کەوانەیی و پێشێکی نووکتیژی هەیە. |
Exercisesڕاهێنانەکان
Over six intervals A is and B is . Find .
لە شەش ماوەدا A بریتییە لە و B لە . بدۆزەوە.
Show answerوەڵامەکە پیشان بدە
| t1 | t2 | t3 | t4 | t5 | t6 | |
|---|---|---|---|---|---|---|
| A | 0 | 1 | 0 | 0 | 1 | 0 |
| B | 0 | 0 | 1 | 0 | 1 | 0 |
| 0 | 1 | 1 | 0 | 1 | 0 |
In t5 both inputs are 1 and X is still just 1.
لە t5دا هەردوو 1ن و X هێشتا تەنها 1ـە.
Find for (a) and (b) .
بدۆزەوە بۆ (أ) و (ب) .
Show answerوەڵامەکە پیشان بدە
Case (a) is the row shown in the course author's simulator screenshot.
باری (أ) ئەو ڕیزەیە کە لە خاوەنی کۆرسەکەدا پیشان دراوە.
Explain in one or two sentences why the sentence “the OR gate works like binary addition” is wrong. Use the row .
بە یەک یان دوو ڕستە ڕوونی بکەرەوە بۆچی ڕستەی « وەک کار دەکات» هەڵەیە. ڕیزی بەکار بهێنە.
Show answerوەڵامەکە پیشان بدە
For the OR gate gives 1, but binary addition gives (sum 0, carry 1). They agree on the other three rows only, so OR is logical addition, not arithmetic addition.
بۆ 1 دەدات، بەڵام دەدات (کۆ 0، 1). تەنها لە سێ ڕیزەکەی تردا یەک دەگرنەوە، بۆیە OR کۆکردنەوەی لۆجیکییە نەک کۆکردنەوەی ژمێرکاری.
Three switches are connected in parallel between a battery and a lamp. Which gate is this, and for which switch setting is the lamp OFF?
سێ بە هاوتەریبی لە نێوان پاترییەک و گڵۆپێکدا بەستراون. ئەمە کام و بۆ کام ڕێکخستنی گڵۆپەکە کوژاوەیە؟
Show answerوەڵامەکە پیشان بدە
A 3-input OR, . The lamp is OFF only when all three switches are open ().
OR بە سێ ، . گڵۆپەکە تەنها کاتێک کوژاوەیە کە هەر سێ کراوە بن ().
Summaryپوختە
- Switches in parallel: the lamp lights when A OR B (or both) is closed.
- OR gives 1 when at least one input is 1 and 0 only when all inputs are 0; written .
- Symbols: a curved shield shape or an IEC box marked . An OR gate has at least two inputs.
- With n inputs, is 0 in one row and 1 in the other .
- OR is logical addition: . Binary addition gives .
- هاوتەریب: گڵۆپەکە هەڵدەبێت کاتێک A یان B (یان هەردووکیان) داخراو بن.
- OR 1 دەدات کاتێک لانیکەم یەک 1 بێت و تەنها کاتێک 0 دەدات کە هەموو 0 بن؛ بە دەنووسرێت.
- : شێوەی قەڵغانی کەوانەیی یان سندووقی IEC بە . لانیکەم دوو هەیە.
- بە n ، لە یەک ڕیزدا 0ـە و لە ڕیزەکەی تردا 1.
- OR کۆکردنەوەی لۆجیکییە: . دەدات.
What does the IEC mark on an OR box mean?نیشانەی ـی IEC لەسەر سندووقی OR واتای چییە؟
The output is 1 when at least one input is 1.
1ـە کاتێک لانیکەم یەک 1 بێت.
, , , . What is ?، ، ، . چییە؟
, because B is 1.
، چونکە B 1ـە.
Lesson complete!وانەکە تەواو بوو!
Well done. Review the key terms, then go on to the next lesson.دەستخۆش. سەیرێکی زاراوە سەرەکییەکان بکەرەوە، پاشان بڕۆ بۆ وانەی داهاتوو.
Key termsزاراوە سەرەکییەکان
NAND, NOR and the Negative Gatesگەیتی NAND، گەیتی NOR و گەیتە نەرێنییەکان
Related lecturesوانە پەیوەندیدارەکان
References and further readingسەرچاوەکان و خوێندنەوەی زیاتر
- Wikipedia: OR gate (logical disjunction, the ≥1 symbol)
- Wikipedia: Logic gate
- T. L. Floyd, Digital Fundamentals, 11th ed., §3-3 The OR gate (Pearson, 2015)
This lecture is a first edition. The Kurdish text and terminology are waiting for review by Kurdish IT teachers.ئەم وانەیە چاپی یەکەمە. دەقە کوردییەکە و زاراوەکانی چاوەڕێی پێداچوونەوەی مامۆستایانی کوردی بواری IT ن.