12.07.2015 Views

Lecture 7 - Webstaff.kmutt.ac.th - kmutt

Lecture 7 - Webstaff.kmutt.ac.th - kmutt

Lecture 7 - Webstaff.kmutt.ac.th - kmutt

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Summary2’s ComplementThe 2’s complement of a binary number is found by adding 1 to <strong>th</strong>e LSB of <strong>th</strong>e 1’s complement.Recall <strong>th</strong>at <strong>th</strong>e 1’s complement of 11001010 isTo form <strong>th</strong>e 2’s complement, add 1:1 1 0 0 1 0 1 000110101 (1’s complement)+100110110 (2’s complement)0 0 1 1 0 1 0 1Input bitsAdderOutput bits (sum)0 0 1 1 0 1 1 01Carryin (add 1)Floyd, Digital Fundamentals, 10 <strong>th</strong> ed© 2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!