Formula Sheet
Formula Sheet
This booklet is available as open material in the Digital Systems Final Test (Semester א, 5781).
The booklet does not cover all the material. Parts of it may be obvious, other parts may be helpful.
1) for k = n-1: yk = xk (Start on the left hand side, Most significant bit remains unchanged)
1) for k = n-1: yk = xk (Start on the left hand side, Most significant bit remains unchanged)
Received string:
Bit number 1 2 3 4 5 6 7
Bit recieved W1 W2 W3 W4 W5 W6 W7
A1=parity(W1,W3,W5,W7)
A2=parity(W2,W3,W6,W7)
A3=parity(W4,W5,W6,W7)
Error position: (A3 A2 A1)2 A3 being the M.S.B
1
Boolean (switching) Algebra
AND x y = xy
OR x+ y
NAND x y = ( x y )'
NOR x y = ( x + y )'
Exclusive-NOR XNOR
xy = xy + x' y '
(Equivalence)
(A2) If x=0 then x’=1 (A2’) If x=1 then x’=0 (T2) x+1 = 1 (T2’) x 0 = 0 Null elements
Theorems Theorems
(T6) x+y=y+x (T6’) xy=yx Commutativity
(T11) xy + x’z + yz = xy + x’z Consensus
(T7) (T7’)(xy)z=x(yz) Associativity
(T11') (x+y)(x’+z)(y+z) = (x+y)(x’+z)
(x+y)+z=x+(y+z)
(T8) (T8’) Distributivity (T12) x + x + … + x = x Generalized idempotency
xy+xz=x(y+z) (x+y)(x+z)=x+yz
(T9) x+xy=x (T9’) x(x+y)=x Covering (T12’) x x … x = x
DeMorgan’s Theorems
(x+y)(x+y’)=x
2
3-variable minterms and Maxterms:
minterm maxterm
x’y’z’ m0 x+y+z M0
x’y’z m1 x+y+z’ M1
x’yz’ m2 x+y’+z M2
x’yz m3 x+y’+z’ M3
xy’z’ m4 x’+y+z M4
xy’z m5 x’+y+z’ M5
xyz’ m6 x’+y’+z M6
xyz m7 x’+y’+z’ M7
K-Map Horizontal Configuration (MSB - rows, LSB - columns) – Notation we used in class
B C
A A B
B C A
Combinational circuits
Half Adder – a circuit that implements binary addition; it outputs the sum and carry
of two input bits: C = xy , S = x y
Full Adder – a circuit that implements binary addition; it outputs the sum and carry
of carry input and two input bits: Cout = xy + Cin ( x + y ) = xy + Cin ( x y ) , S = x y Cin
Carry-Look-Ahead – advanced method of performing addition in parallel without having to "wait" for
3
Sequential Circuits – Flip Flops
Excitation Table Functional / Truth Table Characteristic Equation , Symbol
Qn Qn +1 S R S R Qn +1 Qn+1 SR
0 0 Qn Qn
0 0 0 d
Qn+1=S+R 'Qn
0 1 1 0 0 1 0 1
1 0 0 1 1 0 1 0 S Q
1 1 d 0 1 1 1* 1*
R Q
Qn Qn +1 J K Qn +1 Qn+1 JK-FF
J K
0 0 0 d Qn Qn
0 0
Qn+1=J·Qn'+K'·Qn
0 1 1 d
0 1 0 1
1 0 d 1 J Q
1 0 1 0
1 1 d 0 K
1 1 Qn Qn
שעון Cp CLR Q
Qn Qn +1 D D Qn +1 Qn+1 D-FF
0 0 0 0 0 1
Qn+1=D
0 1 1 1 1 0
1 0 0 D Q
1 1 1
שעון Cp CLR Q
T-FF
Qn Qn +1 T T Qn +1 Qn+1
0 0 0 0 Qn Qn Qn+1=T·Qn'+T '·Qn
0 1 1
1 Qn Qn T
1 0 1
1 1 0 שעון Cp
( )סופיאCLR
4
Sequential Circuits – state machines
yk Yk
D
5
6
Definitions
Number systems
Decimal number – base/radix 10
Binary, Octal, Hexadecimal numbers - base/radix 2, base/radix 8, base/radix 16
A number may contain an integer part and a fraction part.
Bit – binary digit
Byte - 8 bits
LSb – least significant bit – the rightmost bit
MSb – most significant bit – the leftmost bit
Unsigned – a binary number with no sign
Signed – a binary number which includes sign information
Two's complement (2's complement, 2C) number representation method
Overflow – occurs when an operation result strays from the representation range.
Codes
(Binary) Word – a string of bits
Codeword – a (binary) word that belongs to a certain code
Code – (a translation of a group of words to) a group of codewords
BCD code – binary coded decimal – each decimal digit is coded by its binary value.
Weighted code – each bit in the codeword has a certain weight, used in the calculation of the value of
this digit.
EXCESS-3 code – results from BCD code by adding 0011 to every codeword.
k-of-n code – a code with n-bit codewords, where exactly k bits out of n are '1'.
Cyclic code – a code in which every pair of adjacent codewords differs in only one bit.
Alpha-numeric code – a characters representation code
ASCII code – a specific type of alpha-numeric code.
Error detection – detecting that an error has occurred in a word
Error correction – detecting the location of the error within the word, such that this bit location can be
corrected (by inverting this bit).
Distance between two codewords – the number of different bits between the two words.
Code distance – the minimal distance between any two codewords of this code.
Parity check – adding a bit to each codeword, such that the total number of '1's in the augmented
codeword will become an even number. i.e. if the parity of the codeword alone is odd then the parity bit
will be '1', else if the parity of the codeword is even then the parity bit will be '0'.
Unary operator – a rule that maps a single element to each single element.
7
Binary operator – a rule the maps a single element to each pair of elements. E.g. the OR (union)
operator: x+y , xy ; the AND operator: xy , xy , xy .
Duality – exchanging each '1' with '0' , each '0' with '1' , each AND with OR,
each OR with AND. (no exchange of positive/negated literals!)
Duality principle – Any theorem or identity in switching algebra remains true
if 0 and 1 are swapped and and + are swapped throughout.
Binary variable – a variable that can accept only '1' or '0'.
Primed variable – the complement of the variable (= the variable after NOT operation: x')
Literal – a variable or a primed variable.
Boolean function of n variables – a rule that maps a binary result to each possible combination of values
of these n variables.
Truth table (functional table) – a table showing all the possible results for a Boolean function (for all
combination of values of its n variables)
Complementing function – the negation of the function result.
Complete set – a set (group) of operators, by which any Boolean function can be realized.
Standard Product – minterm – an expression where all the function's n variables are ANDed together,
or
F (x1 ,..., xn ) = ( p, q,..., r ) • d (l ,..., m) = ( p, q,..., r ) • (l ,..., m)
Karnaugh Maps method – useful for finding a minimal/compact expression for a function
of up to 6 variables.
Implicant; Prime Implicant (PI); Essential PI (EPI)
Parity checker – a circuit that counts the number of 1's in its input, and outputs even / odd.
Comparator; Arithmetic comparator