cse20 lecture 2

# cse20 lecture 2 - CSE20 Lecture 2: Number Systems: Binary...

This preview shows pages 1–7. Sign up to view the full content.

CSE20 Lecture 2: Number Systems: Binary Numbers, Gray Code, and Negative Numbers CK Cheng WI’10 7 January 2010 1

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
Number Systems 1. Introduction 2. Binary Numbers 3. Gray code 4. Negative Numbers 5. Residual Numbers 2
2. Binary Numbers b 2 b 1 b 0 Value 0 0 0 0 0 0 1 1 0 1 0 2 0 1 1 3 1 0 0 4 1 0 1 5 1 1 0 6 1 1 1 7 8 4 2 1 0 0 1 1 0 1 0 1 1 0 0 0 3 + 5 = 8 8 4 2 1 0 0 1 1 0 1 1 0 1 0 0 1 3 + 6 = 9 + + Examples : (3) (5) (8) (3) (6) (9) This is a non-redundant number system 3

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
2. Binary Cont. a b Carry Sum 0 0 0 0 0 1 0 1 1 0 0 1 1 1 1 0 id a b c Carry Sum 0 0 0 0 0 0 1 0 0 1 0 1 2 0 1 0 0 1 3 0 1 1 1 0 4 1 0 0 0 1 5 1 0 1 1 0 6 1 1 0 1 0 7 1 1 1 1 1 2*0 + 0 = 0 0 0 id 0 2*0 + 1 = 0 0 1 id 1 2*1 + 0 = 1 1 0 id 6 2*1 + 1 = 1 1 1 id 7 RULE: 2 x Carry + Sum = a + b + c 4
3. Gray Code reflection Low power (reliability) when the numbers are consecutive in series. The idea is to only change ONE bit at a time. e.g. addresses, analog signals NOTE: Not for arithmetic operations (the rule is too complicated) 5

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
4. Negative Numbers Given a positive integer x, represent the negative integer –x in (b n-1 , …, b 0 ) (i) Signed bit system
This is the end of the preview. Sign up to access the rest of the document.

## This note was uploaded on 06/12/2011 for the course CS 1 taught by Professor Staff during the Fall '08 term at Cornell University (Engineering School).

### Page1 / 7

cse20 lecture 2 - CSE20 Lecture 2: Number Systems: Binary...

This preview shows document pages 1 - 7. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online