FX3: How to set watermark values for each P-port when using 5-bit address mode?

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
xuxinhang
Level 1
Level 1
5 sign-ins First reply posted First question asked

When I use GPIF-II sync slave fifo interface with 2-bit address mode, I can successfully set watermark values for the four threads / P-port sockets. Just like the following:

 

    CyU3PGpifSocketConfigure (0, CY_FX_PRODUCER_1_PPORT_SOCKET, 6, CyFalse, 1);
    CyU3PGpifSocketConfigure (1, CY_FX_PRODUCER_2_PPORT_SOCKET, 6, CyFalse, 1);
    CyU3PGpifSocketConfigure (2, CY_FX_PRODUCER_3_PPORT_SOCKET, 6, CyFalse, 1);
    CyU3PGpifSocketConfigure (3, CY_FX_CONSUMER_1_PPORT_SOCKET, 5, CyFalse, 1);

 


And now, I switch to 5-bit address mode for more transfer endpoints. And I want to set watermark values for each P-port sockets. Here are fourteen P-ports. However the following code is not availbale.

 

    CyU3PGpifSocketConfigure (0, CY_FX_PRODUCER_1_PPORT_SOCKET, 6, CyFalse, 1);
    CyU3PGpifSocketConfigure (1, CY_FX_PRODUCER_2_PPORT_SOCKET, 6, CyFalse, 1);
    CyU3PGpifSocketConfigure (2, CY_FX_PRODUCER_3_PPORT_SOCKET, 6, CyFalse, 1);
    CyU3PGpifSocketConfigure (3, CY_FX_CONSUMER_1_PPORT_SOCKET, 5, CyFalse, 1);
    CyU3PGpifSocketConfigure (0, CY_FX_CONSUMER_2_PPORT_SOCKET, 5, CyFalse, 1);
    CyU3PGpifSocketConfigure (1, CY_FX_CONSUMER_3_PPORT_SOCKET, 5, CyFalse, 1);
    CyU3PGpifSocketConfigure (2, CY_FX_PRODUCER_4_PPORT_SOCKET, 6, CyFalse, 1);
    CyU3PGpifSocketConfigure (3, CY_FX_PRODUCER_5_PPORT_SOCKET, 6, CyFalse, 1);
    CyU3PGpifSocketConfigure (0, CY_FX_PRODUCER_6_PPORT_SOCKET, 6, CyFalse, 1);
    CyU3PGpifSocketConfigure (1, CY_FX_PRODUCER_7_PPORT_SOCKET, 6, CyFalse, 1);
    CyU3PGpifSocketConfigure (2, CY_FX_CONSUMER_4_PPORT_SOCKET, 5, CyFalse, 1);
    CyU3PGpifSocketConfigure (3, CY_FX_CONSUMER_5_PPORT_SOCKET, 5, CyFalse, 1);
    CyU3PGpifSocketConfigure (0, CY_FX_CONSUMER_6_PPORT_SOCKET, 5, CyFalse, 1);
    CyU3PGpifSocketConfigure (1, CY_FX_CONSUMER_7_PPORT_SOCKET, 5, CyFalse, 1);

 

Then no data can be transfered through any P-ports.

 

So, I wonder what's the correct way to assign watermark values for P-ports - under 5-bit address mode.

 

0 Likes
3 Replies