ECEN248 Lab 4

# ECEN248 Lab 4 - Lab 4 Signed Numbers Derek W Johnson ECEN...

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

Lab 4: Signed Numbers Derek W. Johnson ECEN 248-506 Aaron Hill February 22, 2008

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

View Full Document
This lab will increase the students understanding of the methods for representing signed numbers in binary. The lab focuses on the Two’s Complement method and shows the student the benefits of the method through the design of signed adders and subtracters. Design 1. Negation (Two’s Complement) The first steps in designing a two’s complement negator is to remember the formula for the two’s complement representation of a number and write out the truth table. To find the negative two’s complement of a number, first negate every bit of the number, and then add one to the sum. Table 1: Two’s Complement Truth Table X 3 X 2 X 1 X 0 S 3 S 2 S 1 S 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 0 0 1 0 1 1 1 0 0 0 1 1 1 1 0 1 0 1 0 0 1 1 0 0 0 1 0 1 1 0 1 1 0 1 1 0 1 0 1 0 0 1 1 1 1 0 0 1 1 0 0 0 1 0 0 0 1 0 0 1 0 1 1 1 1 0 1 0 0 1 1 0 1 0 1 1 0 1 0 1 1 1 0 0 0 1 0 0 1 1 0 1 0 0 1 1 1 1 1 0 0 0 1 0 1 1 1 1 0 0 0 1 The equations for each sum bit can be found by examining the truth table. S
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### Page1 / 6

ECEN248 Lab 4 - Lab 4 Signed Numbers Derek W Johnson ECEN...

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

View Full Document
Ask a homework question - tutors are online