52.6k views
1 vote
Design a serial 2's complementer with a shift register and a flip-flop. The binary number is shifted out from one side and it's 2's complement shifted into the other side of the shift register.

User Oracal
by
8.5k points

1 Answer

4 votes

Final answer:

To design a serial 2's complementer, connect the output of the shift register to the input of a flip-flop. Shift out a binary number, 2's complement it, and shift it into the other side of the shift register while storing it in the flip-flop.

Step-by-step explanation:

Serial 2's Complementer Design

A serial 2's complementer can be designed using a shift register and a flip-flop. Here's how:

  1. Connect the output of the shift register to the input of the flip-flop.
  2. Whenever a binary number is shifted out from one end of the shift register, it gets 2's complemented and shifted into the other end of the shift register.
  3. The flip-flop stores the 2's complemented binary number.

For example, let's say we have a 4-bit shift register. If the binary number 0110 is shifted out, it gets 2's complemented to 1001 and shifted into the other side of the shift register, while the flip-flop stores the 2's complemented number 1001.

User Tokunbo
by
8.0k points