Professional Documents
Culture Documents
01
• LO1: Convert given number from the given number system to the
specified
number system.
• LO2: Perform the given binary arithmetic operations on the given
data.
• LO3: Describe the characteristics of the given digital logic families.
• LO4: Derive the truth table of the given logic gates/derived logic
gates.
• LO5: Apply Boolean algebra for designing the given logic circuits.
• LO6: Design the logical circuits for the given applications.
Commutative Law
This law states that no matter in which order we use the variables. It means that
the order of variables doesn't matter. In Boolean algebra, the OR and the addition
operations are similar. For two variables, the commutative law of addition is
written as:
A+B=B+A
A •B=B•A
Associative Law
This law states that the operation can be performed in any order when the
variables priority is same. As '*' and '/' have same priority. In the below diagram,
the associative law is applied to the 2-input OR gate.
A+(B+C)=(A+B)+C
For three variables, the associative law of multiplication is written as:
A(BC)=(AB) C.
Step2:
Add (63)10and 2’s complement (20)10
(63)10: 111111
-
(20)10: 101100
=1101011. =(43)10
Final carry 1,indicates that answer is positive and in its true form
...(63)10-(20)10=(43)10
2)(34)10-(48)10
Step 1:
Obtain 2’s complement (48)10
Decimal Binary 1’s Complement Add 2’s
number number complement
48 110000 001111 1 010000
Step 2:
Add (34)10and 2’s complement (48)10
(34)10: 100010
-
(48)10: 010000
=0110010. = (14)10
Final carry 0,indicates that answer is negative and in its 2’s complement
form
Step 3:
Convert the into true form
110010
-
1
=110001
Now reverse : 001110. = (14)10
...(34)10-(48)10=-(14)10.
Truth Table
Desired NOT NAND
Gate Construction
Q = NOT( A ) = A NAND A
Input A Output Q
0 1
1 0
AND
An AND gate is made by inverting the output of a NAND gate as shown
below.
Truth Table
Desired AND
NAND Construction
Gate
= ( A NAND B ) NAND
Q = A AND B
( A NAND B )
Input A Input B Output Q
0 0 0
0 1 0
1 0 0
1 1 1
OR
If the truth table for a NAND gate is examined or by applying De Morgan's
Laws, it can be seen that if any of the inputs are 0, then the output will be 1.
To be an OR gate, however, the output must be 1 if any input is 1.
Therefore, if the inputs are inverted, any high input will trigger a high
output.
Truth Table
Desired OR
NAND Construction
Gate
= ( A NAND A ) NAND
Q = A OR B
( B NAND B )
Input A Input B Output Q
0 0 0
0 1 1
1 0 1
1 1 1
NOR
A NOR gate is an OR gate with an inverted output. Output is high when
neither input A nor input B is high.
Truth Table
Desired NOR
NAND Construction
Gate
= [ ( A NAND A ) NAND
( B NAND B ) ] NAND
Q = A NOR B
[ ( A NAND A ) NAND
( B NAND B ) ]
Input A Input B Output Q
0 0 1
0 1 0
1 0 0
1 1 0
6. State and prove De-Morgan's Theorems.
De Morgan's First Theorem:-
Statement - The complement of a logical sum equals the logical product of
the complements.
Logic equation - A+B¯=A¯.B¯A+B¯=A¯.B¯
Proof -
2) Fan In:- Fan-in is a term that defines the maximum number of digital inputs
that a single logic gate can accept. Most transistor-transistor logic ( TTL )
gates have one or two inputs, although some have more than two. A typical
logic gate has a fan-in of 1 or 2.
3) Fan Out :- In digital electronics, the fan-out is the number of gate inputs
driven by the output of another single logic gate.
In most designs, logic gates are connected to form more complex circuits.
(576)8 =(?)16
Ans. (576)2= (17E) 16
10. Perform the following subtraction using 1’s and 2’s compliment
(1010 0101)2 - (1110 1110)2
1’s compliment
Here A = 10100101, B = 11101110.
Find A - B = ? using 1's complement
First find 1's complement of B = 11101110
Note : 1's complement of a number is obtained by subtracting all bits from 11111111.
1's complement of 11101110 is
1 1 1 1 1 1 1 1
- 1 1 1 0 1 1 1 0
0 0 0 1 0 0 0 1
1
1 0 1 0 0 1 0 1
+ 0 0 0 1 0 0 0 1
1 0 1 1 0 1 1 0
Here there is no carry, answer is - (1's complement of the sum obtained 10110110)
Note : 1's complement of a number is obtained by subtracting all bits from 11111111.
1's complement of 10110110 is
1 1 1 1 1 1 1 1
- 1 0 1 1 0 1 1 0
0 1 0 0 1 0 0 1
So answer is -01001001
2’s compliment
Here A = 10100101, B = 11101110.
Find A - B = ? using 2's complement
First find 2's complement of B = 11101110
0 0 0 1 0 0 0 1
Step-2: Now add 1 to the 1's complement to obtain the 2's complement :
00010001 + 1 = 00010010
1 0 1 0 0 1 0 1
+ 0 0 0 1 0 0 1 0
1 0 1 1 0 1 1 1
Hints : (Move mouse over the steps for detail calculation highlight)
Here there is no carry, answer is - (2's complement of the sum obtained 10110111)
0 1 0 0 1 0 0 0
Step-2: Now add 1 to the 1's complement to obtain the 2's complement :
01001000 + 1 = 01001001
So answer is -01001001
11. State the names of universal logic gates and design basic gates using
universal gates.
Ans.
A universal gate is a gate which can implement any Boolean function without
need to use any other gate type.
The NAND and NOR gates are universal gates.
In practice, this is advantageous since NAND and NOR gates are economical
and easier to fabricate and are the basic gates used in all IC digital logic
families.
1. Construction of NOT Gate with NAND Gate:
:
3.Construction of OR Gate with NAND Gate:
12. Describe the characteristics of digital IC's (any four).
Ans.
various logic families possess different characteristic, so one family may be best
suited to one situation whereas another family in some other situation. for
example in certain cases, low power consumption’s may be the prime
requirement where as some other cases speed.
• Operating Speed: Speed of a logic gate depends upon the time that
elapses between the application of a signal to an input terminal and the
resulting change in logical state at the output terminals. It takes into
consideration the transition time (rise and fall duration of a pulse) and
propagation delays.
• Fan-In: The fan-in of a logic gate is defined as the number of inputs
(coming from similar circuits) that it can handle properly.
• Fan-Out: In general, a logic circuit is required to drive several logic
inputs. The fan-out (also sometimes called the loading factor) is defined
as the maximum number of standard logic inputs that an output can drive
reliably.
• Power Dissipation: This is the amount of power dissipated in an IC. It is
determined by the current, Icc. that it draws from the Vcc supply and equals
Vcc Icc where Icc is average value of Icc(0) and Icc(1). This power is
specified in mW. Lower power dissipation is desirable feature for any IC.