Quantization (signal processing): Difference between revisions

From formulasearchengine
Jump to navigation Jump to search
en>Mblumber
expand citations
 
en>Frze
m normal images
Line 1: Line 1:
== すべてを計画しています ==
The '''Quine–McCluskey algorithm''' (or '''the method of prime implicants''') is a method used for [[Circuit minimization|minimization of boolean function]]s which was developed by [[Willard Van Orman Quine|W.V. Quine]] and [[Edward J. McCluskey]] in 1956.  It is functionally identical to [[Karnaugh map]]ping, but the tabular form makes it more efficient for use in computer algorithms, and it also gives a deterministic way to check that the minimal form of a [[Boolean function]] has been reached.  It is sometimes referred to as the tabulation method.


[http://www.lamartcorp.com/modules/mod_menu/rakuten_cl_7.php クリスチャンルブタン 取扱店]。そして、この最初のショット、秦Yuは、強力な外観を決めた [http://www.lamartcorp.com/modules/mod_menu/rakuten_cl_5.php クリスチャンルブタン ブーツ]!<br>秦Yuはまったく同じで<br>すべてを計画しています。<br><br>周フオは、彼らは自分の強さを過小評価 [http://www.lamartcorp.com/modules/mod_menu/rakuten_cl_4.php クリスチャンルブタン パンプス]。単なる神王に派遣始まる。二連敗。周フオ党はすでに不利で行わ。<br><br>'周フオ、あなたが何を考えている?私のあなたは私の美しい町に挑戦したくない場合は。その後、私は残しました。'秦ゆうダイレクトに押し入った、と述べた。<br><br>ブラッドヴァンプキング 'TUT'数回ほめて言った:」私はビジョンは非常に良いマイル秦ゆう弟、本当に驚くべきああです持っていた。 '<br><br>沈黙。<br><br>レイ細かい市の党は沈黙を守っています。これは、いくつかの鉱山ペナルティ王は神への都市を可能にし、生姜バチカンは心臓Xiunuは無限感じたが、それらがどのように行うことができますか?<br><br>ホイール戦争?<br>また<br>、または [http://www.lamartcorp.com/modules/mod_menu/rakuten_cl_3.php クリスチャンルブタン 東京]。より、グループ内の恥知らずと征服 [http://www.lamartcorp.com/modules/mod_menu/rakuten_cl_12.php 靴 クリスチャンルブタン]?<br><br>「江ファンの弟は、私たちが間違ったおかずを高騰されていることを今、とにかく、それを気にしないでください。 '周フオ音響魂が、これが、秦ゆうです」と言った
The method involves two steps:
相关的主题文章:
# Finding all [[implicant|prime implicants]] of the function.
<ul>
# Use those prime implicants in a ''prime implicant chart'' to find the essential prime implicants of the function, as well as other prime implicants that are necessary to cover the function.
 
  <li>[http://tepsnet.com/cgi-bin/bbs/free.cgi http://tepsnet.com/cgi-bin/bbs/free.cgi]</li>
 
  <li>[http://www.zwsensor.cn/plus/feedback.php?aid=25 http://www.zwsensor.cn/plus/feedback.php?aid=25]</li>
 
  <li>[http://bbs.lingxian1bu.com/forum.php?mod=viewthread&tid=53410 http://bbs.lingxian1bu.com/forum.php?mod=viewthread&tid=53410]</li>
 
</ul>


== 秦Yuは疑う ==
==Complexity==
Although more practical than [[Karnaugh mapping]] when dealing with more than four variables, the Quine–McCluskey algorithm also has a limited range of use since the [[Boolean satisfiability problem|problem]] it solves is [[NP-hard]]: the [[Run time (program lifecycle phase)|runtime]] of the Quine–McCluskey algorithm grows [[exponential growth|exponentially]] with the number of variables. It can be shown that for a function of ''n'' variables the upper bound on the number of prime implicants is 3<sup>''n''</sup>/''n''. If ''n'' = 32 there may be over 6.5 * 10<sup>15</sup> prime implicants. Functions with a large number of variables have to be minimized with potentially non-optimal [[Heuristic algorithm|heuristic]] methods, of which the [[Espresso heuristic logic minimizer]] is the de facto standard.<ref>V.P. Nelson e.a., ''Digital Circuit Analysis and Design'', Prentice Hall, 1995, pag. 234</ref>


「無謀なあなたはスマートだが、私はまたそれもこれを聞いた [http://www.lamartcorp.com/modules/mod_menu/rakuten_cl_10.php クリスチャンルブタン 店舗] 'オカルト'噂のいくつかだけがわからないが、私は自然に5セントが終わっ出血していると判断し、中央1に対して神セントに耳を傾けるやはり華ヤン」。当然危険がない、主に血液を識別するが、死者は促した見ながら笑った。 「あなたは主の血を識別にもかかわらず、死んだ弟ませんでした。絶対に危険。<br>彼らの敵を<br>、物事は私の店とが行くように、誰かがそれまでバックルなり、危険ではなかったことを自分自身に言った?<br><br>この時間は、この場合で死んでいた [http://www.lamartcorp.com/modules/mod_menu/rakuten_cl_3.php クリスチャンルブタン ブーツ]。<br><br>は「これは。それは?ハードああ、私も少し洞察力を伝える​​ことができない、悲しいかな、それは確かに問題がああだと言っているかどうかオカルトの唯一の機能である「デッド突然地壇道路だった、中国ヤンの片側が笑っている。<br>「ああ [http://www.lamartcorp.com/modules/mod_menu/rakuten_cl_5.php クリスチャンルブタン 偽物]!」<br><br><br>ドープコールが大声で聞こえたが、体が徐々に破壊されたように、この時間は、死者の数は、泡のように立っていた [http://www.lamartcorp.com/modules/mod_menu/rakuten_cl_5.php クリスチャンルブタン バッグ]。<br><br>「points` `` `` [http://www.lamartcorp.com/modules/mod_menu/rakuten_cl_13.php クリスチャンルブタン 日本] `'ブラックフェザーは、このシーンを見て言われたかわからない彼の唇を動かした。<br><br>秦Yuは疑う
==Example==
相关的主题文章:
<ul>
 
  <li>[http://tool.qycn.com/deadlink/?url=www9.big.or.jp/~ozakin/forexam/club/joyful/joyful.cgi http://tool.qycn.com/deadlink/?url=www9.big.or.jp/~ozakin/forexam/club/joyful/joyful.cgi]</li>
 
  <li>[http://www.bhmama.net/home.php?mod=space&uid=40644 http://www.bhmama.net/home.php?mod=space&uid=40644]</li>
 
  <li>[http://bbs.haima.me/home.php?mod=space&uid=80170 http://bbs.haima.me/home.php?mod=space&uid=80170]</li>
 
</ul>


== I do not know who the three main hole is ==
===Step 1: finding prime implicants===
Minimizing an arbitrary function:


And, how could have opinions? 'Genki three brothers, the eldest BA Ming smiling, patting ass compliments.<br><br>one law enforcement have expressed no opinion.<br><br>have opinions ass, tube Custodian of what they do. Vice-hole [http://www.lamartcorp.com/modules/mod_menu/rakuten_cl_9.php クリスチャンルブタン セール] main system to the 'main hole, the second hole in the main, three-hole master' system, only weakened the prestige of the main hole, but there is no impact on [http://www.lamartcorp.com/modules/mod_menu/rakuten_cl_12.php クリスチャンルブタン メンズ] their law enforcement.<br><br>'three-hole master, Hou fee for the two brothers, the main hole, etc. I know, I do not know who the three main hole is?' Teng Bi verbally Road.<br><br>Qin Yu is no positive [http://www.lamartcorp.com/modules/mod_menu/rakuten_cl_12.php クリスチャンルブタン メンズ] answer: 'Who? these three main hole is, you do not need more than a temporary tube, and that time you will know, Who Do I appointed three holes owners, but also need to go through the Custodian of you agree.'<br><br>hear the words chill Qin Yu, gentlemen law enforcement are quickly shook his head.<br><br>'Very well, then, I issued a second command.' Qin Yu looked at [http://www.lamartcorp.com/modules/mod_menu/rakuten_cl_10.php クリスチャンルブタン ブーツ] the following nine law enforcement said.<br><br>nine law enforcement, fifty guard captain hearts began to secretly guess up, the first command [http://www.lamartcorp.com/modules/mod_menu/rakuten_cl_14.php クリスチャンルブタン 銀座] is so amazing, it
:<math>f(A,B,C,D) =\sum m(4,8,10,11,12,15) + d(9,14). \,</math>
相关的主题文章:
This expression says that the output function f will be 1 for the minterms 4,8,10,11,12 and 15 (denoted by the 'm' term). But it also says that we don't care about the output for 9 and 14 combinations. ('x' stands for don't care).
<ul>
 
  <li>[http://tampabaysymphony.com/cgi-bin/mojo/mojo.cgi http://tampabaysymphony.com/cgi-bin/mojo/mojo.cgi]</li>
 
  <li>[http://www.ha.shotoku.ac.jp/club/takkyu/yybbs/yybbs.cgi http://www.ha.shotoku.ac.jp/club/takkyu/yybbs/yybbs.cgi]</li>
 
  <li>[http://dhtpower.com/plus/view.php?aid=368702 http://dhtpower.com/plus/view.php?aid=368702]</li>
 
</ul>


== with a lot of silver bullets ==
{| class="wikitable"
|-
!  !! A !! B !! C !! D !! !! f
|-
| m0 || 0 || 0 || 0 || 0 || || 0
|-
| m1 || 0 || 0 || 0 || 1 || || 0
|-
| m2 || 0 || 0 || 1 || 0 || || 0
|-
| m3 || 0 || 0 || 1 || 1 || || 0
|-
| m4 || 0 || 1 || 0 || 0 || || 1
|-
| m5 || 0 || 1 || 0 || 1 || || 0
|-
| m6 || 0 || 1 || 1 || 0 || || 0
|-
| m7 || 0 || 1 || 1 || 1 || || 0
|-
| m8 || 1 || 0 || 0 || 0 || || 1
|-
| m9 || 1 || 0 || 0 || 1 || || x
|-
| m10 || 1 || 0 || 1 || 0 || || 1
|-
| m11 || 1 || 0 || 1 || 1 || || 1
|-
| m12 || 1 || 1 || 0 || 0 || || 1
|-
| m13 || 1 || 1 || 0 || 1 || || 0
|-
| m14 || 1 || 1 || 1 || 0 || || x
|-
| m15 || 1 || 1 || 1 || 1 || || 1
|}


I direct and say they want to live a few threads building Kidan. 'Qin Yu said blithely. [http://www.lamartcorp.com/modules/mod_menu/rakuten_cl_10.php クリスチャンルブタン 値段] In the comprehension, general martial important to his disciples, a start will be taken [http://www.lamartcorp.com/modules/mod_menu/rakuten_cl_2.php クリスチャンルブタン バッグ] directly to building Kidan, early building the base, directly to the innate state.<br><br>innate state, practicing internal strength for [http://www.lamartcorp.com/modules/mod_menu/rakuten_cl_9.php クリスチャンルブタン メンズ] tough people. But for comprehension, but [http://www.lamartcorp.com/modules/mod_menu/rakuten_cl_11.php クリスチャンルブタン 取扱店] it is only the start of it. Qin Yu's position today, building Kidan, [http://www.lamartcorp.com/modules/mod_menu/rakuten_cl_2.php クリスチャンルブタン 日本] there is random will be able to get.<br><br>potential from Chapter III<br><br>'building Kidan?' Qin Zheng is built Kidan never heard the name.<br><br>Qin Yu laughed: 'Brother, this building Kidan but comprehension used in building the base, most people just eat this building Kidan, completely absorbed, they can consolidate the foundation did not need to reach the realm of birth as practicing internal strength. so complicated. '<br><br>'actually have this elixir, with a lot of silver bullets, you can not get a lot of innate pro?' This is the king of Qin affairs of a country, after all, he thought, or the interests of the country, in the Qianlong mainland, has a congenital master count the incredible.
One can easily form the canonical [[sum of products]] expression from this table, simply by summing the [[minterm]]s (leaving out [[Don't-care (logic)|don't-care terms]]) where the function evaluates to one:
相关的主题文章:
 
<ul>
:<math>f_{A,B,C,D} = A'BC'D' + AB'C'D' + AB'CD' + AB'CD + ABC'D' + ABCD,</math>
 
 
  <li>[http://teamon.sakura.ne.jp/epad/epad.cgi http://teamon.sakura.ne.jp/epad/epad.cgi]</li>
which is not minimal. So to optimize, all minterms that evaluate to one are first placed in a minterm table. Don't-care terms are also added into this table, so they can be combined with minterms:
 
 
  <li>[http://www.nationalfootwear.com/cgi-bin/shop/commerce.cgi http://www.nationalfootwear.com/cgi-bin/shop/commerce.cgi]</li>
{| class="wikitable"
 
|-
  <li>[http://www.ec345000.net/forum.php?mod=viewthread&tid=13107&fromuid=102526 http://www.ec345000.net/forum.php?mod=viewthread&tid=13107&fromuid=102526]</li>
! Number of 1s !! Minterm !! Binary Representation
 
|-
</ul>
| rowspan="2" | 1
| m4 || 0100
|-
| m8 || 1000
|-
| rowspan="3" | 2
| m9 || 1001
|-
| m10 || 1010
|-
| m12 || 1100
|-
| rowspan="2" | 3
| m11 || 1011
|-
| m14 || 1110
|-
|| 4
| m15 || 1111
|}
 
At this point, one can start combining minterms with other minterms. If two terms vary by only a single digit changing, that digit can be replaced with a dash indicating that the digit doesn't matter. Terms that can't be combined any more are marked with a "*". When going from Size 2 to Size 4, treat '-' as a third bit value. Ex: -110 and -100 or -11- can be combined, but not -110 and 011-. (Trick: Match up the '-' first.)
 
{| class="wikitable"
|-
! Number of 1s !! Minterm !! 0-Cube !! Size 2 Implicants !! Size 4 Implicants
|-
| rowspan="4" | 1
| m4 || 0100 || m(4,12)  -100* || m(8,9,10,11) 10--*
|-
| m8 || 1000 || m(8,9) 100- || m(8,10,12,14)  1--0*
|-
| -- || -- || m(8,10)  10-0 || --
|-
| -- || -- || m(8,12)  1-00 || --
|-
| rowspan="4" | 2
| m9 || 1001 || m(9,11)  10-1 || m(10,11,14,15)  1-1-*
|-
| m10 || 1010 || m(10,11)  101- || --
|-
| m12 || 1100 || m(10,14)  1-10 || --
|-
| -- || -- || m(12,14)  11-0 || --
|-
| rowspan="2" | 3
| m11 || 1011 || m(11,15)  1-11 || --
|-
| m14 || 1110 || m(14,15)  111- || --
|-
| rowspan="1" | 4
| m15 || 1111 || -- || --
|}
 
Note: In this example, none of the terms in the size 4 implicants table can be combined any further. Be aware that this processing should be continued otherwise (size 8 etc.).
 
===Step 2: prime implicant chart===
None of the terms can be combined any further than this, so at this point we construct an essential prime implicant table. Along the side goes the prime implicants that have just been generated, and along the top go the minterms specified earlier. The don't care terms are not placed on top - they are omitted from this section because they are not necessary inputs.
 
{| class="wikitable"
|-
|                || 4 || 8 || 10 || 11 || 12 || 15 || => || A || B || C || D
|-
| m(4,12)*        || X ||  ||    ||    || X  ||      || => || - || 1 || 0 || 0
|-
| m(8,9,10,11)    ||  || X ||  X  || X  ||    ||      || => || 1 || 0 || - || -
|-
| m(8,10,12,14)  ||  || X ||  X  ||    || X  ||    ||
|-
| m(10,11,14,15)* ||  ||  ||  X  || X  ||    ||  X || => || 1 || - || 1 || -
|}
 
To find the essential prime implicants, we run along the top row. We have to look for columns with only 1 star. If a column has only 1 star, this means that the minterm can only be covered by 1 prime implicant. This prime implicant is ''essential''. For example: in the first column, with minterm 4, there is only 1 star. This means that m(4,12) is essential. So we place a star next to it. Minterm 15 also only has 1 star. This means that m(10,11,14,15) is also essential. Now all columns with 1 star are covered.
 
The second prime implicant can be 'covered' by the third and fourth, and the third prime implicant can be 'covered' by the second and first, and neither is thus essential. If a prime implicant is essential then, as would be expected, it is necessary to include it in the minimized boolean equation. In some cases, the essential prime implicants do not cover all minterms, in which case additional procedures for chart reduction can be employed. The simplest "additional procedure" is trial and error, but a more systematic way is [[Petrick's method|Petrick's Method]]. In the current example, the essential prime implicants do not handle all of the minterms, so, in this case, one can combine the essential implicants with one of the two non-essential ones to yield one equation:
 
:<math>f_{A,B,C,D} = BC'D' + AB' + AC \ </math>
 
Both of those final equations are functionally equivalent to the original, verbose equation:
:<math>f_{A,B,C,D} = A'BC'D' + AB'C'D' + AB'C'D + AB'CD' + AB'CD + ABC'D' + ABCD' + ABCD. \ </math>
 
==See also==
* [[Boolean algebra (logic)]]
* [[Circuit minimization]]
* [[Karnaugh map]]
* [[Minilog|Espresso]] heuristic minimization program
* [[Petrick's method]]
* [[Willard Van Orman Quine]]
* [[Buchberger's algorithm]] (analogous algorithm for algebraic geometry)
 
==References==
{{reflist}}
 
==External links==
*[http://frederic.carpon.perso.sfr.fr/Quine-McCluskey_%28frederic_carpon_implementation%29.php Quine-McCluskey algorithm implementation with a search of all solutions], by Frédéric Carpon.
* [http://www.embedded.com/columns/programmerstoolbox/29111968 All about Quine-McClusky], article by Jack Crenshaw comparing Quine-McClusky to Karnaugh maps
*[http://user.cs.tu-berlin.de/~lordmaik/projects/quinemccluskey/quinemccluskey/quineapplet.htm Java-Applet]{{dead link|date=November 2012}} Applet to minimize a boolean function based on QuineMcCluskey Algorithm. (German page)
* [http://www.inf.ufrgs.br/logics/ Karma 3], A set of logic synthesis tools including Karnaugh maps, Quine-McCluskey minimization, BDDs, probabilities, teaching module and more. Logic Circuits Synthesis Labs (LogiCS) - [[UFRGS]], Brazil.
* A. Costa [http://www4.dei.isep.ipp.pt/acc/bfunc/ BFunc], QMC based boolean logic simplifiers supporting up to 64 inputs / 64 outputs (independently) or 32 outputs (simultaneously)
* [http://www25.brinkster.com/denshade/QuineMcCluskey.html Java applet]{{dead link|date=November 2012}} to display all the generated primes.
* [[Python (programming language)|Python]] [http://cheeseshop.python.org/pypi/qm/0.2 Implementation] by Robert Dick, with an [http://shiftlock.wordpress.com/2011/05/17/quine-mccluskey-algorithm-implementation-in-python/ optimized version].
* [[Python (programming language)|Python]] [http://symlog.git.sourceforge.net/git/gitweb.cgi?p=symlog/symlog;a=blob_plain;f=symlog/logic.py;hb=HEAD Implementation] for symbolically reducing Boolean expressions.
* [http://sourceforge.net/projects/quinessence/ Quinessence], an open source implementation written in Free Pascal by Marco Caminati.
* [http://cran.r-project.org/web/packages/QCA/index.html QCA] an open source, R based implementation used in the social sciences, by [[Adrian Duşa]]
* A series of two articles describing the algorithm(s) implemented in R: [http://www.compasss.org/files/WPfiles/Dusa2007.pdf first article]{{dead link|date=November 2012}} and [http://www.compasss.org/files/WPfiles/Dusa2007a.pdf second article]{{dead link|date=November 2012}}. The R implementation is exhaustive and it offers complete and exact solutions. It processes up to 20 input variables.
* [http://www.p0p0v.com/science/#_minBool minBool] an implementation by Andrey Popov.
* [http://www-ihs.theoinf.tu-ilmenau.de/~sane/projekte/qmc/embed_qmc.html], an applet for a step by step analyze of the QMC- algorithm by Christian Roth
* [http://sourceforge.net/projects/qmcs] SourceForge.net C++ program implementing the algorithm.
* [https://metacpan.org/module/Algorithm::QuineMcCluskey Perl Module] by Darren M. Kulp.
* [http://sites.google.com/site/simpogical/download] Tutorial on Quine-McCluskey and Petrick's method (pdf).
* [http://code.google.com/p/quine-mccluskey-petrick/source/browse/] C++ implementation (including Petrick) based on the tutorial above
* [http://sourceforge.net/projects/mini-qmc] Public Domain console based C program on SourceForge.net.
<!-- * George Vastianos. [http://www.seattlerobotics.org/encoder/200106/qmccmin.htm Boolean functions' minimisation software based on the Quine-McCluskey method]. ''Encoder''. -->
* [http://matwbn.icm.edu.pl/ksiazki/amc/amc13/amc13414.pdf Tomaszewski, S. P., Celik, I. U., Antoniou, G. E., "WWW-based Boolean function minimization" INTERNATIONAL JOURNAL OF APPLIED MATHEMATICS AND COMPUTER SCIENCE, VOL 13; PART 4, pages 577-584, 2003.]
* For a fully worked out example visit: http://www.cs.ualberta.ca/~amaral/courses/329/webslides/Topic5-QuineMcCluskey/sld024.htm
* An excellent resource detailing each step: [http://www.ocoudert.com/papers/pdf/int94.pdf Olivier Coudert "Two-level logic minimization: an overview" INTEGRATION, the VLSI journal, 17-2, pp. 97–140, October 1994]
* The Boolean Bot: A JavaScript implementation for the web: http://booleanbot.com/
 
 
{{DEFAULTSORT:Quine-Mccluskey Algorithm}}
[[Category:Boolean algebra]]
[[Category:Willard Van Orman Quine]]

Revision as of 10:51, 21 January 2014

The Quine–McCluskey algorithm (or the method of prime implicants) is a method used for minimization of boolean functions which was developed by W.V. Quine and Edward J. McCluskey in 1956. It is functionally identical to Karnaugh mapping, but the tabular form makes it more efficient for use in computer algorithms, and it also gives a deterministic way to check that the minimal form of a Boolean function has been reached. It is sometimes referred to as the tabulation method.

The method involves two steps:

  1. Finding all prime implicants of the function.
  2. Use those prime implicants in a prime implicant chart to find the essential prime implicants of the function, as well as other prime implicants that are necessary to cover the function.

Complexity

Although more practical than Karnaugh mapping when dealing with more than four variables, the Quine–McCluskey algorithm also has a limited range of use since the problem it solves is NP-hard: the runtime of the Quine–McCluskey algorithm grows exponentially with the number of variables. It can be shown that for a function of n variables the upper bound on the number of prime implicants is 3n/n. If n = 32 there may be over 6.5 * 1015 prime implicants. Functions with a large number of variables have to be minimized with potentially non-optimal heuristic methods, of which the Espresso heuristic logic minimizer is the de facto standard.[1]

Example

Step 1: finding prime implicants

Minimizing an arbitrary function:

f(A,B,C,D)=m(4,8,10,11,12,15)+d(9,14).

This expression says that the output function f will be 1 for the minterms 4,8,10,11,12 and 15 (denoted by the 'm' term). But it also says that we don't care about the output for 9 and 14 combinations. ('x' stands for don't care).

A B C D f
m0 0 0 0 0 0
m1 0 0 0 1 0
m2 0 0 1 0 0
m3 0 0 1 1 0
m4 0 1 0 0 1
m5 0 1 0 1 0
m6 0 1 1 0 0
m7 0 1 1 1 0
m8 1 0 0 0 1
m9 1 0 0 1 x
m10 1 0 1 0 1
m11 1 0 1 1 1
m12 1 1 0 0 1
m13 1 1 0 1 0
m14 1 1 1 0 x
m15 1 1 1 1 1

One can easily form the canonical sum of products expression from this table, simply by summing the minterms (leaving out don't-care terms) where the function evaluates to one:

fA,B,C,D=ABCD+ABCD+ABCD+ABCD+ABCD+ABCD,

which is not minimal. So to optimize, all minterms that evaluate to one are first placed in a minterm table. Don't-care terms are also added into this table, so they can be combined with minterms:

Number of 1s Minterm Binary Representation
1 m4 0100
m8 1000
2 m9 1001
m10 1010
m12 1100
3 m11 1011
m14 1110
4 m15 1111

At this point, one can start combining minterms with other minterms. If two terms vary by only a single digit changing, that digit can be replaced with a dash indicating that the digit doesn't matter. Terms that can't be combined any more are marked with a "*". When going from Size 2 to Size 4, treat '-' as a third bit value. Ex: -110 and -100 or -11- can be combined, but not -110 and 011-. (Trick: Match up the '-' first.)

Number of 1s Minterm 0-Cube Size 2 Implicants Size 4 Implicants
1 m4 0100 m(4,12) -100* m(8,9,10,11) 10--*
m8 1000 m(8,9) 100- m(8,10,12,14) 1--0*
-- -- m(8,10) 10-0 --
-- -- m(8,12) 1-00 --
2 m9 1001 m(9,11) 10-1 m(10,11,14,15) 1-1-*
m10 1010 m(10,11) 101- --
m12 1100 m(10,14) 1-10 --
-- -- m(12,14) 11-0 --
3 m11 1011 m(11,15) 1-11 --
m14 1110 m(14,15) 111- --
4 m15 1111 -- --

Note: In this example, none of the terms in the size 4 implicants table can be combined any further. Be aware that this processing should be continued otherwise (size 8 etc.).

Step 2: prime implicant chart

None of the terms can be combined any further than this, so at this point we construct an essential prime implicant table. Along the side goes the prime implicants that have just been generated, and along the top go the minterms specified earlier. The don't care terms are not placed on top - they are omitted from this section because they are not necessary inputs.

4 8 10 11 12 15 => A B C D
m(4,12)* X X => - 1 0 0
m(8,9,10,11) X X X => 1 0 - -
m(8,10,12,14) X X X
m(10,11,14,15)* X X X => 1 - 1 -

To find the essential prime implicants, we run along the top row. We have to look for columns with only 1 star. If a column has only 1 star, this means that the minterm can only be covered by 1 prime implicant. This prime implicant is essential. For example: in the first column, with minterm 4, there is only 1 star. This means that m(4,12) is essential. So we place a star next to it. Minterm 15 also only has 1 star. This means that m(10,11,14,15) is also essential. Now all columns with 1 star are covered.

The second prime implicant can be 'covered' by the third and fourth, and the third prime implicant can be 'covered' by the second and first, and neither is thus essential. If a prime implicant is essential then, as would be expected, it is necessary to include it in the minimized boolean equation. In some cases, the essential prime implicants do not cover all minterms, in which case additional procedures for chart reduction can be employed. The simplest "additional procedure" is trial and error, but a more systematic way is Petrick's Method. In the current example, the essential prime implicants do not handle all of the minterms, so, in this case, one can combine the essential implicants with one of the two non-essential ones to yield one equation:

fA,B,C,D=BCD+AB+AC

Both of those final equations are functionally equivalent to the original, verbose equation:

fA,B,C,D=ABCD+ABCD+ABCD+ABCD+ABCD+ABCD+ABCD+ABCD.

See also

References

43 year old Petroleum Engineer Harry from Deep River, usually spends time with hobbies and interests like renting movies, property developers in singapore new condominium and vehicle racing. Constantly enjoys going to destinations like Camino Real de Tierra Adentro.

External links

  1. V.P. Nelson e.a., Digital Circuit Analysis and Design, Prentice Hall, 1995, pag. 234