VHDL learning practice and homework from the Free Range VHDL book