Number Architecure
Number Architecure
Learning outcomes:
Briefly describes the need for encoding systems in computer
Explains and compares ASCII and Unicode encoding systems
Contents:
Encoding systems used in computers
ASCII
UNICODE
Quality inputs:
Reading materials
Number system: A system that naming or representing numbers is known as
Number System.
Some number systems related with computer
Decimal
Binary
Hexadecimal
29
Symbols of number system
Number Base value Number of Symbols
system symbols
Decimal 10 10 0,1,2,3,4,5,6,7,8,9
Binary 2 2 0,1
Hexadecimal 16 16 0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F
The total number of symbols in a number system is called its base value
Place value:
Example 1: In 2432, the 3 is in the "ten’s" place, where the place value is ten.
Therefore, 3 represents the value 30.
Thousands Place
2432 One’s Place
Eg. Decimal numbers are 'base-10 numbers therefore the place value of each digit is
a power of 10. Consider decimal number 2432:
2×1 = 2
3×10 = 30
4×100 = 400
2×1000 = 2000
Number 1 1 1 0 1
24 23 22 21 20
Place value
16 8 4 2 1
30
In hexadecimal Number System:
Each digit in the hexadecimal system has a place value. Hexadecimal is a base-
16 number system, therefore the place value of each digit is the power of 16.
Number 3 B 2 C
163 162 161 160
Place value
4096 256 16 1
Number Conversions
Decimal to Binary
31
Binary to Decimal
Eg. 110112
1 1 0 1 1
1X1 =1
1X2 =2
0X4 =0
1X8 =8
1 X 16 = 16
Answer : 11011 = 27
Boolean Operators
AND
OR
NOT
AND Operator
Used to perform a logical conjunction on two Boolean expressions.
Truth table of AND operation (Two Inputs)
Inputs Output(Result)
A B (A AND B) / (A.B)
0 0 0
0 1 0
1 0 0
1 1 1
OR Operator
Used to perform a logical disjunction on two expressions.
Truth table of OR operation
Inputs Output(Result)
A B (A+B)
0 0 0
0 1 1
1 0 1
1 1 1
32
NOT Operator
Used to perform logical negation on an expression
NOT operator that gives 0 as the output when input is 1 and vice versa.
Assume Variables A and B are inputs and final output is stored in variable F
Inputs Intermediate combinations Final Output (F)
A B A’ (A’.B) (A+B) (A+B)’ (A’.B)+(A+B)’ (A+B).(A’.B)+(A+B)’
0 0 1 0 0 1 1 0
0 1 1 1 1 0 1 1
1 0 0 0 1 0 0 0
1 1 0 0 1 0 0 0
33