Original 2-4-8 vhdl-code