The question in my textbook was:
Design and implement 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.
I got the solution but I was curious to know the Verilog implementation of it. How do I do that?
This is the solution.