Chapterبەش 8 · Lectureوانە 8.3

Minterms, Maxterms and Truth Tablesمینتێرمەکان، ماکستێرمەکان و خشتەکانی ڕاستی

Every row of a truth table has one minterm (a product that is 1 only there) and one maxterm (a sum that is 0 only there). Learn to write and number them, to use Σm and ΠM, to see that both describe the same function, and to build truth tables from standard SOP and POS expressions.

هەموو ڕیزێکی یەک (لێکدانێک کە تەنها لەوێ 1ـە) و یەک (کۆیەک کە تەنها لەوێ 0ـە) هەیە. فێر دەبیت چۆن بیاننووسیت و ژمارەیان بۆ دابنێیت، Σm و ΠM بەکاربهێنیت، ببینیت هەردووکیان هەمان وەسف دەکەن و لە و ستانداردەوە دروست بکەیت.

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

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

  • Write the minterm and the maxterm of any row and name them mim_i and MiM_i.
  • Write a function as ∑m(…)\sum m(\ldots) and as ∏M(…)\prod M(\ldots) and convert between them.
  • Build the truth table of a standard SOP or POS expression.
  • Avoid the classic mistake of putting the bars on the wrong bits.
  • و هەر ڕیزێک بنووسیت و ناویان بنێیت mim_i و MiM_i.
  • وەک ∑m(…)\sum m(\ldots) و وەک ∏M(…)\prod M(\ldots) بنووسیت و لە نێوانیاندا بیگۆڕیت.
  • یان ستاندارد دروست بکەیت.
  • خۆت لە هەڵە باوەکەی دانانی هێڵ لەسەر هەڵە بپارێزیت.

One row, one termیەک ڕیز، یەک بڕ

In a standard SOP or POS expression, every term contains every variable of the function, plain or with a bar. Such a term is tied to exactly one row of the truth table. A function of three variables has 23=82^3 = 8 rows, so there are 8 of these product terms and 8 of these sum terms. They have names: minterms and maxterms. This lesson shows how to write them, how to name them with a number, and how to move between an expression and its truth table.

لە SOP یان POSـدا هەموو بڕێک هەموو لەخۆ دەگرێت، یان بە ساکاری یان بە هێڵێک لەسەریەوە. بڕێکی وا ڕێک بە یەک ڕیزی بەستراوە. بە سێ 23=82^3 = 8 ڕیزی هەیە، بۆیە 8 وا و 8 وا هەن. ناوی تایبەتیان هەیە: و . ئەم وانەیە نیشانی دەدات چۆن دەیاننووسیت، چۆن بە ژمارەیەک ناویان دەنێیت و چۆن لە دەچیت بۆ و بە پێچەوانەوە.

A building with eight flatsباڵەخانەیەک بە هەشت شوقە

Picture a building with 8 flats, numbered 0 to 7 — one flat for each row of a 3-variable truth table. A minterm is like a parcel with a complete address: it reaches one flat only (it is 1 in one row and 0 everywhere else). A maxterm is like a planned power cut for one flat: every flat has electricity (1) except that one (0).

باڵەخانەیەک بهێنە بەرچاوت کە 8 شوقەی هەیە بە ژمارەی 0 تا 7 — بۆ هەر ڕیزێکی بە سێ شوقەیەک. وەک پاکەتێکە کە ناونیشانێکی تەواوی لەسەرە: تەنها دەگاتە یەک شوقە (لە یەک ڕیزدا 1ـە و لە هەموو شوێنێکی تردا ⁦0⁩). وەک بڕینی کارەبای پلاندارە بۆ یەک شوقە: هەموو شوقەکان کارەبایان هەیە ⁦(1)⁩ جگە لەو یەک شوقەیە ⁦(0)⁩.

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

A real flat can receive many parcels. In logic each row has exactly one minterm and one maxterm, and a function has either a 1 or a 0 in that row, never both.

شوقەیەکی ڕاستەقینە دەتوانێت چەندین پاکەت وەربگرێت. لە لۆجیکدا هەر ڕیزێک ڕێک یەک و یەک هەیە و لەو ڕیزەدا یان 1ـە یان 0، هەرگیز هەردووکیان نا.

Quick checkپشکنینی خێراA function has four variables A, B, C and D. How many minterms does it have (one per row)? چوار هەیە: A، B، C و D. چەند هەیە (بۆ هەر ڕیزێک یەک)؟

Minterms: equal to 1 in one rowمینتێرمەکان: تەنها لە یەک ڕیزدا 1

Definitionپێناسە

A product term that contains every variable once, plain or complemented, so it is 1 for exactly one input row. Row 101 gives the minterm AB‾CA\overline{B}C, written m5m_5.

کە هەموو گۆڕاوێک تەنها یەک جار لەخۆ دەگرێت، ئاسایی یان بە تەواوکەر، بۆیە ڕێک بۆ یەک ڕیزی 1ـە. ڕیزی ⁦101⁩ مینتێرمی AB‾CA\overline{B}C دەدات کە بە m5m_5 دەنووسرێت.

To write the minterm of a row, look at its bits: a variable whose bit is 1 is written plain, a variable whose bit is 0 gets a bar. Take row 5, where ABC=101ABC = 101: A is 1, so write AA; B is 0, so write B‾\overline{B}; C is 1, so write CC. The minterm is AB‾CA\overline{B}C.

بۆ نووسینی ڕیزێک سەیری بکە: کە 1 بێت بە ساکاری دەنووسرێت، ئەوەی 0 بێت هێڵێکی لەسەر دادەنرێت. ڕیزی 5 وەربگرە کە تێیدا ABC=101ABC = 101: A یەکسانە بە 1، بۆیە AA بنووسە؛ B یەکسانە بە 0، بۆیە B‾\overline{B} بنووسە؛ C یەکسانە بە 1، بۆیە CC بنووسە. AB‾CA\overline{B}Cـە.

Why this works: a product (AND) is 1 only when every literal in it is 1. In row 101 the literals AA, B‾\overline{B} and CC are all 1, so AB‾C=1⋅1⋅1=1A\overline{B}C = 1 \cdot 1 \cdot 1 = 1. In every other row at least one literal is 0, and the product is 0. The minterm is named with the row number in decimal: 1012=5101_2 = 5, so AB‾C=m5A\overline{B}C = m_5.

بۆچی ئەمە ڕاستە: لێکدان ⁦(AND)⁩ تەنها کاتێک 1ـە کە هەموو ناوی 1 بن. لە ڕیزی ⁦101⁩ـدا AA، B‾\overline{B} و CC هەموویان 1ن، بۆیە AB‾C=1⋅1⋅1=1A\overline{B}C = 1 \cdot 1 \cdot 1 = 1. لە هەر ڕیزێکی تردا لانیکەم یەک 0ـە و لێکدانەکە دەبێتە 0. ناوی ژمارەی ڕیزەکەیە بە : 1012=5101_2 = 5، بۆیە AB‾C=m5A\overline{B}C = m_5.

Row 5 of a truth table: A = 1, B = 0, C = 1. Left, in a green box, its minterm A B-bar C, named m5, which is 1 only in this row; rule: bit 1 → write A, bit 0 → write A-bar. Right, in an orange box, its maxterm A-bar + B + C-bar, named M5, which is 0 only in this row; rule: bit 0 → write A, bit 1 → write A-bar.ڕیزی 5ی خشتەیەکی ڕاستی: A = 1، B = 0، C = 1. لە چەپ لە سندووقێکی سەوزدا مینتێرمەکەی A B-هێڵدار C، بە ناوی m5، کە تەنها لەم ڕیزەدا 1ـە؛ ڕێسا: بیت 1 → A، بیت 0 → A-هێڵدار. لە ڕاست لە سندووقێکی پرتەقاڵیدا ماکستێرمەکەی A-هێڵدار + B + C-هێڵدار، بە ناوی M5، کە تەنها لەم ڕیزەدا 0ـە؛ ڕێسا: بیت 0 → A، بیت 1 → A-هێڵدار.
The same row gives a minterm (bars on the 0s) and a maxterm (bars on the 1s).هەمان ڕیز دەدات (هێڵ لەسەر 0ـەکان) و (هێڵ لەسەر 1ـەکان).CêIT
Quick checkپشکنینی خێراFor which row is the minterm A‾BC‾\overline{A}B\overline{C} equal to 1? A‾BC‾\overline{A}B\overline{C} لە کام ڕیزدا یەکسانە بە 1؟

Maxterms: equal to 0 in one rowماکستێرمەکان: تەنها لە یەک ڕیزدا 0

Definitionپێناسە

A sum term that contains every variable once, plain or complemented, so it is 0 for exactly one input row. Row 101 gives the maxterm A‾+B+C‾\overline{A} + B + \overline{C}, written M5M_5.

کە هەموو گۆڕاوێک تەنها یەک جار لەخۆ دەگرێت، ئاسایی یان بە تەواوکەر، بۆیە ڕێک بۆ یەک ڕیزی 0ـە. ڕیزی ⁦101⁩ ماکستێرمی A‾+B+C‾\overline{A} + B + \overline{C} دەدات کە بە M5M_5 دەنووسرێت.

A maxterm uses the opposite rule: a variable whose bit is 0 is written plain, a variable whose bit is 1 gets a bar. For row 5 (ABC=101ABC = 101) the maxterm is A‾+B+C‾\overline{A}+B+\overline{C}, named M5M_5 with a capital M.

ڕێسای پێچەوانە بەکار دەهێنێت: کە 0 بێت بە ساکاری دەنووسرێت، ئەوەی 1 بێت هێڵی لەسەر دادەنرێت. بۆ ڕیزی 5 (ABC=101ABC = 101) A‾+B+C‾\overline{A}+B+\overline{C}ـە و ناوی M5M_5ـە بە Mـی گەورە.

Why the rule is reversed: a sum (OR) is 0 only when every literal in it is 0. In row 101 we need each literal to be 0: A‾=0\overline{A} = 0 because A=1A = 1, B=0B = 0, and C‾=0\overline{C} = 0 because C=1C = 1. So A‾+B+C‾=0+0+0=0\overline{A}+B+\overline{C} = 0+0+0 = 0 in this row. In any other row at least one literal is 1, and the sum is 1.

بۆچی ڕێساکە پێچەوانەیە: کۆ ⁦(OR)⁩ تەنها کاتێک 0ـە کە هەموو ناوی 0 بن. لە ڕیزی ⁦101⁩ـدا پێویستە هەر 0 بێت: A‾=0\overline{A} = 0 چونکە A=1A = 1، B=0B = 0 و C‾=0\overline{C} = 0 چونکە C=1C = 1. بۆیە لەم ڕیزەدا A‾+B+C‾=0+0+0=0\overline{A}+B+\overline{C} = 0+0+0 = 0. لە هەر ڕیزێکی تردا لانیکەم یەک 1ـە و کۆکە دەبێتە 1.

Quick checkپشکنینی خێراWhat is the maxterm of row 6 (ABC=110ABC = 110)? ڕیزی 6 (ABC=110ABC = 110) چییە؟

All eight minterms and maxtermsهەر هەشت مینتێرم و ماکستێرمەکە

Here is the complete list for three variables. Read each row both ways: the minterm bars the 0s, the maxterm bars the 1s.

ئەمە لیستی تەواوە بۆ سێ . هەر ڕیزێک بە هەردوو ڕێگاکە بخوێنەوە: هێڵ لەسەر 0ـەکان دادەنێت و لەسەر 1ـەکان.

Minterms and maxterms of three variables و سێ
RowڕیزAABBCCMinterm (= 1 in this row) (لەم ڕیزەدا = ⁦1⁩)Maxterm (= 0 in this row) (لەم ڕیزەدا = ⁦0⁩)
0000000A‾ B‾ C‾=m0\overline{A}\,\overline{B}\,\overline{C} = m_0A+B+C=M0A+B+C = M_0
1000011A‾ B‾C=m1\overline{A}\,\overline{B}C = m_1A+B+C‾=M1A+B+\overline{C} = M_1
2001100A‾BC‾=m2\overline{A}B\overline{C} = m_2A+B‾+C=M2A+\overline{B}+C = M_2
3001111A‾BC=m3\overline{A}BC = m_3A+B‾+C‾=M3A+\overline{B}+\overline{C} = M_3
4110000AB‾ C‾=m4A\overline{B}\,\overline{C} = m_4A‾+B+C=M4\overline{A}+B+C = M_4
5110011AB‾C=m5A\overline{B}C = m_5A‾+B+C‾=M5\overline{A}+B+\overline{C} = M_5
6111100ABC‾=m6AB\overline{C} = m_6A‾+B‾+C=M6\overline{A}+\overline{B}+C = M_6
7111111ABC=m7ABC = m_7A‾+B‾+C‾=M7\overline{A}+\overline{B}+\overline{C} = M_7

With four variables A, B, C and D there are 16 rows, m0m_0 to m15m_{15} and M0M_0 to M15M_{15}. The rules do not change: AB‾ C‾DA\overline{B}\,\overline{C}D → 1001 → m9m_9. The order of the variables matters: A is always the leftmost bit (the most significant one).

بە چوار A، B، C و D، ⁦16⁩ ڕیز هەن: m0m_0 تا m15m_{15} و M0M_0 تا M15M_{15}. ڕێساکان ناگۆڕێن: AB‾ C‾D→1001→m9A\overline{B}\,\overline{C}D \to 1001 \to m_9. ڕیزبەندیی گرنگە: A هەمیشە لای چەپە ().

Quick checkپشکنینی خێراWith four variables, which maxterm is A‾+B+C+D‾\overline{A}+B+C+\overline{D}?بە چوار ، A‾+B+C+D‾\overline{A}+B+C+\overline{D} کام ؟

Standard SOP = a sum of mintermsSOPـی ستاندارد = کۆی مینتێرمەکان

Every term of a standard SOP expression is a minterm, so a standard SOP is simply a sum of minterms, also called the minterm expansion of the function. You already know from Standard SOP and POS Forms that a standard SOP has one product term for each row where the function is 1. Now each of those terms has a name and a number, so the whole function fits in one short line.

هەموو بڕێکی ، بۆیە ستاندارد بە سادەیی کۆی ، کە پێی دەوترێت فراوانکردنی . لە SOP و POSـی ستاندارد دەزانیت کە ستاندارد بۆ هەر ڕیزێک کە تێیدا 1 بێت هەیە. ئێستا هەر یەکێک لەو بڕانە ناو و ژمارەیەکی هەیە، بۆیە هەموو لە دێڕێکی کورتدا جێ دەبێتەوە.

From a standard SOP to Σ notationلە کۆی لێکدانەکانی ستانداردەوە بۆ نووسینی Σ
  1. Start from the standard SOP of the course notes:

    لە ستانداردی تێبینییەکانی کۆرسەکەوە دەست پێ بکە:

    f(A,B,C)=A‾BC+AB‾ C‾+AB‾C+ABC‾+ABCf(A,B,C) = \overline{A}BC + A\overline{B}\,\overline{C} + A\overline{B}C + AB\overline{C} + ABC
  2. Write each term as bits (plain = 1, bar = 0), then as a row number:

    هەر بڕێک وەک بنووسە (ساکار = 1، هێڵدار = ⁦0⁩) و پاشان وەک ژمارەی ڕیز:

    011+100+101+110+111=m3+m4+m5+m6+m7011 + 100 + 101 + 110 + 111 = m_3 + m_4 + m_5 + m_6 + m_7
  3. Another way to see it: every minterm appears with a coefficient, and the coefficient is the output in that row (0 = left out, 1 = kept):

    ڕێگایەکی تر بۆ بینینی: هەموو هاوکۆلکەیەکی هەیە و هاوکۆلکەکە ئەو ڕیزەیە (⁦0⁩ = لادەبرێت، 1 = دەمێنێتەوە):

    f=0⋅m0+0⋅m1+0⋅m2+1⋅m3+1⋅m4+1⋅m5+1⋅m6+1⋅m7f = 0\cdot m_0 + 0\cdot m_1 + 0\cdot m_2 + 1\cdot m_3 + 1\cdot m_4 + 1\cdot m_5 + 1\cdot m_6 + 1\cdot m_7
  4. Write it short with Σ ("sum of minterms"):

    بە Σ کورتی بنووسەوە («کۆی »):

    f(A,B,C)=∑m(3,4,5,6,7)f(A,B,C) = \sum m(3, 4, 5, 6, 7)
Quick checkپشکنینی خێراWhich expression is f(A,B,C)=∑m(0,7)f(A,B,C) = \sum m(0, 7)?f(A,B,C)=∑m(0,7)f(A,B,C) = \sum m(0, 7) کام ؟

Standard POS = a product of maxtermsPOSـی ستاندارد = لێکدانی ماکستێرمەکان

Every sum term of a standard POS expression is a maxterm, so a standard POS is a product of maxterms (the maxterm expansion). The function is 0 exactly in the rows of its maxterms and 1 in all the others.

هەموو ، بۆیە ستاندارد لێکدانی (فراوانکردنی ). ڕێک لە ڕیزەکانی خۆیدا 0ـە و لە هەموو ڕیزەکانی تردا 1.

From a standard POS to Π notationلە لێکدانی کۆکانی ستانداردەوە بۆ نووسینی Π
  1. Start from the standard POS of the course notes:

    لە ستانداردی تێبینییەکانی کۆرسەکەوە دەست پێ بکە:

    f(A,B,C)=(A+B+C)(A+B+C‾)(A+B‾+C)f(A,B,C) = (A+B+C)(A+B+\overline{C})(A+\overline{B}+C)
  2. Write each sum term as bits (plain = 0, bar = 1), then as a row number:

    هەر وەک بنووسە (ساکار = 0، هێڵدار = ⁦1⁩) و پاشان وەک ژمارەی ڕیز:

    (000)(001)(010)=M0⋅M1⋅M2(000)(001)(010) = M_0 \cdot M_1 \cdot M_2
  3. Write it short with Π ("product of maxterms"):

    بە Π کورتی بنووسەوە («لێکدانی »):

    f(A,B,C)=∏M(0,1,2)f(A,B,C) = \prod M(0, 1, 2)
Quick checkپشکنینی خێراf=∏M(0,1,2)f = \prod M(0, 1, 2). What is the output in row 1 (ABC=001ABC = 001)?f=∏M(0,1,2)f = \prod M(0, 1, 2). لە ڕیزی 1 (ABC=001ABC = 001) چییە؟

One function, two descriptionsیەک نەخشەی بوولی، دوو وەسف

Put the two examples side by side: ∑m(3,4,5,6,7)\sum m(3, 4, 5, 6, 7) and ∏M(0,1,2)\prod M(0, 1, 2) are the same function. The minterm list names the rows where f=1f = 1; the maxterm list names all the other rows, where f=0f = 0. Together the two lists contain every row number once, and no number is in both.

دوو نموونەکە لە تەنیشت یەک دابنێ: ∑m(3,4,5,6,7)\sum m(3, 4, 5, 6, 7) و ∏M(0,1,2)\prod M(0, 1, 2) هەمان . لیستی ئەو ڕیزانە دەڵێت کە f=1f = 1؛ لیستی هەموو ڕیزەکانی تر دەڵێت کە f=0f = 0. هەردوو لیستەکە پێکەوە هەموو ژمارەیەکی ڕیز یەک جار لەخۆ دەگرن و هیچ ژمارەیەک لە هەردووکیاندا نییە.

Animation: a cursor walks down the 8-row truth table of f, whose outputs are 0, 0, 0, 1, 1, 1, 1, 1. At each row the matching term is written beside it: for rows 0 to 2, where f = 0, the maxterms M0 = A + B + C, M1 = A + B + C-bar and M2 = A + B-bar + C in orange; for rows 3 to 7, where f = 1, the minterms m3 to m7 in green. The last frame shows f = m3 + m4 + m5 + m6 + m7 = Σm(3, 4, 5, 6, 7) and f = M0 · M1 · M2 = ΠM(0, 1, 2).
Animation: a cursor walks down the 8-row truth table of f, whose outputs are 0, 0, 0, 1, 1, 1, 1, 1. At each row the matching term is written beside it: for rows 0 to 2, where f = 0, the maxterms M0 = A + B + C, M1 = A + B + C-bar and M2 = A + B-bar + C in orange; for rows 3 to 7, where f = 1, the minterms m3 to m7 in green. The last frame shows f = m3 + m4 + m5 + m6 + m7 = Σm(3, 4, 5, 6, 7) and f = M0 · M1 · M2 = ΠM(0, 1, 2).
Every row is either a minterm of f (f=1f = 1) or a maxterm of f (f=0f = 0).هەر ڕیزێک یان fـە (f=1f = 1) یان fـە (f=0f = 0).CêIT

So converting is easy: to go from Σm to ΠM (or back), write the row numbers that are missing from the list. This is the same idea as converting a standard SOP into a standard POS in the previous lesson, written with numbers instead of terms.

بۆیە گۆڕین ئاسانە: بۆ چوون لە Σm بۆ ΠM (یان بە پێچەوانەوە) ئەو ژمارانەی ڕیز بنووسە کە لە لیستەکەدا نین. ئەمە هەمان بیرۆکەی گۆڕینی ستانداردە بۆ ستاندارد لە وانەی پێشوو، بەڵام بە ژمارە لە جیاتی بڕ.

Quick checkپشکنینی خێراA 3-variable function is f=∑m(1,2,6)f = \sum m(1, 2, 6). Which product of maxterms is the same function? بە سێ f=∑m(1,2,6)f = \sum m(1, 2, 6)ـە. کام لێکدانی هەمان ؟

From a standard SOP to a truth tableلە کۆی لێکدانەکانی ستانداردەوە بۆ خشتەی ڕاستی

Here you go from a standard expression to its truth table — the opposite of reading the standard forms off a truth table. Because every term is a minterm, each term marks exactly one row.

لێرەدا لە ستانداردەوە دەچیت بۆ — پێچەوانەی خوێندنەوەی شێوە ستانداردەکان لە خشتەی ڕاستییەوە. چونکە هەموو بڕێک ، هەر بڕێک ڕێک یەک ڕیز دیاری دەکات.

Methodڕێگا
  1. Write the binary value of each product term: a plain variable is 1, a barred one is 0.

    بەهای هەر بنووسە: ساکار 1ـە و هێڵدار 0.

  2. Put a 1 in the output column of each of those rows.

    لە ستوونی هەر یەکێک لەو ڕیزانەدا 1 دابنێ.

  3. Put a 0 in every other row.

    لە هەموو ڕیزەکانی تردا 0 دابنێ.

Example (Q8 i of the course): X=A‾ B‾C+AB‾ C‾+ABCX = \overline{A}\,\overline{B}C + A\overline{B}\,\overline{C} + ABC. The terms are 001, 100 and 111, so X=1X = 1 in rows 1, 4 and 7: X=∑m(1,4,7)X = \sum m(1, 4, 7).

نموونە (پرسیاری ⁦Q8 i⁩ـی کۆرسەکە): X=A‾ B‾C+AB‾ C‾+ABCX = \overline{A}\,\overline{B}C + A\overline{B}\,\overline{C} + ABC. بڕەکان ⁦001⁩، ⁦100⁩ و ⁦111⁩ن، بۆیە X لە ڕیزەکانی 1، 4 و 7دا 1ـە: X=∑m(1,4,7)X = \sum m(1, 4, 7).

Truth table of Q8 i ⁦Q8 i⁩
RowڕیزAABBCCXX
00000
10011
20100
30110
41001
51010
61100
71111
Quick checkپشکنینی خێراHow many 1s does the truth table of A‾BC‾+AB‾C\overline{A}B\overline{C} + A\overline{B}C have? A‾BC‾+AB‾C\overline{A}B\overline{C} + A\overline{B}C چەند 1ـی تێدایە؟

From a standard POS to a truth tableلە لێکدانی کۆکانی ستانداردەوە بۆ خشتەی ڕاستی

Methodڕێگا
  1. Write the binary value of each sum term: a plain variable is 0, a barred one is 1.

    بەهای هەر بنووسە: ساکار 0ـە و هێڵدار 1.

  2. Put a 0 in the output column of each of those rows.

    لە ستوونی هەر یەکێک لەو ڕیزانەدا 0 دابنێ.

  3. Put a 1 in every other row.

    لە هەموو ڕیزەکانی تردا 1 دابنێ.

Example (Q9 ii of the course): X=(A+B‾+C)(A+B+C‾)(A‾+B‾+C‾)X = (A+\overline{B}+C)(A+B+\overline{C})(\overline{A}+\overline{B}+\overline{C}). The sum terms are 010, 001 and 111, so X=0X = 0 in rows 2, 1 and 7, and X=1X = 1 in rows 0, 3, 4, 5 and 6: X=∏M(1,2,7)=∑m(0,3,4,5,6)X = \prod M(1, 2, 7) = \sum m(0, 3, 4, 5, 6).

نموونە (پرسیاری ⁦Q9 ii⁩ـی کۆرسەکە): X=(A+B‾+C)(A+B+C‾)(A‾+B‾+C‾)X = (A+\overline{B}+C)(A+B+\overline{C})(\overline{A}+\overline{B}+\overline{C}). ⁦010⁩، ⁦001⁩ و ⁦111⁩ن، بۆیە X لە ڕیزەکانی 2، 1 و 7دا 0ـە و لە ڕیزەکانی 0، 3، 4، 5 و 6دا 1ـە: X=∏M(1,2,7)=∑m(0,3,4,5,6)X = \prod M(1, 2, 7) = \sum m(0, 3, 4, 5, 6).

Truth table of Q9 ii ⁦Q9 ii⁩
RowڕیزAABBCCXX
00001
10010
20100
30111
41001
51011
61101
71110
Quick checkپشکنینی خێراFor which input is (A+B+C)(A‾+B+C)(A+B+C)(\overline{A}+B+C) equal to 0?(A+B+C)(A‾+B+C)(A+B+C)(\overline{A}+B+C) بۆ کام یەکسانە بە 0؟

A class quiz and its classic mistakeتاقیکردنەوەیەکی پۆل و هەڵە باوەکەی

A short class quiz asked: determine the truth table of X=(A+B+C)(A+B+C‾)(A+B‾+C‾)(A‾+B+C)(A‾+B‾+C)X = (A+B+C)(A+B+\overline{C})(A+\overline{B}+\overline{C})(\overline{A}+B+C)(\overline{A}+\overline{B}+C). The course author's answer started with the right plan: "the expression is POS, so we have to determine its maxterms". Write the maxterm of every row, mark the ones that appear in X — there X=0X = 0 — and every other row is 1.

تاقیکردنەوەیەکی کورتی پۆل پرسیبووی: ئەمە دیاری بکە: X=(A+B+C)(A+B+C‾)(A+B‾+C‾)(A‾+B+C)(A‾+B‾+C)X = (A+B+C)(A+B+\overline{C})(A+\overline{B}+\overline{C})(\overline{A}+B+C)(\overline{A}+\overline{B}+C). وەڵامەکەی خاوەنی کۆرسەکە بە پلانێکی دروست دەستی پێ کرد: « POSـە، بۆیە دەبێت دیاری بکەین». هەموو ڕیزێک بنووسە، ئەوانەی لە Xـدا هەن نیشانە بکە — لەوێدا X=0X = 0 — و هەموو ڕیزەکانی تر 1ن.

The quiz answer: five maxterms, so five 0sوەڵامی تاقیکردنەوەکە: پێنج ، بۆیە پێنج 0
RowڕیزABCABCMaxterm of the row ڕیزەکەIn X?لە Xـدا هەیە؟XX
0000000A+B+C=M0A+B+C = M_0yesبەڵێ0
1001001A+B+C‾=M1A+B+\overline{C} = M_1yesبەڵێ0
2010010A+B‾+C=M2A+\overline{B}+C = M_2noنەخێر1
3011011A+B‾+C‾=M3A+\overline{B}+\overline{C} = M_3yesبەڵێ0
4100100A‾+B+C=M4\overline{A}+B+C = M_4yesبەڵێ0
5101101A‾+B+C‾=M5\overline{A}+B+\overline{C} = M_5noنەخێر1
6110110A‾+B‾+C=M6\overline{A}+\overline{B}+C = M_6yesبەڵێ0
7111111A‾+B‾+C‾=M7\overline{A}+\overline{B}+\overline{C} = M_7noنەخێر1

So X=∏M(0,1,3,4,6)=∑m(2,5,7)X = \prod M(0, 1, 3, 4, 6) = \sum m(2, 5, 7): X is 1 only for 010, 101 and 111.

کەواتە X=∏M(0,1,3,4,6)=∑m(2,5,7)X = \prod M(0, 1, 3, 4, 6) = \sum m(2, 5, 7): X تەنها بۆ ⁦010⁩، ⁦101⁩ و ⁦111⁩ یەکسانە بە 1.

Quick checkپشکنینی خێراThe quiz function is X=∏M(0,1,3,4,6)X = \prod M(0, 1, 3, 4, 6). For which inputs is X=1X = 1? تاقیکردنەوەکە X=∏M(0,1,3,4,6)X = \prod M(0, 1, 3, 4, 6)ـە. X بۆ کام یەکسانە بە 1؟

A class quiz and its classic mistakeتاقیکردنەوەیەکی پۆل و هەڵە باوەکەی

The classic mistake: bars on the wrong bitsهەڵە باوەکە: هێڵ لەسەر بیتەکانی هەڵە

Quick checkپشکنینی خێراWhich sum term is the maxterm of row 010?کام ڕیزی ⁦010⁩ـە؟

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

MistakeهەڵەFixچارەسەر
Using the minterm rule for a maxterm (bars on the 0s).بەکارهێنانی ڕێسای بۆ (هێڵ لەسەر 0ـەکان).Maxterm: bars on the 1s. Row 101 → A‾+B+C‾\overline{A}+B+\overline{C}.: هێڵ لەسەر 1ـەکان. ڕیزی ⁦101⁩ ← A‾+B+C‾\overline{A}+B+\overline{C}.
Calling a sum term a minterm, or a product term a maxterm.ناونانی بە ، یان بە .Minterms are products (AND), maxterms are sums (OR) — always. لێکدانن ⁦(AND)⁩ و کۆن ⁦(OR)⁩ — هەمیشە.
Writing ∑m\sum m and ∏M\prod M with the same numbers for one function.نووسینی ∑m\sum m و ∏M\prod M بە هەمان ژمارەکان بۆ یەک .The maxterm numbers are the rows missing from the minterm list.ژمارەکانی ئەو ڕیزانەن کە لە لیستی نین.
Multiplying coefficients into maxterms (0⋅M30 \cdot M_3).لێکدانی هاوکۆلکە لەگەڵ (0⋅M30 \cdot M_3).Add them: (fi+Mi)(f_i + M_i). Or simply write ∏M(…)\prod M(\ldots).کۆیان بکەرەوە: (fi+Mi)(f_i + M_i). یان بە سادەیی ∏M(…)\prod M(\ldots) بنووسە.
Reading the variables in a different order (C as the leftmost bit).خوێندنەوەی بە ڕیزبەندییەکی تر (C وەک لای چەپ).Keep the order A, B, C (, D): A is the leftmost bit of the row number.ڕیزبەندیی A، B، C (، D) بپارێزە: A لای چەپی ژمارەی ڕیزەکەیە.

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

ExerciseڕاهێنانQ4 — where is a standard SOP equal to 1?⁦Q4⁩ — کۆی لێکدانەکانی ستاندارد لە کوێدا یەکسانە بە 1؟

Determine the binary values for which each standard SOP expression is equal to 1: (a) ABCD+AB‾ C‾D+A‾ B‾ C‾ D‾ABCD + A\overline{B}\,\overline{C}D + \overline{A}\,\overline{B}\,\overline{C}\,\overline{D} (b) X‾YZ+XY‾Z+XYZ‾+X‾YZ‾+XYZ\overline{X}YZ + X\overline{Y}Z + XY\overline{Z} + \overline{X}Y\overline{Z} + XYZ

بۆ هەر یەکێک لەم SOPـە ستانداردانە، ئەو بەها دیاری بکە کە تێیاندا یەکسانە بە 1: (أ) ABCD+AB‾ C‾D+A‾ B‾ C‾ D‾ABCD + A\overline{B}\,\overline{C}D + \overline{A}\,\overline{B}\,\overline{C}\,\overline{D} (ب) X‾YZ+XY‾Z+XYZ‾+X‾YZ‾+XYZ\overline{X}YZ + X\overline{Y}Z + XY\overline{Z} + \overline{X}Y\overline{Z} + XYZ

Hintئاماژە

Each minterm gives one binary value: plain = 1, bar = 0.

هەر یەک بەهای دەدات: ساکار = 1، هێڵدار = 0.

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

(a) 1111, 1001 and 0000, so ∑m(0,9,15)\sum m(0, 9, 15). (b) 011, 101, 110, 010 and 111, so ∑m(2,3,5,6,7)\sum m(2, 3, 5, 6, 7).

(أ) ⁦1111⁩، ⁦1001⁩ و ⁦0000⁩، کەواتە ∑m(0,9,15)\sum m(0, 9, 15). (ب) ⁦011⁩، ⁦101⁩، ⁦110⁩، ⁦010⁩ و ⁦111⁩، کەواتە ∑m(2,3,5,6,7)\sum m(2, 3, 5, 6, 7).

ExerciseڕاهێنانQ6 — where is a standard POS equal to 0?⁦Q6⁩ — لێکدانی کۆکانی ستاندارد لە کوێدا یەکسانە بە 0؟

Determine the binary values for which each standard POS expression is equal to 0: (a) (A+B+C+D)(A+B‾+C‾+D)(A‾+B‾+C‾+D‾)(A+B+C+D)(A+\overline{B}+\overline{C}+D)(\overline{A}+\overline{B}+\overline{C}+\overline{D}) (b) (X+Y‾+Z)(X‾+Y+Z)(X‾+Y‾+Z‾)(X+Y+Z‾)(X+Y‾+Z‾)(X+\overline{Y}+Z)(\overline{X}+Y+Z)(\overline{X}+\overline{Y}+\overline{Z})(X+Y+\overline{Z})(X+\overline{Y}+\overline{Z})

بۆ هەر یەکێک لەم POSـە ستانداردانە، ئەو بەها دیاری بکە کە تێیاندا یەکسانە بە 0: (أ) (A+B+C+D)(A+B‾+C‾+D)(A‾+B‾+C‾+D‾)(A+B+C+D)(A+\overline{B}+\overline{C}+D)(\overline{A}+\overline{B}+\overline{C}+\overline{D}) (ب) (X+Y‾+Z)(X‾+Y+Z)(X‾+Y‾+Z‾)(X+Y+Z‾)(X+Y‾+Z‾)(X+\overline{Y}+Z)(\overline{X}+Y+Z)(\overline{X}+\overline{Y}+\overline{Z})(X+Y+\overline{Z})(X+\overline{Y}+\overline{Z})

Hintئاماژە

Each maxterm gives one binary value: plain = 0, bar = 1.

هەر یەک بەهای دەدات: ساکار = 0، هێڵدار = 1.

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

(a) 0000, 0110 and 1111, so ∏M(0,6,15)\prod M(0, 6, 15). (b) 010, 100, 111, 001 and 011, so ∏M(1,2,3,4,7)\prod M(1, 2, 3, 4, 7).

(أ) ⁦0000⁩، ⁦0110⁩ و ⁦1111⁩، کەواتە ∏M(0,6,15)\prod M(0, 6, 15). (ب) ⁦010⁩، ⁦100⁩، ⁦111⁩، ⁦001⁩ و ⁦011⁩، کەواتە ∏M(1,2,3,4,7)\prod M(1, 2, 3, 4, 7).

ExerciseڕاهێنانQ8 ii — truth table from a standard SOP⁦Q8 ii⁩ — خشتەی ڕاستی لە کۆی لێکدانەکانی ستانداردەوە

Develop the truth table of X=A‾BC‾+AB‾C+ABCX = \overline{A}B\overline{C} + A\overline{B}C + ABC.

X=A‾BC‾+AB‾C+ABCX = \overline{A}B\overline{C} + A\overline{B}C + ABC دروست بکە.

Show answerوەڵامەکە پیشان بدە
RowڕیزAABBCCXX
00000
10010
20101
30110
41000
51011
61100
71111

X=1X = 1 for 010, 101 and 111: X=∑m(2,5,7)X = \sum m(2, 5, 7). Notice that this is the same function as the class quiz above — the quiz wrote it as a product of maxterms.

X بۆ ⁦010⁩، ⁦101⁩ و ⁦111⁩ یەکسانە بە 1: X=∑m(2,5,7)X = \sum m(2, 5, 7). سەرنج بدە کە ئەمە هەمان تاقیکردنەوەکەی سەرەوەیە — تاقیکردنەوەکە وەک لێکدانی نووسیبووی.

ExerciseڕاهێنانQ9 i — truth table from a standard POS⁦Q9 i⁩ — خشتەی ڕاستی لە لێکدانی کۆکانی ستانداردەوە

Determine the truth table of X=(A+B+C)(A+B‾+C)(A+B‾+C‾)(A‾+B+C‾)(A‾+B‾+C)X = (A+B+C)(A+\overline{B}+C)(A+\overline{B}+\overline{C})(\overline{A}+B+\overline{C})(\overline{A}+\overline{B}+C).

X=(A+B+C)(A+B‾+C)(A+B‾+C‾)(A‾+B+C‾)(A‾+B‾+C)X = (A+B+C)(A+\overline{B}+C)(A+\overline{B}+\overline{C})(\overline{A}+B+\overline{C})(\overline{A}+\overline{B}+C) دیاری بکە.

Show answerوەڵامەکە پیشان بدە
RowڕیزAABBCCXX
00000
10011
20100
30110
41001
51010
61100
71111

The maxterms are M0,M2,M3,M5,M6M_0, M_2, M_3, M_5, M_6, so X=0X = 0 for 000, 010, 011, 101, 110 and X=1X = 1 for 001, 100, 111: X=∏M(0,2,3,5,6)=∑m(1,4,7)X = \prod M(0, 2, 3, 5, 6) = \sum m(1, 4, 7). Compare with Q8 i: it is the same function, once as a sum of minterms and once as a product of maxterms.

M0,M2,M3,M5,M6M_0, M_2, M_3, M_5, M_6ن، بۆیە X بۆ ⁦000⁩، ⁦010⁩، ⁦011⁩، ⁦101⁩، ⁦110⁩ یەکسانە بە 0 و بۆ ⁦001⁩، ⁦100⁩، ⁦111⁩ یەکسانە بە 1: X=∏M(0,2,3,5,6)=∑m(1,4,7)X = \prod M(0, 2, 3, 5, 6) = \sum m(1, 4, 7). بەراوردی بکە لەگەڵ ⁦Q8 i⁩: هەمان ، جارێک وەک کۆی و جارێک وەک لێکدانی .

ExerciseڕاهێنانBoth waysبە هەردوو ڕێگا

A function has the truth table of Q9 ii (X=1X = 1 in rows 0, 3, 4, 5 and 6). Write it (a) as a sum of minterms in Σ notation and as an expression, (b) as a product of maxterms in Π notation.

⁦Q9 ii⁩ـی هەیە (X لە ڕیزەکانی 0، 3، 4، 5 و 6دا 1ـە). بینووسە (أ) وەک کۆی بە نووسینی Σ و وەک ، (ب) وەک لێکدانی بە نووسینی Π.

Show answerوەڵامەکە پیشان بدە
X=∑m(0,3,4,5,6)=A‾ B‾ C‾+A‾BC+AB‾ C‾+AB‾C+ABC‾X=∏M(1,2,7)=(A+B+C‾)(A+B‾+C)(A‾+B‾+C‾)\begin{aligned} X &= \sum m(0, 3, 4, 5, 6) = \overline{A}\,\overline{B}\,\overline{C} + \overline{A}BC + A\overline{B}\,\overline{C} + A\overline{B}C + AB\overline{C} \\ X &= \prod M(1, 2, 7) = (A+B+\overline{C})(A+\overline{B}+C)(\overline{A}+\overline{B}+\overline{C}) \end{aligned}
ExerciseڕاهێنانFour variablesچوار گۆڕاوی بوولی

With the variables A, B, C, D: (a) which minterm is A‾BC‾D\overline{A}B\overline{C}D? (b) Write the maxterm M12M_{12}.

بە A، B، C، D: (أ) A‾BC‾D\overline{A}B\overline{C}D کام ؟ (ب) M12M_{12} بنووسە.

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

(a) 01012=50101_2 = 5, so m5m_5. (b) 12=1100212 = 1100_2; in a maxterm the 1s get bars: M12=A‾+B‾+C+DM_{12} = \overline{A}+\overline{B}+C+D.

(أ) 01012=50101_2 = 5، کەواتە m5m_5. (ب) 12=1100212 = 1100_2؛ لە 1ـەکان هێڵیان لەسەر دادەنرێت: M12=A‾+B‾+C+DM_{12} = \overline{A}+\overline{B}+C+D.

Summaryپوختە

  • A minterm is a product of all the variables that is 1 in exactly one row: bars on the 0 bits. Row 101 → AB‾C=m5A\overline{B}C = m_5.
  • A maxterm is a sum of all the variables that is 0 in exactly one row: bars on the 1 bits. Row 101 → A‾+B+C‾=M5\overline{A}+B+\overline{C} = M_5.
  • n variables give 2n2^n minterms and 2n2^n maxterms; Mi=mi‾M_i = \overline{m_i}.
  • Standard SOP = sum of minterms, ∑m(…)\sum m(\ldots): the rows where f=1f = 1. Standard POS = product of maxterms, ∏M(…)\prod M(\ldots): the rows where f=0f = 0.
  • The two lists of one function are complements of each other: ∑m(3,4,5,6,7)=∏M(0,1,2)\sum m(3,4,5,6,7) = \prod M(0,1,2).
  • Truth table from a standard SOP: 1 in the minterm rows, 0 elsewhere. From a standard POS: 0 in the maxterm rows, 1 elsewhere.
  • Next, Karnaugh maps put the minterm numbers into a grid to simplify a function by sight.
  • لێکدانی هەموو کە ڕێک لە یەک ڕیزدا 1ـە: هێڵ لەسەر 0. ڕیزی ⁦101⁩ ← AB‾C=m5A\overline{B}C = m_5.
  • کۆی هەموو کە ڕێک لە یەک ڕیزدا 0ـە: هێڵ لەسەر 1. ڕیزی ⁦101⁩ ← A‾+B+C‾=M5\overline{A}+B+\overline{C} = M_5.
  • n 2n2^n و 2n2^n دەدەن؛ Mi=mi‾M_i = \overline{m_i}.
  • ستاندارد = کۆی ، ∑m(…)\sum m(\ldots): ئەو ڕیزانەی f=1f = 1. ستاندارد = لێکدانی ، ∏M(…)\prod M(\ldots): ئەو ڕیزانەی f=0f = 0.
  • دوو لیستەکەی یەک تەواوکەری یەکترن: ∑m(3,4,5,6,7)=∏M(0,1,2)\sum m(3,4,5,6,7) = \prod M(0,1,2).
  • لە ستانداردەوە: 1 لە ڕیزەکانی ، 0 لە شوێنی تر. لە ستانداردەوە: 0 لە ڕیزەکانی ، 1 لە شوێنی تر.
  • دواتر، نەخشەکانی کارنۆ ژمارەکانی دەخەنە ناو تۆڕێکەوە بۆ ئەوەی بە چاو کورت بکەیتەوە.
Review questionsپرسیارەکانی پێداچوونەوە
Why does a minterm put bars on the 0 bits?بۆچی مینتێرم هێڵ لەسەر بیتەکانی 0 دادەنێت؟

Because an AND is 1 only when every literal is 1; a barred variable is 1 exactly when its bit is 0.

چونکە AND تەنها کاتێک 1ـە کە هەموو 1 بێت؛ هێڵدار ڕێک کاتێک 1ـە کە 0 بێت.

A 3-variable function is ∏M(0,2,4,6)\prod M(0, 2, 4, 6). Write it with Σ.نەخشەیەکی بوولی بە سێ گۆڕاوی بوولی ∏M(0,2,4,6)\prod M(0, 2, 4, 6)ـە. بە Σ بینووسە.

∑m(1,3,5,7)\sum m(1, 3, 5, 7) — the missing rows. (It is simply C.)

∑m(1,3,5,7)\sum m(1, 3, 5, 7) — ئەو ڕیزانەی نین. (بە سادەیی Cـە.)

How do you check that a sum term is the maxterm of a row?چۆن پشکنین دەکەیت کە بڕێکی کۆ ماکستێرمی ڕیزێکە؟

Put the row's bits into it: the result must be 0.

ڕیزەکە بخەرە ناوی: ئەنجامەکە دەبێت 0 بێت.

Videoڤیدیۆ

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

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

ستاندەر فۆرمەکان { pos, sop, min term, max term } ەکانAram Rafeq · Kurdish (Sorani)کوردی (سۆرانی) · 2K viewsبینین · 54 likesلایک · Partبەشی 7:36–13:58 (ofلە 13:58)

Kurdish (Sorani): SOP and POS shapes, the domain of an expression and expanding the terms into standard SOP and POS.

بە کوردیی سۆرانی: شێوەکانی SOP و POS، و فراوانکردنی و بۆ SOP و POS.

In Sorani, from 7:36: the minterm (m0 …) and maxterm (M0 …) of every row of a truth table, and the SOP and POS they give.

بە سۆرانی، لە ⁦7:36⁩ـەوە: بۆ هەموو دێڕێکی (⁦m0⁩ …) و (⁦M0⁩ …) دەنووسێت، پاشان ئەو SOP و POSـەی لێیانەوە دروست دەبن.

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

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

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

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

From Expression to Circuit and Backلە دەربڕینی بوولییەوە بۆ سووڕ و بە پێچەوانەوە

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

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