Simple VHDL adder, rewritten from ghdl tutorial