It is sometimes desirable to encrypt a design for loading into a PLD so that
an
attacker may not learn and copy the design as it is being written into the PLD.
It is desirable that decryption keys be stored within the PLD, and that they be
loaded conveniently before a board including the PLD is sold. The invention allows
the PLD to be placed into a printed circuit board and the board to be tested using
a JTAG port of the PLD, and then allows the decryption keys to be loaded into a
key memory using the JTAG port. Loading of the keys can be performed without also
loading of a design into the PLD. Loading may be performed without the use of a
device programmer.