Prime implicants and disjunctive minimal form

  • Topic:
  • Thread starter mathmari
  • Start date
  • Tags Tags
    Form Prime
6 replies · 2K views · last reply
mathmari
Gold Member
MHB
Messages
4,984
Reaction score
7
Hey! :o

I am looking the follwong exercise:

Using the method of Quine-McCluskey, determine the prime implicants for the following switching function and find a disjunctive minimal form. If available, also specify all other disjoint minimal forms.

The switching function is:
\begin{align*}f(x_1, x_2, x_3, x_4, x_5)&=\bar{x}_1\bar{x}_2\bar{x}_3\bar{x}_4\bar{x}_5\lor \bar{x}_1x_2\bar{x}_3\bar{x}_4\bar{x}_5\lor \bar{x}_1\bar{x}_2\bar{x}_3\bar{x}_4x_5\lor \bar{x}_1x_2\bar{x}_3x_4\bar{x}_5 \\ & \lor \bar{x}_1x_2\bar{x}_3\bar{x}_4x_5 \lor x_1x_2\bar{x}_3x_4\bar{x}_5\lor \bar{x}_1x_2x_3x_4\bar{x}_5 \lor \bar{x}_1x_2x_3x_4x_5 \\ & \lor x_1x_2\bar{x}_3x_4x_5\end{align*} I have done the following:

It holds that $\bar{x}=x^0$ and $x=x_1$. So we get the following:
\begin{align*}f(x_1, x_2, x_3, x_4, x_5)&=x_1^0x_2^0x_3^0x_4^0x_5^0\lor x_1^0x_2^1x_3^0x_4^0x_5^0\lor x_1^0x_2^0x_3^0x_4^0x_5^1\lor x_1^0x_2^1x_3^0x_4^1x_5^0 \\ & \lor x_1^0x_2^1x_3^0x_4^0x_5^1 \lor x_1^1x_2^1x_3^0x_4^1x_5^0\lor x_1^0x_2^1x_3^1x_4^1x_5^0\lor x_1^0x_2^1x_3^1x_4^1x_5^1 \\ & \lor x_1^1x_2^1x_3^0x_4^1x_5^1\end{align*}

We create the following table using the weights and we try to merge the midterms.

View attachment 9290

Therefore we get six primterms:
\begin{align*}&p_1=m_2+m_4=x_1^0x_2^1x_3^0x_5^0=\bar{x}_1x_2\bar{x}_3\bar{x}_5 \\ &p_2=m_4+m_6=x_2\bar{x}_3x_4\bar{x}_5 \\ &p_3=m_4+m_7=\bar{x}_1x_2x_4\bar{x}_5 \\ &p_4=m_6+m_9=x_1x_2\bar{x}_3x_4 \\ &p_5=m_7+m_8=\bar{x}_1x_2x_3x_4 \\ &p_6=m_1+m_2+m_3+m_5=\bar{x}_1\bar{x}_3\bar{x}_4\end{align*} The primterm table is then the following:

View attachment 9291

We can delete the columns $m_2, m_3, m_5$ because of $m_1$. We can delete also the columns $m_4,m_9$ because of $m_6$. We can delete also the columns $m_7$ because of $m_8$.

Then the table looks as follows:

View attachment 9292

We can delete the rows $p_1$ and $p_3$ since these are empty. We can delete also the row $p_2$ because of $p_4$ and so we get:

View attachment 9293

Do we get from that that the primterms are $p_4, p_5, p_6$? Are these the essential prime implicants?

How do we get the disjunctive minimal form from that? Do the selected primary terms simply have to be linked by disjunction? (Wondering)
 
Attachments
  • Three-stage Quine-McCluskey table: first a grouped list of minterms m1 to m9 as 5-bit strings with check marks, then merged pairs labelled p1 to p5, then a final merge giving two rows 0-00-.
    Midterme.JPG
    24 KB · Views: 175
  • Quine-McCluskey prime implicant chart with rows p1 to p6 and columns m1 to m9, marking covered minterms with asterisks.
    Primtabelle.JPG
    11.8 KB · Views: 174
  • Prime implicant chart: rows p1 to p6, columns m1, m6 and m8, with asterisks marking which minterms each prime implicant covers: p2, p4 and p5 are marked, and the asterisks in the m1 and m8 columns sit in rows p6 and p5.
    Spalten.JPG
    5.3 KB · Views: 168
  • Prime implicant chart: rows p4, p5, p6 against columns m1, m6, m8, with asterisks at p4-m6, p4-m8, p5-m8 and p6-m1.
    zeilen.JPG
    3.6 KB · Views: 193
Last edited by a moderator:
mathmari said:
Hey! :o
We can delete the rows $p_1$ and $p_3$ since these are empty. We can delete also the row $p_2$ because of $p_4$ and so we get:

Hey mathmari!

Are you sure that we can delete $p_2$?
I think $p_2$ is an essential prime implicant as well. (Thinking)

mathmari said:
Do we get from that that the primterms are $p_4, p_5, p_6$? Are these the essential prime implicants?

I believe the essential prime implicants are $p_2, p_4, p_5, p_6$. (Thinking)

mathmari said:
How do we get the disjunctive minimal form from that? Do the selected primary terms simply have to be linked by disjunction?

Yes.
So I believe the disjunctive minimal form is:
$$p_2+p_4+p_5+p_6 = x_2\bar x_3 x_4 \bar x_5 + x_1 x_2 \bar x_3 x_4 + \bar x_1 x_2 x_3 x_4 + \bar x_1 \bar x_3 \bar x_4$$
And I'm afraid that if we leave out $p_2$, that we don't 'cover' the original expression. (Worried)
 
The Karnaugh map is:
View attachment 9294

The colored rectangles correspond to your primterms.
As you can see, we cannot leave out one of those rectangles, since otherwise not all 1's are covered. (Thinking)
 
Attachments
  • Two Karnaugh maps for x5=0 and x5=1, with x1x2 as rows and x3x4 as columns; the x5=0 map marks 1s in a red 2x2 block, a green vertical pair and a yellow horizontal pair, and the x5=1 map marks a blue horizontal pair of 1s.
    karnaugh5.png
    2.5 KB · Views: 169
I read now some notes that I found to understand better the part of disjunctive minimal form.

From the last step of #1 we get the essential prime implicants $p_4, p_5, p_6$, or not?
(How do you get also $p_2$ ? Do we not delete either $p_2$ or $p_4$ ? )

From the remaining prime implicants we are looking for a minimal number of prime implicants, such that all minterms are covered.

At the primterm table we delete the rows of $p_4, p_5, p_6$ and the respective columns, that corresponds to the minterms that are covered, i.e. $m_1, m_2, m_3, m_5, m_6, m_7, m_8, m_9$.

The only minterm that is not covered is $m_4$. This is covered by either $p_1$ or $p_2$ or $p_3$.

Would that mean that there are $3$ different minimal disjunctive forms, which are the following:
  • $$p_4\lor p_5\lor p_6\lor p_1$$
  • $$p_4\lor p_5\lor p_6\lor p_2$$
  • $$p_4\lor p_5\lor p_6\lor p_3$$

Is that correct? (Wondering)
 
Oh yes.
Those are indeed 3 different minimal disjunctive forms that cover the 1's exactly. (Nod)
 
Klaas van Aarsen said:
Oh yes.
Those are indeed 3 different minimal disjunctive forms that cover the 1's exactly. (Nod)

Ok! So is that the solution of the problem? (Wondering)
 
mathmari said:
Ok! So is that the solution of the problem?

I can see that the version with $p_1$ corresponds to:
View attachment 9295

And the version with $p_3$ corresponds to:
View attachment 9296

I think these are indeed all the possibilities. (Nod)
 
Attachments
  • Two Karnaugh maps: left for x5 = 0 with x3x4 across the top and x1x2 down the side, cells grouped by 1s in red, green and yellow boxes; right for x5 = 1 with two adjacent 1s grouped in a blue box.
    karnaugh5_with_p1.png
    2.6 KB · Views: 160
  • Two Karnaugh maps side by side, rows x1x2 and columns x3x4, with 1s grouped in rectangles: left map for x5=0 has red group of four in top-left, yellow pair in row 11, green pair in row 01; right map for x5=1 has blue and teal groups in row 01 columns 00 and 01 and 10.
    karnaugh5_with_p3.png
    2.5 KB · Views: 145