Cypress Semiconductor NoBL CY7C1472V33 Guía de usuario Pagina 45

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 57
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 44
ZestSC1 User Guide
CONFIDENTIAL Page 45 of 57
ZestSC1RegisterImage
ZESTSC1_STATUS ZestSC1RegisterImage(void *Buffer,
unsigned long BufferLength,
ZESTSC1_IMAGE *Image);
Parameters
Buffer Buffer containing FPGA configuration data. Normally
generated by Bit2C utility.
BufferLength Length, in bytes, of the configuration data.
Image Pointer to location to receive FPGA configuration image.
Return Value
ZESTSC1_SUCCESS Function succeeded
ZESTSC1_OUT_OF_MEMORY Not enough memory to complete the
requested operation
ZESTSC1_INVALID_PART_TYPE Illegal FPGA part type
Description
ZestSC1RegisterImage creates an FPGA configuration image from an array of raw
configuration data. The FPGA can be configured from this image by calling
ZestSC1Configure.
Buffer points to the start of the raw configuration data and BufferLength is the number of
bytes of configuration data to use. The Bit2C utility supplied on the ZestSC1 installation
disk provides a simple way to generate compatible C arrays from .bit files.
Image is a pointer to a location to receive the configuration image handle. This handle
can be used in future calls to ZestSC1Configure. The handle should be freed by calling
ZestSC1FreeImage when the configuration image is no longer needed.
ZestSC1RegisterImage and ZestSC1Configure allow .bit files to be linked into host
executables to reduce the number of host files required. Refer to
ZestSC1ConfigureFromFile, ZestSC1LoadImage and ZestSC1Configure for details
of how to configure the FPGA from configuration data in a file.
For example:
extern void *Buffer;
extern unsigned long Length;
ZESTSC1_IMAGE Image;
ZESTSC1_HANDLE Handle;
/* Register the FPGA configuration image */
ZestSC1RegisterImage(Buffer, Length, &Image);
/* Other initialization operations here */
Vista de pagina 44
1 2 ... 40 41 42 43 44 45 46 47 48 49 50 ... 56 57

Comentarios a estos manuales

Sin comentarios