Unit 1 - Updated
Unit 1 - Updated
Logic Design
Dr. Saffrine Kingsly / Prof. Yogita Patil
Introduction
• Number System
• Boolean Algebra for logic circuits
• Logic Design Minimization Techniques
• Combinational Logic
• Sequential Logic Circuit Design
Evaluation plan
Tentative
Sr. No. Component CO Max marks Weight
date
Sr. No. Component CO Max marks Weight Tentative
1 Assignments 1 7 date 7 1/8/2022
1 Assignments 1 7 7
Mini project
2
on
Mini project on 2&3
2 Tinker cad
2&3 9
9 9
9 29/8/2022
Tinker cad software. software.
3 MCQs 4 7 7
4 Class Test 5 7 7
3 MCQs
4 30 7 30 7 26/9/2022
4 Class Test 5 7 7 31/10/2022
30 30
Number System
• Computers use binary because it’s the simplest method for counting available and is
how a computer codes everything from memory to HD video streaming
• Binary allows for a computer to process millions of inputs very quickly.
• With binary, there are only two options, on or off.
• Computers communicate by stringing a series of ons and offs into complex groups which
tell the computer what it is supposed to do.
• To achieve this, computer systems use a series of switches and electrical signals to
understand what it is supposed to do.
• Think of a standard light switch, there are two options for the switch: on and off.
• Computers rely on this same concept and use transistors as electrical switches.
• The transistor is either switched on or off through an electrical signal.
Binary Numbers 10
• 10010 is binary
• 1x24 + 0x23 + 0x22 + 1x21 + 0x20 = 18
• Binary is the base 2 number system
• Most common in digital electronics
• Weight: Most Significant bit (MSB)
Least Significant bit (LSB)
10010
MSB LSB
Integers and Fractional Parts 12
= (11101 . 1011)2
= (1 * 24) + (1 * 23) + (1 * 22) + (0 * 21) + (1 * 20) +
(1 * 2-1) + (0 * 2-2 ) + (1 * 2-3) + (1 * 2-4)
= 16 + 8 + 4 + 0 + 1 + 0.5 + 0 + 0.125 +0.0625
= (28.6875)10
Binary − Octal Conversion
8 = 23
Each group of 3 bits represents an octal digit Octal Binary
0 000
Example:
Assume Zeros
1 001
2 010
( 1 0 1 1 0 . 0 1 )2 3 011
4 100
5 101
( 2 6 . 2 )8 6 110
7 111
Works both ways (Binary to Octal & Octal to Binary)
Binary − Hexadecimal Conversion
16 = 24
Each group of 4 bits represents a hexadecimal
digit
Example:
Assume Zeros
( 1 0 1 1 0 . 0 1 )2
(1 6 . 4 )16
• Works both ways (Binary to Hex & Hex to Binary)
Decimal→ binary/octal/hex conversion
(Method 1)
• The decimal numbers is simply expressed as a sum of power of 2, and then
1s and 0s are written in the appropriate bit positions.
50 = 32 + 18 322 = ?
= 32 + 16 + 2
= 1x25 + 1x24 + 1x21
5010 = 1100102
Decimal to binary - Repeated division by base
for integers
Decimal to binary - Repeated division by base
for integers
Decimal to binary - Repeated multiplication
by base for fraction
Decimal to binary - Repeated multiplication
by base for fraction
Q. (127.34)10 =( )2
Examples:
Example: (175)10
Quotient Remainder Coefficient
175 / 8 = 21 7 a0 = 7
21 / 8 = 2 5 a1 = 5
2 /8= 0 2 a2 = 2
Answer: (175)10 = (a2 a1 a0)8 = (257)8
Example:(0.3125)10
0.3125 * 8 = 2 . 5 a-1 = 2
0.5 *8= 4 . 0 a-2 = 4
= (4057.06)8
= (4 * 83) + (0 * 82) + (5 * 81) +(7 * 80) + (0 * 8-1) +
(6 * 8-2)
= 2048 + 0 + 40 + 7 + 0 + 0.0937
= (2095.0937)10
Decimal to Hexadecimal Conversion
Example: (675)10
Quotient Remainder Coefficient
675 / 16 = 42 3 a0 = 3
42 / 16 = 2 10=A a1 = A
2 / 16 = 0 2 a2 = 2
Answer: (675)10 = (a2 a1 a0)16 = (2A3)16
Example:(0.625)10
0.625 * 16 = 10 (= A) 0 a1 = A
• Historically: 3 approaches
• Sign-and-magnitude
• Ones-complement
• Twos-complement
–7 1000 0111 +6
–8 +7
Twos-complement
1’s Comp.:
Twos-complement (con’t)
• Arithmetic is easy
• Subtraction = negation and addition
• Easy to implement in hardware
Signed Binary Numbers
• Sign extension
• Write +6 and –6 as twos complement
• 0110 and 1010
• Sign extend to 8-bit bytes (add the additional sign bits on MSB)
• 00000110 and 11111010
• In octal number system we have the 7’s and 8’s complement the
7’s is obtained by subtracting each digit from 7
• 8’s complement = 7’s complement +1.
• Example : Find the 7’s and 8’s complement of the following
number :562.
• Solution :
7’s comp.= 777- 562 = 215;
8’s comp.=215+1=216
Hexadecimal Number Complement