Unit-3
Unit-3
AND CIRCUITS
Page No.
3.1 Introduction
Objectives
3.1 INTRODUCTION
I11 the previous two units you hive read about the e1ernenl;ary aspects of
sylnbolic logic. ~ . ~ . ~ h a ~ & o i l ,founder
, t h e bf informat;ion theory, observed a11
analogy bettween tlie functioning of switcllirig circuits and certai~lopc?ral;ions
of logical connectives. In 1938 he gave a technique based 011 this analogy to
express a n d m a n i p u l a t e siinple switching circuil;~algebraically. Later, the
discovery of so~nfr!new solid state devices (called electronic switches or
logic gates) helped t,o modify these algebraic tecliliiques an,d, [;hereby, paved
a way t o solvc numerous problems related t;o digital systems algebraically. Fig. 1: Claude
Shannon, who m a d e
In this unit, wr shall discuss flle symbolic logic tecliniques wliich arc mquired the first major
. for the algebraic uilderstanding of circuits ?nd computer logic. 111 Scc.3.2, we contribution in
shall int,roduc:c you t o B o o l e a n a l g e b r a s with the llclp of ccrtaiil examples npl>lied Boolean
based 011 objecl;s you are already familiar with. You will scc that such algebra in 1938.
algebras are apt Tor describing oporal;ions of logical circuits used in
. computers.
: obtain the disjunctive normal f o ~ m(DNF) arid the conjunctive normal form
(CNF) of a Boolean cxpression;
47
Elementary Logic a give mathematical interpretations of the functioniilg of logic gates;
design and simplify some simple circuits using Boolean algebri techniques.'
.. . ,
You already know fro111 Unit 1 that, given two prop.ositions p and q, both
I A binary operation on p A q a1ld.p V q are again propositions. And so, by the definitiori of a binary
a non-empty set X is a operation, you can see that both A (conj~znctioii)arld V (disjunction) are
function f : X x X -+ X. binary operations on the set S, wherc we arc writing A(p, q) as p A cl and
V(P, q) as P V Cl, 'd p , q E S.
Again. since -- p is also a proposition, the o6ration .- (negaiion) defines a - 1
unary f~mctionN : S 3 S. Thus, thc set ok propositions S, wit11 tliese 1
operations, acquires an algebraic structure. 1
As is clear from Sec.l.3 of Unit 1, under these three operations, the elements f
of S satisijr associative laws, coinmutative laws, distributive laws and 1
complementat ion h w s .
Also, by El9 of Unit 1, you lcnow that p V F = p arid p A 7 = p, for any
1
propositio~lp. These are called the identitb laws.
The set S wkh the three operations and propert,ies listed above is a
particular case of an algebraic structure which we shall now dcfiiie.
1
~ e f i n i t i o n : Bpolean
of a sct X (9
,~ algebra B is an algebrjic structure whicl~consists
)) havi$g two binary operations (dcnoted by V and A ) , onc
11
unary operation (denoted by ') and two specially defined elements 0 and I
(say), which satisfy the followiiig five laws for all x, y, 2; E X. 1
I
B1. Associative Laws: x V (y V,z) = (x V y) V z,
X A (ykA Z) = (x Ay) A z
i
I B2. Commutative Laws: xVy=yVx,
1 xAy=yAx
B3. Distributive Laws: xV (y Az) = ( x V j
48 X A (yVz)= (xAy) V(xAz)
I
operations. Lct (/I and X play the roles of 0 and I, rcspectivcly. Thcn, from
MTE-04 you can verify 1,lia.t all the coriditions for (F(X),U , n, ', (I,, X) to be
a Boolean algebra liolrl good.
For instance, the, iclcnt8il,ylaws (B4)~followfrom two set,-theoretic facts,
hamely, 'tlie inl,crsccl,ionof ariy subset with t,he whole set is the set itself1
arid 't,he union of any set with l,hc cmpty set is the set itself'. On the otlier
hand, the coirlplcrneiitatioil laws (135) follow from another set of fact,s from
set theory, narncly, '1-lle int,crsection of ally subsct with it,s complenlent is t,hc
empty set' ant1 Lt,llt!unhy! of any set with its cornplemeilt is the whole set'.
+.* *
\
'
Yct ariobher cxample of a Boolean algebra is based on switkhing circuits.
For this, wc first need lo elaborate on tlic: furictioiling of ordinary switches in
a rnathcmatical way. In fact, wc will present the basic ides wl.iicli helped tlic
American, C.E.Sh;lnnon, to detect tlic coilllcction bet,wcerl the fl1nctionihg\ of
switcl~esant1 Boolc's syin1)olic logic.
You may bc aware of the ft~nclioningof a simple on-off switch which is
cornmonly user1 as nn esseiit,ial component, in thc elec1,ric (or electronic)
letw working systems. A swit,ch is a, clcvicc which allows thc current to flow
only whcn it is placcd in tlic O N position, i.e., when the gap is closed by a
conducting rod. Tlms, tllc O N position'ol' a switch is one state of a switch, Fig.2: OFF-ON posi-
called a closed s t a t e . Thct other state of a switch is the o p e n s t a t e , when tion
it is placed in the O F F position. So, a switch has two stable states.
There is another way to talk about the functioning of a switch. We can
denote a switch by x, and use the values 0 and 1 to depict its two st?tes, i.e.,
to convey that x is o p e n we write x = 0; and to convey that x is closed we
write x = 1 (see Fig.2).
These values which clcnote the state of a switch x we called the
state-values (s.v., in short) of that switch.
I
1 We shall also write x' for a switch which is always in a state opposite to x.
So that
x is o p e n =+ x' is closed and x is closed + x' is open.
Elernrmtary Logic The switch x' is called the invert of the switch' X. For example, the switch
shown in Fig.3 is an invert of the switch a. *
,1 .
We have now developed a sufficient background to give you the example of a
Boolean algebra which is based on;switching circuits.
2: The set S = 10, l} s a Boolean algebra.
Example
i3
1
Solution: Take sex and p a r in place of A arid V, respectively, and
inversion(') instead of w as the three required operations in the definition of
a Boolean algebra,. Also take 0 for the element 0 a n d 1for the element I in
Lap-----
--
illis definition. Boolean Algebra and
NOW, using Tables 1 and 2, you can check that the five laws B1-B5 hold Circuits
good. Tlrus, (S, p a r , ser, I , 0 , l),is a. Boolean algebra.
** *
A Boolean algebra wliose underlying set has only two elcnlents is very
important in tlie study of circuits. We call such an algebra a two-element
Boolean algebra. Tliroughouk the unit, we denote this algebra by 13. From
I
this Boolean algebra wc can build many more, as in the followirlg example.
/ Example 3: Let B" = B X B X . . x B = {(el,e2,.. . ,en) I cach ei = 0 or I),
for n 2 1, bc the Cartesian product of n copies of B. For ik,jl,E {O,1)
(1 _< 1c 5 n ) , define
I
( I ,. ., , z l. i = 61Ajl,i2 A j z , . . ,ill Aj,,),
1 ( I , , ( j , ,, = (il V j 1 . i ~V j2,. . . ,ill v.jll), and
I ( 1 , i . . , i n = (i;, ih, . . . , ii,) . .
Then B" is a Boolei~nalgebra, for all 11 1. >
Solution: Fil'siJ~observe that lhe c u e n = 1 is Ilie Boolean algebra a. I
I
I
Now, let us wsilc 0 = (O,O,. . . ,0) and I = (1,'1,.. . , I), for the two clcments
of Bn corisisti~lgof 11-tuples of 0's arid l's, respectively. Using the fact that B
is a, Boolean i~lgcbra,yo11 ~ ~ $~'Iieck
1 1 1,Iiat a",with operations as clcfined
I above, is a Boolcaii a,lgcbr,zfor every n >_ 1.
I
***
The Boolean a1gcl)rr~sB", 11 2 1, (called switching algebras) are very
I
useful Soor Ilie study of the hardware and software of digital computers.
We shall rlow si,j~l,e,
wit,hout, proof, sornc otlicr propertics of ~ o o ~ c a n
I algebras, which can hc dcdllc:ed from tlie fivc laws (Bl-135).
1
Theorem 1: Lot B = (S, V, A , ', 0, I) bc a Boolean algebra. ' ~ l l e nthc
following laws hnld V x, y E S.
a) Idernpotenl; laws : x V x = x, x Ax = x.
b) Absorption laws : x V (x A Y) = x, x A (x V y) = x.
I
c) Involution law : .. (x')' = x.
d) De Morgan's laws : (x V y)' = x' A Y', (x A Y)' = x' V Y'.
,
In fact, you ILRVCalready colnc across some of tliese propgrties for the
Boolean algebra S of proposit,iorls in Unit 1. In the following exercise we ask
you to verify thern.
El) a) Verify the identity laws and absorption laws for;the Boolean
algebra (5,A, V, N, 7 , F )of propositions.
.i
b) Verify the absorption laws for the Boolean algebra
(Nx), u, n, c , $1 X)..
In Theorem 1, you may have noticed that for each statement involving V and
A, there is an analogous statement with A (instead of V ) and V (instead of
A ). This is not a coiilcidence, as the followi~lgdefinition and result shows.
Definition : If p is a proposition involving -J, A and V, the dual of p,
denoted by pd, is t,he proposition obtained by replacing each occurrence of A
(and/or V) in p by V (and/or A, respecti$ely) in pd.
For example, x v (x A y) = x is the dual of x A (x V y) = x.
51
tells us that if a stal:elTlent is proved true, then
f+;l~:lt,r!nt,a~-~
Logic Novr, t,llr$f'ollowiag
wc. llavc sim~lltancouslypaved that its dual is trlle-
Theorel* 2 (TIIe principle o f duality):
d
If S' is a theorem i~bollt,a
Uoole;~nalgebra, then so is its dual s .
It is i,ecause of this principle t h a t the statemellts in Tlreorem 1 look so
sirnilar.
Let, 11s now see llow to apply Boolean algebra mett210dsto circuit, design. For
t,l~isporposc we introduce the necessary mathclnntieal t*crluillology
ideas in the follo\ving section.
is in CNF because it is the rneet of nlsxterms (xi V x2 V x3), (xi V x i V xs) and
(xi V x2 V x i ) . Note that a l l 3 variables a r e involved i n each m a x t e r m .
53
Elementary Logic Let us consider an example of how to'obtain the CNF of a Boolean
expression. .
E x a m p l e 5: Obtain the CNF of the Boolean expression
Solution; We have
(xl A x2) = xi V xk (De Morgan's Law)
'
= (xi v x;) v 0 (Identity law)
= (x! v x;) v ( x A~x;) (Complementation law)
= (x; V xi V x3) A (xi V x; V xk) (Distributive law)
Siniilarly, you can check that
54
***
NOW you should find it easy to solve the following exercise. Boolean Algebra and
Circuits
- -
With this we conclude this section. In the next Section we sliall give an
important, application of tile coilcepts discussed here.
I
If you loolc around, yon wollld notice many electxic or electroiiic appliaiices
of daily usc. Sorne of 1;heni need a sirnple switching circuit to control the
auto-stop (sndl as ill ;.I: stereo systeni). Sorr~ewould usc i111 nuto-power oil'
systeni used in trt~usI'ormc?rsto coiltrol vol1;ag.e fluctuations. Each circuit is
usually a conlbinatiorl of on-off switches, wirecl together in sonle specific
configuralioll. Nowadays certain types of electronic blocks (i.e., solid state
devices sucli as t;ransisliors, resistors and capacitors) are Inore in usc. We call
these electronic bloclcs logic' gates, or: simply, gates. Irr Fig. 5 we ha,ve
shown a box wllicli corisists of some electronic switches (or logic gates), wircd
together in a specil'ic rkianner. Each line which is elitering tlie box frorn the
left ~:epr.escntsa n iridepenclcnt power source (iallcd i n p u t ) , where ildl of'
them need iiot supply volt,age t o tlie box a t il given nloment. A single line
coming out of t,lic box givos tlie f i n a l o u t p u t of tliB circuit box. Tlle output
depends on tlle trypc of inpill;.
power
lines
Box
E5) Compare Table 3 with Table 2 .ofunit 1. How would you relatc xl A xz
, with p A q, where p and q denote propositions?
(Hint: Take T for 1 and F for 0 in Table 3 above.)
Table 4: Output of
OR-gate.
Let us now consider another elementary logic gate. , '
EG) Compare Table 4 with Table 1 of Unit 1. How would you relate XI V xz
with p V q, where p and q are propositions?
Table 5: Output of
NOT-gate And now we will discuss m electronic realisation of the invert of a simple
switch about which you read in Sec.3.2.
Definition : A NOT- gate receives bit x as input, and produces at1 output
denoted by x', as given in Ta.ble 5. The standard pictorial reyrescni1;ation of a
NOT-gate is shown in Fig.8 below.
I
Fig. 9: A logic c i r c u i t of e l e m e n t a r y gates.
1 Now let 11s try to sea tllc conncctiori bc?tween logic: circuits and'~oo1ei~11
1 expressions. We first consi(2er t110 c?lelilentnry gates. For n give11 1);iir of
; inputs XI, ant1 x2, tlic o11tp11t ill I,he cnsc of C I L ( : ~ of
~ t l i ~ s ega,tes is ill1
-
I , expression of tlic for111 xl, A x:! or X I V ~2 or XI.
Next, let us look at; larger circuits. Is it jlossible to find illi exprcssiori
, associated wil;h i1 logic circuit, using the syrubols A , V and I'? Yes, it is. We
will illustral;~tilie I;ecliilicjuc of fillding il Boolean cxprcssioil for a given logic
circuit with tlie help of s o ~ n ac!xainplcs. But first, notc t;l~n,ttlle output of a
gate in a circiiit niay scrve as a11 iiil)~;tto soii1(?ot;ll(-!rgate in tlle circuit, iW in
Fig. 9. So, t,o gc:t bxprcssioli for a logic cil:cliit 1;lrc process alwilys moves
in the diicctior, of blic? arrows in tlict circuitry. With t,liis i11 mind, let us
corisicler some circuits.
E x a m p l e 7: Fiwl t,hc Doolrail c?xprcssionfor 1,hc logic: circuit given in Fig.9
above.
Solution: 111 Fig.9, tllcrc arc foilr input t,&rmirials. Ld,us call them
I ~ 1 ~ xx:j2 a, n ~ 1x4. S O , X I alld xz are input,s to a,ri OR-gate, wliicli gives
xl V x:! as a n out,put c:xprctssion (scc Pig. 9(a) ).
1
Fig. 9(a)
***
Elementary Logic You have just seen how to find a Boolean expression for a logic circuit: .For
Inore practice, let us find it for another logic circuit.
Example 8: Find the Boolean expression C for the logic circuit given in
Fig. 10.
Fig. 10
Solution: I-Ierc i,he first output is from an OR-gate, i.e., A is XI V xa. This,
in t ~ x nserves
, as the input to a NOT-gate attached to it from the right.
The resulting bit B is (xl V xz)'. This, and xs, serve as inputs to the extreme
right AND-gate in the cir~uitgiven above. This yields an output expression
(xl V x2)' A xj, which is C, the required expression for the circuit given in
Fig.10.
Why don't you try to'find the Boolean expressions for some more logic
circuits now'?
E8) Find the Boolean expression for the output of the logic ciicuits given
below.
. .
So far,, you have 'seen how to obtain a Bo,olean expression that 'represents ,s
given dircuit. Can you do the eonverse? e hat is, can you construct. a logic
circuit correspdnding to a given Boolean expression? In fact,! this is' done.
when a. circuit designing problem has to be solved. The proQedve is quite
simple. We illustrate it with khe help of some examples.
E x a m p l e 9: Construct. the logic circuit represented by the Boolean
expression (xi A xz) V (xl V x3),where xi (1 5 i 5 3) are assumed to be
inputs to that circuitry.
Solution: Let us first see what-,the portion (xi A xz).of the &en expression
contributes i,o the complete circuit. In this expression the literals x', and xa
are collnected by the connective A (AND). Thus the circuit corresponding to
it is as shown in Fig.ll(a), by the definitionstof NOT-gate and'AND-gate.
Similarly, the gate corresponding to the expression xl V xs is as shown in
Fig. l l ( b ) above. Finally, note that the given expression has two parts,
namely, x i A xz and XI V xs,whi& are connected by the connective V (OR).
So, the two logic circuits given ia Fig.11 , when connected I,by a ; OR-gate,
I
will'give us the circuit shown Fig.12 .
58
Boolean Algebra and
Circuits
I I
(xlf A x2) V (xl V x3)
I
I
I
II
1
Fig.
x3
Pcircuitry
,
x1 v x3
E x a m p l e 10: Given the expression (xi V (xz A xi)) A (xz V x i ) , rind the
<
corresponding circuit, where xi (1 i 5 4) are assumed to be inputs to t h e
1 circuitry.
1
1
Solution: We first consider the ciraiits reprcse'ntibg the expressions xz A xi
and x2 V x i . They are as shown in Fig.13(a).
g
circui for the part x i V (x2 A xQ) of the given expression is as shown in
Fig.1 (c). You already k~iowhow to construct a logic circuit for the
exprepsion y2 V x i .
~ , two expressions (xi V (x2 A xh)) and (x2 V xi) being connected by
~ i n a l jthe
the cbnnective A (AND), give the required circuit for the given expression
as shbwn in Fig. 14.
E l 1) Compute the log32 table for the circuit given ifi E8(b) above.
-
You have seen how the logic table of an expression representing a circuit
. provides a functional relationship between the state (or level) of Goltage in --7
the input terminals and that in the output lead of that logic circuitry. This 1
leads us the coricept 01Boolean functions, which we will now discuss. Boolean Algcbra and
Circuits
In thc last section you studicd that an output expression is not merely a
cievicc for representing an interconnection of gates. I t also defiiies output,
valucs as a function of input bits. Tliis provides information about tlie
overall functioning of the corresponding logic circuil. So, this func1,ion gives
us a relation between t h e i n p u t s t o t h e circuit and its final o u t p u t . .
This is what helps us to understand control over tlie fuiictioriing of logic .
circuits from a mathema,t;ical point of view. To explain what, this means, let
us reformulate the logic tables iri terms of functions of the input bits.
Let us first consider the Boolean expression
X(x1,,332) = x1 A x:,
where xl arid x2 t,alte values in B = (0, I). You know that d l the values of
this expressio~i,for different pairs of values of the variables xl arid x2, cui be
calculated by using properties of tlie Boolean algebra B. For example,
OA~'=OAO=O * X ( 0 , l ) =0.
Similarly, you can calculate the other values of X(x1, x2) = xl A xk over B.
In this way 'we have obtained a function f : a2-t 13, defined as follows:
f(el, ez) = X(el, en)= el A e;, where .el, e2 E {0,1}.
So f is obtained by replacing xi with ei in the expressioli X(xl, x2). For
example, when el = 1, e2 = 0, we get f(1,O) = 1 A 0' = 1.
More generally, each Boolean expression X(xl , x;!, . . . , xk) in k variables,
where each variable can take values from the two-element Boolean algebra B,
defines a function f : B'' + B : f(el,. . . , ek) = X(el,. . . , ek).
Any such function is called a Boolean function.
T1.ms, each Boolean expressioii over B = {O,1) gives rise to a Boolean
function. In particular, corresponding to each circuit, we get a Boolean
function. Therefore, the logic table of a circuit is just another way of
representing the Boolean function correspondi~igto it.
For example, the logic table of an AND-gate can be obtained using the
function A : B2 t Z? : A(el, ez) = el A e2.
To make matters more clear, let us work out an example.
Example 11: Let f : B2 3 B denote the function which'is defined by the
Boolean expression X(xl.,x2)= xi Ax;. Write the values uf f in tabular f&m.
Solution: E is defined by f (el, ez) = ei A e; for el, e2 E {O,l}. Using Tables 3,
4 and 5, we have
f(0,O) = O 1 A O ' = 1 A 1 = 1, f ( 0 , l ) = 0' A 1' = 1 A 0 = 0,
f(1,O) = 1 ' A O ' = O A 1 = 0, f ( 1 , l ) = 1' A 1' = O A O = 0.
We write this information in Table 7.
Table 7: Boolean function for the expression x i A xb.
Elementary
.. Logic Why don't you try an exercise now?
-
E121) Find all the values of the Boolean function f : a2-+ B defined by the
Booiean expression (xl A xz) V (xlA xi).
By comparing Tatjles 7 and 8, you can see that f (el, e2)= g(el, ez ), for all
(el, e2) E 23'. So f and g are the same function.
What you hihe just seen is that two (seemingly) different Boolean
expressiods c a n have t h e same Boolean function specifying t h e m .
Note that if we replace the input bits by propositions in the two expressions
involved, tllen we get logically equivalent statements. This may give you
some idea of how the two Boolean expressions arc related. We give a formal
definitiok below.
i
I
El3 ) Show that Boolean e~pressions
a
I X= (xl A xz) V (xl A xi) and Y = XL A (x2 V xi)
So far you have seen that given a circuit, we can define a Boolean function
corresponding to it. You also know that given a Boolean expression over 13,
there is a circuit corresponding to it. Now, you may ask:
Given a Boolean function f : an'+ B,is it always possible to get a Boolean
expression which will specify f over B? The answer is 'yes', i.e., for every .
function f : Bn -+ 23 (n 2 2) there is a Boolean expression (in n variables)
whose Boolean function is f itself.
In fact, the disjunctive (and conjunctive) normal forms described in Sec.3.3 Boolean Algebra a ~ l d
are precisely the expressions which will come in handy here.
Circuits
I
TO help you understand the underlying procedure, consider the following 1
examples.
Example 12: Let f : B2 i -B be a function whicll is defined by
f(0,O) = 1, f ( l , 0) = 0, f ( 0 , l ) = 1, f ( 1 , l ) = 1.
~ i n dthe Boolean expression (in DNF) specifying the function f.
solution: The procedure involved for the construction of a Boolean *
cx~ression(in DNF) which will specify the given function f is given in the
following three steps.
Step-I: Collect all the pairs of values vi = (eil,ei2) for which f (eil,cia) = 1,
, w11cl.e (eil, ei2) E B2 b' i. In this case these arc
vj = (0,0), v z = ( 0 , 1 ) andv3 =(1,1).
9
Step-11: Write a rniriterrn Ini = yil A yi2 for each pair vi of these values,
namely, (0,0), (0,l) and ( I l l ) ,where, for 1 <_ i 5 3, 1 <_ j 5 2,
Xj, i f e ; j = l , .
xi, if eij = 0.
Now, beca,use vl = (0,O) i.e. ell = 0 and el:! = 0, so, we have
1111 = y11 A y12 = xi A x;,
bx the definition of yll and yli given above.
Similarly, you can see that'
m2 = x i Ax2 a n d m3 =,XI AX^.
Step-111: The join of the three m i n t e r m s ml , m2 and rns gives the expres-
sion of the type
X(xl, x2)= ml V mz V ms = (xi A'X;) V (xi A xz) V (XI A x2),
wllicli is,the requifed Boolean expression (in DNF) whose Boolean
fuunction is the same as Ihe given function f (see the exercise given
bclow) .
In Exarnple 12, you saw how to obtain an expression (in DNF) for a given
function f : 82-+ U. In the next example, you will see how to obtain the
expressiorl in CNF.
Example 13: Let 'g : B~ 3 U be a function which is defined by
g(0,O) = 0, g(1,O) = 1, g(0,l) = 0, dl,1) = 1.
Find the Boolean expression in CNF w h i a specifies the function g.
Solution: The procedure t o obtain a Boolean expression in CNF specifying
the function g is given i n the following three steps. .
Step-I: Collect a11 pair of values V; = (eir, ei2) such that g(vi) = 0,
where (eil, qz) E B2 V i. Here two such pairs are given by
7
v l = (0,O) and v2 (0,l).
Step-11: Write a maxterm Mi = Y i l V y;2 for each pair vi = (eil, ei2) of these
i;wo, where, for 1 _< i , j 5 2, 63
8
Elementary Logic
We can't Claim that the circuit designed in the example dbove is-the simplest
circuit. How to get that ,is a different story and is beyond the scope of the .-
present, course.
Why don't.you try an exercise now?
I
El6 ) Design a l$ic circuit t& operate a light bulb by two swiiches, xl and xz
,-
(say), ". I
-.
We have now coine',io the end of our discussion on applications df logic. Let ,
us briefly recapitjZ$e what. we' have discussed- here.
3.6 SUMMARY
In this h i t ' we have ;onsidered the'following points.
1. The definitio'n .and examples of a Boolean algebra. In particular, we
have discussed the two-element Boo1e;zn algebra 23 = {,O, I), and the
switching algebras Bn, n 2 2.
+.
The definition and examples of a ~ o o l e a nexpression.
.2.
3. How to' write a Boolean expression in disjunctive normal form (DNF)' or
in conjurlctive normal form (CNF). ' BooIean AIgebra and
Circuits
The three elementary logic gates, namely, AND-gate, OR-gate and
NOT-gate; and the arialogy between their functioning and operations of
logical connectives.
The method of construction of a logic circuit corresponding to a given
Boo1ea.n expression, and vice-versa.
How to obtain the logic table of a Boolean expression, and its utility in
the understanding of the overall functioning of a circuit.
7. The method of simplifying a Boolean expression.
8. Thc method of construction of a Boolean function f : Bn -+ B, '
corresponding to a Boolean expression, and the coilccpt of equivalent
J
Boolean expressions.
9. T h e method of obtaining a Boolean expression (in C N F or DNF) for a
>
given function f : Bn + 13,n 2.
10. Examples of the use of Boolean algebra techniques for constructing a
logic circuit which can function in a specified manner.
El) a) In El9 of Unitl, you have already verified the Identity laws. Let
us proceed to show that the propositions p V (p A q) and p are
logically ecluivalent. It suffices to show that the truth tables of
both these propositions are the same. This follows horn the first
and last, columils of the following table. -
Observe that
(xl V x2)' = x i Ax; (De Morgan's' Laws)
= ;(xi A x;) A I ( ~ d e n t ' iLaw)
t~
= (xi A x;) A (x3 V-xi) (Complementation Law)
= (xi A x; A x3) V (xi A xk A xi) (Distributive Law)
Similarly, you can see that
X ~ A X , =(x~Ax~)A(x~vx~)=(x',Ax~Ax~)V(X~AX~AX~)
= (xi A x2 A x3) V (xi A X; A x3).
Thus, the DNF of the Boolean expression X(xl, xz, xs) is given by
IJt 1 ,:a t.1 . $ I 6 s - .> b,:i
.\ b f , 11,~1,
,
(3
68
a
chain. This gives the expression (xl A x2 ' which serves as one
input to t8hc;,extremeright AND-gate. lso, since x$ is another
input to this AND-gate (coming out of a NOT-gate), w e get the
I expression (xl A xz)' A x',as the final output exp~cssionwhich Boolean Algebra and
I represents the circuit given in (b). Circtzits
I E9) You lcnow that the circuit representing expressions x l and xt V xh are
as shown in Fig. 16 (a) and {b) below.
(a) (b)
Fig. 16
1 Thus, the expression xi A (xz V xi), being connected by the symbol A,
I gives the circuit corresponding to it as given in Fig.17 below.
I
I
Fig. 18
The logic table of this expression is as givek below,
E13) To.show that the Boolean expressions X and Y are equivalent over the
two-element Boolean algebra B = {U, I), it sufficis to show that>the *
Boolean functions f and g (say) corresponding to the expressions X and
Y, respectively, are the same. As you can see, the function f for 'the
expression X is calculafed in El2 above.
Similarly, you can sewthat. the Boolean function g for the expresiibn.y
in tabGsr form is as given below.
Comparing the last,colurnns of this table and. ihe one given in El2
above, you can see that
, f (el,ez, e3) = g(el,e2,e3) V el, e2, ei E I? = {0,1). Thus, X and Y are
equivalent.
, E14) firstly, let us evaluate the given expression X(xl, xz,xs) over the
two-element Boolean algebra 13 = {0,1) as follows:
X(0,O) = (o'Ao')v(O'AO) V ( O A O )
= (l~l)V(lA0)V (OAO)
= l V O V O = l=f(O,O);
x(1,O) = (1' A 0') V (I'A 0) V (1h 0)
= ( 0 ~ 1V(OA0)
) V(1AO)
= ovovo=o=f(1,0);.
'X(0,l) '= (O'.All)V (0'Al) V(OA1)
I
= (1~o)v(l~l)v(oAl)
70
Boolean Algebra and
Circuits
= ovov1= l=f(l,l).
It thus follows tliat X(el, e2) = f(e1, e2) b' el, e2 E B = (0,l).
E15) a) Observe from the given table that, among the two values 0 and 1
of the function f (xl, x2, x3), the value 1 occurs the least number of
I times. Therefore, by the remark made after Example 13, we would
I prefer to obtain the Boolean expression in DNF.
! To get this we will use Theorem 3 and the stepwise procedure
adopted in Example 12. firstly observe that
Fig. 19
REGIONWISE LTST O F STL'DY CENTRES FOR RSc. PRoCXaMME
-
-3.7
23 .
U28D
0529
Snghbhrrm. Dlbrr
St. Cillumhm C a l l w , P 0 College Slorr, H m h a g h - 8 2 5 30 I
h u g r a h Naraynn Coll~xe,Bonn8 Road Pltnr-8lW Ol3
4. DELHI RECION(1) (South m d W e d R e g l w . G u r f ~ r o Fmrhbbmd
~ -MIXIathun)
34 071)7 MCRC. Jamla hfillta Ialama J m a Nagar, 3 c w Deihi-\ I 9 0 2 5
25 071 1 G,+ Collcg, S i n Fon Rood. Yew Ikrm-l I0 019
26 0715 Acharya N n m d r a D w Collcgc. Mkajl. N e w Dclhl-l 10 019
5. DELHI REGION(?) (North utd Exrt R q l o n Including .Uceruf .Uodln.gar and Ghmrlabmd DM* o f Utbr Prndnh)
27 0728 Ahasknrnchnryn College of Applied S c ~ c n c a Vccr . Savarkar C o r n p l e ~b a a
NmDelhi-llOOl2
28 073 X a l ~ n dCollega,
~ Emt Pattl S a p , i i t w Delhl- I It) ir>X
29 17-13 1.ajpa Rsi (P.G.)(:ollcgc, Shhabod-21>1On), Vtlrr Prndcrh
6. -U-nfFllARADKEGIQN (Gujoral, 1)nlnan R: Diu, Dndrn Q h'n@~rH;ivcli)
30 W01. L.D. Ark! Collcge. Navningpura, h . . a i a b s d - 3 8 0 IXV, G u j x n t
31 0901 Gcncra! Education Buildlng hLS Cnl:.tniv. \'adod.ua-IW 002. Cujarat
32 @IN JD Thacktr Commerct Collcge.Rhuj.371)001 ,Guja:3L (LaIan Cnllcye.
T311uj, <;uji~rnt).
33 @lo!) Kew F'roglrssivc Ii~luc:~tior~ Tnls!, hlch;.;1n.1.3S.IEM>?, G u j ~ ! r ~ l
>1 0322 (K ) Sl~rceGnthi ViJyJoyn,Ploi Xo.910, GUJC E s t n t c , , \ n k I ~ ~ h w ~ , G u j n r ~ L
35 @I2Xj;lj NdIi<lrlalh ; t i ~ ~ ~filr
l eCl.may~.n:tnldnd Id~rrnatic'nTcct,nsluloy)C!I.LII'I)
C/o Farag A d . J.ine.~tt~ Prrss, Rajku1.5
36 290 1 Cit>\t Arls Collcgc, I>unm and L)lu (T.T )-396 2 I O
7. KAKN:\I. REGIOS ( I l 2 r p n 3 and 1'unJ:111)
'17 IUOI hlukanndl.~lNali~~nrlCollcye, Y m u n s N a y ~ r s l I S01 1, Elutynna
1005 Cl~holuR m Collegc of Educdon, R o h ~ k - l 1 4 0 0 1 Haryxna ,
(All I n d ~ aJhl H e m s EVIcmorial College. Rohlak, Haryanaj.
39 I 00s GmT. Collcgc(Girh Wing).Scctor-14, R ~ l w a yR o d Ramnl.132 001.
Ilaq~nn
41i 1 OW G ~ TP.G Collzgc, FIiwar-I3 001, b ~ x n r .
41 Ill!? h f a h n d a Notional Collcg~-,Sh,&~b3d, Kumlrihctra. Har)'ana
42 1913 Government P.G. College. J~nd-I36102, klnrymn
43 2101 DAV. Collcgc. Jnl~u~dh.u-I.l-l608. PuoJnb
8.51D311A REGIO?i(IUnlact~al W m h and Chnrdifprh)
44 1101 Govemmcnl Buys Collcge, Sanjauli S M a - 171 (Y)6,
Hlmschnl Pndesh.
45 IIM Gmmrmcnr Collcgq Dharamshala-I 76 21 5, Htmnchd P n b b
46 ! 1 i3 Gm?. P G College. 0 1 l u p r . I 74 0131. Hlmacbxl P n d c s h
47 I l i5 GmT. Degree Collcgt, Rrcong P o q Emnow Dut,I-IimKhd P r d d
9. J..~Uliv REGIOS(J.%I;)
48 1101 C a i v d t y of &-I Dcpr.rurun of bfanagcrnsn %ti.
Jammu T~wi.180001, .I& K.
( G a n b Xfmorial Science Collqt, Jammu Tan> J&K).
49 1206 GOM.Deem: College, Kslhuq J & K
50 120: Gat.&gee CoUcgc, Rajowi J P I i
51 11CS GoM.Degree CoUcp, P w n & .I-.
52 122P) Gmdh bLmonal Cotlegc, Clmp h p n , B d l b . Jammu-18 1 123, J&K
18 B-CWX.LORE R E G I O . Y ( K X ~ ~ N La~d <;O)
53 0802 Dbcmw College a f h B Science, P . 0 Brrr So.= Pan*,
G.8103 001
-54 !j03 J S.S. CoUcgc, Dhatwad-SBOWS, linrmhh
55 1533 Gmt. Sci~~ccCoUcgq ?jnrp&~a&a Road, B@ub';/jn W1, K m h h
11. C-i R Z C I O . S ( K ~.sd ~ ~ b d r e c p )
-56 1101 Imrinneof- i n GoK. ViLrBLh.ln ~ ~ 033. ~ 9 5
h ' d CL'nivmj.C d l q e . -raq Ym l s i
57 1l i ! j J 9 . T . bkm, C d h t . 6 7 3 018, Krrdr
5s 1A X
CaLhlicztcCoIlqe, P l t t a n m l b 4 8 9 MS. Ktrr)..
.i..i 14:s Shri N H I P ~ W I
Cdlcge, b r r d h l (r~7
,, , 12:: St A!b..? Cdlzgc, ErnakU.*m&.1 013, $:en h