当前位置:网站首页>Marvell 88E1515 PHY loopback模式测试
Marvell 88E1515 PHY loopback模式测试
2022-07-05 06:28:00 【恩来贺】
Xavier 平台上的88E1512 PHY芯片,88E1512芯片寄存器手册描述比较详细。
先了解下基本概念:
千兆以太网的物理层
千兆以太网的物理层分为物理编码子层PCS(Physical Coding Sublayer)、物理介质连接子层PMA(Physical Medium Attachment)和物理介质相关子层PMD(Physical Medium Dependent)三层,如下图所示:
其中PCS子层负责8b10b编码,它可以把从GMII口接收到的8位并行的数据转换成10位并行的数据输出。因为10比特的数据能有效地减小直流分量,降低误码率,另外采用8b10b编码便于在数据中提取时钟和进行首发同步。可以把PCS两头看成GMII接口和TBI接口。
PMA子层进一步将PCS子层的编码结果向各种物理媒体传送,主要是负责完成串并转换。PCS层以125M的速率并行传送10位代码到PMA层,由PMA层转换为1.25Gbps的串行数据流进行发送,以便实际能得到1Gbps的千兆以太网传送速率。可以把PMA子层的两头分别看做TBI接口和SGMII接口。
PMD子层将对各种实际的物理媒体完成接口,完成真正的物理连接。由于1000BASE-X支持多种物理媒介,如光纤和屏蔽双绞线,它们的物理接口显然不会相同。有的要进行光电转换,有的要完成从不平衡到平衡的转换。PMD层将对这些具体的连接器作出规定。
88E1512的四种loopback模式
1.System Interface Loopback
2.Synchronous SERDES Loopback
3.Line Loopback
4.External Loopback
先来使用System Interface Loopback,比较简单直接配置 0_0.14 = 1

我使用开源phytool工具配置BMCR 的bit14 GitHub - wkz/phytool: Linux MDIO register access
https://github.com/wkz/phytool这款工具同时支持C45和C42协议
先使用ethtool查看下当前状态:

读取phy当前寄存器的值

设置成loopback模式

| Loopback speed is determined by Registers 21_2.{6,13} |
边栏推荐
- [Gaode map POI stepping pit] amap Placesearch cannot be used
- 2022-5-第四周日报
- Adg5412fbruz-rl7 applies dual power analog switch and multiplexer IC
- Utf8 encoding
- What is socket? Basic introduction to socket
- 微信小程序路由再次跳轉不觸發onload
- A brief introduction to heading/pitch/roll and omega/phi/kappa
- Huawei bracelet, how to add medicine reminder?
- Rehabilitation type force deduction brush question notes D2
- MQClientException: No route info of this topic: type_ topic
猜你喜欢

Alibaba's new member "Lingyang" officially appeared, led by Peng Xinyu, Alibaba's vice president, and assembled a number of core department technical teams

AE tutorial - path growth animation

7.Oracle-表结构

Game theory acwing 891 Nim games

Financial risk control practice -- feature derivation based on time series

VLAN experiment

GDB code debugging

在本地搭建一个微服务集群环境,学习自动化部署

TCP's understanding of three handshakes and four waves

How to make water ripple effect? This wave of water ripple effect pulls full of retro feeling
随机推荐
求组合数 AcWing 888. 求组合数 IV
Get class files and attributes by reflection
Winter vacation water test 1 Summary
Skywalking全部
Written examination notes
C job interview - casting and comparing - C job interview - casting and comparing
[moviepy] unable to find a solution for exe
FFmpeg build下载(包含old version)
H5 模块悬浮拖动效果
our solution
Error: “MountVolume.SetUp failed for volume pvc 故障处理
Financial risk control practice -- feature derivation based on time series
P2575 master fight
[Chongqing Guangdong education] National Open University 2018 autumn 0702-22t contemporary Chinese political system reference questions
2.Oracle-数据文件的添加及管理
数据库Mysql全部
代码中的英语全部
Utf8 encoding
Time is fast, please do more meaningful things
达梦数据库全部