Added VHDL code for MIDDAG 5.