Digital Systems - Short Notes
Digital Systems - Short Notes
● Signal:
○ A physical quantity that varies with time, space or any other
independent variable by which information can be converged.There are
two types of signals:-
1. Analog signals
2.Digital signals
● Number Representation:-
○ Any number can be represented in a number system of base r as
follows:
a a a ...a .a a = a xrk +a xr +a xr +... +a xr +a xr +a xr
k k-1 k-2 0 -1 -2 k k-1
k-1
k-2
k-2
0
0
-1
-1
-2
-2
Where a {0,1,2,...,r-1}
i
C= rn -N
C = (rn-1)-N
’
X=M-N
Else if M<N
X= rn -(N-M).
Now take r’s complement of X and append to get the right answer
● Signed Numbers:-
○ Binary numbers can be represented in two ways:
■ Unsigned
● Cannot be used to represent negative numbers
■ Signed
● Can represent negative numbers
● MSB represents the sign
● MSB=0 implies that the number is positive
● MSB=1 implies that the number is negative
● Two methods to represent negative numbers
● Signed 2’s complement
o Add a 0 as MSB to the number and take 2’s
complement
● Signed 1’s complement
o Add a 0 as MSB to the number and take 1’s
complement
● Binary Codes:-
○ Binary codes must be able to represent all the values in the
given number system
○ Binary codes are needed to easily represent individual digits of a
decimal number in binary. Some common examples are:
■ 8421 (aka BCD code)
■ 2421
■ 84-2-1
■ Excess 3
● 2’s complement of the number +3
○ Closure
■ If A+B=C, where A and B are binary numbers then C
must be a be a binary number
○ Associative Law
■ A+(B+C)=A+(B+C)
■ A.(B.C)=(A.B).C
○ Commutative Law
■ A+B=B+A
■ A.B=B.A
○ Identity element
■ A+0=0+A=A
■ A.1=1.A=A
○ Inverse element
■ A’=1-A
○ Distributive law
■ A.(B+C)=A.B+A.C
■ A+B.C=(A+B).(A+C)
○ Duality
■ Given a logical expression, the dual can be obtained by
replacing AND by OR and OR by AND while 0 is replaced
by its complement 1.
● SOP:-
○ Each term in the SOP form is called minterm (represented by
m).
○ Obtained by taking the rows in the truth table whose result is 1.
○ If in a variable’s value is zero in a particular row, take its
complement while forming the expression, and if the value is 1
take the variable as it is.
● POS:-
○ Each term in the POS expression is called Maxterm
(represented by M).
○ Obtained by taking the rows in the truth table whose result is 0.
o OR Gate
▪ Boolean Logic:A+B .
o NOT Gate
▪ Boolean Logic:~A or A’.
o NAND Gate
▪ Combination of AND gate and NOT gate.
▪ Also called AND-Invert, Invert-OR.
o NOR Gate
▪ Combination of OR gate and NOT gate.
▪ ALso called OR-invert, Invert-AND.
o XOR Gate
▪ Boolean Logic: (A^B) .
● Full Adder:-
○ Sum = A⊕B⊕C
○ Carry = AB+AC+BC
● Half Adder:-
○ Sum = A⊕B
○ Carry = AB
● Full Adder using Half Adder
● Multiplexer:-
o Realization of if else in hardware.
o For a nx1 mux we have log of n to the base 2 number of selector lines.
o A 2x1 mux has one select line and its output is given by F = S’A+SB.
● Encoder:-
o It is a combinational circuit that produces ‘n’ outputs from 2^n inputs.
o It outputs the location of the input which is high.
o The boolean expression can be derived from the truth table.
o For 4 to 2 encoder the output is given by A0 = Y3+Y2; A1 = Y3+Y1;
where A’s are the outputs and Y’s are the inputs.
● Priority Encoder:-
o It has a priority among its inputs.
o If two inputs are simultaneously high, there would be an ambiguity in
encoder whereas in priority encoder, the location of the input which has
higher priority will be the output.
● Demultiplexer:-
o Opposite of multiplexer.
● Decoder:-
o It is a combinational circuit that will give 2^n outputs taking ‘n’ inputs.
● Karnaugh Map:-
o A Karnaugh map provides a pictorial method of grouping together
expressions with common factors and therefore eliminating unwanted
variables. The Karnaugh map can also be described as a special
arrangement of a truth table.