Show the r’s complement, Electrical Engineering

Assignment Help:

Q. Show the r’s Complement?

Step1- get the (r-1)'s complement

Step 2- add 1 to the result ex.

           93510

                                    9 9 9

                                    9 3 5 -

                           0 6 4  (r-1)'s complement

                          0 6 4

                              1 +

                           0 6 5

  • When using the r's complement we add usually, and ignore any carry from the most significant digit (MSD)
  • If the result is in negative, it will be in r's complement form ex.

            395 - 210

210 is 789 + 1 = 790 in 10's complement form

            395

            790+

            185     

Why Use 2's Complement

  • The left-most bit is still a sign bit

            1  for negative

            0  for positive

  • One way to write 0

            +0 0000 0000

            -0  0000 0000  (how?)

  • With n bits we can represent -2n-1 to ( 2n-1 - 1)

Let's now consider the subtraction 22 - 35, again both represented as 7-bit numbers with a sign bit.

                        +22 in binary is:                 00010110
                        +35 in binary is:                 00100011
                        -35 in binary is:                  10100011
                        -35 in 1's complement is:    11011100

The sum to be calculated is now:

                                            00010110
                                         + 11011100
                                            11110010 

This time the addition does not produce a 9th bit, but the sign bit is 1. In this case it again tells us two things:

  • the answer is negative
  • the answer is represented in 1's complement notation

So to get the final answer we need to turn our answer into binary. If the 1's complement notation is 11110010 then the binary representation is 10001101 (note - the sign bit doesn't change, it's still a negative number!). This is the binary for -13, again, the correct answer.


Related Discussions:- Show the r’s complement

Define the x-nor or exclusive-nor gate, Define the X-NOR or Exclusive-NOR G...

Define the X-NOR or Exclusive-NOR Gate?   This is the EX-OR gate with the output inverted, as shown by the 'o' on the output and the output Q is true if inputs A and B a

Find the cutoff frequency, Q. A rigid 50- coaxial transmission line has ai...

Q. A rigid 50- coaxial transmission line has air as dielectric. If the radius of the outer conductor is 1 cm, find the cutoff frequency

Calculate the open circuit voltage, This question is designed to give you ...

This question is designed to give you practice in manipulating circuit equations using j notation, and to demonstrate that techniques that you have already studied in the d.c. c

Software, Write a computer program to implement the finite difference metho...

Write a computer program to implement the finite difference method. The program can be in any computer language that is available within the school. Set up the code to find the pot

Determine the ratio of starting torque to full-load torque, A three-phase, ...

A three-phase, 400-V, wye-connected induction motor takes the full-load current at 45 V with the rotor blocked. The full-load slip is 4%. Calculate the tappings k on a three-phase

Power control - motor control , Power Control A chopper converts  fix...

Power Control A chopper converts  fixed  de input voltage to a controllable dc output voltage. It is  the single  stage dc to dc conversion device. It is a high  speed  on/ of

Determine voltage ratio for the circuit, Q. Determine v o /v i for the ci...

Q. Determine v o /v i for the circuit shown in Figure if the op amps are ideal.

Explain biased and double clipper circuits, Q. Explain biased and double c...

Q. Explain biased and double clipper circuits.   Clipper can be either forward biased or reverse biased. If a battery is connected in series with the diode in a positi

Description of the program counter and the data pointer, Questions: a) ...

Questions: a) Give a brief description of the program counter and the data pointer, including their differences. b) Briefly describe what are Byte-Level logical operations

Probability of availability of free lines, Q. How does one arrive at the pr...

Q. How does one arrive at the probability of availability of free lines during busy hour? How can this be improved? Ans: One can arrive at probability of free lines during busy

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd