Can you please let us know your application in detail. Do you want FX3 to be configured from a master to slave dynamically?
Alternatively, you can read the commands from the FPGA while FX3 is the still the master and perform the required actions, this can be done by notifying the FX3 from the FPGA whenever FPGA has data to send.
Please refer to AN87216 on Designing a GPIF II master interface section "6.3 FX3 Master Read from FX3 Slave" for steps to read data from FPGA when FX3 is the master.
Shall i add the another cypress fx3 slave for receiving the commands from FPGA to FX3?
And how to know whether the FGPA is sending the commands or not to FX3?
Can you please let me know what type of commands you will receive from the FPGA side?
You can configure FX3 to act as a master and design a state machine such that when ever FPGA has commands to send to FX3, it will notify the FX3 through a GPIO, and these commands can be handled in the FX3 firmware.
The commands is $ZYNGAEC32000#64! in ZYNQ side to FX3 side we have to send it.
Ok, i will change the state machine in fx3.