EEM16_F13_L07

# EEM16_F13_L07 - EEM16/CSM51A Logic Design of Digital...

• Notes
• 33

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

EEM16/CSM51A: Logic Design of Digital Systems Lecture #7 Arithmetic Circuits Prof. Danijela Cabric Fall 2015

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

2 (c) 2005 - 2012 W. J. Dally Numbers Digital logic works with binary numbers Each bit has a value based on its position
3 (c) 2005 - 2012 W. J. Dally From Decimal To Binary Example: 17 10 Convert number to binary base: 17 ÷ 2 = 8 remainder 1 8 ÷ 2 = 4 remainder 0 4 ÷ 2 = 2 remainder 0 2 ÷ 2 = 1 remainder 0 1 ÷ 2 = 0 remainder 1 17 10 = 10001 2 MSB LSB

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

4 (c) 2005 - 2012 W. J. Dally From Decimal To Binary To Hexadecimal Example: 1963 10 1963 10 = 0111 1010 1011 2 7 A B hex
Binary addition 1-bit 0+0 = 0, 1+0 = 1, 1+1 = 10 1 6 110 + 3 011 5 101 +7 111 0 _ 10 01 001 110 1001 9 0 1 _ 00 11 100 111 1100 12 (c) 2005 - 2012 W. J. Dally

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

6 (c) 2005 - 2012 W. J. Dally Half Adder HA a b c s b a c s
7 (c) 2005 - 2012 W. J. Dally One bit of an adder Counts the number of “1” bits on its input Outputs the result in binary For a half-adder, 2 inputs, output can be 0, 1, or 2 For a full-adder, 3 inputs, output can be 0, 1, 2, or 3 c[i] b[i] a[i] count c[i+1] s[i] 0 0 0 0 0 0 0 0 1 1 0 1 0 1 0 1 0 1 0 1 1 2 1 0 1 0 0 1 0 1 1 0 1 2 1 0 1 1 0 2 1 0 1 1 1 3 1 1

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

8 (c) 2005 - 2012 W. J. Dally
This is the end of the preview. Sign up to access the rest of the document.
• Fall '11
• cabriv
• Addition, Elementary arithmetic, W. J. Dally

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern