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

What do you mean by double word, Q. What do you mean by Double Word? A ...

Q. What do you mean by Double Word? A double word is precisely what its name implies, two words. Thus, a double word quantity is 32 bits. Logically, this double word can be div

Mr GZ, HOW TO PERFOM AUTO DIALLING USING GSM MODULE

HOW TO PERFOM AUTO DIALLING USING GSM MODULE

Averaged power dissipated in the load, (a) Consider the following transmiss...

(a) Consider the following transmission line with the reactance X1 placed across the input. It is being driven with a frequency ω such that the length of the line is λ/4. W

Mesh-current equation with controlled sources, Since a controlled source ac...

Since a controlled source acts at its terminals in the same manner as does an independent source, source conversion and application of KCL and KVL relations are treated identically

Pentium processor has a superscalar architecture, Q.‘Pentium processor has ...

Q.‘Pentium processor has a superscalar architecture'. Describe the meaning of statement. Ans:Pentium microprocessor is organized with three execution units. One executes float

Determine the complete response for capacitance, Consider the circuit of Fi...

Consider the circuit of Figure for t> 0 with zero initial conditions, v Th (t) = 1 V (dc), and R Th = 2 ; L = 1 H. Determine the complete response for vC(t) for capacitance value

Determine the rotor speed, A four-pole, three-phase inductionmotor is energ...

A four-pole, three-phase inductionmotor is energized from a 60-Hz supply. It is running at a load condition for which the slip is 0.03. Determine: (a) The rotor speed in r/min.

Calibration and testing of energy meters, Calibration and Testing of Energy...

Calibration and Testing of Energy Meters and Meter Laboratory Energy meters form a vital instrument of revenue realization for the distribution utilities. Based on the meter r

Single- and three-phase systems, Ac power has significant practical advanta...

Ac power has significant practical advantages over dc power in generation, transmission, and distribution. One major drawback of the single-phase circuit is the oscillatory nature

Matlab, fast decoupled program

fast decoupled program

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