CN109391604A - A kind of bridge-set and management system managing data input and output agreement - Google Patents
A kind of bridge-set and management system managing data input and output agreement Download PDFInfo
- Publication number
- CN109391604A CN109391604A CN201710691359.1A CN201710691359A CN109391604A CN 109391604 A CN109391604 A CN 109391604A CN 201710691359 A CN201710691359 A CN 201710691359A CN 109391604 A CN109391604 A CN 109391604A
- Authority
- CN
- China
- Prior art keywords
- information
- connector
- data
- management
- output
- 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
- 238000004891 communication Methods 0.000 claims abstract description 40
- 230000005540 biological transmission Effects 0.000 claims abstract description 13
- 238000006243 chemical reaction Methods 0.000 claims description 12
- 230000011664 signaling Effects 0.000 claims description 2
- 238000010586 diagram Methods 0.000 description 14
- 238000000034 method Methods 0.000 description 6
- 101100283411 Arabidopsis thaliana GMII gene Proteins 0.000 description 4
- 230000001360 synchronised effect Effects 0.000 description 4
- 230000001419 dependent effect Effects 0.000 description 3
- 238000001514 detection method Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 108700026140 MAC combination Proteins 0.000 description 2
- 230000000630 rising effect Effects 0.000 description 2
- 101100172132 Mus musculus Eif3a gene Proteins 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000002457 bidirectional effect Effects 0.000 description 1
- 230000003139 buffering effect Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000006855 networking Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/08—Protocols for interworking; Protocol conversion
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/42—Bus transfer protocol, e.g. handshake; Synchronisation
- G06F13/4204—Bus transfer protocol, e.g. handshake; Synchronisation on a parallel bus
- G06F13/4221—Bus transfer protocol, e.g. handshake; Synchronisation on a parallel bus being an input/output bus, e.g. ISA bus, EISA bus, PCI bus, SCSI bus
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/09—Mapping addresses
- H04L61/25—Mapping addresses of the same type
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Communication Control (AREA)
Abstract
本发明实施例公开了一种管理数据输入输出协议的桥接装置和管理系统,所述桥接装置包括:第一连接器、分发器和至少一个第二连接器;所述第一连接器,与所述分发器连接,用于接收管理数据输入输出协议信息,将接收到的信息转化为并行传输的通信协议信息;所述分发器,与所述至少一个第二连接器连接,用于将所述通信协议信息分发至所述至少一个第二连接器;所述至少一个第二连接器,用于将所述内部协议转换为所述管理数据输入输出协议信息并输出,根据输出的信息管理与所述至少一个第二连接器连接的目标装置。
Embodiments of the present invention disclose a bridging device and a management system for managing data input and output protocols. The bridging device includes: a first connector, a distributor, and at least one second connector; the first connector is connected to the The distributor is connected to receive management data input and output protocol information, and convert the received information into communication protocol information for parallel transmission; the distributor is connected to the at least one second connector and is used to connect the The communication protocol information is distributed to the at least one second connector; the at least one second connector is used to convert the internal protocol into the management data input and output protocol information and output, and manage and The at least one second connector is connected to the target device.
Description
技术领域technical field
本发明涉及桥接技术,尤其涉及一种管理数据输入输出协议的桥接装置。The invention relates to bridging technology, in particular to a bridging device for managing data input and output protocols.
背景技术Background technique
在网络应用越来越广泛的背景下,基于电气和电子工程师协会(IEEE,Instituteof Electrical and Electronics Engineers)制定的以太网协议(如IEEE802.3协议、IEEE802.3ba协议和IEEE802.3u)的设备越来越多,单颗芯片内部的物理层(PHY,PhysicalLayer)芯片或者单个单板上的PHY芯片也越来越多,兼容以太网协议、且支持管理数据输入输出(MDIO,Management Data Input/Output)接口协议的PHY芯片也越来越多,因此,通过MDIO接口实现对多个PHY芯片的统一管理显得尤为重要。In the context of more and more network applications, devices based on Ethernet protocols (such as IEEE802.3, IEEE802.3ba and IEEE802.3u) formulated by the Institute of Electrical and Electronics Engineers (IEEE) are becoming more and more More and more, there are more and more physical layer (PHY, Physical Layer) chips inside a single chip or PHY chips on a single board, which are compatible with Ethernet protocols and support management data input and output (MDIO, Management Data Input/Output). ) interface protocol is also more and more PHY chips, therefore, it is particularly important to realize the unified management of multiple PHY chips through the MDIO interface.
MDIO接口实现对多个PHY芯片进行管理,需要将管理装置发出的MDIO分发到多个PHY芯片,PHY芯片接收到上述信息后,通过内部的MDIO接口实现对PHY芯片的管理,如图1所示,当需要管理PHY芯片越多,管理PHY芯片的工作速率将受到限制,对于宽带高速化的以太网中,如何保证工作速率的同时管理更多的PHY芯片,相关技术尚无有效解决方案。The MDIO interface realizes the management of multiple PHY chips. It is necessary to distribute the MDIO sent by the management device to multiple PHY chips. After the PHY chip receives the above information, the management of the PHY chip is realized through the internal MDIO interface, as shown in Figure 1. , when more PHY chips need to be managed, the working rate of managing PHY chips will be limited. For the broadband high-speed Ethernet, how to manage more PHY chips while ensuring the working rate, there is no effective solution in related technologies.
发明内容SUMMARY OF THE INVENTION
有鉴于此,本发明实施例期望提供一种管理数据输入输出协议的桥接装置及管理系统,保证工作速率的同时管理更多的PHY芯片。In view of this, the embodiments of the present invention expect to provide a bridge device and a management system for managing data input and output protocols, so as to manage more PHY chips while ensuring the working rate.
为达到上述目的,本发明实施例的技术方案是这样实现的:In order to achieve the above-mentioned purpose, the technical scheme of the embodiment of the present invention is realized as follows:
本发明实施例提供了管理数据输入输出协议的桥接装置,包括:第一连接器、分发器和至少一个第二连接器;其中,An embodiment of the present invention provides a bridging device for managing data input and output protocols, including: a first connector, a distributor, and at least one second connector; wherein,
所述第一连接器,与所述分发器连接,用于接收管理数据输入输出协议信息,将接收到的信息转化为并行传输的通信协议信息;The first connector is connected to the distributor, and is used for receiving management data input and output protocol information, and converting the received information into parallel transmission communication protocol information;
所述分发器,与所述至少一个第二连接器连接,用于将所述通信协议信息分发至所述至少一个第二连接器;the distributor, connected to the at least one second connector, for distributing the communication protocol information to the at least one second connector;
所述至少一个第二连接器,用于将所述内部协议转换为所述管理数据输入输出协议信息并输出,根据输出的信息管理与所述至少一个第二连接器连接的目标装置。The at least one second connector is configured to convert the internal protocol into the management data input/output protocol information and output it, and manage the target device connected to the at least one second connector according to the output information.
上述方案中,所述分发器包括至少一个寄存器,用于缓存管理所述目标装置的数据信息。In the above solution, the distributor includes at least one register for buffering and managing data information of the target device.
上述方案中,所述通信协议信息包括所述数据信息和访问地址;In the above solution, the communication protocol information includes the data information and the access address;
所述第一连接器包括第一数据端和地址端;其中,The first connector includes a first data terminal and an address terminal; wherein,
所述地址端,用于根据所述访问地址访问对应的所述寄存器;The address terminal is used to access the corresponding register according to the access address;
所述数据端,用于将所述数据信息传输至所述寄存器缓存。The data terminal is used for transmitting the data information to the register buffer.
上述方案中,所述至少一个第二连接器均包括管理端;其中,In the above solution, the at least one second connector includes a management terminal; wherein,
所述管理端与所述目标装置连接,用于向所述目标装置传输所述管理数据输入输出协议信息,根据输出的信息管理所述目标装置。The management terminal is connected to the target device, and is used for transmitting the management data input and output protocol information to the target device, and manages the target device according to the output information.
上述方案中,所述分发器包括地址转换端和读写端;其中,In the above scheme, the distributor includes an address conversion terminal and a read-write terminal; wherein,
所述地址转换端,用于将所述第一连接器传输的地址转换成所述目标装置的访问地址;the address conversion terminal, configured to convert the address transmitted by the first connector into an access address of the target device;
所述读写端,用于读取所述寄存器中针对所述目标装置中的数据,并将所述数据传输至所述第二连接器。The read-write terminal is used to read the data in the register for the target device, and transmit the data to the second connector.
上述方案中,所述分发器包括数据选择器,用于根据接收到的选择指令从所述至少一个寄存器中选择目标寄存器。In the above solution, the distributor includes a data selector for selecting a target register from the at least one register according to the received selection instruction.
上述方案中,所述第一连接器、所述分发器和所述至少一个第二连接器均包括时钟控制端和复位端;其中,In the above solution, the first connector, the distributor and the at least one second connector all include a clock control terminal and a reset terminal; wherein,
所述时钟控制端,用于接收时钟控制信息,所述时钟控制信息用于控制工作状态;The clock control terminal is used to receive clock control information, and the clock control information is used to control the working state;
所述复位端,用于接收复位信息,所述复位信息时用于控制复位。The reset terminal is used to receive reset information, and the reset information is used to control reset.
上述方案中,所述分发器包括速率控制端和状态查询端;其中,In the above scheme, the distributor includes a rate control terminal and a state query terminal; wherein,
所述速率控制端,用于控制与所述至少一个第二连接器连接的目标装置的工作速率;the rate control terminal, used to control the working rate of the target device connected to the at least one second connector;
所述状态查询端,用于查询与所述至少一个第二连接器连接的目标装置的状态信息。The status query terminal is configured to query the status information of the target device connected to the at least one second connector.
上述方案中,所述第一连接器包括协议转换模块,用于将所述管理数据输入输出协议信息转换为所述通信协议信息。In the above solution, the first connector includes a protocol conversion module for converting the management data input and output protocol information into the communication protocol information.
上述方案中,所述第一连接器和所述至少一个第二连接器包括:使能端,用于传输使能信号,根据所述使能信号控制信息的输入和输出。In the above solution, the first connector and the at least one second connector include: an enabling terminal for transmitting an enabling signal, and controlling the input and output of information according to the enable signal.
本发明实施例还提供了一种管理系统,包括:桥接装置、管理装置和至少一个目标装置;其中,An embodiment of the present invention further provides a management system, including: a bridge device, a management device, and at least one target device; wherein,
所述管理装置,与所述桥接装置连接,用于产生并输出管理数据输入输出协议信息,根据输出的信息管理所述至少一个目标装置;The management device, connected to the bridge device, is configured to generate and output management data input and output protocol information, and manage the at least one target device according to the output information;
所述桥接装置,与所述至少一个目标装置连接,用于接收所述管理数据输入输出协议信息,将接收到的信息转换为并行的通信协议信息;将所述通信协议信息进行多路分发,将分发后的信息转换为多路的所述管理数据输入输出协议信息;The bridging device, connected to the at least one target device, is configured to receive the management data input and output protocol information, convert the received information into parallel communication protocol information; perform multiple distribution of the communication protocol information, Converting the distributed information into multiplexed management data input and output protocol information;
所述至少一个目标装置,用于接收所述桥接装置传输的所述管理数据输入输出协议信息,根据接收到的信息进行相应的管理操作。The at least one target device is configured to receive the management data input and output protocol information transmitted by the bridge device, and perform corresponding management operations according to the received information.
上述方案中,所述目标装置为物理层芯片或下一级的所述桥接装置。In the above solution, the target device is a physical layer chip or the bridge device at the next level.
通过实施本发明实施例的方案,能将接收到的MDIO协议信息转换为并行的内部通信协议信息,然后将该内部通信协议信息分发至不同的第二连接器,通过第二连接器将该内部通信协议信息转换为多路MDIO协议信息进行输出,从而实现对多个支持MDIO协议的设备进行统一管理;此外,第二连接器之间的工作速率相互独立,与传统方式相比,避免了目标装置完全受限于最低的MDIO速率,从而提升了统一管理的工作速率。By implementing the solution of the embodiment of the present invention, the received MDIO protocol information can be converted into parallel internal communication protocol information, and then the internal communication protocol information can be distributed to different second connectors, and the internal communication protocol information can be distributed through the second connectors. The communication protocol information is converted into multi-channel MDIO protocol information for output, so as to realize the unified management of multiple devices supporting the MDIO protocol; in addition, the working rates between the second connectors are independent of each other, which avoids the target The device is completely limited to the lowest MDIO rate, thus increasing the working rate of unified management.
附图说明Description of drawings
图1为本发明实施提供的一种MDIO的多个设备连接示意图;1 is a schematic diagram of multiple device connections of a kind of MDIO provided by the implementation of the present invention;
图2为本发明实施例提供的OSI参考模型中的MAC子层、PHY层及两层之间的MII的示意图;2 is a schematic diagram of a MAC sublayer, a PHY layer, and a MII between the two layers in an OSI reference model provided by an embodiment of the present invention;
图3为本发明实施提供的一种MDIO协议的桥接装置的结构示意图;3 is a schematic structural diagram of a bridge device of an MDIO protocol provided by the implementation of the present invention;
图4为本发明实施提供的另一种MDIO协议的桥接装置的结构示意图;4 is a schematic structural diagram of a bridge device of another MDIO protocol provided by the implementation of the present invention;
图5为本发明实施提供的一种第一连接器的组成结构示意图;FIG. 5 is a schematic diagram of the composition and structure of a first connector provided by the implementation of the present invention;
图6为本发明实施提供的一种分发器的组成结构示意图FIG. 6 is a schematic diagram of the composition and structure of a dispenser provided by the implementation of the present invention
图7为本发明实施提供的一种第二连接器的组成结构示意图;FIG. 7 is a schematic diagram of the composition and structure of a second connector provided by the implementation of the present invention;
图8为本发明实施提供的一种管理系统的组成结构示意图。FIG. 8 is a schematic diagram of the composition and structure of a management system provided by the implementation of the present invention.
具体实施方式Detailed ways
为了使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明作进一步地详细描述,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其它实施例,都属于本发明保护的范围。In order to make the objectives, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
对本发明进行进一步详细说明之前,对本发明实施例中涉及的名词和术语进行说明,本发明实施例中涉及的名词和术语适用于如下的解释。Before the present invention is further described in detail, the terms and terms involved in the embodiments of the present invention are described. The terms and terms involved in the embodiments of the present invention are applicable to the following explanations.
1)MDIO,MDIO是一种简单的双线串行接口,将管理器件(如MAC器件、微处理器)与具备管理功能的PHY芯片相连接,从而实现对PHY芯片的管理。1) MDIO, MDIO is a simple two-wire serial interface that connects management devices (such as MAC devices, microprocessors) with a PHY chip with management functions, thereby realizing the management of the PHY chip.
2)PHY,是指物理层,具有PHY功能的芯片可以与外部器件进行通信,其中,PHY芯片具备符合IEEE802.3u标准22款所规定的标准管理接口,即媒体独立接口(MII,MediaIndepended Interface),也可称为MII管理接口,该接口包含元数据分发器(MDC,MetaData Controller)和MDIO两个接口。其中,MDC接口是管理数据的时钟输入,即输入的为时钟信号,最高速率可达8.3兆赫兹(MHz);MDIO是管理数据的输入输出双向接口,即输入的为MDIO协议信息。2) PHY refers to the physical layer. The chip with PHY function can communicate with external devices. Among them, the PHY chip has a standard management interface that conforms to the 22nd paragraph of the IEEE802.3u standard, that is, the media independent interface (MII, MediaIndepended Interface) , also known as MII management interface, this interface includes two interfaces: Metadata Distributor (MDC, MetaData Controller) and MDIO. Among them, the MDC interface is the clock input of the management data, that is, the input is the clock signal, and the maximum rate can reach 8.3 megahertz (MHz); the MDIO is the input and output bidirectional interface of the management data, that is, the input is the MDIO protocol information.
以太网(Ethernet)是一种计算机局域网组网技术,基于IEEE制定的IEEE 802.3标准,它规定了包括物理层的连线、电信号和媒体访问控制(MAC,Media Access Control)子层协议的内容。对于Ethernet的接口,其实质是MAC子层的器件通过MII总线控制PHY芯片或设备的过程。Ethernet (Ethernet) is a computer local area network networking technology, based on the IEEE 802.3 standard formulated by IEEE, which specifies the content of the physical layer connection, electrical signal and media access control (MAC, Media Access Control) sub-layer protocol. . For the Ethernet interface, its essence is the process that the device of the MAC sublayer controls the PHY chip or device through the MII bus.
结合图2,图2为本发明实施例提供的OSI参考模型中的MAC子层、PHY层及两层之间的MII的示意图。With reference to FIG. 2 , FIG. 2 is a schematic diagram of a MAC sublayer, a PHY layer, and an MII between the two layers in an OSI reference model provided by an embodiment of the present invention.
1)MAC子层1) MAC sublayer
MAC协议位于OSI七层协议中数据链路层的一个子层,主要负责控制与连接物理层的物理介质。在发送数据的时候,MAC协议可以事先判断是否可以发送数据,如果可以发送将给数据加上一些控制信息,最终将数据以及控制信息以规定的格式发送到物理层;在接收数据的时候,MAC协议首先判断输入的信息并是否发生传输错误,如果没有错误,则去掉控制信息发送至逻辑链路控制(LLC,Logical Link Control)子层。以太网MAC由IEEE-802.3以太网标准定义。The MAC protocol is located in a sublayer of the data link layer in the OSI seven-layer protocol, and is mainly responsible for controlling and connecting the physical medium of the physical layer. When sending data, the MAC protocol can determine in advance whether the data can be sent. If it can be sent, it will add some control information to the data, and finally send the data and control information to the physical layer in a specified format; when receiving data, the MAC The protocol first judges the input information and whether there is a transmission error. If there is no error, the control information is removed and sent to the Logical Link Control (LLC, Logical Link Control) sublayer. Ethernet MAC is defined by the IEEE-802.3 Ethernet standard.
2)MII管理接口2) MII management interface
MII管理接口即媒体独立接口,“媒体独立”表明在不对MAC硬件重新设计或替换的情况下,任何类型的PHY设备都可以正常工作。The MII management interface is the media independent interface. "Media independent" means that any type of PHY device can work normally without redesigning or replacing the MAC hardware.
MII管理接口以4比特(bit),即半字节方式双向传送数据,当时钟速率25MHz时,其工作速率可达100Mb/s。MII管理接口是个双信号接口,一个是时钟信号,即MDC信号;另一个是数据信号,即MDIO信号,通过MII管理接口,上层能监视和控制PHY芯片;PHY芯片将自身的当前状态(如连接速度、双工能力等)反映到寄存器里面,MAC器件通过通过串行管理接口(SMI,Serial Management Interface)读写PHY芯片的寄存器获取其当前状态;此外,还可以读取寄存器中的相应指令,实现对PHY芯片的控制。对PHY芯片的控制,还可以通过SMI设置PHY的寄存器达到控制的目的,例如流控的打开关闭,自协商模式还是强制模式等。The MII management interface transmits data bidirectionally in a 4-bit (bit), ie nibble mode. When the clock rate is 25MHz, its working rate can reach 100Mb/s. The MII management interface is a dual-signal interface, one is the clock signal, that is, the MDC signal; the other is the data signal, that is, the MDIO signal. Through the MII management interface, the upper layer can monitor and control the PHY chip; Speed, duplex capability, etc.) are reflected in the registers, and the MAC device obtains its current state by reading and writing the registers of the PHY chip through the Serial Management Interface (SMI, Serial Management Interface); in addition, it can also read the corresponding instructions in the registers, Realize the control of the PHY chip. The control of the PHY chip can also be achieved by setting the registers of the PHY through the SMI to achieve the purpose of control, such as opening and closing the flow control, auto-negotiation mode or forced mode, etc.
简化媒体独立接口(RMII,Reduced Media Independant Interface)是标准的以太网接口之一,比MII有更少的输入/输出(I/O,Input/Output)输出。The Reduced Media Independant Interface (RMII, Reduced Media Independant Interface) is one of the standard Ethernet interfaces and has fewer input/output (I/O, Input/Output) outputs than MII.
千兆媒体独立接口(GMII,Gigabit Medium Independent Interface)是千兆网的MII管理接口。The Gigabit Medium Independent Interface (GMII, Gigabit Medium Independent Interface) is the MII management interface of the Gigabit network.
关于RMII管理接口、GMII管理接口和MII口的区别:RMII管理接口是用2根线来传输数据,MII管理接口是用4根线来传输数据,GMII接是用8根线来传输数据。About the difference between RMII management interface, GMII management interface and MII port: RMII management interface uses 2 wires to transmit data, MII management interface uses 4 wires to transmit data, and GMII connection uses 8 wires to transmit data.
MII/RMII是一种接口,对于10M线速,MII的时钟是2.5M,RMII则是5M;对于100M线速,MII的时钟是25M,RMII的时钟则是50M。MII/RMII is an interface. For 10M line speed, the clock of MII is 2.5M, and the clock of RMII is 5M; for 100M line speed, the clock of MII is 25M, and the clock of RMII is 50M.
3)PHY层3) PHY layer
PHY包括MII/GMII子层、物理编码子层(PCS,Physical Code Sublayer)、物理介质附加(PMA,Physical Media Attachment)子层、物理介质相关(PMD,Physical MediumDependent)子层、介质相关接口(MDI,Medium Dependent Interface)子层。PHY includes MII/GMII sublayer, Physical Code Sublayer (PCS, Physical Code Sublayer), Physical Media Attachment (PMA, Physical Media Attachment) sublayer, Physical Medium Dependent (PMD, Physical MediumDependent) sublayer, Medium Dependent Interface (MDI) , Medium Dependent Interface) sublayer.
对于传输速率为100兆比特每秒(Mbit/s)的基带传输(100BaseTX)信号,采用4B/5B编码,PHY芯片或设备在发送数据时,收到MAC过来的数据,每4bit就增加1bit的检错码,然后把并行数据转化为串行流数据,再按照物理层的编码规则把数据编码,再变为模拟信号把数据送出去。当PHY芯片或设备在收数据时,流程与发送数据的流程相反。此外,PHY还可以实现载波监听多点接入/碰撞检测(CSMA/CD,Carrier Sense Multiple Access withCollision Detection)的部分功能,检测网络上是否有数据在传送,若有,则等待,继续检测;若无,则等待一个随机时间将送数据出去,这里,上述随机时间并不是一个常数,而是在不同的时刻计算出来的随机时间都是不同的,而且有多重算法来应付出现概率很低的两台主机之间的第二次冲突。For the baseband transmission (100BaseTX) signal with a transmission rate of 100 megabits per second (Mbit/s), 4B/5B encoding is used. When the PHY chip or device receives the data from the MAC, when sending data, it will increase by 1 bit for every 4 bits. Error detection code, and then convert the parallel data into serial stream data, and then encode the data according to the coding rules of the physical layer, and then convert the data into an analog signal to send the data. When the PHY chip or device is receiving data, the process is opposite to that of sending data. In addition, PHY can also implement some functions of Carrier Sense Multiple Access with Collision Detection (CSMA/CD, Carrier Sense Multiple Access with Collision Detection) to detect whether there is data being transmitted on the network, if so, wait and continue to detect; No, then wait for a random time to send the data. Here, the above random time is not a constant, but the random time calculated at different times is different, and there are multiple algorithms to deal with the two data with low probability of occurrence. A second conflict between hosts.
对于PHY和MAC之间的数据交互是通过IEEE定义的标准,即MII管理接口连接MAC和PHY实现,MII管理接口传递了网络的所有数据和数据的控制。而MAC对PHY的工作状态的确定和对PHY的控制则是使用串行管理接口(SMI,Serial Management Interface)通过读写PHY的寄存器来完成的。此外,PHY将自身的当前状态反映到寄存器里面,MAC通过SMI总线不断的读取PHY的状态寄存器以得知目前PHY的状态,例如连接速度、双工的能力等。The data interaction between the PHY and the MAC is implemented through a standard defined by IEEE, that is, the MII management interface connects the MAC and the PHY, and the MII management interface transmits all data and data control of the network. The MAC determines the working state of the PHY and controls the PHY by using a serial management interface (SMI, Serial Management Interface) by reading and writing the registers of the PHY. In addition, the PHY reflects its current status into the register, and the MAC continuously reads the status register of the PHY through the SMI bus to know the current status of the PHY, such as connection speed, duplex capability, etc.
在网络应用越来越广泛的背景下,基于以太网协议设备越来越多,兼容以太网协议、且支持MDIO接口协议的PHY芯片也越来越多,对于MDIO接口实现对多个PHY芯片的管理,需要将主控设备发出的MDIO和MDC分别分发到多个PHY芯片,PHY芯片接收到上述信息后,通过内部的MDIO接口实现对PHY芯片的管理,如图1所示。当需要管理PHY芯片越多,接口的总体工作速率不能高于连接设备中的最低速率,因此,工作速率将受到限制。为此,本发明实施例提出了一种解决方案,如图3所示,为本发明实施提供的一种MDIO协议的桥接装置300的结构示意图,其中,桥接装置300可以通过第一管理数据(S_MDI)接口接收外部设备发送的MDIO协议信息,将接收到的信息转换为并行的通信协议信息,然后,将通信协议信息进行多路分发,将分发后的信息转换为多路的MDIO协议信息,然后将转换的后的MDIO协议信息通过第二管理数据(Mi_MDI)接口输出,其中,i=0、1、2、……、n(n为非负整数)。Under the background of more and more extensive network applications, more and more devices based on Ethernet protocol, PHY chips compatible with Ethernet protocol and supporting MDIO interface protocol are also increasing. For management, the MDIO and MDC sent by the main control device need to be distributed to multiple PHY chips respectively. After the PHY chip receives the above information, the management of the PHY chip is realized through the internal MDIO interface, as shown in Figure 1. When more PHY chips need to be managed, the overall operating rate of the interface cannot be higher than the lowest rate among the connected devices, so the operating rate will be limited. To this end, an embodiment of the present invention proposes a solution, as shown in FIG. 3 , which is a schematic structural diagram of a bridge device 300 of an MDIO protocol provided by the implementation of the present invention, wherein the bridge device 300 can pass the first management data ( The S_MDI) interface receives the MDIO protocol information sent by the external device, converts the received information into parallel communication protocol information, then distributes the communication protocol information in multiple ways, and converts the distributed information into multi-channel MDIO protocol information, Then, the converted MDIO protocol information is output through the second management data (Mi_MDI) interface, where i=0, 1, 2, ..., n (n is a non-negative integer).
因此,通过本发明实施例中的桥接装置300,将外部设备发送的一路MDIO协议信息,转换成多路的MDIO协议信息,从而实现对多个PHY芯片的管理或控制;此外,Mi_MDI接口除了可以连接PHY芯片,还可以级联下一级的桥接装置,从而管理或控制的PHY芯片数量更多。Therefore, through the bridging device 300 in the embodiment of the present invention, one channel of MDIO protocol information sent by an external device is converted into multiple channels of MDIO protocol information, thereby realizing management or control of multiple PHY chips; in addition, the Mi_MDI interface can By connecting PHY chips, it is also possible to cascade bridge devices at the next level, so that a larger number of PHY chips can be managed or controlled.
至此,介绍了桥接装置300整体的工作,这里,结合图4,从桥接装置300的内部结构阐述所实现的功能,图4为本发明实施提供的一种MDIO协议的桥接装置300的结构示意图,包括:第一连接器310、分发器320和至少一个第二连接器330;其中,So far, the overall work of the bridging device 300 has been introduced. Here, with reference to FIG. 4 , the realized functions are explained from the internal structure of the bridging device 300. FIG. Including: a first connector 310, a dispenser 320 and at least one second connector 330; wherein,
第一连接器310,与分发器320连接,用于接收管理数据输入输出协议信息,将接收到的信息转化为并行传输的通信协议信息;The first connector 310, connected to the distributor 320, is used for receiving management data input and output protocol information, and converting the received information into parallel transmission communication protocol information;
分发器320,与至少一个第二连接器330连接,用于将通信协议信息分发至至少一个第二连接器330;a distributor 320, connected to the at least one second connector 330, for distributing the communication protocol information to the at least one second connector 330;
至少一个第二连接器330,用于将内部协议转换为管理数据输入输出协议信息并输出,根据输出的信息管理与至少一个第二连接器330连接的目标装置。The at least one second connector 330 is used to convert the internal protocol into management data input and output protocol information and output it, and manage the target device connected to the at least one second connector 330 according to the output information.
结合图5,对第一连接器310的内部结构及功能进行阐述,图5为本发明实施提供的一种第一连接器310的结构示意图,包括:时钟控制(WCLK)端、复位(Reset)端、PHY标识(ID)端、元数据控制(S_MDC)端、使能(S_OEN)端、管理数据输入(S_MDI)端、管理数据输出(S_MDO)端、端口选择(Port)端、地址(Addr)端、读写控制(OP)端、管理数据输出(DATA_O)端和管理数据输入(DATA_I)端;其中,S_MDI端和S_MDO端组成本发明实施例中所述的数据端。5, the internal structure and function of the first connector 310 will be described. FIG. 5 is a schematic structural diagram of a first connector 310 provided by the implementation of the present invention, including: a clock control (WCLK) terminal, a reset (Reset) end, PHY identification (ID) end, metadata control (S_MDC) end, enable (S_OEN) end, management data input (S_MDI) end, management data output (S_MDO) end, port selection (Port) end, address (Addr ) end, read and write control (OP) end, management data output (DATA_O) end and management data input (DATA_I) end; wherein, the S_MDI end and the S_MDO end constitute the data end described in the embodiments of the present invention.
第一连接器310,用于接收管理数据输入输出协议信息,将接收到的信息转化为并行传输的通信协议信息。The first connector 310 is used for receiving management data input and output protocol information, and converting the received information into parallel transmission communication protocol information.
这里,管理数据输入输出协议信息为串行通信信息,通信协议信息为并行通信协议信息,转换的过程主要是,将管理数据输入输出协议信息中的访问地址、访问方向、读写控制指令和数据信息等信息提取出来,因此,得到并行通信的通信协议信息,其中,通信协议信息包括数据信息、访问地址、读写控制指令和访问方向等信息。需要说明的是,访问方向指的是需要访问哪一个目标装置,如目标PHY芯片。Here, the management data input and output protocol information is serial communication information, and the communication protocol information is parallel communication protocol information. The conversion process is mainly to convert the access address, access direction, read and write control instructions and data in the management data input and output protocol information. Information and other information are extracted, therefore, communication protocol information of parallel communication is obtained, wherein the communication protocol information includes information such as data information, access address, read and write control instructions, and access direction. It should be noted that the access direction refers to which target device needs to be accessed, such as a target PHY chip.
其中,WCLK端,用于接收外部时钟信号,假设该外部时钟信号为时钟信号A,根据WCLK端接收的时钟信号A对S_MDC端和S_MDI端的输入信息(或电平信号)进行采样,从而得到与时钟信号A同频的并行通信协议信息。Among them, the WCLK terminal is used to receive the external clock signal. Assuming that the external clock signal is the clock signal A, the input information (or level signal) of the S_MDC terminal and the S_MDI terminal is sampled according to the clock signal A received by the WCLK terminal. Parallel communication protocol information of the same frequency as the clock signal A.
Reset端,用于对第一连接器310进行复位。The reset terminal is used to reset the first connector 310 .
PHY ID端,用于接收关于PHY芯片或物理层协议的标识。The PHY ID terminal is used to receive the identification of the PHY chip or the physical layer protocol.
S_MDC端,用于接收管理接口的时钟信号,该时钟信号是一个非周期信号。The S_MDC terminal is used to receive the clock signal of the management interface, and the clock signal is an aperiodic signal.
S_MDI端,用于传送MAC层的控制信息和物理层的状态信息,该状态信息采样的是MDIO协议传输,S_MDI端输入的信息与S_MDC端输入的时钟同步,如时钟的上升沿到来时,S_MDI端开始输入信息。The S_MDI terminal is used to transmit the control information of the MAC layer and the status information of the physical layer. The status information is sampled by the MDIO protocol transmission. The information input by the S_MDI terminal is synchronized with the clock input by the S_MDC terminal. For example, when the rising edge of the clock arrives, the S_MDI start to enter information.
S_OEN端,用于输出使能信号,控制与第一连接器连接的设备或芯片的输入与输出,低电平,用于指示该设备或芯片输入数据;高电平,用于指示该设备或芯片输出数据。The S_OEN terminal is used to output the enable signal to control the input and output of the device or chip connected to the first connector. The low level is used to indicate the input data of the device or chip; the high level is used to indicate the device or chip. Chip output data.
S_MDO端,与S_MDI端类似,用于接收MAC层的控制信息和物理层的状态信息,该状态信息采样的是MDIO协议传输,S_MDO端输出的信息与S_MDC端输入的时钟同步。The S_MDO end, similar to the S_MDI end, is used to receive the control information of the MAC layer and the state information of the physical layer. The state information is sampled by the MDIO protocol transmission, and the information output by the S_MDO end is synchronized with the clock input by the S_MDC end.
Port端,与分发器320中的Port端连接,以便将选择指令传输至数据选择器连接,其中,该选择指令为从至少一个寄存器中选择目标寄存器的选择指令,以便控制相应的目标装置。The Port terminal is connected to the Port terminal in the distributor 320 so as to transmit a selection command to the data selector connection, wherein the selection command is a selection command for selecting a target register from at least one register, so as to control the corresponding target device.
Addr端,与分发器320中的Addr端连接,传输上述的访问地址,根据该访问地址查找到分发器320中相应的寄存器。The Addr terminal is connected to the Addr terminal in the distributor 320, transmits the above-mentioned access address, and searches for the corresponding register in the distributor 320 according to the access address.
OP端,与分发器320中的OP端连接,传输上述的读写控制指令,该指令用于控制目标装置的读写操作,其中,读写控制指令可以用二进制进行表示,比特“10”表示为读操作,比特“01”表示为写操作。The OP end is connected to the OP end in the distributor 320, and transmits the above-mentioned read-write control command, which is used to control the read-write operation of the target device, wherein the read-write control command can be represented by binary, and the bit "10" represents For a read operation, bit "01" indicates a write operation.
DATA_O端,与分发器320的Din端连接,用于传输上述的数据信息,以便将该数据信息缓存至分发器320中相应的寄存器中,然后,根据时钟控制指令分发至相应的第二连接器330。The DATA_O end is connected to the Din end of the distributor 320, and is used for transmitting the above-mentioned data information, so that the data information is buffered in the corresponding register in the distributor 320, and then distributed to the corresponding second connector according to the clock control instruction 330.
DATA_I端,与分发器320的Dout端连接,用于接收目标装置通过第二连接器330和分发器320返回的数据信息。The DATA_I terminal is connected to the Dout terminal of the distributor 320 , and is used for receiving the data information returned by the target device through the second connector 330 and the distributor 320 .
因此,由上述结构部分组成的连接器310,实现将接收到的MDIO协议信息转换中并行传输的通信协议信息,然后,通过相应的端口,将该并行的通信协议信息传输至分发器320,以便完成后续操作。Therefore, the connector 310 composed of the above-mentioned structural parts realizes the parallel transmission of the communication protocol information in the conversion of the received MDIO protocol information, and then transmits the parallel communication protocol information to the distributor 320 through the corresponding port, so that Complete the next steps.
结合图6,对分发器的内部结构及功能进行阐述,图6为本发明实施提供的一种分发器320的结构示意图,包括:WCLK端、复位(Rst_n)端、至少一个寄存器321、Port端、地址转换(Addr)端、OP端、管理数据输入(Din)端、管理数据输出(Dout)端、数据选择器322,以及速率控制(Pi_div)端、Pi_DEV端、地址(Pi_Addr)端、管理数据输出(Pi_Dout)端、读写控制(Pi_OP)端、管理数据输入(Pi_Din)端、状态查询(Pi_Status)端;其中,Pi_Dout端和Pi_Din端组成本发明实施例中所述的管理端,i为大于等于0的整数。In conjunction with Fig. 6, the internal structure and function of the distributor are described. Fig. 6 is a schematic structural diagram of a distributor 320 provided by the implementation of the present invention, including: a WCLK end, a reset (Rst_n) end, at least one register 321, a Port end , address conversion (Addr) end, OP end, management data input (Din) end, management data output (Dout) end, data selector 322, and rate control (Pi_div) end, Pi_DEV end, address (Pi_Addr) end, management A data output (Pi_Dout) end, a read-write control (Pi_OP) end, a management data input (Pi_Din) end, and a status query (Pi_Status) end; wherein, the Pi_Dout end and the Pi_Din end form the management end described in the embodiment of the present invention, i is an integer greater than or equal to 0.
WCLK端,用于接收外部时钟信号,假设该外部时钟信号为时钟信号B,根据WCLK端接收的时钟信号B对并行的通信协议信息进行采样,从而得到与时钟信号B同频的并行通信协议信息。需要说明的是,上述的时钟信号A和时钟信号B可以是来自同一个时钟源产生的时钟信号。The WCLK terminal is used to receive an external clock signal. Assuming that the external clock signal is the clock signal B, the parallel communication protocol information is sampled according to the clock signal B received by the WCLK terminal, so as to obtain the parallel communication protocol information with the same frequency as the clock signal B. . It should be noted that the above-mentioned clock signal A and clock signal B may be clock signals generated from the same clock source.
Rst_n端,用于对分发器320进行复位。The Rst_n terminal is used to reset the distributor 320.
至少一个寄存器321,用于缓存管理目标装置的数据信息。At least one register 321 is used for buffer management of data information of the target device.
Port端,与第一连接器310中的Port端连接,以便将选择指令传输至数据选择器322连接,其中,该选择指令为从至少一个寄存器321中选择目标寄存器的选择指令,以便控制相应的目标装置。The Port terminal is connected to the Port terminal in the first connector 310, so as to transmit a selection instruction to the data selector 322 for connection, wherein the selection instruction is a selection instruction for selecting a target register from at least one register 321, so as to control the corresponding target device.
数据选择器322,用于根据Port端传输的选择指令选择从Addr端、OP端和Din端选出指定的一个送至输出端,从而将相应的数据传输至寄存器321中进行相应的操作。The data selector 322 is used to select a designated one from the Addr end, the OP end and the Din end according to the selection instruction transmitted by the Port end and send it to the output end, so as to transmit the corresponding data to the register 321 for corresponding operations.
Addr端,与第一连接器310中的Addr端连接,传输上述的访问地址,根据该访问地址查找到分发器320中相应的寄存器321。The Addr terminal is connected to the Addr terminal in the first connector 310, transmits the above-mentioned access address, and searches for the corresponding register 321 in the distributor 320 according to the access address.
OP端,与第一连接器310中的OP端连接,传输上述的读写控制指令,该指令用于控制目标装置的读写操作。The OP terminal is connected to the OP terminal in the first connector 310, and transmits the above-mentioned read-write control command, which is used to control the read-write operation of the target device.
Din端,与第一连接器310的DATA_O端连接,用于传输上述的数据信息,以便将该数据信息缓存至分发器320中相应的寄存器321中,然后,根据时钟控制指令分发至相应的第二连接器330。The Din terminal is connected to the DATA_O terminal of the first connector 310, and is used to transmit the above-mentioned data information, so that the data information is buffered in the corresponding register 321 in the distributor 320, and then distributed to the corresponding first according to the clock control instruction. Two connectors 330 .
Dout端,与第一连接器310的DATA_I端连接,用于输出目标装置通过第二连接器330和分发器320返回的数据信息。The Dout terminal is connected to the DATA_I terminal of the first connector 310 , and is used to output the data information returned by the target device through the second connector 330 and the distributor 320 .
Pi_div端,与第i个第二连接器330的div端连接,用于传输第一连接器310的工作速率,以使第i个第二连接器330、与第i个第二连接器330连接的目标装置的工作速率与第一连接器310的工作速率保持一致。The Pi_div end is connected to the div end of the i-th second connector 330, and is used to transmit the working rate of the first connector 310, so that the i-th second connector 330 is connected to the i-th second connector 330 The working speed of the target device is consistent with the working speed of the first connector 310 .
Pi_Addr端,与第i个第二连接器330的Addr端连接,用于将第一连接器310传输的地址转换成目标装置的访问地址,并将转换的访问地址通过第i个第二连接器330传输至目标装置,从而对该目标装置的进行访问。The Pi_Addr end is connected to the Addr end of the i-th second connector 330, and is used to convert the address transmitted by the first connector 310 into the access address of the target device, and pass the converted access address through the i-th second connector. 330 transmits to the target device to gain access to the target device.
Pi_Dout端,与第i个第二连接器330的DATA_I端连接,用于读取寄存器321中针对目标装置中的数据,并将读取的数据传输至第二连接器330。The Pi_Dout terminal is connected to the DATA_I terminal of the i-th second connector 330 , and is used to read the data in the register 321 for the target device, and transmit the read data to the second connector 330 .
Pi_OP端,与第i个第二连接器330的OP端连接,用于控制目标装置的读写操作。The Pi_OP terminal is connected to the OP terminal of the i-th second connector 330, and is used to control the read and write operations of the target device.
Pi_Din端,与第i个第二连接器330的DATA_O端连接,用于输入第二连接器330输出的数据信息。The Pi_Din terminal is connected to the DATA_O terminal of the i-th second connector 330 for inputting the data information output by the second connector 330 .
Pi_Status端,与第i个第二连接器330的Status端连接,用于查询第一连接器310的工作状态。The Pi_Status terminal is connected to the Status terminal of the i-th second connector 330 , and is used to query the working status of the first connector 310 .
这里,i表示与第二连接器330连接的端口组数,也表示寄存器321的个数,Pi表示分发器中与第二连接器之间连接的第i组端口,不同的Pi连接不同的第二连接器330,且不同Pi之间相互独立,工作速率、工作频率相互独立,因此,与第二连接器330连接的目标装置之间的工作速率和工作频率相互独立,避免了传统方式中接口的总体工作速率不能高于连接设备中的最低速率,从而使得所有目标装置不必完全受限于最低的MDIO速率。Here, i represents the number of port groups connected to the second connector 330, and also represents the number of registers 321, Pi represents the i-th group of ports connected to the second connector in the distributor, and different Pis are connected to different The two connectors 330 are independent of each other, and the operating rates and operating frequencies are independent of each other. Therefore, the operating rates and operating frequencies of the target devices connected to the second connector 330 are independent of each other, avoiding the interface in the traditional method. The overall operating rate cannot be higher than the lowest rate among the connected devices, so that all target devices do not have to be completely limited to the lowest MDIO rate.
由上述结构构成的分发器320,实现了将第一连接器310发送的并行通信协议信息分发至不同的第二连接器330。The distributor 320 constituted by the above structure realizes the distribution of the parallel communication protocol information sent by the first connector 310 to different second connectors 330 .
结合图7,对第二连接器330的内部结构及功能进行阐述,图7为本发明实施提供的一种第二连接器330的结构示意图,包括:WCLK端、Reset端、div端、DEV端、Addr端、DATA_I端、OP端、Status端、DATA_O端,以及元数据控制(M_MDC)端、管理数据输入(M_MDI)端、使能(M_OEN)端和管理数据输出(M_MDO)端;这里,DATA_I端和DATA_O端组成所述的第二数据端,以第i个第二连接器330为例,其中,The internal structure and function of the second connector 330 will be described with reference to FIG. 7 . FIG. 7 is a schematic structural diagram of a second connector 330 provided by the implementation of the present invention, including: a WCLK terminal, a Reset terminal, a div terminal, and a DEV terminal. , Addr end, DATA_I end, OP end, Status end, DATA_O end, and metadata control (M_MDC) end, management data input (M_MDI) end, enable (M_OEN) end and management data output (M_MDO) end; here, The DATA_I terminal and the DATA_O terminal form the second data terminal, taking the i-th second connector 330 as an example, wherein,
WCLK端,用于接收外部时钟信号,假设该外部时钟信号为时钟信号C,根据WCLK端接收的时钟信号C对并行的通信协议信息进行采样,进过并/串转换,从而得到与时钟信号C同频的MDIO协议信息。需要说明的是,上述的时钟信号A、时钟信号B和时钟信号C可以是来自同一个时钟源产生的时钟信号。The WCLK terminal is used to receive an external clock signal. Assuming that the external clock signal is a clock signal C, the parallel communication protocol information is sampled according to the clock signal C received by the WCLK terminal, and subjected to parallel/serial conversion to obtain the same clock signal C. MDIO protocol information of the same frequency. It should be noted that the above-mentioned clock signal A, clock signal B and clock signal C may be clock signals generated from the same clock source.
Reset端,用于对第二连接器330进行复位。The reset terminal is used to reset the second connector 330 .
div端,与分发器320中的Pi_div端连接,用于传输第一连接器310的工作速率,以使第i个第二连接器330、与第i个第二连接器330连接的目标装置的工作速率与第一连接器310的工作速率保持一致。The div terminal is connected to the Pi_div terminal in the distributor 320, and is used to transmit the working rate of the first connector 310, so that the ith second connector 330 and the target device connected to the ith second connector 330 have The working rate is consistent with the working rate of the first connector 310 .
Addr端,与分发器320中的Pi_Addr端连接,用于分发器320将转换的访问地址通过第i个第二连接器330传输至目标装置,从而对该目标装置的进行访问。The Addr terminal is connected to the Pi_Addr terminal in the distributor 320, and is used for the distributor 320 to transmit the converted access address to the target device through the i-th second connector 330, so as to access the target device.
DATA_I端,与分发器320中的Pi_Dout端连接,用于输入在寄存器321中读取针对目标装置中的数据。The DATA_I terminal is connected to the Pi_Dout terminal in the distributor 320, and is used for inputting the data read in the register 321 for the target device.
OP端,与分发器320中的Pi_OP端连接,用于控制目标装置的读写操作。The OP terminal is connected to the Pi_OP terminal in the distributor 320, and is used to control the read and write operations of the target device.
Status端,与分发器320中的Pi_Status端连接,用于查询端口Pi的工作状态。The Status terminal is connected to the Pi_Status terminal in the distributor 320, and is used to query the working status of the port Pi.
需要说明的是,上述div端、DEV端、Addr端、DATA_I端、OP端、Status端输入或输出的信号(或信息)为并行的通信协议信号(或信息)。It should be noted that the signals (or information) input or output from the above div end, DEV end, Addr end, DATA_I end, OP end, and Status end are parallel communication protocol signals (or information).
DATA_O端,与分发器320中的Pi_Din端连接,用于输出第二连接器330输出的数据信息。The DATA_O terminal is connected to the Pi_Din terminal in the distributor 320 , and is used for outputting the data information output by the second connector 330 .
M_MDC端,用于输出管理接口的时钟信号,该时钟信号为非周期信号。The M_MDC terminal is used to output the clock signal of the management interface, and the clock signal is an aperiodic signal.
M_MDI端,用于传送MAC层的控制信息和物理层的状态信息,该状态信息采样的是MDIO协议传输,M_MDI端输出的信息与M_MDC端输入的时钟同步,如时钟的上升沿到来时,M_MDI端开始输入信息。The M_MDI terminal is used to transmit the control information of the MAC layer and the status information of the physical layer. The status information is sampled by the MDIO protocol transmission. The information output by the M_MDI terminal is synchronized with the clock input by the M_MDC terminal. For example, when the rising edge of the clock arrives, the M_MDI start to enter information.
M_OEN端,用于输入使能信号,控制与第一连接器310连接的设备或芯片的输入与输出,低电平,用于指示该设备或芯片输入数据;高电平,用于指示该设备或芯片输出数据。The M_OEN terminal is used to input the enable signal to control the input and output of the device or chip connected to the first connector 310 , the low level is used to instruct the device or chip to input data; the high level is used to instruct the device or chip output data.
M_MDO端,与M_MDI端类似,用于接收MAC层的控制信息和物理层的状态信息,该状态信息采样的是MDIO协议传输,M_MDO端输出的信息与M_MDC端输入的时钟同步。The M_MDO end, similar to the M_MDI end, is used to receive the control information of the MAC layer and the state information of the physical layer. The state information is sampled by the MDIO protocol transmission, and the information output by the M_MDO end is synchronized with the clock input by the M_MDC end.
由上述结构构成的第二连接器330,将并行的通信协议转换为串行的MDIO协议。The second connector 330 constituted by the above structure converts the parallel communication protocol into the serial MDIO protocol.
因此,通过本发明实施例的方案,将输入的MDIO协议信息经过内部转换,转换为多个支路的MDIO协议信息,从而实现对多个目标装置的统一管理;此外,不同支路的MDIO协议信息之间相互独立,使得不同目标装置之间的工作速率、工作状态和工作频率相互独立,彼此不受影响。Therefore, through the solution of the embodiment of the present invention, the input MDIO protocol information is converted into the MDIO protocol information of multiple branches through internal conversion, so as to realize the unified management of multiple target devices; in addition, the MDIO protocols of different branches are The information is independent of each other, so that the working rates, working states and working frequencies of different target devices are independent of each other and are not affected by each other.
此外通过本发明实施例的方案,由于不同第二连接器之间相互独立,可以按照工作速率将第二连接器分组,速率相近的设备分为一组,速率差异较大的目标装置,如PHY芯片分成不同的组;然后,将这些组按照传统的方式连接到本桥接装置的不同第二连接器,因此,可以实现对不同速率的PHY芯片进行统一管理。In addition, through the solution of the embodiment of the present invention, since different second connectors are independent of each other, the second connectors can be grouped according to the working rate, the devices with similar rates are grouped into a group, and the target devices with large differences in rates, such as PHY The chips are divided into different groups; then, these groups are connected to different second connectors of the bridge device in a conventional manner, so that unified management of PHY chips of different rates can be realized.
本发明实施例还提供了一种管理系统,如图8所示,为本发明实施提供的一种一种管理系统的结构示意图,包括:桥接装置300、管理装置400和至少一个目标装置500;其中,An embodiment of the present invention further provides a management system, as shown in FIG. 8 , which is a schematic structural diagram of a management system provided by the implementation of the present invention, including: a bridge device 300, a management device 400, and at least one target device 500; in,
管理装置400,与桥接装置300连接,用于产生并输出管理数据输入输出协议信息,以根据输出的信息管理所述至少一个目标装置500;a management device 400, connected to the bridge device 300, for generating and outputting management data input and output protocol information, so as to manage the at least one target device 500 according to the output information;
这里,管理装置400可以是MAC器件。Here, the management apparatus 400 may be a MAC device.
桥接装置300,与至少一个目标装置500连接,用于接收管理数据输入输出协议信息,将接收到的信息转换为并行的通信协议信息;将通信协议信息进行多路分发,将分发后的信息转换为多路的管理数据输入输出协议信息;The bridging device 300 is connected to at least one target device 500, and is used for receiving management data input and output protocol information, converting the received information into parallel communication protocol information; multiplexing the communication protocol information, and converting the distributed information Input and output protocol information for multiple management data;
至少一个目标装置500,用于接收桥接装置500传输的管理数据输入输出协议信息,根据接收到的信息进行相应的管理操作。At least one target device 500 is configured to receive the management data input and output protocol information transmitted by the bridge device 500, and perform corresponding management operations according to the received information.
在可选的实施例中,目标装置为物理层芯片或下一级的桥接装置。In an optional embodiment, the target device is a physical layer chip or a next-level bridge device.
桥接装置300的内部功能和结构,可参考图3至图7,这里不再赘述。For the internal function and structure of the bridge device 300, reference may be made to FIG. 3 to FIG. 7, and details are not repeated here.
桥接装置300在管理系统系统中,将管理装置400对于本接口访问转化,拓展成对于多个目标装置500的访问;转化关系如表一,需要说明的是,后续提到的寄存器地址只是为了说明方便,并不规定必须使用该地址或如此进行寄存器划分;在保证本转化关系所需必要信息的前提下,可灵活划分。In the management system system, the bridging device 300 converts the access of the management device 400 to this interface, and expands it to access to multiple target devices 500; the conversion relationship is as shown in Table 1. It should be noted that the register addresses mentioned later are only for illustration. For convenience, it does not stipulate that the address must be used or the registers are divided in this way; it can be divided flexibly on the premise of ensuring the necessary information required by this conversion relationship.
表一 转化关系Table 1 Conversion relationship
对于标准MDIO协议(寄存器地址位宽5bit),本桥接结构最大可以支持3个第二连接器;对于扩展协议支持的地址寄存器位宽为16bit,则可以支持高达6千个第二连接器。For the standard MDIO protocol (register address bit width is 5 bits), the bridge structure can support up to 3 second connectors; for the address register bit width supported by the extended protocol is 16 bits, it can support up to 6,000 second connectors.
通过本桥接装置,对于接入的MDIO设备的访问变为如下方式,假设要访问设备的PHY挂在本桥接的端口1上,PHY的ID为PHY_ID,访问的寄存器地址为Addr:(MIIWrite为MDIO接口的写操作,MIIRead为MDIO接口读操作)。Through this bridge device, the access to the connected MDIO device becomes as follows, assuming that the PHY of the device to be accessed is hung on port 1 of the bridge, the ID of the PHY is PHY_ID, and the address of the accessed register is Addr: (MIIWrite is MDIO The write operation of the interface, MIIRead is the read operation of the MDIO interface).
A)读访问:A) Read access:
MIIWrite:{2’h1,3’h2},PHY_ID;//写端口1的PHY/DEV寄存器为PHY_ID;MIIWrite: {2'h1,3'h2}, PHY_ID; //write port 1's PHY/DEV register to PHY_ID;
MIIWrite:{2’h1,3’h0},Addr;//写端口1的Addr寄存器为Addr;MIIWrite: {2'h1,3'h0}, Addr; //The Addr register of write port 1 is Addr;
MIIWrite:{2’h1,3’h5},16’h1;//写端口1的OP寄存器为1;触发对端口1MDIO的读操作;MIIWrite: {2'h1,3'h5}, 16'h1; //write the OP register of port 1 to 1; trigger the read operation of port 1MDIO;
MIIREAD:{2’h1,3’h4},DATA;//读端口1的Status寄存器,DATA返回值为1表示正在执行读操作;为零表示读操作完成;MIIREAD: {2'h1,3'h4}, DATA; //Read the Status register of port 1, the DATA return value is 1 to indicate that the read operation is being performed; zero indicates that the read operation is completed;
MIIREAD:{2’h1,3’h1},DATA;//读端口1的DATA寄存器,当读操作完成时,返回读数据;MIIREAD: {2'h1,3'h1}, DATA; //Read the DATA register of port 1, when the read operation is completed, return the read data;
B)写访问:B) Write access:
MIIWrite:{2’h1,3’h2},PHY_ID;//写端口1的PHY/DEV寄存器为PHY_ID;MIIWrite: {2'h1,3'h2}, PHY_ID; //write port 1's PHY/DEV register to PHY_ID;
MIIWrite:{2’h1,3’h0},Addr;//写端口1的Addr寄存器为Addr;MIIWrite: {2'h1,3'h0}, Addr; //The Addr register of write port 1 is Addr;
MIIWrite:{2’h1,3’h1},DATA;//写端口1的DATA寄存器,触发对端口1MDIO的写操作;MIIWrite: {2'h1,3'h1}, DATA; //Write the DATA register of port 1 to trigger the write operation to port 1MDIO;
MIIREAD:{2’h1,3’h1},DATA;//读端口1的Status寄存器,DATA返回值为1表示正在执行操作;为零表示操作完成。MIIREAD: {2'h1,3'h1}, DATA; //Read the Status register of port 1, the DATA return value is 1 to indicate that the operation is being performed; zero indicates that the operation is completed.
当连续访问某个第二连接器的同一个PHY芯片或设备时,该芯片或设备中寄存器地址不需要每次进行读写更新;同样,当连续读写同一个地址时,寄存器中的地址不需要更新,以提升访问效率。在地址{2’h3,3’h0}的Status中,Status[1:0]表示端口P0的状态,Status[3:2]表示P1的状态,Status[5:4]表示P2的状态;通过优先查询该状态,访问空闲设备,可以使得各个Port并行,进一步提升访问效率。When accessing the same PHY chip or device of a second connector continuously, the address of the register in the chip or device does not need to be updated every time; Updates are required to improve access efficiency. In the Status of the address {2'h3,3'h0}, Status[1:0] indicates the status of port P0, Status[3:2] indicates the status of P1, and Status[5:4] indicates the status of P2; Querying this state first and accessing idle devices can make each port parallel and further improve the access efficiency.
通过本发明实施例的方案,可以具有以下有益效果:Through the scheme of the embodiment of the present invention, the following beneficial effects can be obtained:
1)桥接装置中的各个第二连接器间的工作速率相互独立,因此,可将速率差异较大的PHY芯片工作在不同的第二连接器上,与传统方式相比,避免了目标装置完全受限于最低的MDIO速率,从而提升了统一管理的工作速率。1) The working rates of the second connectors in the bridge device are independent of each other. Therefore, PHY chips with large differences in speed can be operated on different second connectors. Compared with the traditional method, the target device is prevented from being completely Limited by the lowest MDIO rate, thus improving the work rate of unified management.
2)桥接装置中的各个第二连接器既可以直接与多个目标芯片或设备连接,也可以与下一级的桥接装置级联,大大的提高了管理PHY芯片或设备的数量。2) Each second connector in the bridging device can be directly connected to multiple target chips or devices, or can be cascaded with the next-level bridging device, which greatly increases the number of managed PHY chips or devices.
以上所述,仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。凡在本发明的精神和范围之内所作的任何修改、等同替换和改进等,均包含在本发明的保护范围之内。The above descriptions are merely preferred embodiments of the present invention, and are not intended to limit the protection scope of the present invention. Any modifications, equivalent replacements and improvements made within the spirit and scope of the present invention are included in the protection scope of the present invention.
Claims (12)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710691359.1A CN109391604B (en) | 2017-08-14 | 2017-08-14 | A bridge device and management system for managing data input and output protocols |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710691359.1A CN109391604B (en) | 2017-08-14 | 2017-08-14 | A bridge device and management system for managing data input and output protocols |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109391604A true CN109391604A (en) | 2019-02-26 |
CN109391604B CN109391604B (en) | 2021-07-20 |
Family
ID=65416828
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710691359.1A Active CN109391604B (en) | 2017-08-14 | 2017-08-14 | A bridge device and management system for managing data input and output protocols |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109391604B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110765060A (en) * | 2019-10-09 | 2020-02-07 | 深圳震有科技股份有限公司 | Method, device, equipment and medium for converting MDIO bus into parallel bus |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110035580A1 (en) * | 2009-08-06 | 2011-02-10 | Broadcom Corporation | Media access control security management in physical layer |
US7961705B2 (en) * | 2003-04-30 | 2011-06-14 | Lightwaves Systems, Inc. | High bandwidth data transport system |
CN102279712A (en) * | 2011-08-10 | 2011-12-14 | 北京百度网讯科技有限公司 | Storage control method, system and device applied to network storage system |
CN102291423A (en) * | 2011-05-12 | 2011-12-21 | 福建星网锐捷网络有限公司 | Method for controlling physical layer (PHY) chip and control circuit |
-
2017
- 2017-08-14 CN CN201710691359.1A patent/CN109391604B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7961705B2 (en) * | 2003-04-30 | 2011-06-14 | Lightwaves Systems, Inc. | High bandwidth data transport system |
US20110035580A1 (en) * | 2009-08-06 | 2011-02-10 | Broadcom Corporation | Media access control security management in physical layer |
CN102291423A (en) * | 2011-05-12 | 2011-12-21 | 福建星网锐捷网络有限公司 | Method for controlling physical layer (PHY) chip and control circuit |
CN102279712A (en) * | 2011-08-10 | 2011-12-14 | 北京百度网讯科技有限公司 | Storage control method, system and device applied to network storage system |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110765060A (en) * | 2019-10-09 | 2020-02-07 | 深圳震有科技股份有限公司 | Method, device, equipment and medium for converting MDIO bus into parallel bus |
CN110765060B (en) * | 2019-10-09 | 2023-05-30 | 深圳震有科技股份有限公司 | MDIO bus-to-parallel bus conversion method and device, equipment and medium |
Also Published As
Publication number | Publication date |
---|---|
CN109391604B (en) | 2021-07-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8514877B2 (en) | Method and system for a plurality of physical layers for network connection | |
US6516352B1 (en) | Network interface system and method for dynamically switching between different physical layer devices | |
US6065073A (en) | Auto-polling unit for interrupt generation in a network interface device | |
US7668984B2 (en) | Low latency send queues in I/O adapter hardware | |
US8649387B2 (en) | Method and system for fibre channel and ethernet interworking | |
US6944152B1 (en) | Data storage access through switched fabric | |
TWI423617B (en) | Method and system for control of energy efficiency and associated policies in a physical layer device | |
US20030120852A1 (en) | Multiple port allocation and configurations for different port operation modes on a host | |
US7193994B1 (en) | Crossbar synchronization technique | |
US7672326B1 (en) | Serial media independent interface with double data rate | |
US20080089358A1 (en) | Configurable ports for a host ethernet adapter | |
JPH08265270A (en) | Transfer line assignment system | |
US6665754B2 (en) | Network for increasing transmit link layer core speed | |
CN101404645B (en) | Multiport Ethernet interface, its implementing method and physical layer interface | |
JP2004503122A (en) | Method and apparatus for transferring data between different network devices via an IP network | |
WO2024250863A1 (en) | Data processing method and apparatus, device, and medium | |
EP1471705A1 (en) | A means and control method for adapting different media of transmission link of network on physical layer. | |
EP1988470B1 (en) | Network device and transmission method thereof | |
CN109391604B (en) | A bridge device and management system for managing data input and output protocols | |
US6578080B1 (en) | Mechanism for run time programming of hardware resources with least interference with continued operation | |
US20040081096A1 (en) | Method and device for extending usable lengths of fibre channel links | |
WO2024183416A1 (en) | Out-of-band ethernet interface switching apparatus, multi-node server system and server device | |
US9274586B2 (en) | Intelligent memory interface | |
EP2300925B1 (en) | System to connect a serial scsi array controller to a storage area network | |
CN111614793B (en) | FPGA-based Ethernet switch MAC address management device and method |
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 |