热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

Triple-SpeedEthernet(tse)FPGA软核MAC测试

Altera公司的三速以太网(TSE)是一个可配置的FPGA软核MAC,主要应用于10100Mbps(快速以太网)和1000Mbps(千兆以太网)线路卡、NIC卡以及交换机等。

     Altera公司的三速以太网(TSE)是一个可配置的FPGA软核MAC,主要应用于10/100 Mbps (快速以太网)和1000 Mbps (千兆以太网)线路卡、NIC卡以及交换机等。

     官方资源:

     http://www.altera.com.cn/support/ip/interface-protocols/ips-inp-tse.html

     http://www.altera.com.cn/literature/ug/ug_ethernet.pdf

     http://www.altera.com.cn/support/refdesigns/ip/interface/ref-triple-speed-ethernet-data-path.html

     http://www.altera.com.cn/literature/an/an647.pdf

     http://www.altera.com.cn/literature/an/an440.pdf

     http://www.altera.com.cn/literature/an/an483.pdf

     http://www.altera.com/support/ip/interface-protocols/ips-inp-tse.html


     官方实例: http://download.csdn.net/detail/xgbing/5286324


     官方的FPGA开发套件提供了与Marvell 88E1111 PHY工作的实例,但俺没有银子,最便宜的DE2开发板也得3000块吧。我用手头的EP2C8Q208C8搭建了一个测试平台:


(1)发送测试:



(2)接收测试:

Id1 = 0x13, Id2 = 0x78e2.
Wait reset.
Reset ok.
cOnfig= 0x3100.
MII status = 0x7809.
Reg 4 = 0x1e1.
Wait Auto-nego...OK.
cOnfig= 0x3100.
MII status = 0x782d.
MII status2 = 0x4780.
Link OK.

-----------------------------
RX 0x3c bytes:
0000: FF FF FF FF FF FF 00 25 11 06 07 39 08 06 00 01
0010: 08 00 06 04 00 01 00 25 11 06 07 39 C0 A8 01 A0
0020: 00 00 00 00 00 00 C0 A8 01 79 00 00 00 00 00 00
0030: 00 00 00 00 00 00 00 00 00 00 00 00

-----------------------------
RX 0x3c bytes:
0000: FF FF FF FF FF FF 00 25 11 06 07 39 08 06 00 01
0010: 08 00 06 04 00 01 00 25 11 06 07 39 C0 A8 01 A0
0020: 00 00 00 00 00 00 C0 A8 01 79 00 00 00 00 00 00
0030: 00 00 00 00 00 00 00 00 00 00 00 00

-----------------------------
RX 0x3c bytes:
0000: FF FF FF FF FF FF 00 25 11 06 07 39 08 06 00 01
0010: 08 00 06 04 00 01 00 25 11 06 07 39 C0 A8 01 A0
0020: 00 00 00 00 00 00 C0 A8 01 79 00 00 00 00 00 00
0030: 00 00 00 00 00 00 00 00 00 00 00 00

-----------------------------
RX 0x3c bytes:
0000: FF FF FF FF FF FF 00 25 11 06 07 39 08 06 00 01
0010: 08 00 06 04 00 01 00 25 11 06 07 39 C0 A8 01 A0
0020: 00 00 00 00 00 00 C0 A8 01 79 00 00 00 00 00 00
0030: 00 00 00 00 00 00 00 00 00 00 00 00

-----------------------------
RX 0x5c bytes:
0000: FF FF FF FF FF FF 00 25 11 06 07 39 08 00 45 00
0010: 00 4E 10 76 00 00 40 11 E5 39 C0 A8 01 A0 C0 A8
0020: 01 FF 00 89 00 89 00 3A AA 2E 80 D7 01 10 00 01
0030: 00 00 00 00 00 00 20 45 44 45 42 45 4A 46 48 46
0040: 46 43 41 43 41 43 41 43 41 43 41 43 41 43 41 43
0050: 41 43 41 43 41 43 41 00 00 20 00 01

-----------------------------
RX 0x5c bytes:
0000: FF FF FF FF FF FF 00 25 11 06 07 39 08 00 45 00
0010: 00 4E 10 86 00 00 40 11 E5 29 C0 A8 01 A0 C0 A8
0020: 01 FF 00 89 00 89 00 3A AA 2E 80 D7 01 10 00 01
0030: 00 00 00 00 00 00 20 45 44 45 42 45 4A 46 48 46
0040: 46 43 41 43 41 43 41 43 41 43 41 43 41 43 41 43
0050: 41 43 41 43 41 43 41 00 00 20 00 01

-----------------------------
RX 0x5c bytes:
0000: FF FF FF FF FF FF 00 25 11 06 07 39 08 00 45 00
0010: 00 4E 10 95 00 00 40 11 E5 1A C0 A8 01 A0 C0 A8
0020: 01 FF 00 89 00 89 00 3A AA 2E 80 D7 01 10 00 01
0030: 00 00 00 00 00 00 20 45 44 45 42 45 4A 46 48 46
0040: 46 43 41 43 41 43 41 43 41 43 41 43 41 43 41 43
0050: 41 43 41 43 41 43 41 00 00 20 00 01

-----------------------------
RX 0x5c bytes:
0000: FF FF FF FF FF FF 00 25 11 06 07 39 08 00 45 00
0010: 00 4E 10 A6 00 00 40 11 E5 09 C0 A8 01 A0 C0 A8
0020: 01 FF 00 89 00 89 00 3A AA 2F 80 D8 01 10 00 01
0030: 00 00 00 00 00 00 20 45 44 45 42 45 4A 46 48 46
0040: 46 43 41 43 41 43 41 43 41 43 41 43 41 43 41 43
0050: 41 43 41 43 41 41 41 00 00 20 00 01

-----------------------------
RX 0x5c bytes:
0000: FF FF FF FF FF FF 00 25 11 06 07 39 08 00 45 00
0010: 00 4E 10 B5 00 00 40 11 E4 FA C0 A8 01 A0 C0 A8
0020: 01 FF 00 89 00 89 00 3A AA 2F 80 D8 01 10 00 01
0030: 00 00 00 00 00 00 20 45 44 45 42 45 4A 46 48 46
0040: 46 43 41 43 41 43 41 43 41 43 41 43 41 43 41 43
0050: 41 43 41 43 41 41 41 00 00 20 00 01

-----------------------------
RX 0x5c bytes:
0000: FF FF FF FF FF FF 00 25 11 06 07 39 08 00 45 00
0010: 00 4E 10 C4 00 00 40 11 E4 EB C0 A8 01 A0 C0 A8
0020: 01 FF 00 89 00 89 00 3A AA 2F 80 D8 01 10 00 01
0030: 00 00 00 00 00 00 20 45 44 45 42 45 4A 46 48 46
0040: 46 43 41 43 41 43 41 43 41 43 41 43 41 43 41 43
0050: 41 43 41 43 41 41 41 00 00 20 00 01

-----------------------------
RX 0xd8 bytes:
0000: FF FF FF FF FF FF 00 25 11 06 07 39 08 00 45 00
0010: 00 CA 10 D3 00 00 40 11 E4 60 C0 A8 01 A0 C0 A8
0020: 01 FF 00 8A 00 8A 00 B6 50 4C 11 02 80 D9 C0 A8
0030: 01 A0 00 8A 00 A0 00 00 20 45 48 45 50 45 4F 45
0040: 48 43 41 43 41 43 41 43 41 43 41 43 41 43 41 43
0050: 41 43 41 43 41 43 41 41 41 00 20 45 49 45 49 43
0060: 41 43 41 43 41 43 41 43 41 43 41 43 41 43 41 43
0070: 41 43 41 43 41 43 41 43 41 42 4E 00 FF 53 4D 42
0080: 25 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0090: 00 00 00 00 00 00 00 00 00 00 00 00 11 00 00 06
00A0: 00 00 00 00 00 00 00 00 00 E8 03 00 00 00 00 00
00B0: 00 00 00 06 00 56 00 03 00 01 00 01 00 02 00 17
00C0: 00 5C 4D 41 49 4C 53 4C 4F 54 5C 42 52 4F 57 53
00D0: 45 00 09 04 0E 00 00 00

-----------------------------
RX 0x5c bytes:
0000: FF FF FF FF FF FF 00 25 11 06 07 39 08 00 45 00
0010: 00 4E 10 D4 00 00 40 11 E4 DB C0 A8 01 A0 C0 A8
0020: 01 FF 00 89 00 89 00 3A A8 33 80 DB 01 10 00 01
0030: 00 00 00 00 00 00 20 45 49 45 49 43 41 43 41 43
0040: 41 43 41 43 41 43 41 43 41 43 41 43 41 43 41 43
0050: 41 43 41 43 41 42 4C 00 00 20 00 01

-----------------------------
RX 0x5c bytes:
0000: FF FF FF FF FF FF 00 25 11 06 07 39 08 00 45 00
0010: 00 4E 10 E8 00 00 40 11 E4 C7 C0 A8 01 A0 C0 A8
0020: 01 FF 00 89 00 89 00 3A A8 33 80 DB 01 10 00 01
0030: 00 00 00 00 00 00 20 45 49 45 49 43 41 43 41 43
0040: 41 43 41 43 41 43 41 43 41 43 41 43 41 43 41 43
0050: 41 43 41 43 41 42 4C 00 00 20 00 01

-----------------------------
RX 0x5c bytes:
0000: FF FF FF FF FF FF 00 25 11 06 07 39 08 00 45 00
0010: 00 4E 10 F7 00 00 40 11 E4 B8 C0 A8 01 A0 C0 A8
0020: 01 FF 00 89 00 89 00 3A A8 33 80 DB 01 10 00 01
0030: 00 00 00 00 00 00 20 45 49 45 49 43 41 43 41 43
0040: 41 43 41 43 41 43 41 43 41 43 41 43 41 43 41 43
0050: 41 43 41 43 41 42 4C 00 00 20 00 01

-----------------------------
RX 0xd8 bytes:
0000: FF FF FF FF FF FF 00 25 11 06 07 39 08 00 45 00
0010: 00 CA 11 0A 00 00 40 11 E4 29 C0 A8 01 A0 C0 A8
0020: 01 FF 00 8A 00 8A 00 B6 50 49 11 02 80 DC C0 A8
0030: 01 A0 00 8A 00 A0 00 00 20 45 48 45 50 45 4F 45
0040: 48 43 41 43 41 43 41 43 41 43 41 43 41 43 41 43
0050: 41 43 41 43 41 43 41 41 41 00 20 45 49 45 49 43
0060: 41 43 41 43 41 43 41 43 41 43 41 43 41 43 41 43
0070: 41 43 41 43 41 43 41 43 41 42 4E 00 FF 53 4D 42
0080: 25 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0090: 00 00 00 00 00 00 00 00 00 00 00 00 11 00 00 06
00A0: 00 00 00 00 00 00 00 00 00 E8 03 00 00 00 00 00
00B0: 00 00 00 06 00 56 00 03 00 01 00 01 00 02 00 17
00C0: 00 5C 4D 41 49 4C 53 4C 4F 54 5C 42 52 4F 57 53
00D0: 45 00 09 04 0E 00 00 00

-----------------------------
RX 0x5c bytes:
0000: FF FF FF FF FF FF 00 25 11 06 07 39 08 00 45 00
0010: 00 4E 11 0B 00 00 40 11 E4 A4 C0 A8 01 A0 C0 A8
0020: 01 FF 00 89 00 89 00 3A A8 30 80 DE 01 10 00 01
0030: 00 00 00 00 00 00 20 45 49 45 49 43 41 43 41 43
0040: 41 43 41 43 41 43 41 43 41 43 41 43 41 43 41 43
0050: 41 43 41 43 41 42 4C 00 00 20 00 01

-----------------------------
RX 0x5c bytes:
0000: FF FF FF FF FF FF 00 25 11 06 07 39 08 00 45 00
0010: 00 4E 11 20 00 00 40 11 E4 8F C0 A8 01 A0 C0 A8
0020: 01 FF 00 89 00 89 00 3A A8 30 80 DE 01 10 00 01
0030: 00 00 00 00 00 00 20 45 49 45 49 43 41 43 41 43
0040: 41 43 41 43 41 43 41 43 41 43 41 43 41 43 41 43
0050: 41 43 41 43 41 42 4C 00 00 20 00 01

-----------------------------
RX 0x5c bytes:
0000: FF FF FF FF FF FF 00 25 11 06 07 39 08 00 45 00
0010: 00 4E 11 30 00 00 40 11 E4 7F C0 A8 01 A0 C0 A8
0020: 01 FF 00 89 00 89 00 3A A8 30 80 DE 01 10 00 01
0030: 00 00 00 00 00 00 20 45 49 45 49 43 41 43 41 43
0040: 41 43 41 43 41 43 41 43 41 43 41 43 41 43 41 43
0050: 41 43 41 43 41 42 4C 00 00 20 00 01

-----------------------------
RX 0xd8 bytes:
0000: FF FF FF FF FF FF 00 25 11 06 07 39 08 00 45 00
0010: 00 CA 11 44 00 00 40 11 E3 EF C0 A8 01 A0 C0 A8
0020: 01 FF 00 8A 00 8A 00 B6 50 46 11 02 80 DF C0 A8
0030: 01 A0 00 8A 00 A0 00 00 20 45 48 45 50 45 4F 45
0040: 48 43 41 43 41 43 41 43 41 43 41 43 41 43 41 43
0050: 41 43 41 43 41 43 41 41 41 00 20 45 49 45 49 43
0060: 41 43 41 43 41 43 41 43 41 43 41 43 41 43 41 43
0070: 41 43 41 43 41 43 41 43 41 42 4E 00 FF 53 4D 42
0080: 25 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0090: 00 00 00 00 00 00 00 00 00 00 00 00 11 00 00 06
00A0: 00 00 00 00 00 00 00 00 00 E8 03 00 00 00 00 00
00B0: 00 00 00 06 00 56 00 03 00 01 00 01 00 02 00 17
00C0: 00 5C 4D 41 49 4C 53 4C 4F 54 5C 42 52 4F 57 53
00D0: 45 00 09 04 0E 00 00 00

-----------------------------
RX 0x5c bytes:
0000: FF FF FF FF FF FF 00 25 11 06 07 39 08 00 45 00
0010: 00 4E 11 45 00 00 40 11 E4 6A C0 A8 01 A0 C0 A8
0020: 01 FF 00 89 00 89 00 3A A8 2D 80 E1 01 10 00 01
0030: 00 00 00 00 00 00 20 45 49 45 49 43 41 43 41 43
0040: 41 43 41 43 41 43 41 43 41 43 41 43 41 43 41 43
0050: 41 43 41 43 41 42 4C 00 00 20 00 01

-----------------------------
RX 0x5c bytes:
0000: FF FF FF FF FF FF 00 25 11 06 07 39 08 00 45 00
0010: 00 4E 11 59 00 00 40 11 E4 56 C0 A8 01 A0 C0 A8
0020: 01 FF 00 89 00 89 00 3A A8 2D 80 E1 01 10 00 01
0030: 00 00 00 00 00 00 20 45 49 45 49 43 41 43 41 43
0040: 41 43 41 43 41 43 41 43 41 43 41 43 41 43 41 43
0050: 41 43 41 43 41 42 4C 00 00 20 00 01

-----------------------------
RX 0x5c bytes:
0000: FF FF FF FF FF FF 00 25 11 06 07 39 08 00 45 00
0010: 00 4E 11 69 00 00 40 11 E4 46 C0 A8 01 A0 C0 A8
0020: 01 FF 00 89 00 89 00 3A A8 2D 80 E1 01 10 00 01
0030: 00 00 00 00 00 00 20 45 49 45 49 43 41 43 41 43
0040: 41 43 41 43 41 43 41 43 41 43 41 43 41 43 41 43
0050: 41 43 41 43 41 42 4C 00 00 20 00 01

-----------------------------
RX 0x5c bytes:
0000: FF FF FF FF FF FF 00 25 11 06 07 39 08 00 45 00
0010: 00 4E 11 7C 00 00 40 11 E4 33 C0 A8 01 A0 C0 A8
0020: 01 FF 00 89 00 89 00 3A A5 2B 80 E3 01 10 00 01
0030: 00 00 00 00 00 00 20 45 49 45 49 43 41 43 41 43
0040: 41 43 41 43 41 43 41 43 41 43 41 43 41 43 41 43
0050: 41 43 41 43 41 42 4F 00 00 20 00 01

-----------------------------
RX 0x5c bytes:
0000: FF FF FF FF FF FF 00 25 11 06 07 39 08 00 45 00
0010: 00 4E 11 8B 00 00 40 11 E4 24 C0 A8 01 A0 C0 A8
0020: 01 FF 00 89 00 89 00 3A A5 2B 80 E3 01 10 00 01
0030: 00 00 00 00 00 00 20 45 49 45 49 43 41 43 41 43
0040: 41 43 41 43 41 43 41 43 41 43 41 43 41 43 41 43
0050: 41 43 41 43 41 42 4F 00 00 20 00 01

-----------------------------
RX 0x5c bytes:
0000: FF FF FF FF FF FF 00 25 11 06 07 39 08 00 45 00
0010: 00 4E 11 9A 00 00 40 11 E4 15 C0 A8 01 A0 C0 A8
0020: 01 FF 00 89 00 89 00 3A A5 2B 80 E3 01 10 00 01
0030: 00 00 00 00 00 00 20 45 49 45 49 43 41 43 41 43
0040: 41 43 41 43 41 43 41 43 41 43 41 43 41 43 41 43
0050: 41 43 41 43 41 42 4F 00 00 20 00 01


 

(3) tse 12.1版本已经可以支持IEEE 1588V2精密时间协议(PTP)协议。

   IEEE1588的全称是“网络测量和控制系统的精密时钟同步协议标准”,是通用的提升网络系统定时同步能力的规范,在起草过程中主要参考以太网来编制,使分布式通信网络能够具有严格的定时同步,并且应用于工业自动化系统。基本构思是通过硬件和软件将网络设备(客户机)的内时钟与主控机的主时钟实现同步,提供同步建立时间小于10μs的运用,与未执行IEEE1588协议的以太网延迟时间1,000μs相比,整个网络的定时同步指标有显著的改善。


推荐阅读
  • Asynchronous JavaScript and XML (AJAX) 的流行很大程度上得益于 Google 在其产品如 Google Suggest 和 Google Maps 中的应用。本文将深入探讨 AJAX 在 .NET 环境下的工作原理及其实现方法。 ... [详细]
  • 本文详细介绍如何在SSM(Spring + Spring MVC + MyBatis)框架中实现分页功能。包括分页的基本概念、数据准备、前端分页栏的设计与实现、后端分页逻辑的编写以及最终的测试步骤。 ... [详细]
  • 【MySQL】frm文件解析
    官网说明:http:dev.mysql.comdocinternalsenfrm-file-format.htmlfrm是MySQL表结构定义文件,通常frm文件是不会损坏的,但是如果 ... [详细]
  • 尽管在WPF中工作了一段时间,但在菜单控件的样式设置上遇到了一些基础问题,特别是关于如何正确配置前景色和背景色。 ... [详细]
  • 在Hive中合理配置Map和Reduce任务的数量对于优化不同场景下的性能至关重要。本文探讨了如何控制Hive任务中的Map数量,分析了当输入数据超过128MB时是否会自动拆分,以及Map数量是否越多越好的问题。通过实际案例和实验数据,本文提供了具体的配置建议,帮助用户在不同场景下实现最佳性能。 ... [详细]
  • 本文详细解析了神州数码DCRS5980交换机的基础配置流程和技术要点。首先,通过进入配置模式(`enable`),设置主机名(`hostname 5980`),并创建VLAN,逐步介绍了设备的初始设置步骤。此外,还涵盖了端口配置、IP地址分配及安全设置等关键环节,为用户提供了全面的配置指导。 ... [详细]
  • SSE图像算法优化系列三:超高速导向滤波实现过程纪要(欢迎挑战)
    自从何凯明提出导向滤波后,因为其算法的简单性和有效性,该算法得到了广泛的应用,以至于新版的matlab都将其作为标准自带的函数之一了&#x ... [详细]
  • 笔记说明重学前端是程劭非(winter)【前手机淘宝前端负责人】在极客时间开的一个专栏,每天10分钟,重构你的前端知识体系& ... [详细]
  • 深入解析Unity3D游戏开发中的音频播放技术
    在游戏开发中,音频播放是提升玩家沉浸感的关键因素之一。本文将探讨如何在Unity3D中高效地管理和播放不同类型的游戏音频,包括背景音乐和效果音效,并介绍实现这些功能的具体步骤。 ... [详细]
  • Python3爬虫入门:pyspider的基本使用[python爬虫入门]
    Python学习网有大量免费的Python入门教程,欢迎大家来学习。本文主要通过爬取去哪儿网的旅游攻略来给大家介绍pyspid ... [详细]
  • 探讨了在HTML表单中使用元素代替进行表单提交的方法。 ... [详细]
  • 本文详细介绍了如何在 Ubuntu 14.04 系统上搭建仅使用 CPU 的 Caffe 深度学习框架,包括环境准备、依赖安装及编译过程。 ... [详细]
  • ASP.NET 进度条实现详解
    本文介绍了如何在ASP.NET中使用HTML和JavaScript创建一个动态更新的进度条,并通过Default.aspx页面进行展示。 ... [详细]
  • 本文探讨了如何在 Spring MVC 框架下,通过自定义注解和拦截器机制来实现细粒度的权限管理功能。 ... [详细]
  • 深入解析OSI七层架构与TCP/IP协议体系
    本文详细探讨了OSI七层模型(Open System Interconnection,开放系统互连)及其与TCP/IP协议体系的关系。OSI模型将网络通信过程划分为七个层次,每个层次负责不同的功能,从物理层到应用层逐步实现数据传输和处理。通过对比分析,本文揭示了OSI模型与TCP/IP协议在结构和功能上的异同,为理解现代网络通信提供了全面的视角。 ... [详细]
author-avatar
萱璇妍幽
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有