School of Engineering and Physics EE222-Digital Logic Design Lab 1 - Numbers Systems
School of Engineering and Physics EE222-Digital Logic Design Lab 1 - Numbers Systems
School of Engineering and Physics EE222-Digital Logic Design Lab 1 - Numbers Systems
Aim
Equipment
A Working PC
Introduction
Number Systems in Digital Logic Design
To represent information in digital electronics, the number system is used. The number system
consist of different bases and the most commonly used ones are the decimal, binary, octal, and
hexadecimal. The base or radix of the number system is the total number of the digit used in
the number system. Suppose if the number system representing the digit from 0 – 9 then the
base of the system is the 10.[1]
Figure 1: The above picture shows the different number systems that are used
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F.
The size of the hexadecimal is a lot shorter than the binary number which makes them
simple to compose and recall. Let 0000 to 000F speaking to hexadecimal numbers from
zero to fifteen, at that point 0010, 0011, 0012 … and so on. Will speak to sixteen,
seventeen, and eighteen… and so on till 001F which leads to thirty and so on.[1]
Methodology
1) Flowcharts were drawn to demonstrate the procedures of converting between any
numbers with the following bases.
-decimal
-binary
-octal
-hexadecimal
All numbers were considered unsigned. The flowchart was checked by applying sample
numbers.
2) Flowchart was drawn to demonstrate the procedures of converting between any of the
numbers with the following bases
-Decimal to 2’s Complement
-2’s Complement to Decimal
- Sign and Magnitude to Decimal
- Decimal to Sign and Magnitude
- Decimal to 1’s Complement
-1’s Complement to Decimal
The number was assumed to be signed numbers and the flowchart was checked by
applying some sample number.
Part 1:
Decimal to Binary
Decimal to Octal decimal
Decimal to Hexadecimal
Binary to Decimal
Binary to Octadecimal
Binary to Hexadecimal
Octadecimal to Decimal
Octadecimal to Binary
Octadecimal to Hexadecimal
Hexadecimal to Decimal
Hexadecimal to Binary
Hexadecimal to Octadecimal
Part 2: