当前位置>主页 > 期刊在线 > 电子工程 >

电子工程22年7期

千兆以太网物理层收发器功能测试方法
刘文元
(中国电科网络通信研究院,河北 石家庄 050011)

摘  要:针对自主研发的一款千兆以太网物理层收发器(GPHY)的功能测试,设计了 GPHY 的测试系统。为便于定位测试中的问题,按照信号流将测试分为三个阶段:先进行内回环测试,再进行外回环测试,最后移植 LwIP 实现 ping 测试。采用一款 Cortex-M4 内核具备 GMAC(Gigabit Media Access Control)外设的 MCU 作主设备,实现了 GPHY 的功能测试程序。在程序中,创建了可动态调整的系统日志和结构化的多参数函数接口,使得查看测试结果和进行压力测试更加简便。


关键词:GPHY;功能测试;GMAC;Cortex-M4;LwIP



DOI:10.19850/j.cnki.2096-4706.2022.07.011


中图分类号:TP311                                         文献标识码:A                                  文章编号:2096-4706(2022)07-0042-04


Function Test Method for Gigabit Ethernet Physical Layer Transceiver

LIU Wenyuan

(Network Communication Institute of CETC, Shijiazhuang 050011, China)

Abstract: In view of the function test of the Gigabit Physical Layer Transceiver (GPHY), this paper designs a GPHY test system. In order to easily locate the problems in the test, the test is divided into three stages according to the signal flow. Firstly it conducts the inner loop test, then conducts the outer loop test, and finally transplants the LwIP to achieve the ping test. This paper uses a Cortex-M4 kernel and MCU with GMAC (Gigabit Media Access Control) peripheral as the master device to realize the GPHY function test program. In the test program, it creates the dynamically adjustable system log and the structured multi-parameters function interface, which make it handier to view test results and perform stress tests.

Keywords: GPHY; function test; GMAC; Cortex-M4; LwIP 


参考文献:

[1] 王雨朦 . 关于物联网关键技术及应用的探讨 [J]. 产业科技创新,2020(28):44-45.

[2] 裕太微电子 . 国产四通道 / 八通道千兆以太网芯片收发器芯片发布 [EB/OL].[2022-01-25].https://t.cj.sina.com.cn/articles/view/2286037382/8842298602000tfvh.

[3] 贾世伟 . 基于 UVM 的以太网 PHY 自动协商电路验证方法学研究 [D]. 西安:西安电子科技大学,2018.

[4] 李涛 . 基于 100BASE-TX 以太网 PHY 芯片设计与验证[D]. 西安:西安电子科技大学,2018.

[5] 赵森 . 基于 UVM 的 10M/100M 以太网 PHY 验证方法研究 [D]. 西安:西安电子科技大学,2018.

[6] 刘火良,杨森 .STM32 库开发实战指南 [M]. 北京:机械工业出版社,2017.

[7] 张超 . 基于 LwIP 协议栈的嵌入式网络控制系统设计 [J].单片机与嵌入式系统应用,2019(2):34-36+40.


作者简介:刘文元(1992—),男,汉族,河北邯郸人,工程师,硕士研究生,研究方向:数字芯片的板级验证、嵌入式驱动开发。