VHDL 4x4 key matrix xilinx spartan 3