FPGA可编程逻辑器件芯片XC2V8000-5FG256I中文规格书

  • 格式:pdf
  • 大小:424.83 KB
  • 文档页数:5

Generating PROM Files in x16 mode. The FPGA now knows on which bus width to receive the rest of the data. Nopacket processed by the FPGA until the Sync word is found. See Table5-7.Table 5-7:Sync Word31:2423:1615:87:00xAA0x990x550x66Generating PROM FilesPROM files are generated from bitstream files with the PROMGen utility. Users can accessPROMGen directly from the command line or indirectly through the iMPACT FileGeneration Mode. For PROMGen syntax, refer to UG628, Command Line Tools User Guide.For information on iMPACT software, refer to the ISE® software documentation. PROMfiles serve to reformat bitstream files for PROM programming and combine bitstream filesfor serial daisy-chains (see PROM Files for Serial Daisy-Chains).PROM Files for Serial Daisy-ChainsConfiguration data for serial daisy-chains requires special formatting because separateBIT files cannot simply be concatenated together to program the daisy-chain. The specialformatting is performed by PROMGen (or iMPACT software) when generating a PROMfile from multiple bitstreams. To generate the PROM file, specify multiple bitstreams usingthe PROMGen -n, -u, and -d options or the iMPACT Software File Generation Wizard.Refer to ISE software documentation for details.PROMGen reformats the configuration bitstreams by nesting downstream configurationdata into configuration packets for upstream devices. Attempting to program the chain bysending multiple bitstreams to the first device causes the first device to configure and thenignore the subsequent data.PROM Files for SelectMAP ConfigurationThe MCS file format is most commonly used to program Xilinx® configuration PROMsthat in turn program a single FPGA in SelectMAP mode. For custom configurationsolutions, the BIN and HEX files are the easiest PROM file formats to use due to their rawdata format. In some cases, additional formatting is required; refer to XAPP502, Using aMicroprocessor to Configure Xilinx FPGAs via Slave Serial or SelectMAP Mode for details.If multiple configuration bitstreams for a SelectMAP configuration reside on a singlememory device, the bitstreams must not be combined into a serial daisy-chain PROM file.Instead, the target memory device should be programmed with multiple BIN or HEX files.If a single PROM file with multiple, separate data streams is needed, one can be generatedin iMPACT software by targeting a Parallel PROM, then selecting the appropriate numberof data streams. This can also be accomplished through the PROMGen command line.Refer to PROMGen software documentation for details.PROM Files for SPI/BPI ConfigurationThe -d, -u, -spi, -s, and -data_width options in PROMGen or the iMPACT SoftwareFile Generation Wizard are used to create PROM files for third-party flash devices. Theoutput format supported by the third-party programmer is important. Some BPI devicesrequire endian-swapping to be enabled when programming the PROM file. Refer to theflash vendor's documentation.Chapter 5:Configuration DetailsAdvanced Encryption Standard OverviewCreating an Encrypted BitstreamBitGen, provided with the ISE software, can generate encrypted as well as non-encryptedbitstreams. For AES bitstream encryption, the user specifies a 256-bit key as an input toBitGen. BitGen in turn generates an encrypted bitstream file (BIT) and an encryption keyfile (NKY).For specific BitGen commands and syntax, refer to UG628, Command Line Tools User Guide.Loading the Encryption KeyThe encryption key can only be loaded onto a Spartan-6 device through the JTAG interface.The iMPACT tool, provided with ISE software, can accept the NKY file as an input andprogram the device with the key through JTAG, using a Xilinx USB-II programming cable.To program the key, the device enters a special key-access mode using theISC_PROGRAM_KEY instruction. In this instruction, all FPGA memory, including theencryption key and configuration memory, is cleared. After the key is programmed andthe key-access mode is exited and the Key Security bits are programmed, the key cannot beread out of the device by any means, and it cannot be reprogrammed without clearing theentire device. After programming the key into the eFUSE, the key cannot bereprogrammed later.Loading Encrypted BitstreamsOnce the device has been programmed with the correct encryption key, the device can beconfigured with an encrypted bitstream. After configuration with an encrypted bitstream,it is not possible to read the configuration memory through JTAG or SelectMAP readback,regardless of the BitGen security setting.While the device holds an encryption key, a non-encrypted bitstream can be used toconfigure the device; in this case the key is ignored. After configuring with a non-encrypted bitstream, readback is possible (if allowed by the BitGen security setting). Theencryption key still cannot be read out of the device, preventing the use of Trojan Horsebitstreams to defeat the Spartan-6 FPGA encryption scheme.The method of configuration is not affected by encryption. The configuration bitstream canbe delivered in any x1 or x8 data width configuration mode (Serial, SPI x1, JTAG, BPI,SelectMAP). The SPI x2, SPI x4, BPI x16, and SelectMAP x16 bus widths are not supportedfor encrypted bitstreams. Configuration timing and signaling are also unaffected byencryption.Configuration PacketsStatus Register (STAT)The Status Register indicates the value of numerous global signals. The register can be read through the SelectMAP or JTAG interfaces. Table5-35 gives the name of each bit position in the STAT register; a detailed explanation of each bit position is given in Table5-35.Table 5-35:Status Register DescriptionName Bits DescriptionSWWD_strikeout (SyncWordWatchDog)15Indicates error to configure for reasons of failure to find the sync word within the Configuration WatchDog timer(CWDT) count, invalid IDCODE, or CRC error. See theBOOTSTS register for the specific cause of failure. INITis pulled Low and SWWD_strikeout goes High.IN_PWRDN14SUSPEND status.DONE13DONEIN input from DONE pin.INIT_B12Value of INIT_B.MODE11:9Value of MODE pins (0, M1,M0).HSWAPEN8HSWAPEN status.PART_SECURED70: Decryption security not set.1: Decryption security set.DEC_ERROR6FDRI write attempted before or after decryptionoperation:0: No DEC_ERROR.1: DEC_ERROR.GHIGH_B5Status of GHIGH.GWE4Status of Global Write Enable.GTS_CFG_B3Status of Global 3-State.DCM_LOCK2DCMs and PLLs are locked.ID_ERROR1IDCODE not validated while trying to write FDRI. CRC_ERROR0CRC error.Chapter 6:Readback and Configuration VerificationChapter 8:Readback CRC。