Lecture 1 - 27th Jan, 2025
Lecture 1 - 27th Jan, 2025
Digital Fundamentals
(Eighth Edition)
Thomas L. Floyd
Text
Reference
About Course Groups
• All lectures/quizes/assignments/
will be available on LMS
Grading Policy
• Not acceptable
Missing Assignment /Quiz
• Class lectures
Quizzes 10%
Assignments 5%
Midterm Exam. 30%
Project 5%
Final Exam. 50%
Course Content
- stored program
- control unit
- arithmetic computations and logical operations
Digital Systems
• Digital Systems represent systems that understand,
represent and manipulate discrete elements.
– A discrete element is any set that has a finite
number of elements, for example 10 decimal digits,
26 letters of the alphabet, etc.
• Discrete elements are represented by signals, such as
electrical signals (voltages and currents)
• The signals in most electronic digital systems use two
discrete values, termed binary.
• Digital Systems takes a set of discrete information
inputs and discrete internal information (system state)
and generates a set of discrete information outputs.
Digital Systems
Discrete
Discrete
Information
Inputs
Processing
System Discret
Output
System State
Signals
• A collection of information variables mapped to some
physical quantity.
• For digital systems, the quantities take on discrete
values. Two level, or binary values are the most
prevalent values in digital systems.
• The binary values are represented abstractly by digits
0 and 1.
• other physical signals represented by 1 and 0?
– CPU Voltage
– Disk Magnetic Field Direction
– CD Surface Pits/Light
– Dynamic RAM Electrical Charge
Why Digital Components?
• Why do we choose to use digital components?
– The main reason for using digital components is
that they can easily be programmed, allowing a
single hardware unit to be used for many different
purposes.
– Advances in circuit technology decrease the price
of technology dramatically.
– Digital integrated circuits can perform at speeds of
hundreds of millions of operations per second.
– Error-checking and correction can be used to
ensure the reliability of the machine.
Binary Digits
• A binary digit, called a bit, is Decimal Binary Code
represented by one of two values: 0 0 0000
or 1. 1 0001
– Discrete elements can be 2 0010
represented by groups of bits 3 0011
called binary codes. For example 4 0100
the decimal digits 0 to 9 are 5 0101
represented as follows:
6 0110
7 0111
8 1000
9 1001
Different Bases
• To represent numbers of different bases, we surround
a number in parenthesis and then place a subscript
with the base of the number.
– A decimal number (9233)10
– A binary number (11011)2
– A base 5 number (3024)5
• Decimal number digits are 0 through 9
• Binary number digits are 0 through 1
• Base (radix) r number digits are 0 through r - 1
Commonly Used Bases
(37)10 = 1001012
Decimal-r Conversion (Converting
Fractions)
• To convert the fraction portion repeatedly multiply the
fraction by the radix and save the integer digits that
result. The process continued until the fraction
becomes 0 or the number of digits have sufficient
accuracy. The new radix fraction digits are the integer
digits in computed order.
• For example convert fraction (0.6875)10 to base 2
0.6875 * 2 = 1.3750 integer = 1
0.3750 * 2 = 0.7500 integer = 0
0.7500 * 2 = 1.5000 integer = 1
0.5000 * 2 = 1.0000 integer = 1
Answer = (0.1011)2
Converting Fractions Cont…
• When converting fractions, we must use multiplication
rather than division. The new radix fraction digits are
the integer digits in computed order.
Another example:
• Convert 0.8125 decimal to
binary.
– To convert the decimal
0.8125 to binary, we
multiply by the radix 2.
– (0.1101)2
Decimal to Octal Conversion
• In converting decimal to octal we must divide integer
part by 8 till quotient becomes lesser than divisor.
Converting Fractions (Decimal to Octal)
• Decimal to Octal fraction conversion takes the same
approach but it multiplies by the base 8.
Converting Decimal to Hexadecimal
• The conversion of a decimal integer into hexadecimal
is done by dividing the number and all successive
quotients by 16 and accumulating the remainders in
reverse order of computation.
(422)10 = (1A6)16
Binary, Octal and Hexadecimal
• Conversions between binary, octal and hexadecimal
have an easier conversion method.
– Each octal digit represents 3 binary digits.
– Each hexadecimal digit represents 4 binary digits.
Binary to Octal and back
• Binary to Octal:
– Group the binary digits into three bit groups starting at the
radix point and going both ways, padding with zeros as
needed (at the ends).
– Convert each group of three bits to an equivalent octal digit.
• Octal to Binary:
– It is done by reversing the preceding procedure
– Restate the octal as three binary digits
– Start at the radix point and go both ways, padding with zeros
as needed.
Examples
• Convert (10110001101011.11110000011)2 to Octal
= 010 110 001 101 011 . 111 100 000 110
= 2 6 1 5 3 . 7 4 0 6
= (26153.7406)8
• Convert (673.124)8 to binary
= 110 111 011 . 001 010 100
= (110111011.001010100)2
• Convert (11010100011011) 2
to Octal
Binary to Hexadecimal and back
• Binary to Hexadecimal:
– Group the binary digits into four bit groups starting at the
radix point and going both ways, padding with zeros as
needed (at the ends)
– Convert each group of four bits to an equivalent hexadecimal
digit
• Hexadecimal to Binary:
– It is done by reversing the preceding procedure
– Restate the hexadecimal as four binary digits
– Start at the radix point and go both ways, padding with zeros
as needed
Examples
• Convert (10110001101011.11110010)2 to hexadecimal
= 0010 1100 0110 1011 . 1111 0010
= 2 C 6 B . F 2
= (2C6B.F2)16
• Convert (306.D)16 to binary
= 0011 0000 0110. 1101
= (001100000110.1101)2
• Convert (11010100011011) 2
to hexadecimal