Part Number: TMS320C6678
Tool/software: Code Composer Studio
Hello,
The SRIO configuration between FPGA and c6678 is below.
-. x2 mode: land 0 & lane 1 are connected as one port.
-. direct IO: FPGA sends data to DDR3 memory
-. I can check SRIO status on FPGA: clock_lock, port_initialized, link_initialized, mode_1x, port_error
mode_1x means than the port is initialized with one lane not two lane
1> Port is sometimes initialized as mode_1x not mode_2x.
I need to re-start link negotiation when port is mode_1x.
Is there any control register to start negotiation manually?
And which register can I know if link is initialized 2x mode or 1x mode
2> Reading SP0_ERR_STAT
I made simple function to read SP0_ERR_STAT as below.
Sometime the return value is '0' it means hSrio is NULL. Which case srio handle can be NULL?
uint32_t srio_error_status()
{
CSL_SrioHandle hSrio;
hSrio = CSL_SRIO_Open (0);
if (hSrio == NULL)
return 0;
return hSrio->RIO_SP[0].RIO_SP_ERR_STAT;
}