

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


Powers of 2 21 = 2 28 = 256 215 = 32768 22 = 4 29 = 512 216 = 65536 23 = 8 210 = 1024 217 = 131072 24 = 16 211 = 2048 218 = 262144 25 = 32 212 = 4096 219 = 524288 26 = 64 213 = 8192 220 = 1048576 27 = 128 214 = 16384
Decimal Binary 2’s Complement 57/2 = 28 R 1 -N = 2n^ – N 28/2 = 14 R 0 -N = [(2n^ – 1) – N] + 1 14/2 = 7 R 0 e.g. 7/2 = 3 R 1 ((2n^ - 1) - N) = 0010 3/2 = 1 R 1 -N = ((2n^ - 1) - N) + 1 1/2 = 0 R 1 -N = 1011 5710 = 111001 2 8-bit: [-128, 127]
Hexadecimal Binary AB51 16 = 1010 1011 0101 0001 2
Binary Addition Bin Subtraction C + X + Y = Z + C B - X - Y = Z - B 0 + 0 + 0 = 0 + 0 0 - 0 - 0 = 0 - 0 0 + 0 + 1 = 1 + 0 0 - 0 - 1 = 1 - 1 0 + 1 + 0 = 1 + 0 0 - 1 - 0 = 1 - 0 0 + 1 + 1 = 0 + 1 0 - 1 - 1 = 0 - 0 1 + 0 + 0 = 1 + 0 1 - 0 - 0 = 1 - 1 1 + 0 + 1 = 0 + 1 1 - 0 - 1 = 0 - 1 1 + 1 + 0 = 0 + 1 1 - 1 - 0 = 0 - 0 1 + 1 + 1 = 1 + 1 1 - 1 - 1 = 1 - 1
Dual F*(X,Y,0,1,+,∙) = F(X,Y,1,0,∙,+) Replace AND by OR Replace OR by AND Replace 0 by 1 Replace 1 by 0 Literals are left unchanged
Boolean Laws
Minterms and Maxterms Row X Y Z Minterm Maxterm 0 0 0 0 X’∙Y’∙Z’ X+Y+Z 1 0 0 1 X’∙Y’∙Z X+Y+Z’ 2 0 1 0 X’∙Y∙Z’ X+Y’+Z 3 0 1 1 X’∙Y∙Z X+Y’+Z’ 4 1 0 0 X∙Y’∙Z’ X’+Y+Z 5 1 0 1 X∙Y’∙Z X’+Y+Z’ 6 1 1 0 X∙Y∙Z’ X’+Y’+Z 7 1 1 1 X∙Y∙Z X’+Y’+Z’ Minterm = 1 Maxterm = 0
Karnaugh Maps B 00 01 11 10 00 M 0 M 4 M 12 M 8 01 M 1 M 5 M 13 M (^9) D C 11 M^3 M^7 M^15 M^11 10 M 2 M 6 M 14 M 10
A
Parity Codes Odd Parity add 0 or 1 to data bits so total # of 1s is ODD Even Parity add 0 or 1 to data bits so total # of 1s is EVEN
Hamming Codes Hamming distance d = # of 1s in XOR of two codewords
Code word b 4 b 3 b 2 b 1 Message b 4 b 3 b 2 x 4 b 1 x 2 x 1
X 1 checks bits b 4 b 2 b 1 for EVEN parity X 2 checks bits b 4 b 3 b 1 for EVEN parity X 3 checks bits b 4 b 3 b 2 for EVEN parity
Syndrome S 4 S 2 S 1 = bit # of error S 1 checks bits b 4 b 2 b 1 x 1 for EVEN parity S 2 checks bits b 4 b 2 b 1 x 2 for EVEN parity S 4 checks bits b 4 b 3 b 2 x 4 for EVEN parity
Quine-McCluskey Algorithm F(A,B,C,D) = ΣA,B,C,D (1,2,3,4,5,7,9,15) Dec Bin Dec Bin Dec/Bin 1 0001* 1,3 00X1* 1,3,5, 2 0010* 1,5 0X01* 0XX 4 0100* 1,9 X 3 0011* 2,3 001X 5 0101* 4,5 010X 9 1001* 3,7 0X11* 7 0111* 5,7 01X1* 15 1111* 7,15 X
1 2 3 4 5 7 9 15 0XX1 P P P P X001 P <- -- -- -- -- P 001X | P P | | 010X | | P P | X111 | | | P < P F = B’∙C’∙D’ + A’∙B’∙C + A’∙B∙C’ + B∙C∙D.
drain source gate gate
source drain H = on = short circuit L = on = short circuit L = off = open circuit H = off = open circuit
Inverter NAND
Espresso Input file: #comment .i 3 # no. of input variables .o 3 # no. of output variables 000 001 # truth table 001 010 010 011 011 100 100 000 101 --- 110 --- 111 ---
Command line: C:>espresso input.txt
Output: ##comment .i 3 # no. of input variables .o 3 # no. of output variables .p 4 # no. of rows (optional) 0-0 001 # bo -11 100 # b 2 -01 010 # b 1 -10 010 # b 1 .e # end of output
Expressions: b 2 = a 1 a 0 b 1 = a 1 ’a 0 + a 1 a 0 ’ b 0 = a 2 ’a 0 ’
Vin Vout
Vcc
0
Vcc
0
Vcc
0
Q
Q2 Q
Q
Z A
B