Half Subtractor

Design a half subtractor which subtracts b from a and outputs diff and borrow.

Contributed by Indicore

Compiler Output
Waveform Viewer