HDLbits
Browse Problems

Circuits/Sequential Logic

Serial Two's Complementer (Moore)

hard
fsmserial-arithmeticsequential

Apply the least-significant-bit-first two’s-complement rule: copy input bits through the first one, then invert following bits. Register each output bit on the clock.