Chapterبەش 9 · Lectureوانە 9.3
Half and Full Addersنیوەکۆکەرەوە و کۆکەرەوەی تەواو
Binary addition built from gates: the half adder (XOR + AND), the full adder, a 4-bit ripple-carry adder, the half and full subtractor, and how one adder also subtracts — then a look back at the course so far and a map of what comes next (sequential logic in the last chapter, then computer architecture).
بە دروست کراو: (XOR + AND)، ، بە چوار ، نیوەلێدەرکەر و لێدەرکەری تەواو و چۆن یەک لێدەرکردنیش دەکات — پاشان ئاوڕدانەوەیەک لە کۆرسەکە تا ئێستا و نەخشەی ئەوەی دواتر دێت ( لە کۆتا بەشدا، پاشان تەلارسازیی ).
What you will learnچی فێر دەبیت
- Derive the half adder from the binary addition table: , .
- Explain the full adder, its equations and how it is built from two half adders.
- Add two 4-bit numbers stage by stage in a ripple-carry adder and explain its delay.
- Build the half and full subtractor and compare them with the adders.
- Name what comes next: more combinational blocks and sequential logic (the last chapter of this course), then computer architecture.
- لە خشتەی دەربهێنیت: ، .
- ، هاوکێشەکانی و چۆنیەتیی دروستکردنی لە دوو ڕوون بکەیتەوە.
- دوو ژمارەی چوار قۆناغ بە قۆناغ لە کۆ بکەیتەوە و دواکەوتنەکەی ڕوون بکەیتەوە.
- نیوەلێدەرکەر و لێدەرکەری تەواو دروست بکەیت و بەراوردیان بکەیت لەگەڵ .
- ناوی ئەوەی دواتر دێت بزانیت: بلۆکی تێکەڵەیی زیاتر و لۆجیکی زنجیرەیی (کۆتا بەشی ئەم کۆرسە)، پاشان تەلارسازیی .
Binary addition, built from gatesکۆکردنەوەی دووانی، بە گەیتەکان دروست کراو
In binary addition one column of two bits has only four cases: , , and . The answer always fits in two bits: a sum bit S that stays in the column and a carry bit C that moves to the next column. So adding one column is just a truth table with two outputs:
لە کۆکردنەوەی دووانیدا ستوونێک لە دوو تەنها چوار حاڵەتی هەیە: ، ، و . وەڵامەکە هەمیشە لە دوو جێ دەبێتەوە: کۆ S کە لە ستوونەکەدا دەمێنێتەوە و C کە دەچێتە ستوونی دواتر. کەواتە کۆکردنەوەی یەک ستوون تەنها بە دوو :
| 0 | 0 | 00 | 0 | 0 |
| 0 | 1 | 01 | 0 | 1 |
| 1 | 0 | 01 | 0 | 1 |
| 1 | 1 | 10 | 1 | 0 |
Now compare the output columns with the gates you know. The S column is 1 when A and B are different — that is XOR. The C column is 1 only when both are 1 — that is AND. Notice that S is not OR: OR would give 1 for . This is exactly where the OR-gate report went wrong when it called OR "binary addition".
ئێستا ستوونەکانی بەراورد بکە لەگەڵ کە دەیانناسیت. ستوونی S کاتێک 1ـە کە A و B جیاواز بن — ئەوە XORـە. ستوونی C تەنها کاتێک 1ـە کە هەردووکیان 1 بن — ئەوە ANDـە. سەرنج بدە کە S OR نییە: OR بۆ دەیدا 1. ئەمە ڕێک ئەو شوێنەیە کە ڕاپۆرتی گەیتی OR هەڵەی کرد کاتێک ORـی ناو نا «».
The half adderنیوەکۆکەرەوە
A circuit that adds two bits A and B and gives a sum bit and a carry bit . It cannot take a carry from a previous column.
سووڕێکە کە دوو بیتی A و B کۆ دەکاتەوە و بیتی کۆی و بیتی دەدات. ناتوانێت لە ستوونی پێشووەوە وەربگرێت.
So the circuit for one column is an XOR gate and an AND gate side by side, sharing the inputs A and B:
کەواتە یەک ستوون بریتییە لە و لە تەنیشت یەک کە A و B بەکار دەهێنن:
Check: is always the number (for : ).
پشکنین: هەمیشە ژمارەی ـە (بۆ : ).
A Sorani explanation of the half adder: adding two bits to get a sum bit and a carry bit.
ڕوونکردنەوەیەکی سۆرانی بۆ : کۆکردنەوەی دوو بۆ وەرگرتنی کۆ و .
In Sorani: the half adder.
بە سۆرانی: .
The half adderنیوەکۆکەرەوە
Why only “half”?بۆچی تەنها «نیوە»؟
Why only "half"? A half adder has no input for a carry coming from the column on its right. It can add the rightmost column of a number, but no other column, because every other column may receive a carry.
بۆچی تەنها «نیوە»؟ هیچ نییە بۆ کە لە ستوونەکەی لای ڕاستییەوە دێت. دەتوانێت ستوونی هەرە ڕاستی ژمارەیەک کۆ بکاتەوە، بەڵام هیچ ستوونێکی تر نا، چونکە هەموو ستوونێکی تر لەوانەیە وەربگرێت.
Picture friends standing in a row, one per column, each showing 0 or 1 fingers. When a friend's total reaches 2, he puts his finger down and taps the friend on his left, who must add one more — that tap is the carry. The friend at the right end never gets a tap: he is the half adder. Everyone else must listen to the tap from the right: they are full adders.
وا دابنێ چەند هاوڕێیەک لە ڕیزێکدا وەستاون، بۆ هەر ستوونێک یەکێک، هەر یەکێکیان 0 یان 1 پەنجە نیشان دەدات. کاتێک کۆی هاوڕێیەک دەگاتە 2، پەنجەکەی دادەگرێت و دەست لە شانی هاوڕێکەی لای چەپی دەدات کە دەبێت یەکێکی تر زیاد بکات — ئەو دەستلێدانە . هاوڕێکەی لای ڕاستی کۆتایی هەرگیز دەستی لێ نادرێت: ئەو . هەموو ئەوانی تر دەبێت گوێ لە دەستلێدانەکەی لای ڕاست بگرن: ئەوان .
Where the analogy stops workingسنووری ئەم نموونەیە
Friends can count to any number; a full adder's total is at most , so it never passes on more than one carry.
هاوڕێکان دەتوانن تا هەر ژمارەیەک بژمێرن؛ کۆی زۆرترین ـە، بۆیە هەرگیز زیاتر لە یەک نانێرێت.
The full adderکۆکەرەوەی تەواو
A circuit that adds three bits: A, B and a carry-in from the previous column. It gives a sum bit and a carry-out, and it can be built from two half adders and an OR gate.
سووڕێکە کە سێ بیت کۆ دەکاتەوە: A، B و کە لە ستوونی پێشووەوە دێت. بیتی کۆ و بۆ دەرەوە دەدات و دەتوانرێت لە دوو و دروست بکرێت.
A full adder has three inputs — the two bits A and B and the carry in from the column on the right — and two outputs, S and the carry out . The largest total is in binary, so two output bits are still enough.
سێ هەیە — دوو A و B و هاتوو لە ستوونەکەی لای ڕاستەوە — و دوو : S و دەرچوو . گەورەترین کۆ ـە بە ، بۆیە دوو هێشتا بەسن.
| totalکۆ | |||||
|---|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 0 | 0 |
| 0 | 0 | 1 | 1 | 0 | 1 |
| 0 | 1 | 0 | 1 | 0 | 1 |
| 0 | 1 | 1 | 2 | 1 | 0 |
| 1 | 0 | 0 | 1 | 0 | 1 |
| 1 | 0 | 1 | 2 | 1 | 0 |
| 1 | 1 | 0 | 2 | 1 | 0 |
| 1 | 1 | 1 | 3 | 1 | 1 |
Reading the table: S is 1 when an odd number of inputs are 1 — a 3-input XOR, the same odd-parity idea as in XOR. is 1 when at least two inputs are 1. You can get directly from a Karnaugh map of the minterms 3, 5, 6 and 7 (three overlapping pairs).
خوێندنەوەی خشتەکە: S کاتێک 1ـە کە ژمارەیەکی تاک لە 1 بن — XORـێکی سێ ، هەمان بیرۆکەی پاریتیی تاک وەک لە XOR. کاتێک 1ـە کە لانیکەم دوو 1 بن. دەتوانیت ڕاستەوخۆ بە نەخشەیەکی کارنۆ بۆ 3، 5، 6 و 7 وەربگریت (سێ جووتی یەکتربڕ).
The full adderکۆکەرەوەی تەواو
A full adder from two half addersکۆکەرەوەی تەواو لە دوو نیوەکۆکەرەوە
You do not need a new design. The first half adder adds A and B; the second adds to that partial sum. Each can produce a carry, and an OR gate joins the two carries:
پێویستت بە دیزاینێکی نوێ نییە. یەکەم A و B کۆ دەکاتەوە؛ دووەم بۆ ئەو کۆ ناتەواوە زیاد دەکات. هەر یەکێکیان دەتوانێت دروست بکات و دوو پێکەوە دەبەستێت:
Why is a simple OR enough for the two carries? They can never both be 1: the first carry needs , and then , so the second half adder cannot carry. So the full adder costs 5 gates: 2 XOR, 2 AND and 1 OR.
بۆچی ORـێکی سادە بۆ دوو بەسە؟ هەرگیز هەردووکیان پێکەوە 1 نابن: یەکەم پێویستی بە ـە و ئەو کاتە ، بۆیە دووەم ناتوانێت بدات. کەواتە 5 دەخایەنێت: 2 XOR، 2 AND و 1 OR.
A 4-bit ripple-carry adderکۆکەرەوەیەکی زنجیرەیی بە چوار بیت
Several full adders in a row, where each carry-out feeds the next carry-in, so n full adders add two n-bit numbers. The carry 'ripples' from right to left, which takes time.
چەند لە ڕیزێکدا کە دەرچووی هەر یەکێکیان دەچێتە ناو کۆکەرەوەی دواتر، بۆیە n کۆکەرەوەی تەواو دوو ژمارەی n بیتی کۆ دەکەنەوە. لە ڕاستەوە بۆ چەپ دەڕوات و ئەمەش کاتی دەوێت.
To add two 4-bit numbers and , put four full adders side by side, one per column, and connect the carry out of each stage to the carry in of the stage on its left — exactly like carrying by hand. The first carry in, , is 0 (that stage could even be a half adder). The last carry out, , is the fifth bit of the answer.
بۆ کۆکردنەوەی دوو ژمارەی چوار و ، چوار لە تەنیشت یەک دابنێ (بۆ هەر ستوونێک یەکێک) و دەرچووی هەر قۆناغێک ببەستە بە هاتووی قۆناغەکەی لای چەپی — ڕێک وەک گواستنەوە بە دەست. یەکەم هاتوو، ، 0ـە (ئەو قۆناغە تەنانەت دەتوانێت بێت). دوایین دەرچوو، ، پێنجەمین وەڵامەکەیە.
Example: (). Each stage adds its two bits and the carry it receives:
نموونە: (). هەر قۆناغێک دوو و ئەو وەری دەگرێت کۆ دەکاتەوە:
| Stageقۆناغ | |||||
|---|---|---|---|---|---|
| 0 | 1 | 0 | 0 | 0 | 1 |
| 1 | 1 | 1 | 0 | 1 | 0 |
| 2 | 0 | 1 | 1 | 1 | 0 |
| 3 | 1 | 0 | 1 | 1 | 0 |
Reading S from stage 3 down to stage 0 and putting in front gives — the same result as adding by hand.
خوێندنەوەی S لە قۆناغی 3ـەوە بۆ قۆناغی 0 و دانانی لە پێشەوە دەدات — هەمان ئەنجامی کۆکردنەوە بە دەست.
A 4-bit ripple-carry adderکۆکەرەوەیەکی زنجیرەیی بە چوار بیت
Why it is called “ripple”بۆچی پێی دەوترێت «زنجیرەیی»
Watch . Stage 1 cannot finish until stage 0 has produced its carry, stage 2 waits for stage 1, and so on: the carry travels along the chain like a ripple on water.
سەیری بکە. قۆناغی 1 ناتوانێت تەواو بێت تا قۆناغی 0 دروست نەکات، قۆناغی 2 چاوەڕێی قۆناغی 1 دەکات و بەم شێوەیە: بە درێژایی زنجیرەکە دەڕوات وەک شەپۆلێک لەسەر ئاو.


Each stage needs a little time, so the delay grows with the number of bits: a 64-bit ripple-carry adder must wait for the carry to pass 64 stages. Real processors therefore use faster adders that work out the carries in advance (called carry-lookahead adders). The idea of adding with full adders stays the same.
هەر قۆناغێک کەمێک کاتی پێویستە، بۆیە دواکەوتنەکە لەگەڵ ژمارەی زیاد دەبێت: بە 64 دەبێت چاوەڕێ بکات تا بە 64 قۆناغدا تێدەپەڕێت. بۆیە پرۆسێسەرە ڕاستەقینەکان خێراتر بەکار دەهێنن کە پێشوەختە هەژمار دەکەن (پێیان دەوترێت carry-lookahead). بیرۆکەی کۆکردنەوە بە وەک خۆی دەمێنێتەوە.
Animated robots show how a ripple-carry adder waits for each carry, and how carry-lookahead adders avoid the wait.
لە پیشان دەدەن چۆن چاوەڕێی هەر دەکات و carry-lookahead چۆن ئەو چاوەڕێکردنە لادەبەن.
0:00–2:40: why each stage of a ripple-carry adder waits for its carry; then the carry-lookahead adder this screen mentions.
0:00 تا 2:40: بۆچی هەر قۆناغێکی چاوەڕێی دەکات؛ پاشان carry-lookahead، کە ئەم بەشە ناوی دەهێنێت.
Half and full subtractorsنیوەلێدەرکەر و لێدەرکەری تەواو
Subtraction can also be built straight from gates. One column of has four cases (the subtraction rules): , , , and , which gives 1 and a borrow from the next column. A half subtractor has two outputs: the difference D and the borrow for the next column, .
لێدەرکردنیش دەتوانرێت ڕاستەوخۆ بە دروست بکرێت. یەک ستوونی چوار حاڵەتی هەیە (یاساکانی لێدەرکردن): ، ، و کە 1 دەدات لەگەڵ لە ستوونی دواتر. نیوەلێدەرکەر دوو هەیە: جیاوازی D و بۆ ستوونی دواتر، .
| 0 | 0 | 0 | 0 | 0 |
| 0 | 1 | 1 | 1 | |
| 1 | 0 | 1 | 1 | 0 |
| 1 | 1 | 0 | 0 | 0 |
Top: half subtractor. Bottom: full subtractor, which also takes a borrow in, , from the column on the right.
سەرەوە: نیوەلێدەرکەر. خوارەوە: لێدەرکەری تەواو، کە لە ستوونەکەی لای ڕاستەوە وەردەگرێت، .
D is the same XOR as the adder's sum bit; only the borrow is new, and it is 1 only for . Like the full adder, a full subtractor can be built from two half subtractors and an OR gate. Processors seldom use them: the next screen shows how one adder does both jobs with the 2's complement.
D هەمان XORـی کۆی ؛ تەنها نوێیە و تەنها بۆ یەکسانە بە 1. وەک ، لێدەرکەری تەواو دەتوانرێت لە دوو نیوەلێدەرکەر و دروست بکرێت. پرۆسێسەرەکان کەم بەکاریان دەهێنن: پەڕەی دواتر نیشان دەدات چۆن یەک بە هەردوو کارەکە دەکات.
One adder can also subtractیەک کۆکەرەوە دەتوانێت لێدەرکردنیش بکات
From signed arithmetic you know that is plus the 2's complement of B, and the 2's complement is "invert every bit, then add 1". A ripple-carry adder can do both with one extra control input, SUB:
لە ژمێرکاریی ژمارە نیشانەدارەکان دەزانیت کە یەکسانە بە زائید تەواوکەری دووی B و واتە «هەموو پێچەوانە بکەرەوە، پاشان 1 زیاد بکە». دەتوانێت هەردووکیان بکات بە یەک کۆنترۆڵی زیادە، SUB:
- Each bit passes through an XOR gate with SUB: (unchanged) and (inverted).
- SUB is also connected to , so adds the extra 1.
- : the circuit computes . : it computes .
- هەر لەگەڵ SUB دەچێتە ناو : (نەگۆڕاو) و (پێچەوانەکراو).
- SUB هەروەها بە ـەوە بەستراوە، بۆیە ئەو 1ـە زیادەیە زیاد دەکات.
- : هەژمار دەکات. : هەژمار دەکات.
The final carry is discarded, as in 2's-complement addition.
کۆتایی فڕێ دەدرێت، وەک لە کۆکردنەوە بە تەواوکەری دوو.
This is how a processor's arithmetic unit does both + and − with one adder. Overflow is checked with the rule of the signed arithmetic lesson: it happens when the carry into the last stage differs from the carry out of it.
ئەمە ئەو ڕێگایەیە کە یەکەی ژمێرکاریی پرۆسێسەرێک بە یەک هەم + و هەم − دەکات. بە ڕێسای وانەی ژمێرکاریی ژمارە نیشانەدارەکان دەپشکنرێت: ڕوو دەدات کاتێک هاتوو بۆ دوایین قۆناغ جیاواز بێت لە دەرچوو لێی.
Common mistakesهەڵە باوەکان
| Mistakeهەڵە | Fixچارەسەر |
|---|---|
| Using OR for the sum bit.بەکارهێنانی OR بۆ کۆ. | The sum bit is XOR: OR gives the wrong answer for . کۆ XORـە: OR بۆ وەڵامی هەڵە دەدات. |
| Using half adders for every column.بەکارهێنانی بۆ هەموو ستوونێک. | Only the rightmost column can be a half adder; the others must accept a carry in.تەنها ستوونی هەرە ڕاست دەتوانێت بێت؛ ئەوانی تر دەبێت هاتوو وەربگرن. |
| Chaining carries from left to right.بەستنی لە چەپەوە بۆ ڕاست. | Carries go from bit 0 (right) towards bit 3 (left), like carrying by hand. لە 0ـەوە (ڕاست) بەرەو 3 (چەپ) دەڕۆن، وەک گواستنەوە بە دەست. |
| Forgetting the final carry .لەبیرکردنی کۆتایی . | For unsigned numbers it is the fifth bit of the sum ().بۆ پێنجەمین کۆکەیە (). |
| Thinking is a typo for .وا بیرکردنەوە کە هەڵەی نووسینە بۆ . | The carry is worth 2 in its column: . لە ستوونەکەی خۆیدا بەهای 2ـە: . |
| Using the adder's carry rule for a subtractor's borrow.بەکارهێنانی یاسای بۆ لێدەرکەر. | The borrow of a half subtractor is (only ), not . نیوەلێدەرکەر ـە (تەنها )، نەک . |
Exercisesڕاهێنانەکان
Add with a 4-bit ripple-carry adder. Give every carry to and the sum.
بە بە چوار کۆ بکەرەوە. هەموو تا و کۆکە بدە.
Show answerوەڵامەکە پیشان بدە
| Stageقۆناغ | |||||
|---|---|---|---|---|---|
| 0 | 1 | 1 | 0 | 1 | 0 |
| 1 | 0 | 1 | 1 | 1 | 0 |
| 2 | 1 | 1 | 1 | 1 | 1 |
| 3 | 1 | 0 | 1 | 1 | 0 |
, sum ().
، کۆ ().
A full adder gets , and . Find S and from the equations and check with .
، و وەردەگرێت. S و لە هاوکێشەکانەوە بدۆزەوە و بە پشکنین بکە.
Show answerوەڵامەکە پیشان بدە
Draw the K-map of (minterms 3, 5, 6, 7 of A, B, ) and simplify it.
بکێشە ( 3، 5، 6، 7 ی A، B، ) و کورتی بکەرەوە.
Show answerوەڵامەکە پیشان بدە
| 00 | 01 | 11 | 10 | |
|---|---|---|---|---|
| 0 | 0 | 0 | 1 | 0 |
| 1 | 0 | 1 | 1 | 1 |
Three overlapping pairs around cell 7: (cells 3, 7), (cells 5, 7) and (cells 7, 6). .
سێ جووتی یەکتربڕ بە دەوری خانەی 7دا: (خانەکانی 3، 7)، (خانەکانی 5، 7) و (خانەکانی 7، 6). .
A full adder uses 5 gates and a half adder 2. How many gates does a 4-bit ripple-carry adder need (a) with four full adders, (b) with a half adder in stage 0? How many for 32 bits with full adders only?
5 بەکار دەهێنێت و 2. بە چوار پێویستی بە چەند هەیە (أ) بە چوار ، (ب) بە لە قۆناغی 0دا؟ بۆ 32 تەنها بە چەندە؟
Show answerوەڵامەکە پیشان بدە
(a) . (b) . 32 bits: gates.
(أ) . (ب) . بۆ 32 : .
With , what does the 4-bit adder–subtractor output for , ? Read the result as a signed number.
بە ، و لێدەرکەری چوار بۆ ، چی دەدات؟ ئەنجامەکە وەک بخوێنەوە.
Show answerوەڵامەکە پیشان بدە
in 2's complement is , and indeed .
بە یەکسانە بە و بەڕاستی .
Someone builds a "half adder" with an OR gate for S and an AND gate for C. For which input is it wrong, and what does it output there?
کەسێک «»ـێک دروست دەکات بە بۆ S و بۆ C. بۆ کام هەڵەیە و لەوێدا چی دەدات؟
Show answerوەڵامەکە پیشان بدە
Only for : it outputs , , which means . The right answer is (, ). Use XOR for S.
تەنها بۆ : ، دەدات کە واتە . وەڵامی ڕاست ـە (، ). XOR بۆ S بەکاربهێنە.
Complete the truth table of a full subtractor (inputs A, B and the borrow in ; outputs D and ). Then check the row .
لێدەرکەری تەواو تەواو بکە (: A، B و هاتوو ؛ : D و ). پاشان ڕیزی بپشکنە.
Hintئاماژە
Compute . If it is negative, borrow: add 2 and set .
هەژمار بکە. ئەگەر سالب بوو، بخوازە: 2 زیاد بکە و دابنێ.
Show answerوەڵامەکە پیشان بدە
| 0 | 0 | 0 | 0 | 0 | 0 |
| 0 | 0 | 1 | 1 | 1 | |
| 0 | 1 | 0 | 1 | 1 | |
| 0 | 1 | 1 | 0 | 1 | |
| 1 | 0 | 0 | 1 | 1 | 0 |
| 1 | 0 | 1 | 0 | 0 | 0 |
| 1 | 1 | 0 | 0 | 0 | 0 |
| 1 | 1 | 1 | 1 | 1 |
D is 1 when an odd number of inputs are 1 (a 3-input XOR, like the sum bit). is 1 whenever the result is negative. Row : borrow 2, so and .
D کاتێک 1ـە کە ژمارەیەکی تاک لە 1 بن (XORـێکی سێ ، وەک کۆ). هەر کاتێک ئەنجامەکە سالب بێت 1ـە. ڕیزی : 2 بخوازە، بۆیە و .
Summaryپوختە
- Adding one column gives two bits: the sum and the carry — a half adder.
- A full adder also takes a carry in: , ; it is two half adders and an OR (5 gates).
- A ripple-carry adder chains n full adders; the carry travels from bit 0 to bit , so the delay grows with n.
- A half subtractor gives and the borrow ; a full subtractor adds a borrow in.
- XOR gates on the B inputs and turn the adder into an adder–subtractor ().
- کۆکردنەوەی یەک ستوون دوو دەدات: کۆی و — .
- هاتووش وەردەگرێت: ، ؛ دوو و ORـێکە (5 ).
- n بە زنجیرە دەبەستێت؛ لە 0ـەوە بۆ دەڕوات، بۆیە دواکەوتنەکە لەگەڵ n زیاد دەبێت.
- نیوەلێدەرکەر و دەدات؛ لێدەرکەری تەواو هاتووش وەردەگرێت.
- لەسەر B و دەکەن بە و لێدەرکەر ().
Why is the sum bit XOR and not OR?بۆچی بیتی کۆ XORـە نەک OR؟
Because : the sum bit must be 0 when both inputs are 1.
چونکە : کۆ دەبێت 0 بێت کاتێک هەردوو 1ن.
What is the difference between a half adder and a full adder?جیاوازیی نێوان نیوەکۆکەرەوە و کۆکەرەوەی تەواو چییە؟
The full adder has a third input, the carry in from the column on its right.
سێیەمی هەیە، هاتوو لە ستوونەکەی لای ڕاستییەوە.
What limits the speed of a ripple-carry adder?چی خێرایی کۆکەرەوەی زنجیرەیی سنووردار دەکات؟
The carry must pass through the stages one after another.
دەبێت یەک لە دوای یەک بە قۆناغەکاندا تێپەڕێت.
The course so far in one screenکۆرسەکە تا ئێستا لە یەک پەڕەدا
With adders you have built a circuit that calculates. Here is the road so far, chapter by chapter:
بە دروست کرد کە ژمێرکاری دەکات. ئەمە ئەو ڕێگایەیە کە تا ئێستا بڕیوتە، بەش بە بەش:
- Digital foundations — analog and digital signals, two logic levels, pulses and clocks.
- Number systems — place value, conversions between decimal, binary, octal and hex.
- Binary arithmetic and signed numbers — addition and subtraction, 1's and 2's complements, sign-magnitude.
- Digital codes — BCD, the Gray code and ASCII.
- Electricity and electronic parts — the basics of electricity and the parts that real gates are built from.
- Logic gates — NOT, AND, OR, NAND, NOR, XOR and XNOR, with truth tables and timing diagrams.
- Boolean algebra — laws, rules, De Morgan's theorems and simplification.
- Standard forms — SOP and POS, minterms and maxterms.
- Building logic circuits — from expression to circuit, Karnaugh maps and adders (this lesson).
- بنەماکانی — سیگناڵەکانی ئەنالۆگ و دیجیتاڵ، دوو ، و .
- — بەهای خانەیی، گۆڕین لە نێوان ، ، و .
- ژمێرکاریی و — کۆکردنەوە و لێدەرکردن، و ، .
- کۆدە — کۆدی دەیی دووانی، کۆدی گرەی و ASCII.
- کارەبا و پارچە ئەلیکترۆنییەکان — بنەماکانی کارەبا و ئەو پارچانەی ڕاستەقینەکان لێیان دروست دەکرێن.
- — NOT، AND، OR، NAND، NOR، XOR و XNOR، لەگەڵ و .
- — یاساکان، ڕێساکان، و کورتکردنەوە.
- — SOP و POS، مینتێرمەکان و ماکستێرمەکان.
- دروستکردنی — لە دەربڕینی بوولییەوە بۆ سووڕ، نەخشەکانی کارنۆ و (ئەم وانەیە).
Notice how this lesson ties the course together: binary addition became a circuit of logic gates, described with Boolean algebra.
سەرنج بدە چۆن ئەم وانەیە کۆرسەکە پێکەوە دەبەستێتەوە: بوو بە لە کە بە وەسف دەکرێت.
What comes nextدواتر چی دێت
Every circuit so far is combinational: same inputs, same outputs, no memory. The course goes on. The next lesson, Simulating and Testing Logic Circuits, lets a computer check your circuits, and the last chapter, Building Blocks and Sequential Logic, adds bigger building blocks and circuits with memory. Here is the map of the road ahead.
هەموو تا ئێستا تێکەڵەییـە: هەمان ، هەمان ، بێ . کۆرسەکە بەردەوامە. وانەی دواتر فێرت دەکات چۆن تاقی بکاتەوە (simulation) و کۆتا بەش، بلۆکە بنیاتنەرەکان و سووڕە زنجیرەییەکان، بلۆکی گەورەتر و خاوەن زیاد دەکات. ئەمە نەخشەی ڕێگای داهاتووە.
What comes nextدواتر چی دێت
More combinational building blocksبلۆکی تێکەڵەیی زیاتر
- Comparators decide whether two binary numbers are equal, or which one is larger.
- Decoders turn an n-bit code into one active output out of ; encoders do the reverse. (Taught in the last chapter.)
- Code converters change one code into another, for example binary to BCD or to Gray code.
- Multiplexers select one of several inputs with select lines; demultiplexers send one input to one of several outputs. (Taught in the last chapter.)
- Parity generators and checkers compute the parity bit with XOR gates.
- بەراوردکەرەکان بڕیار دەدەن ئایا دوو ژمارەی یەکسانن، یان کامیان گەورەترە.
- کۆدهەڵوەشێنەرەکان کۆدێکی n دەکەن بە یەک چالاک لە ؛ کۆدکەرەکان پێچەوانەکەی دەکەن. (لە کۆتا بەشدا فێر دەکرێت.)
- گۆڕەرەکانی کۆد کۆدێک دەگۆڕن بۆ کۆدێکی تر، بۆ نموونە بۆ یان بۆ .
- مەڵتیپلێکسەرەکان بە هێڵی هەڵبژاردن یەکێک لە چەند هەڵدەبژێرن؛ دیمەڵتیپلێکسەرەکان (DEMUX) یەک دەنێرن بۆ یەکێک لە چەند . (لە کۆتا بەشدا فێر دەکرێت.)
- دروستکەر و پشکنەری بیتی پاریتی بە هەژمار دەکەن.
What comes nextدواتر چی دێت
Sequential logic: circuits with memoryلۆجیکی زنجیرەیی: سووڕی خاوەن بیرگە
- A sequential circuit has outputs that depend on the present inputs and on what happened before. It usually follows a clock signal.
- Latches and flip-flops store one bit each — the smallest memory.
- Registers are groups of flip-flops that hold a whole binary word; shift registers move the bits along.
- Counters step through a sequence of binary numbers on each clock pulse; timers produce pulses of a chosen length.
- هەیە کە بەندن بە ئێستا و بەوەی پێشتر ڕوویداوە. زۆرجار سیگناڵی کاتژمێر پەیڕەو دەکات.
- لاچەکان و فلیپ-فلۆپەکان هەر یەکەیان یەک هەڵدەگرن — بچووکترین .
- تۆمارگەکان کۆمەڵێک کە تەواو هەڵدەگرن؛ جووڵاندن دەجووڵێنن.
- ژمێرەرە دیجیتاڵەکان لە هەر بە زنجیرەیەک ژمارەی دەڕۆن؛ تایمەرەکان درێژیی دیاریکراو دروست دەکەن.
What comes nextدواتر چی دێت
Computer architectureتەلارسازیی کۆمپیوتەر
Put an adder–subtractor, a few logic operations (AND, OR, XOR) and a multiplexer together and you have an . An ALU, registers and a control unit that follows a clock form a CPU. CêIT's Information Technology course continues from here: the CPU and its ALU, registers and buses and how a computer runs a program. For the English words of the parts inside a computer see Inside the computer.
و لێدەرکەرێک، چەند (AND، OR، XOR) و پێکەوە دابنێ و دەبێت. ALU، و کە پەیڕەو دەکات پێک دەهێنن. کۆرسی لە CêIT لێرەوە بەردەوام دەبێت: CPU و ALU، تۆمارگەکان و تێپەڕگەکان و کۆمپیوتەر چۆن بەرنامەیەک جێبەجێ دەکات. بۆ وشە ئینگلیزییەکانی بەشەکانی ناو بڕوانە ناو کۆمپیوتەر.
Videoڤیدیۆ
Watch a videoسەیری ڤیدیۆیەک بکە
A video that viewers liked a lot and praised in their comments, chosen for this lesson.ڤیدیۆیەک کە بینەران زۆریان پێ خۆش بووە و لە کۆمێنتەکانیاندا ستایشیان کردووە، بۆ ئەم وانەیە هەڵبژێردراوە.
Builds binary addition from gates: half adder, full adder and chaining full adders to add longer numbers, with a light circuit.
لە دروست دەکات: ، و بەستنەوەی بە یەکەوە بۆ کۆکردنەوەی ژمارەی درێژتر، لەگەڵ گڵۆپدار.
Chapters: 2:03 truth table, 4:35 half adders, 7:34 full adder logic, 9:44 full adder circuit.
بەشەکان: 2:03 ، 4:35 ، 7:34 لۆجیکی ، 9:44 .
Lesson complete!وانەکە تەواو بوو!
Well done. Review the key terms, then go on to the next lesson.دەستخۆش. سەیرێکی زاراوە سەرەکییەکان بکەرەوە، پاشان بڕۆ بۆ وانەی داهاتوو.
Key termsزاراوە سەرەکییەکان
Simulating and Testing Logic Circuitsهاوشێوەکردن و تاقیکردنەوەی سووڕە لۆجیکییەکان
Related lecturesوانە پەیوەندیدارەکان
References and further readingسەرچاوەکان و خوێندنەوەی زیاتر
- Wikipedia: Adder (electronics)
- Wikipedia: Adder–subtractor
- Wikipedia: Subtractor (half and full subtractor)
- MIT OpenCourseWare 6.004 Computation Structures (Spring 2017), 4.1 Annotated slides (full adder as a combinational building block)
- Wikipedia: Sequential logic
- Wikipedia: Arithmetic logic unit
- University of Washington CSE 369: Introduction to Digital Design (course description)
- M. M. Mano and M. D. Ciletti, Digital Design, 6th ed. (Pearson, 2024) — publisher page
- T. L. Floyd, Digital Fundamentals, 11th ed., §6-1/6-2 adders; ch. 7 and 9 (Pearson, 2015) — topic order only
This lecture is a first edition. The Kurdish text and terminology are waiting for review by Kurdish IT teachers.ئەم وانەیە چاپی یەکەمە. دەقە کوردییەکە و زاراوەکانی چاوەڕێی پێداچوونەوەی مامۆستایانی کوردی بواری IT ن.