from PART II - COMBINATIONAL CIRCUITS
Published online by Cambridge University Press: 05 November 2012
So far we have dealt with the representation of nonnegative integers by binary strings. Wealso designed combinational circuits that perform addition for nonnegative numbers represented by binary strings. How are negative integers represented? Can we add and subtract negative integers?
We refer to integers that are either positive, zero, or negative as signed integers. In this chapter, we deal with the representation of signed integers by binary strings. We focus on a representation that is called two's complement. We present combinational circuits for adding and subtracting signed numbers that are represented in two's complement representation. Although the designs are obtained by very minor changes of a binary adder designs, the theory behind these changes requires some effort.
REPRESENTATION OF NEGATIVE INTEGERS
We use binary representation to represent nonnegative integers. We now address the issue of representing positive and negative integers. Following programming languages, we refer to nonnegative integers as unsigned numbers and to negative and positive numbers as signed numbers.
There are three common methods for representing signed numbers: signmagnitude, one's complement, and two's complement.
To save this book to your Kindle, first ensure no-reply@cambridge.org is added to your Approved Personal Document E-mail List under your Personal Document Settings on the Manage Your Content and Devices page of your Amazon account. Then enter the ‘name’ part of your Kindle email address below. Find out more about saving to your Kindle.
Note you can select to save to either the @free.kindle.com or @kindle.com variations. ‘@free.kindle.com’ emails are free but can only be saved to your device when it is connected to wi-fi. ‘@kindle.com’ emails can be delivered even when you are not connected to wi-fi, but note that service fees apply.
Find out more about the Kindle Personal Document Service.
To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Dropbox.
To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Google Drive.