Conversion between number systems
[Pages:79]? Conversion between number systems:
? Radix-r to decimal. ? Decimal to binary. ? Decimal to Radix-r ? Binary to Octal ? Binary to Hex
? Binary arithmetic operations. ? Negative number representations. ? Switching Algebra Axioms & Theorems. ? Proof of identities:
? Using logic expression algebraic manipulation. ? Using Truth Table (perfect induction).
EECC341 - Shaaban
#1 Midterm Review Winter 2001 1-22-2002
? Standard Representations of Logic Functions:
? Truth Table. ? Canonical Sum Representation:
? Full sum of minterms expression, or using notation. ? Canonical Product Representation:
? Full product of maxterms expression, or using notation.
? Combinational Circuit Analysis/ Synthesis.
? Combinational Circuit Minimization using K-maps:
? Sum of Products (SOP) Minimization using K-maps:
? Prime implicants, distinguished 1-cells, essential prime implicants ? Minimization with Don't care Input Combinations.
? Product of Sums (POS) Minimization using K-maps:
? Prime implicates, distinguished 0-cells, essential prime implicates
? Detecting/Eliminating Static Hazards Using K-maps.
EECC341 - Shaaban
#2 Midterm Review Winter 2001 1-22-2002
Positional Number Systems
? A number system consists of an order set of symbols (digits) with relations defined for +,-,*, /
? The radix (or base) of the number system is the total number of digits allowed in the the number system.
? Example, for the decimal number system:
? Radix, r = 10, Digits allowed = 0,1, 2, 3, 4, 5, 6, 7, 8, 9
? In positional number systems, a number is represented by a string of digits, where each digit position has an associated weight.
? The value of a number is the weighted sum of the digits.
? The general representation of an unsigned number D with whole and fraction portions number in a number system with radix r:
Dr = d p-1 d p-2 ..... d1 d0.d-1 d-2 .... D-n
? The number above has p digits to the left of the radix point and n fraction digits to the right.
? A digit in position i has as associated weight ri
? The value of the number is the sum of the digits multiplied by the associated
weight ri :
D d r = p-1 ? i i=-n i
EECC341 - Shaaban
#3 Midterm Review Winter 2001 1-22-2002
Positional Number Systems
Number: Dr = d p-1 d p-2 ..... d1 d0.d-1 d-2 .... D-n
D d r Value:
=
? p-1
i
i=-n i
? For example in the decimal number system:
5185.6810 = 5x103 + 1x102 + 8x101 + 5x100 + 6 x 10-1 + 8 x 10-2 = 5x1000 + 1x100 + 8x10 + 5 x 1 + 6x.1 + 8x.01
? For the binary number system with radix = 2, digits 0, 1
D2 = dp-1 ? 2p-1 ..... d1 ? 21 + d0 . 20 + d-1 ? 2-1 + d-2 ? 2-2 .....
? For Example:
100112 = 1 ? 16 + 0 ? 8 + 0 ? 4 + 1 ? 2 + 1 ? 1 = 1910
|
|
MSB LSB (least significant bit)
(most significant bit)
101.0012 = 1x4 + 0x2 + 1x1 + 0x.5 + 0x.25 + 1x.125 = 5.12510
Binary Point
EECC341 - Shaaban
#4 Midterm Review Winter 2001 1-22-2002
Number Systems Used in Computers
Name of Radix Radix
Set of Digits
Example
Decimal Binary
r=10 r=2
{0,1,2,3,4,5,6,7,8,9} {0,1}
25510 111111112
Octal
r= 8 {0,1,2,3,4,5,6,7}
3778
Hexadecimal r=16 {0,1,2,3,4,5,6,7,8,9,A, B, C, D, E, F} FF16
Decimal 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Hex 0 1 2 3 4 5 6 7 8 9 A B C D E F Binary 0000 0001 0010 0011 0100 0101 0110 0111 1000 1001 1010 1011 1100 1101 1110 1111
EECC341 - Shaaban
#5 Midterm Review Winter 2001 1-22-2002
Radix-r to Decimal Conversion
? The decimal value of a number in any radix r is found by converting
each digit to its radix 10 equivalent and expanding the value using
radix arithmetic: ? Examples:
d r D = p-1 ? i i=-n i
1101.1012 = 1?23 + 1?22 + 1?20 + 1?2-1 + 1?2-3 = 8 + 4 + 1 + 0.5 + 0.125 = 13.62510
572.68 = 5?82 + 7?81 + 2?80 + 6?8-1 = 320 + 56 + 16 + 0.75 = 392.7510
2A.816 = 2?161 + 10?160 + 8?16-1 = 32 + 10 + 0.5 = 42.510
132.34 = 1?42 + 3?41 + 2?40 + 3?4-1 = 16 + 12 + 2 + 0.75 = 30.7510
341.245 = 3?52 + 4?51 + 1?50 + 2?5-1 + 4?5-2 = 75 + 20 + 1 + 0.4 + 0.16 = 96.5610
EECC341 - Shaaban
#6 Midterm Review Winter 2001 1-22-2002
Decimal-to-Binary Conversion
? Separate the decimal number into whole and fraction portions. ? To convert the whole number portion to binary, use successive
division by 2 until the quotient is 0. The remainders form the answer, with the first remainder as the least significant bit (LSB) and the last as the most significant bit (MSB). ? Example: Convert 17910 to binary:
179 / 2 = 89 remainder 1 (LSB) / 2 = 44 remainder 1 / 2 = 22 remainder 0 / 2 = 11 remainder 0 / 2 = 5 remainder 1 / 2 = 2 remainder 1 / 2 = 1 remainder 0 / 2 = 0 remainder 1 (MSB)
17910 = 101100112
EECC341 - Shaaban
#7 Midterm Review Winter 2001 1-22-2002
Decimal-to-Binary Conversion
? To convert decimal fractions to binary, repeated multiplication by 2 is used, until the fractional product is 0 (or until the desired number of binary places). The whole digits of the multiplication results produce the answer, with the first as the MSB, and the last as the LSB.
? Example: Convert 0.312510 to binary
Result Digit
.3125 ? 2 = 0.625
0 (MSB)
.625 ? 2 = 1.25
1
.25 ? 2 = 0.50
0
.5 ? 2 = 1.0
1 (LSB)
0.312510 = .01012
EECC341 - Shaaban
#8 Midterm Review Winter 2001 1-22-2002
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related download
- lecture 8 binary multiplication division
- lecture 3 floating point representations
- numbers and arithmetic
- binary arithmetic negative numbers and subtraction
- 07 compatibility mode
- cs1101 lecture 12 radix numbers conversions negatives
- conversion between number systems
- english for maths
- introduction to binary computers
- technology learning area plan general curriculum
Related searches
- excel if number between two numbers then
- calculate number of months between 2 dates
- excel number of days between dates
- conversion between cm and inch
- number in between 2 numbers
- calculate the number of days between date
- calculate number days between dates
- difference between information systems and it
- string to number conversion in python
- conversion between lbm and lbf
- course conversion between colleges
- between number range excel