Re: canonical forms



On Mon, 08 Oct 2007 14:09:46 -0000, sulekha <aarklon@xxxxxxxxx> wrote:

Hi all,

I was recently reading the book "Write Great code by ryndall Hyde" in
this in chapter 8 the following are given.

given n input variables there are two raised to two raised to n
unique Boolean functions ex:- for 2 i/p variables there are 16
different functions.

then he mentions about canonical forms. he says about sum of min terms
and sum of product form.

now my questions are as follows

1) what exactly is the purpose of canonical forms,especially sum of
min terms, where is it applied??

It is a little abstract, and you can go through life happily designing
logic without dealing with this stuff. But it doesn't hurt, either.

http://en.wikipedia.org/wiki/Canonical_form_%28Boolean_algebra%29

Classic PAL and PEEL (cpld) architectures hardware implemented logic
equations as sums of products, ie in minterm form.

Nowadays, manual logic minimization is not done a lot. Logic tends to
be done in FPGAs, which are lookup-table based; a LUT can directly map
any n-bit input (say, 4 or 5 input bits) into any 1-bit output
function, by brute force. And logic compilers handle the gory details
for you, so nowadays it's more important to write clear,
comprehensable (but not minimal) equations, and let the compiler map
it to the hardware.


2)author says that for each different Boolean function, we can choose
a single canonical representation of that function.
I am not getting this point, can any one explain

I think he's saying that any function can be unambiguously factored
into a standard form. Or something. If you were writing a compiler,
that sort of thing probably matters.


pls note i am by no means an expert in these matters so please be
kind. only a beginner

I just design logic, without ever being taught how. That 'canonical'
stuff seems kinda fru-fru to me.

John


.



Relevant Pages

  • Re: Precision issue?
    ... >you may want to look into some sort of compensated summation algorithm. ... one should sum the numbers in order of increasing ... Optional arguments could also help a compiler optimize. ... Can someone suggest some easily generated sequences of floating point numbers ...
    (comp.lang.fortran)
  • Re: gnu make problem
    ... Our education class concludes that amongst us, we have some candidates who ... probem on the microware compiler which provided the source code for the ... int add ... sum = a + b; ...
    (comp.lang.misc)
  • Re: Executing code at compilation time
    ... int main{ ... int sum = 0; ... completely resolves the loop. ... There are many books on compiler technology, ...
    (comp.compilers)
  • Re: Higher Order Byte-Code Instructions
    ... framework at all to an optimising ... C compiler -- how can the compiler optimise code that is unknown until ... You keep talking about the type system, but (while I understand that it is ... return sum; ...
    (comp.lang.java.machine)
  • canonical forms
    ... I was recently reading the book "Write Great code by ryndall Hyde" in ... given n input variables there are two raised to two raised to n ... unique Boolean functions ex:- for 2 i/p variables there are 16 ... and sum of product form. ...
    (sci.electronics.basics)