This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

6678 STK的SRIO例程中端口Port的选择问题

各位工程师您好,我使用的板子是6678,现在在stk中SRIO例程的基础上修改,实现DSP向FPGA发送数据,有如下疑问:

1、这一段程序的注释中提到*port0 is not availible以及port1 is not availible这是为什么呢?我没有看到有对port的选择的程序,求指教

SRIO_Multiple_Test_Config test_2DSP_cfg=
{
SRIO_PATH_CTL_4xLaneABCD, /*multiple_port_path*/
/*packet_type source dest size*/
{{0, 0, 0, 0}, /*port0 is not availible for this case*/
{0, 0, 0, 0}, /*port1 is not availible for this case*/
{0, 0, 0, 0}, /*port2*/
{SRIO_PKT_TYPE_SWRITE, ((Uint32)&packetBuffer_LL2_Size1[0][0])+0x10000000, 0x0C000000, 4096}} /*port3*/
};

2、这个Block_enable 中5_8_Port_Datapath_EN我查看手册指的是BLOCK5-8对应PORT0-3吗?那这个bLogic_Port代表的是什么呢?

typedef struct {
Bool bBLK1_LSU_EN ;
Bool bBLK2_MAU_EN ;
Bool bBLK3_TXU_EN ;
Bool bBLK4_RXU_EN ;
Bool bBLK5_8_Port_Datapath_EN[4];
Bool bLogic_Port_EN[4];
}SRIO_Block_Enable;、

期待您的回复,辛苦了

  • port number和lane是有关系的。具体请看手册table 3-107
    The lowest numbered lane of the path used in a port is the port number as follows:
    • Lane A: port 0
    • Lane B: port 1
    • Lane C: port 2
    • Lane D: port 3
    For example, in the 2x+1x+1x configuration, the 2x port uses lanes A and B and is numberedport 0; the 1x ports use C and D respectively and so are numbered 2 and 3
  • 您好,手册table3-107是LANEn_STAT1寄存器的表,您指的是这个吗?您举得例子意思是如果配置为 2x+1x+1x的模式需要使用port0、port2和port3吗?如果配置为4x的话是只使用port0?
    我上面提到的第二个问题:BLOCK5-8对应PORT0-3吗?那这个bLogic_Port代表的是什么呢?期待您解答,感谢
  • 看你使用哪个lane,意思是如果2xlaneAlaneB,那么port号默认是最低位的lane的port,也就是laneA,即port0.
    bLogic_Port_EN用来配置使能哪个port端口工作。
x 出现错误。请重试或与管理员联系。