HDLbits
Browse Problems

Circuits/Sequential Logic

Serial Two's Complementer (Mealy)

medium
fsmserial-arithmeticsequential

For a serial word received least-significant bit first, copy bits through and including the first 1. Invert every subsequent bit. Reset restarts the conversion for a new word.