Digital Logic Design: Instructor: Yahya Ali Khan Email: Yahya - Ali@se - Uol.edu - PK
Digital Logic Design: Instructor: Yahya Ali Khan Email: Yahya - Ali@se - Uol.edu - PK
Digital Logic Design: Instructor: Yahya Ali Khan Email: Yahya - Ali@se - Uol.edu - PK
Source:
J. von Neumann, First Draft of a Report on the EDVAC. Technical Report W-6700RD-492, Moore School of
Electrical Engineering, University of Pennsylvania, June 1945.
Representation of 0 Representation of 1
Voltage (e.g., 0 V) Voltage (e.g., 3.3 V)
Current (e.g., 0 mA) Current (e.g., 10 mA)
Switch Position (e.g., closed) Switch Position (e.g., open)
Capacitor (e.g., discharged) Capacitor (e.g., charged)
Powers of Two
n 2n n 2n n 2n
-8 0.00390625 0 1 8 256
-7 0.0078125 1 2 9 512 NOTE:
-6 0.015625 2 4 10 1024 This table is similar to
-5 0.03125 3 8 11 2048 Table 1.1 in the
textbook. However, it
-4 0.0675 4 16 12 4096
includes the negative
-3 0.125 5 32 13 8192
powers of two as well.
-2 0.25 6 64 14 16384
-1 0.5 7 128 15 32768
4/29/21 11
IMPORTANT POWERS OF 2
• There are certain powers of 2 that are “easier” to remember due
to their importance:
• For example:
210 = 1 024 = Kilo = (1 024)1
220 = 1 048 576 = Mega = (1 024)2
230 = 1 073 741 824 = Giga = (1 024)3
240 = 1 099 511 627 776 = Tera = (1 024)4
Subtraction Example
Multiplication Example
Multiplicand: (1010)2 (10)10
Multiplier: (0110)2 (6)10
________ ______
(0000)2 (0)10
(1 010)2 (20)10
(10 10)2 (40)10
(000 0)2 (0)10
______________ ______
Product: (0011 1100)2 (60)10
2 5 3
A B
NOTE:
2’s complement arithmetic has
been used in these examples.
digit 2 0010
4 0100
used by BCD
5 0101
• BCD to decimal conversion is trivial
6 0110
7 0111
8 1000
9 1001
• What if you need to send data to MARS and you can’t afford to
waste 14 minutes (e.g., the round-trip delay) to resend the data?
• Advanced error detection and correction techniques
• Techniques exist for detecting and/or correcting multiple bit
errors
• Advanced techniques are beyond the scope of this course
• ECE 324 (Microprocessor Systems and Interfacing) dedicates 3 lectures to error
detection and correction