DONE is released by the Startup sequence to indicate that configuration has completed. The state is defined in BitGen using the "-g DONE_cycle" option. By default, DONE is released in cycle 4. DONE indicates that configuration is complete and all data has been loaded, but some extra clock cycles need to be applied to ensure the startup sequence completes correctly. The startup is controlled by a sequential 7-state machine. A conservative number for the clock cycles required after DONE is 24; this will catch most use cases where there is ideal clock of DONE and default options are used. Some BitGen options add some extra latency to the startup sequence. These include:
If you do not clock the startup completely, some of the following symptoms can be observed:
This will occur if the device has not reached the End of Startup state machine. The device can be fully operational before the device reaches this End of Startup state. This can leadto ICAP read and write failures or dual mode pins notoperating in the correctI/O standard.This event is indicated by the EOS signal being driven High. This can be observed in the STAT register or detected in the FPGA fabric using the STARTUP primitive.
For designs accessing the ICAP, it is good design practice to instantiate the STARTUP primitive. This primitive has an EOS pin, this will indicate when the configuration process has completed and the ICAP is available for read and write access. One exception here is when the JTAG configuration is used. JTAGhas top priority access to configuration logic. If JTAG is accessing configuration logic, then ICAP read and writes will fail. This EOS pin value will not indicate that JTAG has access.