Adder Subtractor Diagram. Use a couple half subtractors and an or gate. Where a and b are called minuend and subtrahend bits.
And b in borrow in and b out borrow out. If a 0 b 0 c 0 begin. Contents show truth.
If a 0 b 0 c 0 begin.
Contents show truth. Module halfadder4 input a b c output reg d b. Timescale 1ns 1ps. An adder is a digital logic circuit in electronics that performs the operation of additions of two number.