Logic Circuits and Design
Logic Circuits and Design
CIRCUITS
AND DESIGN
WHAT IS LOGIC CIRCUITS AND
DESIGN ?
The base-2 number system is also known as the Binary number system since it has only two binary digits: 0 and 1.
The phrase "base-2" refers to the fact that it has a radix of 2. The figures in this system are represented by binary
integers, which are a combination of 0s and 1s. A binary number would be 110101, for example.
∴ (14)₁₀ = 1110₂
OCTAL NUMBER SYSTEM
(BASE 8 NUMBER SYSTEM)
The octal number system has an 8-digit basis and uses digits 0 to 7 to represent
numbers. Octal numerals are commonly used in computer applications. The
principles of converting an octal number to a decimal number are the same as those
of decimal conversion. An example of the method is shown below.
Solution:
215₈ = 2 × 82 + 1 × 81 + 5 × 80
= 2 × 64 + 1 × 8 + 5 × 1
= 128 + 8 + 5
= 141₁₀
HEXADECIMAL NUMBER SYSTEM
(BASE 16 NUMBER SYSTEM)
Numbers in the hexadecimal format are expressed or represented with a base of 16.
Initially, the hexadecimal system depicts numbers similarly to the decimal system, with
digits ranging from 0 to 9. As a result, the method uses the alphabet letters A to F to
denote numerals greater than 9. This enables for an easy and convenient representation
of values.
ARITHMETIC
OPERATION
Letters represents numbers starting from 10. A = 10, Example 2: Add the following hexadecimal
B = 11, C = 12, D = 13, E = 14, F = 15. Each position in a numbers.
hexadecimal number represents a 0 power of the D6E + 8C6
base (16).
Ans: We know that
Example 1: Add the following hexadecimal number. E + 6 = 14
8AB + B78 6 + C = 12
Ans: 8AB + B78 D + 8 = 15
We know:
8 + B = 13
Thus,
A + 7 = 11 D6E + 8C6
8 + B = 13 = 1634
8AB + B78 = 1423 Therefore, its sum will be 1634.
Thus, the answer is 1423.
SUBTRACTION OF
A NUMBER BASE
SYSTEM
Example: Subtract (1000100-1010100) using
Binary Subtraction 2's complement.
M= 1000100
Subtraction Using Complements can be done by two
N= 11010100
ways:
Subtraction Using r's Complement: 2's complement of N=10110
The subtraction of two positive numbers (M-N) both Now, adding 2's complement of N to M
of base r can be done as follows; 10110+1000100= 110000
1. Add the minuend M to the r's complement of Here, end carry occurs as 1, so 2's
subtractend N.
complement = -10000
2. Inspect the result obtained in step 1 for end
carry.
If end carry occurs, discard it.
If end carry doesn't occur, take r's complement if
the number obtained in step 1 and place a
negative sign in front.
Subtraction Using r-1's Complement:
Example: Subtract (1000100-1010100) using
1's complement.
The subtraction of two positive numbers (M-N) both
M= 1000100
of base r-1 can be done as follows;
1. Add the minuend M to the r-1's complement of
N= 11010100
subtractend N. 1's complement of N=101011
2. Inspect the result obtained in step 1 for end Now, adding 1's complement of N to M
carry. 101011+1000100= 1101111
If end carry occurs, add 1 to the least significant Here, end carry doesn't occur as 1, so 1's
bit, i.e. end-around carry. complement of 1101111= -1000 which is the
If end carry doesn't occur, take r-1's complement required answer.
of the number obtained in step 1 and place a
negative sign in front.
MULTIPLICATION Octal Multiplication
OF NUMBER BASE
SYSTEM To multiply two octal numbers we use the rule given above.
The process for multiplication of octal numbers is illustrated
Binary Multiplication with the help of the following examples:
0×0=0
We have 6 × 3 = 18 in decimal, which when divided by 8 gives a
0×1=0
remainder 2 and carry 2. Again 6 × 2 = 12 in decimal, and 12 + 2
1×0=0
= 14. This when divided by 8 gives a remainder 6 and a carry 1.
1×1=1
Hence 6 × 23 = 162
6 × 3 = 18
6 × 2 = 12 + 2 (carry) = 14
The binary division is much easier than the decimal division when
you remember the following division rules. The main rules of the
binary division include:
1÷1 = 1
1÷0 = Meaningless
0÷1 = 0
0÷0 = Meaningless
Remove the zero’s in the Most Significant Bit in both the dividend
and divisor, that doesn’t change the value of the number.
So the dividend becomes 1111100, and the divisor becomes 10.
Now, use the long division method.
NOR gate
A NOR gate (NOT-OR) is the same as OR followed by NOT. We merge the OR and NOT symbols together to get
NOR,
KARNAUGH MAP (K-MAP)
Boolean function simplification can be achieved visually with a Karnaugh map (K-map), negating the need for
intricate theorems or equation manipulation. It can be seen of as a more focused form of a truth table, making it
easier to map out parameter values and derive a more straightforward Boolean expression.
The functions with two to four variables work well with K-maps. Functions with five or six variables can also use
them, but the procedure is more difficult. For functions with seven or more variables, using K-maps is extremely
challenging, if not completely unfeasible.
TWO-VARIABLE KARNAUGH MAP