


























































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!



























































Ms. VEENA RANI ASST.PROFESSOR
B.Tech. II-I Sem. Th Tu C 3 1 3
UNIT I Binary Systems: Digital Systems, Binary Numbers, Number Base Conversions, Octal and Hexadecimal Numbers, Compliments, Signed Binary Numbers, Binary Codes, Binary Storage and Registers, Binary Logic. Boolean Algebra And Logic Gates: Basic Definitions, Axiomatic Definition of Boolean Algebra, Basic Theorems and properties of Boolean Algebra, Boolean Functions, Canonical and Standard Forms, Other Logic Operations, Digital Logic Gates, Integrated Circuits UNIT II Gate – Level Minimization: The Map Method, Four Variable Map, Five-Variable Map, Product of Sums Simplification, Don„t-Care Conditions, NAND and NOR Implementation, Other Two Level Implementations, EX-OR Function, Other Minimization Methods UNIT III Combinational Logic: Combinational Circuits, Analysis Procedure, Design Procedure, Binary Adder-Subtractor, Decimal Adder, Binary Multiplier, Magnitude Comparator, Decoders, Encoders, Multiplexers UNIT IV Synchronous Sequential Logic: Sequential Circuits, Latches, Flip-Flops, Analysis of Clocked Sequential Circuits, State Reduction and Assignment, Design Procedure, Registers, Shift Registers, Ripple Counters, Synchronous Counters, Other counters NIT V
Analog Vs Digital
Digital Systems
Binary numbers
Number base conversions
Compliments
Octal and Hexadecimal Numbers
Signed Binary Numbers
Binary codes
Binary Storage and Registers
Binary Logic
Error detecting & error correcting codes
Hamming codes
ANALOG Vs DIGITAL:
To learn and understand about the digital logic design , the initial knowledge we require is to differentiate between analog and digital. The following are fews that differentiate between analog and digital.
Compliments are used in digital computers to simplify the substraction operation and for logical manipulation. Simplifying operations leads to simpler, less expensive circuits to implement the operations.
There are 2 types of complements for each base r system.
(1)The radix complement (2)Diminished radix compliment
Radix compliment: Also refered to as the r‟s compliment.
Diminished radix compliment: Also refered to as (r-1)‟s compliment.
OCTAL NUMBERS
The Octal Number System is another type of computer and digital base number system. The Octal Numbering System is very similar in principle to the previous hexadecimal numbering system except that in Octal, a binary number is divided up into groups of only 3 bits, with each group or set of bits having a distinct value of between 000 (0) and 111 ( 7 ). Octal numbers therefore have a range of just “8” digits, (0, 1, 2, 3, 4, 5, 6, 7) making them a Base-8 numbering system and therefore, q is equal to “8”.
HEXADECIMAL NUMBERING SYSTEM: The one main disadvantage of binary numbers is that the binary string equivalent of a large decimal base-10 number can be quite long. When working with large digital systems, such as computers, it is common to find binary numbers consisting of 8, 16 and even 32 digits which makes it difficult to both read or write without producing errors especially when working with lots of 16 or 32-bit binary numbers.One common
way of overcoming this problem is to arrange the binary numbers into groups or sets of four bits (4-bits). These groups of 4-bits uses another type of numbering system also commonly used in computer and digital systems called Hexadecimal Numbers
The “Hexadecimal” or simply “Hex” numbering system uses the Base of 16 system and are a popular choice for representing long binary values because their format is quite compact and much easier to understand compared to the long binary strings of 1‟s and 0‟s.
Being a Base-16 system, the hexadecimal numbering system therefore uses 16 (sixteen) different digits with a combination of numbers from 0 through to 15. In other words, there are 16 possible digit symbols.
Decimal Number 4-bit Binary Number Hexadecimal Number
Continuing upwards in groups of four
In mathematics, positive numbers (including zero) are represented as unsigned numbers. That is we do not put the +ve sign in front of them to show that they are positive numbers. However, when dealing with negative numbers we do use a -ve sign in front of the number to show that the number is negative in value and different from a positive unsigned value, and the same is true with signed binary numbers. However, in digital circuits there is no provision made to put a plus or even a minus sign to a number, since digital systems operate with binary numbers that are represented in terms of “0‟s” and “1‟s”.
So to represent a positive (N) and a negative (-N) binary number we can use the binary numbers with sign. For signed binary numbers the most significant bit (MSB) is used as the sign. If the sign bit is “0”, this means the number is positive. If the sign bit is “1”, then the number is
negative. The remaining bits are used to represent the magnitude of the binary number in the usual unsigned binary number format.
Positive Signed Binary Numbers.
Negative Signed Binary Numbers
In the coding, when numbers, letters or words are represented by a specific group of symbols, it is said that the number, letter or word is being encoded. The group of symbols is called as a code. The digital data is represented, stored and transmitted as group of binary bits. This group is also called as binary code. The binary code is represented by the number as well as alphanumeric letter.
Advantages of Binary Code
Following is the list of advantages that binary code offers.
Binary codes are suitable for the computer applications.
Binary codes are suitable for the digital communications.
Excess-3 code
The Excess-3 code is also called as XS-3 code. It is non-weighted code used to express decimal numbers. The Excess-3 code words are derived from the 8421 BCD code words adding (0011) or (3)10 to each code word in 8421. The excess-3 codes are obtained as follows −
Gray Code
It is the non-weighted code and it is not arithmetic codes. That means there are no specific weights assigned to the bit position. It has a very special feature that, only one bit will change each time the decimal number is incremented as shown in fig. As only one bit changes at a time, the gray code is called as a unit distance code. The gray code is a cyclic code. Gray code cannot be used for arithmetic operation.
Application of Gray code
Gray code is popularly used in the shaft position encoders.
A shaft position encoder produces a code word which represents the angular position of the shaft.
Binary Coded Decimal (BCD) code
In this code each decimal digit is represented by a 4-bit binary number. BCD is a way to express each of the decimal digits with a binary code. In the BCD, with four bits we can represent sixteen numbers (0000 to 1111). But in BCD code only first ten of these are used (0000 to 1001). The remaining six code combinations i.e. 1010 to 1111 are invalid in BCD.
Advantages of BCD Codes
It is very similar to decimal system. We need to remember binary equivalent of decimal numbers 0 to 9 only.
Binary to BCD Conversion BCD to Binary Conversion BCD to Excess- Excess-3 to BCD
Binary to BCD Conversion
Steps
Step 1 -- Convert the binary number to decimal.
Step 2 -- Convert decimal number to BCD.
Example − convert (11101) 2 to BCD.
Step 1 − Convert to Decimal
Binary Number − 11101 2
Calculating Decimal Equivalent −
Step Binary Number Decimal Number
Step 1 111012 ((1 × 2^4 ) + (1 × 2^3 ) + (1 × 2^2 ) + (0 × 2^1 ) + (1 × 2^0 )) 10
Step 2 111012 (16 + 8 + 4 + 0 + 1) 10
Step 3 (^111012 )
Binary Number − 11101 2 = Decimal Number − 29 10
Step 2 − Convert to BCD
Decimal Number − 29 10
Calculating BCD Equivalent. Convert each digit into groups of four binary digits equivalent.
Step Decimal Number Conversion
Step 1 (^2910 00102 )
Step 2 (^2910 00101001) BCD
Result
(11101) 2 = (00101001)BCD
BCD to Binary Conversion
Steps
Step 1 -- Convert the BCD number to decimal.
Step 2 -- Convert decimal to binary.
Example − convert (00101001)BCD to Binary.
Step 1 - Convert to BCD
BCD Number − (00101001)BCD
Calculating Decimal Equivalent. Convert each four digit into a group and get decimal equivalent for each group.
Step BCD Number Conversion
Step 1 (00101001)BCD 00102 10012
Step 2 (00101001)BCD 210 910
BCD to Excess-
Steps
Step 1 -- Convert BCD to decimal.
Step 2 -- Add (3) 10 to this decimal number.
Step 3 -- Convert into binary to get excess-3 code.
Example − convert (1001)BCD to Excess-3.
Step 1 − Convert to decimal
(1001)BCD = 9 10
Step 2 − Add 3 to decimal
(9) 10 + (3) 10 = (12) 10
Step 3 − Convert to Excess-
(12) 10 = (1100) 2
Result
(1001)BCD = (1100)XS-
Excess-3 to BCD Conversion
Steps
Step 1 -- Subtract (0011) 2 from each 4 bit of excess-3 digit to obtain the corresponding BCD code.
Example − convert (10011010)XS-3 to BCD.
Given XS-3 number = 1 0 0 1 1 0 1 0 Subtract (0011) 2 = 0 0 1 1 0 0 1 1
BCD = 0 1 1 0 0 1 1 1
Result
(10011010)XS-3 = (01100111)BCD
Basic Definitions Axiomatic Definition of Boolean Algebra Basic Theorems and properties of Boolean Algebra Boolean Functions Canonical and Standard Forms, Other Logic Operations Digital Logic Gates Integrated Circuits Boolean Algebra: Boolean algebra, like any other deductive mathematical system, may be defined with aset of elements, a set of operators, and a number of unproved axioms or postulates. A set of elements is anycollection of objects having a common property. If S is a set and x and y are certain objects, then x Î S denotes that x is a member of the set S , and y Ï S denotes that y is not an element of S. A set with adenumerable number of elements is specified by braces: A = {1,2,3,4}, i.e. the elements of set A are thenumbers 1, 2, 3, and 4. A binary operator defined on a set S of elements is a rule that assigns to each pair ofelements from S a unique element from S._ Example: In a * b=c , we say that * is a binary operator if it specifies a rule for finding c from the pair ( a , b )and also if a , b , c Î S.
CLOSURE: The Boolean system is closed with respect to a binary operator if for every pair of Boolean values,it produces a Boolean result. For example, logical AND is closed in the Boolean system because it accepts only Boolean operands and produces only Boolean results.
_ A set S is closed with respect to a binary operator if, for every pair of elements of S , the binary operator specifies a rule for obtaining a unique element of S.
For example, the set of natural numbers N = {1, 2, 3, 4, … 9} is closed with respect to the binary operator plus (+) by the rule of arithmetic addition, since for any a , b Î N we obtain a unique c Î N by the operation a + b = c.