- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
In AN84868, IO matrix configuration are different in configuration phase and slave FIFO transferring phase. The corresponding GPIFII DESIGNER project seems to only match slave fifo io configuration. However, The main firmware project uses 32 bits slave fifo operation and GPIFII DESIGNER project uses 16 bits configuration. Why the two projects do not match with each other? Should GPIFII Designer project have two different configurations corresponding to FPGA configuration and SLAVE FIFO transferring?
Thank you.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
The cyfxgpif2config.h file has been modified to include the check to identify the GPIF II bus width. The below statements identify the IO matrix configuration and modify the GPIF II bus width accordingly at run-time.
#if (CY_FX_SLFIFO_GPIF_16_32BIT_CONF_SELECT == 0)
0x000010A7, /* CY_U3P_PIB_GPIF_BUS_CONFIG */
#else if (CY_FX_SLFIFO_GPIF_16_32BIT_CONF_SELECT ==1)
0x000010AC, /* 32b data- CY_U3P_PIB_GPIF_BUS_CONFIG */
#endif
Hence, the same .h file can be used for both the configuration of FPGA and the slave FIFO interface.
Best regards,
Srinath S
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
The cyfxgpif2config.h file has been modified to include the check to identify the GPIF II bus width. The below statements identify the IO matrix configuration and modify the GPIF II bus width accordingly at run-time.
#if (CY_FX_SLFIFO_GPIF_16_32BIT_CONF_SELECT == 0)
0x000010A7, /* CY_U3P_PIB_GPIF_BUS_CONFIG */
#else if (CY_FX_SLFIFO_GPIF_16_32BIT_CONF_SELECT ==1)
0x000010AC, /* 32b data- CY_U3P_PIB_GPIF_BUS_CONFIG */
#endif
Hence, the same .h file can be used for both the configuration of FPGA and the slave FIFO interface.
Best regards,
Srinath S
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you. Your answer solves the problem.