COA Digital-Cheatsheet
COA Digital-Cheatsheet
Associative: A + (B + C) = (A + B) + C and A · (B · C) = (A · B) · Prime implicant: Implicant which is not a subset of any other code
C implicant - Priority Encoder can deal with the garbage inputs by assigning priorities
Distributive: A + (B · C) = (A + B) · (A + C) and A · (B + C) = to inputs.
(A · B) + (A · C) Essential prime implicant: Prime implicant with at least one ‘1’
- Add valid bit to
Duality (not a real law): If we flip AND/OR operators and flip the that is not in any other prime implicant (must show in final eqn) deal with (if nothing
operands (0 and 1), the Boolean equation still holds Simplified SOP expression – group ‘1’s on K-map switched on)
Ide mpo tency:X+X=Xa ndX·X=X Simplified POS expression – find SOP expression using ‘0’s on • Demultiplexer:
One /Ze roEl eme nt :X+1=1a ndX·0=0 K-map, then negate resulting expression - One input data line
Inv olution:( X’)’=X Grouping 2N cells(only power-sizes are allowed) eliminates n - N selection lines
Abs orption:X+( X· Y)=X variables - Directs data from
X·( X+Y)=X input to a selected
EPIs are counted only by checking 1s, not Xs output line among
Abs orption( var i
ant ):X+( X’·Y)=X+Y K-maps help to obtain canonical SOP, but might not provide the 2N possibilities
X·( X’+Y)=X·Y simplest expression possible (need to use boolean algebra for that) Demultiplexer ≡
De Mor g ans’(ca nb eus edon>2v ar
iabl
es):( X·Y) ’=X’+Y’ Decoder with enable
(X+Y) ’=X’·Y’ • Multiplexer:
Cons ens us:(X·Y)+( X’·Z)+( Y·Z)=( X·Y)+( X’·Z) - Selects one of 2n inputs to a single output line, using n selection lines
(X+Y)·( X’+Z)·( Y+Z)=( X+Y)·( X’+Z) - To implement functions with n variables, pass variables to the n-bit selector
Lo gicGa t es and set 2n inputs to
Complete set of logic: Any set of gates appropriate constants from
sufficient for building any boolean function. truth table
e.g. {AND, OR, NOT} - To implement functions
Lo gicCircuits with n + 1 variables, pass
e.g. {NAND} (self-sufficient / first n variables to the n-
universal gate) = {Negative OR} Combi nati
onalc i
rc uit
:eachoutputdependsent
ire
lyon
bit selector and set each
e.g. {NOR} (self-sufficient / presentinputs input appropriately to ‘0’,
Seque nti
alc i
rcuit:e a
choutputdependsonbo t
hpresent ‘1’, Z, or Z’ (Z is the last
universal gate) – only when both
inputsands t
ate variable)
inputs 0 will output be 1
•Hal f-
Adde rC=X·Y,S=X⊕Y
•Ful l-
adde rCout=X· Y+( X⊕Y) Cin,S=X⊕(
· Y⊕Z)=( X⊕Y) ⊕Z
With negated outputs, use NAND to simulate •4- bi
tparall
eladd erbyc a
scadi
ng4f ull-
adder
sviathe
ircar
ri
es
OR and NOR to simulate AND •Adde r-
cum- subtractorneedtoXORt heYwi thS(0/1de p
endingon Larger
add/s ubtract
)andpa s
sinSa sC-in(X–Y=X+( 1s-
Complemento fY)+ Components
1) - Remove a
•Magni t
udeCompar a
tor:input:2uns i
gnedval
uesAa ndB,output:"
A> decoder that gives
B" ,"A=B" ,"A<B" duplicate outputs
(w.r.t another
Circuit Delays decoder) by using
• For each component, time = max(∀tinput) + tcurrent component an OR gate with
• Propagation delay of ripple-carry parallel adders ∝ no. of bits the outputs from
the first decoder,
and the enable input of the second.
ALU Build
MSI Components
SOP 0 IS THE LEAST
SIGNIFICANT
expression – implement using 2-level AND-OR circuit or 2-level NAND INPUT!
circuit • Decoder (n-to-m-
POS expression – implement using 2-level OR-AND circuit or 2-level NOR line decoder):
circuit converts binary
data from n input lines to one of the m ≤ 2n output
lines (i.e. 2 x 4 )
Minterms & Maxterms
- Each output line represents a minterm
Minterm/Maxterm of n - Active High - Generate minterms and
variables is a use OR on minterms to form a function.
product/sum term that Alternatively, use NOR on maxterms
contains n literals from all the variables -> n variables -> 2n - Active Low – AND the maxterms or
mindterms, 2n maxterms NAND the minterms
Minterm: m0 = X’· Y’· Z’ - Can add an Enable signal
Larger decoders can be constructed from
Maxterm: M0 = X + Y + Z smaller ones with an inverter (e.g. 3 x 8
m0’ = M0 decoder built from 2 x 4)
Functions can be sum of minterms or product of maxterms • Encoder: opposite of decoder Sequential Circuits
Sum of 2 distinct Maxterms is 1 - Exactly ONE input should be ‘1’ Self-Correcting: any unused state can transit to a used state after a finite
Product of 2 distinct minterms is 0 - If more than one input switched one, number of cycles
Kmap then X (don’t care values)
- Position of single active input line Synchronous: outputs change at specific time (with clock)
Implicant: Product term with all ‘1’ or ‘X’, but with at least one among 2n possibilities is coded as a n-bit Asynchronous: outputs change at any time
‘1’
Downloaded by Muskan Gupta ([email protected])
lOMoARcPSD|38291606
Gated D latch (“Data”): Can build from gated S-R latch (No invalid)