本文转载自:<span id="profileBt"><a href="https://mp.weixin.qq.com/s/8EcvrycrFdBHKZVsVmj7Qg"> 硬码农二毛哥微信公众号</a></span>
<font color="#FF8000">注:本文由作者授权转发,如需转载请联系作者本人</font>
在光纤通信开发中,ibert ip会经常用到,它不但可以用来测试误码,测试眼图,还可以通过调整参数使眼图达到比较理想的状态。
<strong>新建测试工程</strong>
在工程中加入IBERT Ultrascale GTH IP核,右键点击IP核,点击Open IP Example Design。
打开IP核进行如下配置:
LineRate输入10.3125,Refclk输入156.25。
<center><img src="http://xilinx.eetrend.com/files/2022-08/%E5%8D%9A%E5%AE%A2/100563260-26…; alt=""></center>
选择输入外部时钟引脚与频率。
<center><img src="http://xilinx.eetrend.com/files/2022-08/%E5%8D%9A%E5%AE%A2/100563260-26…; alt=""></center>
编译后,下载bit文件,将待测通道中光模块用光纤短接,出现如下界面。
<center><img src="http://xilinx.eetrend.com/files/2022-08/%E5%8D%9A%E5%AE%A2/100563260-26…; alt=""></center>
<strong>误码测试</strong>
在Serial I/O Links中显示正在测试结果,如下图所示无码率较高。
<center><img src="http://xilinx.eetrend.com/files/2022-08/%E5%8D%9A%E5%AE%A2/100563260-26…; alt=""></center>
<strong>眼图测试</strong>
右键单击Serial I/O Links中的显示栏
<center><img src="http://xilinx.eetrend.com/files/2022-08/%E5%8D%9A%E5%AE%A2/100563260-26…; alt=""></center>
选择create scan
<center><img src="http://xilinx.eetrend.com/files/2022-08/%E5%8D%9A%E5%AE%A2/100563260-26…; alt=""></center>
点击ok后生成眼图。
<center><img src="http://xilinx.eetrend.com/files/2022-08/%E5%8D%9A%E5%AE%A2/100563260-26…; alt=""></center>
<strong>调节参数</strong>
通过调节Tx Pre-Cursor与TX Post-Cursor参数,改善传输信号。
修改后Errors变为0。
<center><img src="http://xilinx.eetrend.com/files/2022-08/%E5%8D%9A%E5%AE%A2/100563260-26…; alt=""></center>
修改后的眼图
<center><img src="http://xilinx.eetrend.com/files/2022-08/%E5%8D%9A%E5%AE%A2/100563260-26…; alt=""></center>
经过多次调节后,眼图达到如下状态:
<center><img src="http://xilinx.eetrend.com/files/2022-08/%E5%8D%9A%E5%AE%A2/100563260-26…; alt=""></center>
记录下此时Tx Pre-Cursor与TX Post-Cursor参数值。
<strong>修改参数</strong>
在使用GTH IP时,需要将Tx Pre-Cursor与TX Post-Cursor参数值写入相应寄存器。
下面介绍将Tx Pre-Cursor与TX Post-Cursor参数值写入寄存器的方法。
将10G/25G Ethemet Subsystem IP加入工程中,点击Open IP Example Design,在工程中找到trans_debug文件。
<center><img src="http://xilinx.eetrend.com/files/2022-08/%E5%8D%9A%E5%AE%A2/100563260-26…; alt=""></center>
trans_debug中的gt_txpostcursor对应TX Post-Cursor,gt_txprecursor对应Tx Pre-Cursor。将对应参数写入该模块,该模块输出与10G/25G Ethemet Subsystem IP的debug接口连接。
<center><img src="http://xilinx.eetrend.com/files/2022-08/%E5%8D%9A%E5%AE%A2/100563260-26…; alt=""></center>