CN115694774A - Universal clock management system and method for multiple Ethernet interface modes - Google Patents
Universal clock management system and method for multiple Ethernet interface modes Download PDFInfo
- Publication number
- CN115694774A CN115694774A CN202211337852.0A CN202211337852A CN115694774A CN 115694774 A CN115694774 A CN 115694774A CN 202211337852 A CN202211337852 A CN 202211337852A CN 115694774 A CN115694774 A CN 115694774A
- Authority
- CN
- China
- Prior art keywords
- module
- mux
- clock
- delay
- imp
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Landscapes
- Synchronisation In Digital Transmission Systems (AREA)
Abstract
本发明公开了一种对多种以太网接口模式的通用时钟管理系统和方法,包括PLL模块、Devider模块、MUX_1模块、MUX_2模块、MAC模块、MUX_3模块、MUX_4模块、MUX_6模块、MUX_7模块;通过对各种接口模式下时钟信号进行复用以及设置双向管脚,从而减少了信号数量;通过对接收和发送通路进行分离,使接口更加清晰;用户只需要根据自己的需求选择端口模式及工作频率,该结构会自动切换到与其适配的时钟频率;通用时钟管理方法有效解决了时钟结构复杂、接口信号多、用户不易使用的问题;同时通过对RGMII接口两种工作模式下时钟路径和数据路径的分离,保证了物理实现时序的收敛性。
The invention discloses a general clock management system and method for multiple Ethernet interface modes, including a PLL module, a Devider module, a MUX_1 module, a MUX_2 module, a MAC module, a MUX_3 module, a MUX_4 module, a MUX_6 module, and a MUX_7 module; Multiplexing the clock signals in various interface modes and setting bidirectional pins, thereby reducing the number of signals; separating the receiving and transmitting channels to make the interface clearer; users only need to select the port mode and operating frequency according to their own needs , the structure will automatically switch to the clock frequency that matches it; the general clock management method effectively solves the problems of complex clock structure, many interface signals, and difficult use by users; at the same time, the clock path and data path in the two working modes of the RGMII interface The separation ensures the convergence of the physical implementation timing.
Description
技术领域technical field
本发明属于计算机通信及网络领域,具体属于一种对多种以太网接口模式的通用时钟管理系统和方法。The invention belongs to the field of computer communication and network, in particular to a general clock management system and method for multiple Ethernet interface modes.
背景技术Background technique
目前在主流的以太网交换芯片中,为了方便用户使用,其管理端口会支持多种接口模式,如GMII/MII/RGMII/RevMII等,为了实现和对端更好的适配,RGMII接口同时支持nomal和delay两种模式;由于各种接口模式都有单独的工作速率及时钟频率,导致其时钟结构复杂、接口信号多、用户不易使用;而RGMII接口的两种工作模式由于对时序的要求不同,导致物理实现时序很难收敛。At present, in the mainstream Ethernet switch chip, in order to facilitate the use of users, its management port will support multiple interface modes, such as GMII/MII/RGMII/RevMII, etc., in order to achieve better adaptation with the peer end, the RGMII interface supports both There are two modes: nominal and delay; since each interface mode has its own operating rate and clock frequency, the clock structure is complicated, the interface signals are many, and users are not easy to use; and the two operating modes of the RGMII interface have different requirements for timing , causing the physical implementation timing to be difficult to converge.
发明内容Contents of the invention
为了解决现有技术中存在的问题,本发明提供一种对多种以太网接口模式的通用时钟管理系统和方法,用于解决上述问题。In order to solve the problems in the prior art, the present invention provides a general clock management system and method for multiple Ethernet interface modes to solve the above problems.
为实现上述目的,本发明提供如下技术方案:To achieve the above object, the present invention provides the following technical solutions:
一种对多种以太网接口模式的通用时钟管理系统,包括PLL模块、Devider模块、MUX_1模块、MUX_2模块、MAC模块、MUX_3模块、MUX_4模块、MUX_6模块、MUX_7模块;A general clock management system for multiple Ethernet interface modes, including a PLL module, a Devider module, a MUX_1 module, a MUX_2 module, a MAC module, a MUX_3 module, a MUX_4 module, a MUX_6 module, and a MUX_7 module;
所述PLL模块的输出端连接Devider模块的输入端,Devider模块的输出端连接MUX_1模块的输入端,MUX_1模块的输出端连接MUX_2模块的输入端;MUX_2模块的输入端连接双向PAD电路;The output end of the PLL module is connected to the input end of the Devider module, the output end of the Devider module is connected to the input end of the MUX_1 module, and the output end of the MUX_1 module is connected to the input end of the MUX_2 module; the input end of the MUX_2 module is connected to a bidirectional PAD circuit;
所述MUX_2模块用于依据控制信号对GMII/MII/RGMII/RevMII四种接口模式进行切换;所述MUX_2模块的输出端连接MAC模块的输入端;MAC模块用于进行接口模式及速率选择后的采样;The MUX_2 module is used to switch the four interface modes of GMII/MII/RGMII/RevMII according to the control signal; the output end of the MUX_2 module is connected to the input end of the MAC module; the MAC module is used for interface mode and rate selection sampling;
对于接收通路,MUX_2模块中RvMII接口模式选择MUX_1模块输出的时钟频率,GMII/MII/RGMII三种接口模式下选择外部输入的IMP_RXCLK,若是RGMII接口模式,选择nomal和delay切换后的时钟频率;MUX_3模块用于依据IMP接口接收delay模式控制信号进行对IMP_RXCLK和imp_rxclk_d的选择;所述MUX_7模块用于在RGMII接口模式下,进行接收数据和控制信号的选择;For the receiving channel, the RvMII interface mode in the MUX_2 module selects the clock frequency output by the MUX_1 module. In the GMII/MII/RGMII three interface modes, select the external input IMP_RXCLK. If it is the RGMII interface mode, select the clock frequency after nominal and delay switching; MUX_3 The module is used to select IMP_RXCLK and imp_rxclk_d according to the delay mode control signal received by the IMP interface; the MUX_7 module is used to select the received data and control signals in the RGMII interface mode;
对于发送通路,MUX_2模块中GMII/RGMII/RvMII三种接口模式选择MUX_1模块输出的时钟频率,MII接口模式下选择外部输入的IMP_TXCLK,若是RGMII接口模式,选择nomal和delay切换后的时钟频率;For the transmission channel, the GMII/RGMII/RvMII three interface modes in the MUX_2 module select the clock frequency output by the MUX_1 module. In the MII interface mode, select the external input IMP_TXCLK. If it is the RGMII interface mode, select the clock frequency after nominal and delay switching;
所述MUX_4模块用于依据delay模式控制信号对时钟进行选择;所述MUX_6模块用于delay模式控制信号进行发送数据和控制信号的选择。The MUX_4 module is used for selecting the clock according to the delay mode control signal; the MUX_6 module is used for the delay mode control signal to select the sending data and the control signal.
优选的,所述PLL模块用于将输入的25MHz时钟进行10倍频,产生250MHz时钟传输给Devider模块。Preferably, the PLL module is used to multiply the input 25MHz clock by 10 to generate a 250MHz clock and transmit it to the Devider module.
优选的,所述Devider模块用于对PLL模块输出的时钟进行分频,产生125MHz/25MHz/2.5MHz三种时钟。Preferably, the Devider module is used to divide the frequency of the clock output by the PLL module to generate three kinds of clocks of 125MHz/25MHz/2.5MHz.
优选的,所述MUX_1模块用于依据控制信号对Devider模块分频后的125MHz/25MHz/2.5MHz三种时钟频率进行选择。Preferably, the MUX_1 module is used to select three clock frequencies of 125MHz/25MHz/2.5MHz after frequency division of the Devider module according to the control signal.
优选的,还包括Delay模块,所述Delay模块用于对控制信号进行延迟。Preferably, a Delay module is also included, and the Delay module is used to delay the control signal.
优选的,所述MUX_3模块在IMP_RXC_DELAY信号为1时选择时钟imp_rxclk_d,否则选择时钟IMP_RXCLK。Preferably, the MUX_3 module selects the clock imp_rxclk_d when the IMP_RXC_DELAY signal is 1, otherwise selects the clock IMP_RXCLK.
优选的,所述MUX_4模块用于根据IMP接口发送delay模式控制信号IMP_TXC_DELAY对时钟进行选择,产生时钟IMP_GTX_CLK;当IMP_TXC_DELAY信号为1时,选择delay模块后的时钟,否则选择MUX_1模块产生的时钟。Preferably, the MUX_4 module is used to select the clock according to the delay mode control signal IMP_TXC_DELAY sent by the IMP interface to generate the clock IMP_GTX_CLK; when the IMP_TXC_DELAY signal is 1, select the clock after the delay module, otherwise select the clock generated by the MUX_1 module.
优选的,所述MUX_6模块用于根据IMP接口发送delay模式控制信号IMP_TXC_DELAY进行对发送数据和控制信号的选择,产生TXD[3:0]和TX_CTRL;Preferably, the MUX_6 module is used to send the delay mode control signal IMP_TXC_DELAY according to the IMP interface to select the transmission data and control signals, and generate TXD[3:0] and TX_CTRL;
当控制信号IMP_TXC_DELAY为0时,选择MAC模块产生的mac_txd[3:0]和mac_tx_ctrl信号,当控制信号IMP_TXC_DELAY为1时,选择Delay模块产生的mac_txd_d[3:0]和mac_tx_ctrl_d信号。When the control signal IMP_TXC_DELAY is 0, select the mac_txd[3:0] and mac_tx_ctrl signals generated by the MAC module. When the control signal IMP_TXC_DELAY is 1, select the mac_txd_d[3:0] and mac_tx_ctrl_d signals generated by the Delay module.
优选的,所述MUX_7模块用于根据IMP接口接收delay模式控制信号IMP_RXC_DELAY进行接收数据和控制信号的选择,产生mac_rxd[3:0]和mac_rx_ctrl信号给MAC模块;Preferably, the MUX_7 module is used to receive the delay mode control signal IMP_RXC_DELAY according to the IMP interface to select the received data and control signals, and generate mac_rxd[3:0] and mac_rx_ctrl signals to the MAC module;
当控制信号IMP_RXC_DELAY为1时,选择Delay模块产生的rxd_d[3:0]和rx_ctrl_d信号,当控制信号IMP_RXC_DELAY为0时,选择外部输入的RXD[3:0]和RX_CTRL信号。When the control signal IMP_RXC_DELAY is 1, select the rxd_d[3:0] and rx_ctrl_d signals generated by the Delay module, and when the control signal IMP_RXC_DELAY is 0, select the externally input RXD[3:0] and RX_CTRL signals.
一种对多种以太网接口模式的通用时钟管理方法,包括以下过程,A general clock management method for multiple Ethernet interface modes, comprising the following processes,
PLL模块对输入的时钟进行倍频并输出至Devider模块,Devider模块对PLL模块输出的时钟进行分频并传输至MUX_1模块;MUX_1模块对Devider模块分频后的时钟进行选择,并传输至MUX_2模块;The PLL module multiplies the frequency of the input clock and outputs it to the Devider module. The Devider module divides the frequency of the clock output by the PLL module and transmits it to the MUX_1 module; the MUX_1 module selects the frequency-divided clock of the Devider module and transmits it to the MUX_2 module. ;
MUX_2模块依据控制信号对GMII/MII/RGMII/RevMII四种接口模式进行切换;MAC模块用于对GMII/MII/RGMII/RevMII四种接口模式及10/100/1000Mbps速率选择后的时钟和数据采样;The MUX_2 module switches the four interface modes of GMII/MII/RGMII/RevMII according to the control signal; the MAC module is used to sample the clock and data after the four interface modes of GMII/MII/RGMII/RevMII and 10/100/1000Mbps rate selection ;
对于接收通路,RvMII接口模式选择MUX_1模块输出的时钟频率,GMII/MII/RGMII三种接口模式下选择外部输入的IMP_RXCLK,若是RGMII接口模式,选择nomal和delay切换后的时钟频率;For the receiving channel, the RvMII interface mode selects the clock frequency output by the MUX_1 module. In the GMII/MII/RGMII three interface modes, select the external input IMP_RXCLK. If it is the RGMII interface mode, select the clock frequency after nominal and delay switching;
对于发送通路,GMII/RGMII/RvMII三种接口模式选择MUX_1模块输出的时钟频率,MII接口模式下选择外部输入的IMP_TXCLK,若是RGMII接口模式,选择nomal和delay切换后的时钟频率。For the transmission channel, the GMII/RGMII/RvMII three interface modes select the clock frequency output by the MUX_1 module. In the MII interface mode, select the external input IMP_TXCLK. If the RGMII interface mode, select the clock frequency after nominal and delay switching.
与现有技术相比,本发明具有以下有益的技术效果:Compared with the prior art, the present invention has the following beneficial technical effects:
本发明提供一种对多种以太网接口模式的通用时钟管理系统,通过对各种接口模式下时钟信号进行复用以及设置双向管脚,从而减少了信号数量;通过对接收和发送通路进行分离,使接口更加清晰;用户只需要根据自己的需求选择端口模式及工作频率,该结构会自动切换到与其适配的时钟频率;针对RGMII接口的两种工作模式,为了保证物理实现时序的收敛性,采用将时钟路径和数据路径分离的设计结构。The present invention provides a general clock management system for multiple Ethernet interface modes, by multiplexing clock signals in various interface modes and setting bidirectional pins, thereby reducing the number of signals; by separating the receiving and sending paths , making the interface clearer; users only need to select the port mode and operating frequency according to their own needs, and the structure will automatically switch to the clock frequency that matches it; for the two operating modes of the RGMII interface, in order to ensure the convergence of the physical implementation timing , using a design structure that separates the clock path from the data path.
本发明的一种对多种以太网接口模式的通用时钟管理方法,支持各种常用的以太网接口模式,能够实现各种工作模式与速率组合下的时钟切换,接口信号简单、清晰、数量少,具有很高的工程应用价值。本发明通过对该发明进行功能仿真,并与传统的以太网交换电路结构进行比较。在测试环境中,随机产生1000组报文,端口模式进行GMII/MII/RGMII/RevMII切换,通讯速率进行10/100/1000Mbps切换,并分别采用传统的以太网交换电路结构和该发明提出的通用时钟管理方法对这些报文任务进行交换转发;其中,端口数量为7,工作时钟为2.5/25/125MHz,数据位宽为8位,采用连续数据通讯的方式。仿真结果表明,通用时钟管理方法有效解决了时钟结构复杂、接口信号多、用户不易使用的问题;同时通过对RGMII接口两种工作模式下时钟路径和数据路径的分离,保证了物理实现时序的收敛性。A general clock management method for multiple Ethernet interface modes of the present invention supports various commonly used Ethernet interface modes, and can realize clock switching under various working modes and speed combinations, and the interface signals are simple, clear, and small in number , has high engineering application value. The invention performs function simulation on the invention and compares it with the traditional Ethernet switching circuit structure. In the test environment, 1000 groups of messages are randomly generated, the port mode is switched to GMII/MII/RGMII/RevMII, and the communication rate is switched to 10/100/1000Mbps, and the traditional Ethernet switching circuit structure and the general The clock management method exchanges and forwards these message tasks; wherein, the number of ports is 7, the working clock is 2.5/25/125MHz, the data bit width is 8 bits, and the continuous data communication method is adopted. The simulation results show that the general clock management method effectively solves the problems of complex clock structure, many interface signals, and difficult use by users; at the same time, the convergence of the physical implementation timing is ensured by separating the clock path and data path in the two working modes of the RGMII interface sex.
附图说明Description of drawings
图1为管理端口接收通路时钟结构图;Fig. 1 is a management port receiving channel clock structure diagram;
图2为管理端口发送通路时钟结构图;Fig. 2 is a clock structure diagram of the management port sending channel;
图3为管理端口RGMII模式发送通路时钟和数据隔离结构图;Fig. 3 is a management port RGMII mode sending path clock and data isolation structure diagram;
图4为管理端口RGMII模式接收通路时钟和数据隔离结构图。Figure 4 is a structural diagram of the clock and data isolation of the RGMII mode receiving channel of the management port.
具体实施方式Detailed ways
下面结合具体的实施例对本发明做进一步的详细说明,所述是对本发明的解释而不是限定。The present invention will be further described in detail below in conjunction with specific embodiments, which are explanations of the present invention rather than limitations.
实施例Example
本发明的一种对多种以太网接口模式的通用时钟管理系统,主要包括PLL模块、Devider模块、MUX_1模块、MUX_2模块、MAC模块、MUX_3模块、Delay模块、MUX_4模块、MUX_5模块、MUX_6模块、MUX_7模块。其结构如图1、图2、图3和图4所示;通过图1和图2结构实现了GMII/MII/RGMII/RevMII四种接口模式及10/100/1000Mbps速率下的管脚复用。若不进行管脚复用,则GMII接口模式需要3个时钟信号,MII接口模式需要2个时钟信号,RGMII接口模式需要3个时钟信号,RvMII接口模式需要2个时钟信号,共计10个时钟信号,复用后4种接口模式只需要3个时钟信号,复用后的时钟管脚信号如下表所示:A general clock management system for multiple Ethernet interface modes of the present invention mainly includes a PLL module, a Devider module, a MUX_1 module, a MUX_2 module, a MAC module, a MUX_3 module, a Delay module, a MUX_4 module, a MUX_5 module, a MUX_6 module, MUX_7 module. Its structure is shown in Figure 1, Figure 2, Figure 3 and Figure 4; through the structure of Figure 1 and Figure 2, four interface modes of GMII/MII/RGMII/RevMII and pin multiplexing at 10/100/1000Mbps rate are realized . If pin multiplexing is not performed, the GMII interface mode requires 3 clock signals, the MII interface mode requires 2 clock signals, the RGMII interface mode requires 3 clock signals, and the RvMII interface mode requires 2 clock signals, a total of 10 clock signals , the 4 interface modes after multiplexing only need 3 clock signals, and the multiplexed clock pin signals are shown in the following table:
通过图3和图4结构实现了RGMII接口在normal和delay两种模式下时钟路径和数据路径的分离,从而保证了物理实现时序的收敛性。Through the structures shown in Figure 3 and Figure 4, the separation of the clock path and the data path in the normal and delay modes of the RGMII interface is realized, thereby ensuring the convergence of the physical implementation timing.
在图3中,nomal模式下发送数据和控制信号路径为MAC模块和MUX_6模块,发送时钟路径为MUX_4模块;只需要对这两条路径进行时序检查;在delay模式下发送数据和控制信号路径为MAC模块、Delay模块和MUX_6模块,发送时钟路径为Delay模块和MUX_4模块;只需要对这两条路径进行时序检查。In Figure 3, the sending data and control signal paths in normal mode are the MAC module and the MUX_6 module, and the sending clock path is the MUX_4 module; only these two paths need to be checked for timing; in the delay mode, the sending data and control signal paths are For the MAC module, Delay module and MUX_6 module, the transmission clock path is the Delay module and MUX_4 module; only these two paths need to be checked for timing.
在图4中,nomal模式下接收数据和控制信号路径为MUX_7模块和MAC模块,接收时钟路径为MUX_3模块;只需要对这两条路径进行时序检查;delay模式下接收数据和控制信号路径为Delay模块、MUX_7模块和MAC模块,接收时钟路径为Delay模块和MUX_3模块;只需要对这两条路径进行时序检查。In Figure 4, the receiving data and control signal paths in normal mode are the MUX_7 module and the MAC module, and the receiving clock path is the MUX_3 module; only these two paths need to be checked for timing; in the delay mode, the receiving data and control signal paths are Delay module, MUX_7 module and MAC module, the receiving clock path is the Delay module and MUX_3 module; only these two paths need to be checked for timing.
PLL模块主要功能是实现对输入的25MHz时钟进行10倍频,产生250MHz时钟给Devider模块。The main function of the PLL module is to multiply the input 25MHz clock by 10 and generate a 250MHz clock for the Devider module.
Devider模块主要实现对PLL模块输出的时钟进行分频,产生125MHz/25MHz/2.5MHz三种时钟,125MHz对应1000Mbps通讯速率,25MHz对应100Mbps通讯速率,2.5MHz对应10Mbps通讯速率。The Devider module mainly implements the frequency division of the clock output by the PLL module to generate three clocks of 125MHz/25MHz/2.5MHz. 125MHz corresponds to a communication rate of 1000Mbps, 25MHz corresponds to a communication rate of 100Mbps, and 2.5MHz corresponds to a communication rate of 10Mbps.
MUX_1模块主要根据控制信号IMP_SPD_SEL[1:0]对Devider模块分频后的125MHz/25MHz/2.5MHz三种时钟频率进行选择,IMP_SPD_SEL[1:0]:00=10Mbps,选择2.5MHz工作时钟;01=100Mbps,选择25MHz工作时钟;10=1000Mbps(default),选择125MHz工作时钟;11=lllegal。The MUX_1 module mainly selects the three clock frequencies of 125MHz/25MHz/2.5MHz after the frequency division of the Devider module according to the control signal IMP_SPD_SEL[1:0]. IMP_SPD_SEL[1:0]: 00=10Mbps, select the 2.5MHz working clock; 01 =100Mbps, choose 25MHz working clock; 10=1000Mbps (default), choose 125MHz working clock; 11=lllegal.
MUX_2模块主要根据控制信号IMP_MODE[1:0]对GMII/MII/RGMII/RevMII四种接口模式进行切换。IMP_MODE[1:0]:00=RGMII mode,01=MII mode,10=RvMII mode,11=GMII mode。The MUX_2 module mainly switches the four interface modes of GMII/MII/RGMII/RevMII according to the control signal IMP_MODE[1:0]. IMP_MODE[1:0]: 00=RGMII mode, 01=MII mode, 10=RvMII mode, 11=GMII mode.
对于接收通路,RvMII接口模式选择MUX_1模块输出的时钟频率,GMII/MII/RGMII三种接口模式下选择外部输入的IMP_RXCLK(该双向管脚方向为输入),若是RGMII接口模式,选择nomal和delay切换后的时钟频率。For the receiving channel, the RvMII interface mode selects the clock frequency output by the MUX_1 module. In the GMII/MII/RGMII three interface modes, select the external input IMP_RXCLK (the direction of the bidirectional pin is input). If it is the RGMII interface mode, select nominal and delay switching after the clock frequency.
对于发送通路,GMII/RGMII/RvMII三种接口模式选择MUX_1模块输出的时钟频率,MII接口模式下选择外部输入的IMP_TXCLK(该双向管脚方向为输入),若是RGMII接口模式,选择nomal和delay切换后的时钟频率。For the transmission channel, the GMII/RGMII/RvMII three interface modes select the clock frequency output by the MUX_1 module. In the MII interface mode, select the external input IMP_TXCLK (the direction of the bidirectional pin is input). If it is the RGMII interface mode, select nominal and delay switching after the clock frequency.
MAC模块主要实现GMII/MII/RGMII/RevMII四种接口模式及10/100/1000Mbps速率选择后的时钟和数据采样,对于接收通路来说,若工作在RGMII接口模式,时钟和数据是根据控制信号IMP_RXC_DELAY切换之后的。The MAC module mainly implements GMII/MII/RGMII/RevMII four interface modes and clock and data sampling after 10/100/1000Mbps rate selection. For the receiving channel, if it works in RGMII interface mode, the clock and data are based on the control signal After the IMP_RXC_DELAY switch.
MUX_3模块主要根据IMP接口接收delay模式控制信号IMP_RXC_DELAY实现对IMP_RXCLK和imp_rxclk_d的选择。IMP_RXC_DELAY信号为1时选择时钟imp_rxclk_d,否则选择时钟IMP_RXCLK(该双向管脚方向为输入),从而实现了RGMII接口在normal和delay两种模式下接收时钟路径的分离。The MUX_3 module mainly receives the delay mode control signal IMP_RXC_DELAY according to the IMP interface to realize the selection of IMP_RXCLK and imp_rxclk_d. When the IMP_RXC_DELAY signal is 1, the clock imp_rxclk_d is selected, otherwise the clock IMP_RXCLK is selected (the direction of the bidirectional pin is input), thus realizing the separation of the receiving clock path of the RGMII interface in normal and delay modes.
Delay模块主要实现对IMP_GTX_CLK、TXD[3:0]、TX_CTRL、IMP_RXCLK、RXD[3:0]、RX_CTRL等信号的延迟,延迟的时间颗粒根据具体的时序要求,从而实现了RGMII接口在delay模式下的路径分离。The Delay module mainly implements the delay of signals such as IMP_GTX_CLK, TXD[3:0], TX_CTRL, IMP_RXCLK, RXD[3:0], RX_CTRL, etc., and the delayed time particles are based on specific timing requirements, thus realizing the RGMII interface in delay mode path separation.
MUX_4模块主要根据IMP接口发送delay模式控制信号IMP_TXC_DELAY实现对时钟进行选择,产生时钟IMP_GTX_CLK。IMP_TXC_DELAY信号为1时选择delay模块后的时钟,否则选择MUX_1模块产生的时钟,从而实现了RGMII接口在normal和delay两种模式下发送时钟路径的分离。The MUX_4 module mainly sends the delay mode control signal IMP_TXC_DELAY according to the IMP interface to select the clock and generate the clock IMP_GTX_CLK. When the IMP_TXC_DELAY signal is 1, the clock after the delay module is selected, otherwise the clock generated by the MUX_1 module is selected, thereby realizing the separation of the sending clock path of the RGMII interface in normal and delay modes.
MUX_5模块主要根据控制信号IMP_MODE[1:0]实现IMP_GTX_CLK时钟在GMII和RGMII两种模式下的选择,IMP_MODE[1:0]:00=RGMII mode,选择MUX_4模块产生的时钟;01=MII mode;10=RvMII mode;11=GMII mode,选择Devider模块产生的125MHz时钟。The MUX_5 module mainly realizes the selection of the IMP_GTX_CLK clock in GMII and RGMII modes according to the control signal IMP_MODE[1:0]. IMP_MODE[1:0]: 00=RGMII mode, select the clock generated by the MUX_4 module; 01=MII mode; 10=RvMII mode; 11=GMII mode, select the 125MHz clock generated by the Devider module.
MUX_6模块主要根据IMP接口发送delay模式控制信号IMP_TXC_DELAY实现发送数据和控制信号的选择,产生TXD[3:0]和TX_CTRL。当控制信号IMP_TXC_DELAY为0时,选择MAC模块产生的mac_txd[3:0]和mac_tx_ctrl信号,当控制信号IMP_TXC_DELAY为1时,选择Delay模块产生的mac_txd_d[3:0]和mac_tx_ctrl_d信号;从而实现了RGMII接口在normal和delay两种模式下发送数据和控制信号路径的分离。The MUX_6 module mainly sends the delay mode control signal IMP_TXC_DELAY according to the IMP interface to realize the selection of sending data and control signals, and generates TXD[3:0] and TX_CTRL. When the control signal IMP_TXC_DELAY is 0, select the mac_txd[3:0] and mac_tx_ctrl signals generated by the MAC module, and when the control signal IMP_TXC_DELAY is 1, select the mac_txd_d[3:0] and mac_tx_ctrl_d signals generated by the Delay module; thus realizing RGMII The interface transmits data and separates control signal paths in two modes, normal and delay.
MUX_7模块主要根据IMP接口接收delay模式控制信号IMP_RXC_DELAY实现接收数据和控制信号的选择,产生mac_rxd[3:0]和mac_rx_ctrl信号给MAC模块。当控制信号IMP_RXC_DELAY为1时,选择Delay模块产生的rxd_d[3:0]和rx_ctrl_d信号,当控制信号IMP_RXC_DELAY为0时,选择外部输入的RXD[3:0]和RX_CTRL信号;从而实现了RGMII接口在normal和delay两种模式下接收数据和控制信号路径的分离。The MUX_7 module mainly receives the delay mode control signal IMP_RXC_DELAY according to the IMP interface to realize the selection of received data and control signals, and generates mac_rxd[3:0] and mac_rx_ctrl signals to the MAC module. When the control signal IMP_RXC_DELAY is 1, select the rxd_d[3:0] and rx_ctrl_d signals generated by the Delay module, and when the control signal IMP_RXC_DELAY is 0, select the externally input RXD[3:0] and RX_CTRL signals; thereby realizing the RGMII interface Separation of receive data and control signal paths in both normal and delay modes.
本发明是通过对各种模式下时钟信号进行复用以及设置双向管脚,从而减少了信号数量;通过对接收和发送通路进行分离,使接口更加清晰;用户只需要根据自己的需求选择端口模式及工作频率,该结构会自动切换到与其适配的时钟频率;针对RGMII接口的两种工作模式,通过将时钟路径和数据路径分离的设计结构保证了物理实现时序的收敛性。The present invention reduces the number of signals by multiplexing the clock signals in various modes and setting bidirectional pins; by separating the receiving and sending paths, the interface is clearer; the user only needs to select the port mode according to his own needs And the working frequency, the structure will automatically switch to the clock frequency that is adapted to it; for the two working modes of the RGMII interface, the design structure that separates the clock path and the data path ensures the convergence of the physical implementation timing.
本发明的一种对多种以太网接口模式的通用时钟管理方法,支持各种常用的以太网接口模式,能够实现各种工作模式与速率组合下的时钟切换,接口信号简单、清晰、数量少,具有很高的工程应用价值。A general clock management method for multiple Ethernet interface modes of the present invention supports various commonly used Ethernet interface modes, and can realize clock switching under various working modes and speed combinations, and the interface signals are simple, clear, and small in number , has high engineering application value.
通过对该发明进行功能仿真,并与传统的以太网交换电路结构进行比较。在测试环境中,随机产生1000组报文,端口模式进行GMII/MII/RGMII/RevMII切换,通讯速率进行10/100/1000Mbps切换,并分别采用传统的以太网交换电路结构和该发明提出的通用时钟管理方法对这些报文任务进行交换转发;其中,端口数量为7,工作时钟为2.5/25/125MHz,数据位宽为8位,采用连续数据通讯的方式。仿真结果表明,通用时钟管理方法有效解决了时钟结构复杂、接口信号多、用户不易使用的问题;同时通过对RGMII接口两种工作模式下时钟路径和数据路径的分离,保证了物理实现时序的收敛性。Through the function simulation of the invention, it is compared with the traditional Ethernet switching circuit structure. In the test environment, 1000 groups of messages are randomly generated, the port mode is switched to GMII/MII/RGMII/RevMII, and the communication rate is switched to 10/100/1000Mbps, and the traditional Ethernet switching circuit structure and the general The clock management method exchanges and forwards these message tasks; wherein, the number of ports is 7, the working clock is 2.5/25/125MHz, the data bit width is 8 bits, and the continuous data communication method is adopted. The simulation results show that the general clock management method effectively solves the problems of complex clock structure, many interface signals, and difficult use by users; at the same time, the convergence of the physical implementation timing is ensured by separating the clock path and data path in the two working modes of the RGMII interface sex.
本发明的管理端口接收通路时钟结构图如图1所示,管理端口发送通路时钟结构图如图2所示,IMP_RXC_Delay和IMP_TXC_Delay信号由外部输入管脚控制;管理端口RGMII模式发送通路时钟和数据隔离结构如图3所示,接收通路时钟和数据隔离结构如图4所示。The management port receiving path clock structure diagram of the present invention is as shown in Figure 1, and the management port sending path clock structure diagram is as shown in Figure 2, and the IMP_RXC_Delay and IMP_TXC_Delay signals are controlled by external input pins; the management port RGMII mode transmits path clock and data isolation The structure is shown in Figure 3, and the receiving path clock and data isolation structure is shown in Figure 4.
下面对图中编号模块进行说明:The numbered modules in the figure are described below:
1号模块为PLL模块,其数量为2,在图1和图2复用。主要实现对输入的25MHz时钟进行10倍频,产生250MHz时钟。Module No. 1 is a PLL module, the number of which is 2, and is multiplexed in Fig. 1 and Fig. 2 . It mainly realizes that the input 25MHz clock is multiplied by 10 to generate a 250MHz clock.
2号模块为Devider模块,其数量为2,在图1和图2复用。主要实现对模块1输出的时钟进行分频,产生125MHz/25MHz/2.5MHz三种时钟。The No. 2 module is a Devider module, the number of which is 2, and it is reused in Figure 1 and Figure 2. It mainly implements the frequency division of the clock output by
3号模块为MUX_1模块,其数量为2,在图1和图2复用。主要根据IMP_SPD_SEL[1:0]信号对125MHz/25MHz/2.5MHz三种时钟进行选择。Module No. 3 is MUX_1 module, its number is 2, and it is multiplexed in Figure 1 and Figure 2. Mainly select the three clocks of 125MHz/25MHz/2.5MHz according to the IMP_SPD_SEL[1:0] signal.
4号模块为MUX_2模块,其数量为2,在图1和图2复用。主要根据IMP_MODE[1:0]信号对GMII/MII/RGMII/RevMII四种接口模式进行切换。Module No. 4 is the MUX_2 module, its quantity is 2, and it is multiplexed in Figure 1 and Figure 2. The four interface modes of GMII/MII/RGMII/RevMII are switched mainly according to the IMP_MODE[1:0] signal.
5号模块为MAC模块,其数量为4,在图1、图2、图3和图4复用。主要实现接口模式及速率选择后的采样。Module No. 5 is a MAC module, the number of which is 4, and is multiplexed in Figure 1, Figure 2, Figure 3 and Figure 4. It mainly implements sampling after interface mode and rate selection.
6号模块为MUX_3模块,其数量为2,在图1和图4复用。主要根据IMP_RXC_DELAY信号实现对IMP_RXCLK和imp_rxclk_d的选择。Module No. 6 is the MUX_3 module, its number is 2, and it is multiplexed in Figure 1 and Figure 4. The selection of IMP_RXCLK and imp_rxclk_d is mainly realized according to the IMP_RXC_DELAY signal.
7号模块为Delay模块,其数量为6,在图1、图2、图3和图4复用。主要实现对IMP_GTX_CLK、TXD[3:0]、TX_CTRL、IMP_RXCLK、RXD[3:0]、RX_CTRL等信号的延迟。Module No. 7 is a Delay module, the number of which is 6, and is reused in Figure 1, Figure 2, Figure 3 and Figure 4. It mainly realizes the delay of signals such as IMP_GTX_CLK, TXD[3:0], TX_CTRL, IMP_RXCLK, RXD[3:0], RX_CTRL, etc.
8号模块为MUX_4模块,其数量为2,在图2和图3复用。主要根据IMP_TXC_DELAY信号实现对时钟进行选择,产生IMP_GTX_CLK。
9号模块为MUX_5模块,其数量为1。主要实现IMP_GTX_CLK时钟在GMII和RGMII两种模式下的选择。Module No. 9 is the MUX_5 module, and its quantity is 1. It mainly realizes the selection of IMP_GTX_CLK clock in GMII and RGMII modes.
10号模块为MUX_6模块,其数量为1。主要根据IMP_TXC_DELAY信号实现发送数据和控制信号的选择,产生TXD[3:0]和TX_CTRL。
11号模块为MUX_7模块,其数量为1。主要根据IMP_RXC_DELAY信号实现RXD[3:0]、RX_CTRL与rxd_d[3:0]、rx_ctrl的选择,产生mac_rxd[3:0]和mac_rx_ctrl信号给5号模块。
本发明可用于以太网交换器、网络服务器、计算机数据存储系统等领域的以太网交换芯片设计中。The invention can be used in the design of Ethernet switching chips in the fields of Ethernet switches, network servers, computer data storage systems and the like.
目前在主流的以太网交换芯片中,为了方便用户使用,其管理端口会支持多种接口模式,如GMII/MII/RGMII/RevMII等,为了实现和对端更好的适配,RGMII接口同时支持nomal和delay两种模式;由于各种接口模式都有单独的工作速率及时钟频率,导致其时钟结构复杂、接口信号多、用户不易使用;而RGMII接口的两种工作模式由于对时序的要求不同,导致物理实现时序很难收敛。At present, in the mainstream Ethernet switch chip, in order to facilitate the use of users, its management port will support multiple interface modes, such as GMII/MII/RGMII/RevMII, etc., in order to achieve better adaptation with the peer end, the RGMII interface supports both There are two modes: nominal and delay; since each interface mode has its own operating rate and clock frequency, the clock structure is complicated, the interface signals are many, and users are not easy to use; and the two operating modes of the RGMII interface have different requirements for timing , causing the physical implementation timing to be difficult to converge.
采用本发明提出的一种对多种以太网接口模式的通用时钟管理方法,通过对各种模式下时钟信号进行复用以及设置双向管脚,从而减少了信号数量;通过对接收和发送通路进行分离,使接口更加清晰;用户只需要根据自己的需求选择端口模式及工作频率,该结构会自动切换到与其适配的时钟频率;针对RGMII接口的两种工作模式,为了保证物理实现时序的收敛性,采用将时钟路径和数据路径分离的设计结构。A general clock management method for multiple Ethernet interface modes proposed by the present invention can reduce the number of signals by multiplexing clock signals in various modes and setting bidirectional pins; Separation makes the interface clearer; users only need to select the port mode and operating frequency according to their own needs, and the structure will automatically switch to the clock frequency that matches it; for the two operating modes of the RGMII interface, in order to ensure the convergence of the physical implementation timing Reliability, using a design structure that separates the clock path from the data path.
根据上述方案,用Verilog语言对本发明中各个模块的逻辑设计进行描述,并将其与网络设备中的其它设备进行系统级的验证。验证结果表明,本发明实现了设计功能,且性能满足预期。According to the above solution, use Verilog language to describe the logic design of each module in the present invention, and perform system-level verification with other devices in the network device. The verification result shows that the present invention realizes the designed function, and the performance meets expectations.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211337852.0A CN115694774B (en) | 2022-10-28 | 2022-10-28 | Universal clock management system and method for multiple Ethernet interface modes |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211337852.0A CN115694774B (en) | 2022-10-28 | 2022-10-28 | Universal clock management system and method for multiple Ethernet interface modes |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115694774A true CN115694774A (en) | 2023-02-03 |
CN115694774B CN115694774B (en) | 2025-04-08 |
Family
ID=85045465
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211337852.0A Active CN115694774B (en) | 2022-10-28 | 2022-10-28 | Universal clock management system and method for multiple Ethernet interface modes |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115694774B (en) |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030084195A1 (en) * | 2001-08-24 | 2003-05-01 | Dove Daniel J. | Reduced pin-count system interface for gigabit ethernet physical layer devices |
CN1988459A (en) * | 2006-12-29 | 2007-06-27 | 杭州华为三康技术有限公司 | Method and device for communication between processors in network device |
CN105227288A (en) * | 2014-06-30 | 2016-01-06 | 惠州市伟乐科技股份有限公司 | GMII data transmission method for uplink and device |
JP2016178425A (en) * | 2015-03-19 | 2016-10-06 | キヤノン株式会社 | Information processing apparatus and delay adjustment method |
CN107294731A (en) * | 2017-06-28 | 2017-10-24 | 中国电子科技集团公司第五十八研究所 | A kind of changeable interface circuit for Gigabit Ethernet controller |
CN110188052A (en) * | 2019-05-15 | 2019-08-30 | 晶晨半导体(上海)股份有限公司 | It is a kind of for improving the method and device of RGMII interface stability |
US10944407B1 (en) * | 2020-06-03 | 2021-03-09 | Stmicroelectronics International N.V. | Source synchronous interface with selectable delay on source and delay on destination control |
CN112492404A (en) * | 2020-11-19 | 2021-03-12 | 山东云海国创云计算装备产业创新中心有限公司 | Multiplexing interface device and MAC system |
US20210360093A1 (en) * | 2020-05-13 | 2021-11-18 | National University Of Defense Technology | Multimode interconnection interface controller for converged network |
-
2022
- 2022-10-28 CN CN202211337852.0A patent/CN115694774B/en active Active
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030084195A1 (en) * | 2001-08-24 | 2003-05-01 | Dove Daniel J. | Reduced pin-count system interface for gigabit ethernet physical layer devices |
CN1988459A (en) * | 2006-12-29 | 2007-06-27 | 杭州华为三康技术有限公司 | Method and device for communication between processors in network device |
CN105227288A (en) * | 2014-06-30 | 2016-01-06 | 惠州市伟乐科技股份有限公司 | GMII data transmission method for uplink and device |
JP2016178425A (en) * | 2015-03-19 | 2016-10-06 | キヤノン株式会社 | Information processing apparatus and delay adjustment method |
CN107294731A (en) * | 2017-06-28 | 2017-10-24 | 中国电子科技集团公司第五十八研究所 | A kind of changeable interface circuit for Gigabit Ethernet controller |
CN110188052A (en) * | 2019-05-15 | 2019-08-30 | 晶晨半导体(上海)股份有限公司 | It is a kind of for improving the method and device of RGMII interface stability |
US20210360093A1 (en) * | 2020-05-13 | 2021-11-18 | National University Of Defense Technology | Multimode interconnection interface controller for converged network |
US10944407B1 (en) * | 2020-06-03 | 2021-03-09 | Stmicroelectronics International N.V. | Source synchronous interface with selectable delay on source and delay on destination control |
CN113765514A (en) * | 2020-06-03 | 2021-12-07 | 意法半导体国际有限公司 | Source synchronous interface with selectable source-side delay and destination-side delay control |
CN112492404A (en) * | 2020-11-19 | 2021-03-12 | 山东云海国创云计算装备产业创新中心有限公司 | Multiplexing interface device and MAC system |
Non-Patent Citations (2)
Title |
---|
李岚;苏敏;程丽彬;段江霞;: "基于FPGA多接口的千兆以太网IP核设计", 电子信息对抗技术, no. 02, 15 March 2020 (2020-03-15) * |
霍卫涛;郭蒙;廖寅龙;: "一种基于AMBA协议的双通道以太网MAC的设计与实现", 信息通信, no. 02, 15 February 2018 (2018-02-15) * |
Also Published As
Publication number | Publication date |
---|---|
CN115694774B (en) | 2025-04-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7782888B2 (en) | Configurable ports for a host ethernet adapter | |
KR100460149B1 (en) | Apparatus and Method for arbitrating data transmission of devices based on SMII standard | |
CN109947681B (en) | Serializer/deserializer and high-speed interface protocol exchange chip | |
US7672326B1 (en) | Serial media independent interface with double data rate | |
US6430695B1 (en) | Network transceiver having circuitry for referencing transmit data to a selected input clock | |
KR20030085141A (en) | A communication system | |
JP2000078204A (en) | High-speed communication switch circuit | |
JP2004532457A (en) | Network to increase transmission link layer core speed | |
US7411946B2 (en) | Network monitor and method | |
US7474612B1 (en) | Multi-function bypass port and port bypass circuit | |
EP3106995B1 (en) | Techniques for providing data rate changes | |
US5832216A (en) | Network adapter having single ported memory which is accessible by network and peripheral bus on a time division multiplexed (TDM) basis | |
US7782929B2 (en) | Multiple transmission protocol transceiver | |
EP1249971B1 (en) | Network Interface Using Programmable Delay and Frequency Doubler | |
US7403548B2 (en) | System for interfacing media access control module to small form factor pluggable module | |
US7254647B2 (en) | Network for decreasing transmit link layer core speed | |
JPH11136271A (en) | Plural segments repeater | |
CN115694774B (en) | Universal clock management system and method for multiple Ethernet interface modes | |
WO2018196833A1 (en) | Message sending method and message receiving method and apparatus | |
EP1361777A2 (en) | An across-device communication protocol | |
US20190327178A1 (en) | System and method for maximizing port bandwidth with multi-channel data paths | |
US20030070033A9 (en) | Parallel and point-to-point data bus architecture | |
US8831017B2 (en) | Data output adjustment apparatus, data output adjustment method, RGMII network system and RGMII network communication path change method | |
US20080155142A1 (en) | System for transmitting data between transmitter and receiver modules on a channel provided with a flow control link | |
Anjum et al. | VHDL based Serial Communication Interface Inspired by 9-Bit Uart |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20250425 Address after: 710000 No. 198, Taibai South Road, Yanta District, Xi'an City, Shaanxi Province Patentee after: XI'AN MICROELECTRONICS TECHNOLOGY INSTITUTE Country or region after: China Patentee after: CHINA AEROSPACE TIMES ELECTRONICS Co.,Ltd. Address before: 710000 No. 198, Taibai South Road, Yanta District, Xi'an City, Shaanxi Province Patentee before: XI'AN MICROELECTRONICS TECHNOLOGY INSTITUTE Country or region before: China |