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 X=A+BX = A + B, 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 (1  OR  1=11 \;\mathrm{OR}\; 1 = 1, while in binary arithmetic 1+1=101 + 1 = 10).

: دوو هاوتەریب، یاسای «0 تەنها کاتێک هەموو 0 بن»، نووسینی کۆ X=A+BX = A + B، هەردوو ، بە زیاتر، ، تاقیکردنەوەی OR بە سێ خاوەنی کۆرسەکە لە . هەروەها بۆچی OR کۆکردنەوەی لۆجیکییە بەڵام نییە (1  OR  1=11 \;\mathrm{OR}\; 1 = 1، بەڵام لە ژمێرکاریی 1+1=101 + 1 = 10).

12 min read13 خولەک خوێندنەوە · 13 stepsهەنگاو

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

  • Explain the OR gate with two switches in parallel and state its rule.
  • Write X=A+B+C+…X = A + B + C + \dots, 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.
  • بە دوو هاوتەریب ڕوون بکەیتەوە و یاساکەی بڵێیت.
  • X=A+B+C+…X = A + B + C + \dots بنووسیت، هەردوو 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 A=1A = 1 or B=1B = 1 (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ـە کاتێک A=1A = 1 یان B=1B = 1 بێت (یان هەردووکیان). بۆچی هەر لقێکی هاوتەریب هەموو پاترییەکە وەردەگرێت لە بەستنی زنجیرەیی و بەستنی هاوتەریبدا ڕوون کراوەتەوە؛ هەمان OR بە لە OR: دوو ترانزیستۆر بە بەستنی هاوتەریبدایە.

Four small circuits, one for each switch combination. Each has a battery, two switches A and B in parallel and a lamp. A = 0, B = 0: both switches open, lamp OFF. A = 0, B = 1: current flows through B, lamp ON. A = 1, B = 0: current flows through A, lamp ON. A = 1, B = 1: current flows through both, lamp ON.چوار سووڕی بچووک، یەکێک بۆ هەر تێکەڵەیەکی سویچەکان. هەر یەکێکیان پاترییەک، دوو سویچی هاوتەریبی A و B و گڵۆپێکی هەیە. A = 0، B = 0: هەردوو سویچ کراوەن، گڵۆپ کوژاوەیە. A = 0، B = 1: تەزوو بە Bـدا دەڕوات، گڵۆپ هەڵکراوە. A = 1، B = 0: تەزوو بە Aـدا دەڕوات، گڵۆپ هەڵکراوە. A = 1، B = 1: تەزوو بە هەردووکیاندا دەڕوات، گڵۆپ هەڵکراوە.
Parallel switches: one closed path is enough, so the lamp is OFF only when A=B=0A = B = 0. هاوتەریب: یەک ڕێگای داخراو بەسە، بۆیە گڵۆپەکە تەنها کاتێک کوژاوەیە کە A=B=0A = B = 0 بێت.CêIT
Two bell buttons, one bellدوو دوگمەی زەنگ، یەک زەنگ

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 1  OR  1=11 \;\mathrm{OR}\; 1 = 1, not 2. Remember this for the last screen of the lesson.

داگرتنی هەردوو دوگمەکە زەنگەکە دوو جار یان دوو هێندە بەرز لێنادات — تەنها لێدەدات. بە هەمان شێوە 1  OR  1=11 \;\mathrm{OR}\; 1 = 1، نەک 2. ئەمە بۆ دوایین پەڕەی وانەکە لەبیر بێت.

Quick checkپشکنینی خێراTwo switches are in parallel with a lamp. A is open and B is closed. What does the lamp do?دوو هاوتەریب لەگەڵ گڵۆپێکدان. A کراوەیە و B داخراوە. گڵۆپەکە چی دەکات؟

How Logic Gates Work - The Learning Circuitelement14 presents · Englishئینگلیزی · 159K viewsبینین · 4.2K likesلایک · Partبەشی 4:05–5:37 (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 وەک دوو بە کە گڵۆپێک دادەگیرسێنن، هەروەها کە چەند تێدایە، وەک پێچەوانەکەری شەشی کە شەش تێدایە.

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 و خشتەی ڕاستییەکەی

Definitionپێناسە

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: A+BA + B.

کە 1ـە کاتێک لانیکەم یەکێک لە 1 بێت؛ تەنها کاتێک 0ـە کە هەموو 0 بن. لە OR بە نیشانەی کۆ دەنووسرێت: A+BA + B.

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: X=A+BX = A + B, read “A OR B”. Here + does not mean ordinary addition — the last screen of this lesson shows exactly where the two differ.

لە OR بە نیشانەی کۆ دەنووسرێت: X=A+BX = A + B، کە دەخوێنرێتەوە «⁦A OR B⁩». لێرەدا + واتای کۆکردنەوەی ئاسایی نییە — دوایین پەڕەی ئەم وانەیە ڕێک پیشان دەدات ئەم دووانە لە کوێدا جیاوازن.

Truth table of a 2-input OR gate بە دوو
AABBX=A+BX = A + B
000
011
101
111
Quick checkپشکنینی خێراFor which inputs is the output of a 2-input OR gate 0? بە دوو بۆ کام 0ـە؟

Everything about Logic Gates in 12 Minutes | AND, OR, NOT, NOR, NAND, XOR, XNOR GatesBrain Station Advanced · Englishئینگلیزی · 237K viewsبینین · 5.3K likesلایک · Partبەشی 5:54–7:26 (ofلە 12:26)

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 ≥1\geq 1, which reads “the output is 1 when at least one input is 1”.

OR پشتێکی کەوانەیی و پێشێکی نووکتیژی هەیە، وەک قەڵغانێک. لە شێوازی لاکێشەیی IECـدا سندووقێکە بە نیشانەی ≥1\geq 1، واتە « 1ـە کاتێک لانیکەم یەک 1 بێت».

Quick checkپشکنینی خێراA box marked ≥1\geq 1 gets the inputs 0, 0, 0 and 1. What is its output?سندووقێک بە نیشانەی ≥1\geq 1 ئەم چوار وەردەگرێت: 0، 0، 0 و 1. چییە؟

OR gates with more inputsگەیتەکانی OR بە نێوخستەی زیاتر

Like AND, an OR gate can have more inputs. The expression just adds more terms: X=A+B+C+D+…X = A + B + C + D + \dots. The output is 0 only in the one row where every input is 0; in all the other 2n−12^n - 1 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، دەتوانێت زیاتری هەبێت. دەربڕینەکە تەنها بڕگەی زیاتر زیاد دەکات: X=A+B+C+D+…X = A + B + C + D + \dots. تەنها لەو یەک ڕیزەدا 0ـە کە هەموو 0 بێت؛ لە هەموو 2n−12^n - 1 ڕیزەکەی تردا 1ـە. هەروەک ڕاپۆرتی خاوەنی کۆرسەکە دەڵێت، بە دوو و سێ زۆرترین جار بەکار دەهێنرێن.

OR gate symbols with 2, 3 and 4 inputs, labelled X = A + B (4 input combinations), X = A + B + C (8) and X = A + B + C + D (16), and below them the rectangular IEC symbol, a box marked at least 1.هێماکانی گەیتی OR بە 2، 3 و 4 نێوخستە، بە ناونیشانی X = A + B (4 تێکەڵە)، X = A + B + C (8) و X = A + B + C + D (16). لە خوارەوەش هێمای لاکێشەیی IEC هەیە: سندووقێک بە نیشانەی «لانیکەم 1».
OR gates with 2, 3 and 4 inputs and the IEC box. بە 2، 3 و 4 و سندووقی IEC.CêIT
Quick checkپشکنینی خێراA 4-input OR gate: in how many of the 16 rows of its truth table is X=1X = 1? بە چوار : لە چەند ڕیز لە ⁦16⁩ ڕیزەکەی X=1X = 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 باس کراوە.

The course author's 3-input OR circuit in a circuit-simulator app (labels in English). The numbers he added show one row of the truth table: inputs 0, 0, 1 give output 1, so the LED is lit. Read the input values from these numbers; the simulator draws the three switches alike. OR بە سێ خاوەنی کۆرسەکە لە (ناونیشانەکان ئینگلیزین). ئەو ژمارانەی خۆی زیادی کردوون یەک ڕیزی پیشان دەدەن: 0، 0، 1 1 دەدەن، بۆیە LEDـەکە هەڵکراوە. نرخی لەم ژمارانەوە بخوێنەرەوە؛ هەر سێ وەک یەک دەکێشێت.Course material

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.»

Quick checkپشکنینی خێراIn the simulator circuit, switch C1 is set back to 0, so all three inputs are 0. What does the LED do?لە ⁦C1⁩ دەگەڕێتەوە بۆ 0، بۆیە هەر سێ 0ن. LEDـەکە چی دەکات؟

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ـەکە بکە: تەنها لە ڕیزی یەکەمدا کوژاوەیە.

Animation of a +5 V rail, three switches A, B and C, a 3-input OR gate and an LED to ground. The switches step through 000, 001, 010, 011, 100, 101, 110 and 111, and the matching row of the truth table lights up. The LED is off for 000 and lit for every other row. The last frame says one row gives 0 and the other seven give 1.
Animation of a +5 V rail, three switches A, B and C, a 3-input OR gate and an LED to ground. The switches step through 000, 001, 010, 011, 100, 101, 110 and 111, and the matching row of the truth table lights up. The LED is off for 000 and lit for every other row. The last frame says one row gives 0 and the other seven give 1.
A 3-input OR: the LED is off only when A = B = C = 0.OR بە سێ : LEDـەکە تەنها کاتێک کوژاوەیە کە ⁦A = B = C = 0⁩ بێت.CêIT
Truth table of the 3-input OR circuit (from the report) OR بە سێ (لە ڕاپۆرتەکەوە)
AABBCCX=A+B+CX = A + B + C
0000
0011
0101
0111
1001
1011
1101
1111

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

Work interval by interval, as for AND. In the lecture's example, over four intervals A is 1  0  0  11\;0\;0\;1 and B is 1  1  0  01\;1\;0\;0, so X=A+BX = A + B is 1  1  0  11\;1\;0\;1: the output drops to LOW only in t3, where both inputs are LOW.

ماوە بە ماوە کار بکە، هەروەک بۆ AND. لە نموونەی وانەکەدا، لە چوار ماوەدا A بریتییە لە 1  0  0  11\;0\;0\;1 و B لە 1  1  0  01\;1\;0\;0، بۆیە X=A+BX = A + B دەبێتە 1  1  0  11\;1\;0\;1: تەنها لە ⁦t3⁩دا دادەبەزێت بۆ LOW، کە هەردوو LOWـن.

Timing diagram over intervals t1 to t4. A is 1, 0, 0, 1. B is 1, 1, 0, 0. X = A + B is 1, 1, 0, 1.هێڵکاریی کاتبەندی لە ماوەکانی t1 تا t4. A: 1، 0، 0، 1. B: 1، 1، 0، 0. X = A + B: 1، 1، 0، 1.
X is HIGH whenever A or B (or both) is HIGH.X هەر کاتێک A یان B (یان هەردووکیان) HIGH بن HIGHـە.CêIT
Quick checkپشکنینی خێراIn one interval A is LOW and B is HIGH. What is the OR output?لە ماوەیەکدا ⁦A LOW⁩ـە و ⁦B HIGH⁩ـە. OR چییە؟

Waveforms of Basic Logic Gates | Digital Logic Design | Digital Electronics | Undergrad AcademyUndergrad Academy · Englishئینگلیزی · 130K viewsبینین · 2.1K likesلایک · Partبەشی 1:04–1:36 (ofلە 2:20)

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 بن.

Timing diagram over intervals t1 to t8. A is 1, 0, 0, 0, 1, 0, 0, 0. B is 0, 0, 1, 0, 0, 0, 1, 0. C is 0, 1, 1, 1, 0, 0, 0, 0. X = A + B + C is 1, 1, 1, 1, 1, 0, 1, 0.هێڵکاریی کاتبەندی لە ماوەکانی t1 تا t8. A: 1، 0، 0، 0، 1، 0، 0، 0. B: 0، 0، 1، 0، 0، 0، 1، 0. C: 0، 1، 1، 1، 0، 0، 0، 0. X = A + B + C: 1، 1، 1، 1، 1، 0، 1، 0.
A 3-input OR: X is LOW only in t6 and t8.OR بە سێ : X تەنها لە ⁦t6⁩ و ⁦t8⁩دا LOWـە.CêIT
Quick checkپشکنینی خێراIn interval t3 of the diagram, B and C are both HIGH. What is X?لە ماوەی ⁦t3⁩ـی هێڵکارییەکەدا B و C هەردووکیان HIGHـن. X چییە؟

OR is logical addition, not binary additionOR کۆکردنەوەی لۆجیکییە، نەک کۆکردنەوەی دووانی

The report ends with a conclusion: the OR gate works like addition in binary — 0+0=00 + 0 = 0, 0+1=10 + 1 = 1, 1+0=11 + 0 = 1 and 1+1=11 + 1 = 1. 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.

ڕاپۆرتەکە بە دەرئەنجامێک کۆتایی دێت: وەک کۆکردنەوە لە کار دەکات — 0+0=00 + 0 = 0، 0+1=10 + 1 = 1، 1+0=11 + 0 = 1 و 1+1=11 + 1 = 1. سێ ڕیزی یەکەم ڕاستن و ڕوونی دەکەنەوە بۆچی OR بە نیشانەی کۆ دەنووسرێت. ڕیزی کۆتایی ئەو شوێنەیە کە OR و ڕاستەقینە لێک جیا دەبنەوە.

OR compared with binary additionبەراوردی OR لەگەڵ
AABBA OR BA OR BA + B in binary arithmetic⁦A + B⁩ لە ژمێرکاریی
0000
0111
1011
11110 (sum 0, carry 1)⁦10⁩ (کۆ 0، ⁦1⁩)
Quick checkپشکنینی خێراWhat is 1  OR  11 \;\mathrm{OR}\; 1, and what is 1+11 + 1 in binary arithmetic?1  OR  11 \;\mathrm{OR}\; 1 چییە و 1+11 + 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 1+1=11 + 1 = 1 as a law: AND and OR laws.

کۆرسی ئامار هەمان یاساکانی OR وەک جەبر پیشان دەدات و 1+1=11 + 1 = 1 وەک یاسایەک دادەنێت: یاساکانی AND و OR.

Quick checkپشکنینی خێراIn the binary addition A+BA + B, which gate gives the sum bit (0, 1, 1, 0 for the rows 00, 01, 10, 11)?لە A+BA + Bـدا، کام کۆ دەدات (⁦0⁩، 1، 1، 0 بۆ ڕیزەکانی ⁦00⁩، ⁦01⁩، ⁦10⁩، ⁦11⁩)؟

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

MistakeهەڵەFixچارەسەر
Writing 1+1=21 + 1 = 2 (or 10) in an OR truth table.نووسینی 1+1=21 + 1 = 2 (یان ⁦10⁩) لە ORـدا.In logic, + means OR: 1+1=11 + 1 = 1.لە لۆجیکدا + واتە OR: 1+1=11 + 1 = 1.
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ڕاهێنانەکان

ExerciseڕاهێنانYour own timing diagramهێڵکاریی کاتبەندیی خۆت

Over six intervals A is 0  1  0  0  1  00\;1\;0\;0\;1\;0 and B is 0  0  1  0  1  00\;0\;1\;0\;1\;0. Find X=A+BX = A + B.

لە شەش ماوەدا A بریتییە لە 0  1  0  0  1  00\;1\;0\;0\;1\;0 و B لە 0  0  1  0  1  00\;0\;1\;0\;1\;0. X=A+BX = A + B بدۆزەوە.

Show answerوەڵامەکە پیشان بدە
t1t2t3t4t5t6
A010010
B001010
X=A+BX = A + B011010

In t5 both inputs are 1 and X is still just 1.

لە ⁦t5⁩دا هەردوو 1ن و X هێشتا تەنها 1ـە.

ExerciseڕاهێنانEvaluate an expressionدەربڕینێک هەژمار بکە

Find X=A+B+CX = A + B + C for (a) A=0, B=0, C=1A = 0,\ B = 0,\ C = 1 and (b) A=0, B=0, C=0A = 0,\ B = 0,\ C = 0.

X=A+B+CX = A + B + C بدۆزەوە بۆ (أ) A=0, B=0, C=1A = 0,\ B = 0,\ C = 1 و (ب) A=0, B=0, C=0A = 0,\ B = 0,\ C = 0.

Show answerوەڵامەکە پیشان بدە
(a)  0+0+1=1(b)  0+0+0=0\begin{aligned} (a)\;& 0 + 0 + 1 = 1 \\ (b)\;& 0 + 0 + 0 = 0 \end{aligned}

Case (a) is the row shown in the course author's simulator screenshot.

باری (أ) ئەو ڕیزەیە کە لە خاوەنی کۆرسەکەدا پیشان دراوە.

ExerciseڕاهێنانOR or binary addition?OR یان کۆکردنەوەی دووانی؟

Explain in one or two sentences why the sentence “the OR gate works like binary addition” is wrong. Use the row A=1, B=1A = 1,\ B = 1.

بە یەک یان دوو ڕستە ڕوونی بکەرەوە بۆچی ڕستەی « وەک کار دەکات» هەڵەیە. ڕیزی A=1, B=1A = 1,\ B = 1 بەکار بهێنە.

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

For A=1, B=1A = 1,\ B = 1 the OR gate gives 1, but binary addition gives 1+1=101 + 1 = 10 (sum 0, carry 1). They agree on the other three rows only, so OR is logical addition, not arithmetic addition.

بۆ A=1, B=1A = 1,\ B = 1 1 دەدات، بەڵام 1+1=101 + 1 = 10 دەدات (کۆ 0، ⁦1⁩). تەنها لە سێ ڕیزەکەی تردا یەک دەگرنەوە، بۆیە OR کۆکردنەوەی لۆجیکییە نەک کۆکردنەوەی ژمێرکاری.

ExerciseڕاهێنانThree parallel switchesسێ سویچی هاوتەریب

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, X=A+B+CX = A + B + C. The lamp is OFF only when all three switches are open (A=B=C=0A = B = C = 0).

OR بە سێ ، X=A+B+CX = A + B + C. گڵۆپەکە تەنها کاتێک کوژاوەیە کە هەر سێ کراوە بن (A=B=C=0A = B = C = 0).

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 X=A+BX = A + B.
  • Symbols: a curved shield shape or an IEC box marked ≥1\geq 1. An OR gate has at least two inputs.
  • With n inputs, X=A+B+C+…X = A + B + C + \dots is 0 in one row and 1 in the other 2n−12^n - 1.
  • OR is logical addition: 1+1=11 + 1 = 1. Binary addition gives 1+1=101 + 1 = 10.
  • هاوتەریب: گڵۆپەکە هەڵدەبێت کاتێک A یان B (یان هەردووکیان) داخراو بن.
  • ⁦OR 1⁩ دەدات کاتێک لانیکەم یەک 1 بێت و تەنها کاتێک 0 دەدات کە هەموو 0 بن؛ بە X=A+BX = A + B دەنووسرێت.
  • : شێوەی قەڵغانی کەوانەیی یان سندووقی IEC بە ≥1\geq 1. لانیکەم دوو هەیە.
  • بە n ، X=A+B+C+…X = A + B + C + \dots لە یەک ڕیزدا 0ـە و لە 2n−12^n - 1 ڕیزەکەی تردا 1.
  • OR کۆکردنەوەی لۆجیکییە: 1+1=11 + 1 = 1. 1+1=101 + 1 = 10 دەدات.
Review questionsپرسیارەکانی پێداچوونەوە
What does the IEC mark ≥1\geq 1 on an OR box mean?نیشانەی ≥1\geq 1ـی IEC لەسەر سندووقی OR واتای چییە؟

The output is 1 when at least one input is 1.

1ـە کاتێک لانیکەم یەک 1 بێت.

A=0A = 0, B=1B = 1, C=0C = 0, D=0D = 0. What is A+B+C+DA + B + C + D?A=0A = 0، B=1B = 1، C=0C = 0، D=0D = 0. A+B+C+DA + B + C + D چییە؟

A+B+C+D=1A + B + C + D = 1, because B is 1.

A+B+C+D=1A + B + C + D = 1، چونکە ⁦B 1⁩ـە.

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

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

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

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

NAND, NOR and the Negative Gatesگەیتی NAND، گەیتی NOR و گەیتە نەرێنییەکان

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

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