Lecture - Why Binary and How We Interpret It
Lecture - Why Binary and How We Interpret It
ELEC 220
Why Binary
And how we interpret it
= 20,000,000 transistors
= 20,000,000 binary switches
[1] As Moore’s law turns 50, what does the future hold for the
transistor?, Mark Walton, arstechnica.com
A polynomial
x = xn-1 2n-1 + xn-2 2n-2 + … + x1 21 + x0 20
• Range: 0 to 2n – 1
• Example
• 0000 0000 0000 0000 0000 0000 0000 10112
= 0 + … + 1×23 + 0×22 +1×21 +1×20
= 0 + … + 8 + 0 + 2 + 1 = 1110
• Using 32 bits (n = 32)
• Range: 0 to +4,294,967,295
• With this definition, our sequence
x = 0101 0010 0100 1001 0100 0011 0100 01012
= 1,382,172,99510
ELEC 220, Fundamentals of Computer Engineering, Spring 2017 9
Aside: Some Important Terminology
• Given an n-bit series of bits
n -1 n-2
x = - x n-1 2 + x n-2 2 + ! + x1 2 + x 0 2 1 0
x + x = 111 … 111( = −1
x + x = −1
x" + 1 = −x
• Example: negate +2
• +2 = 0000 0000 … 00102
• –2 = 1111 1111 … 11012 + 1
= 1111 1111 … 11102
ELEC 220, Fundamentals of Computer Engineering, Spring 2017 13
Stopped here in class
Thank you!