Physical layer module and network module

By introducing the group decoder and selection module into the physical layer module, the number of physical layer components is expanded, and the group selection frame is used to identify component access groups, which solves the problem of insufficient number of components under the Clause 22 specification and improves the network module access efficiency.

CN118740949APending Publication Date: 2024-10-01FARADAY TECH CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410010993.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2023-03-29
Filing Date
2024-01-02
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

The number of physical layer components defined in the Clause 22 specification of the IEEE 802.3 standard is insufficient, causing the management data input and output signal MDIO to be unable to correctly interpret the address, affecting network communication efficiency.

Method used

This paper proposes a physical layer module that complies with the Clause 22 specification in the 802.3 standard. It expands the number of physical layer components through the group decoder, input selection module and component module, and uses the group selection frame gpFRM to identify component storage. Get groups to implement selective access operations on multiple entity layer components.

Benefits of technology

It effectively expands the number of physical layer components, improves the processing capabilities of management data input and output signals, enhances the access efficiency of network modules, and avoids communication problems caused by insufficient number of components under the Clause 22 specification.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118740949A_ABST
    Figure CN118740949A_ABST
Patent Text Reader

Abstract

The invention relates to an entity layer module and a network module. The network module comprises a physical layer module and a media access layer module. The entity layer module comprises a group decoder, an input selection module and a component module. The group decoder decodes a common input data signal generated according to the management data input / output signal to generate a group selection signal. The input selection module comprises X input circuits divided into M groups. The X input circuits generate X component input data according to a common input data signal and a group selection signal. The component module comprises K physical layer components divided into M groups. The K physical layer components receive X component input data from the X input circuits. The mth group corresponds to at least one input circuit and N [m] physical layer components.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a physical layer module and a network module, and more particularly to a physical layer module and a network module that expand the number of physical layer components in accordance with Clause 22 of the IEEE 802.3 standard. Background Art

[0002] Management Data Input / Output (MDIO) (also known as Serial Management Interface (SMI)) is a communication method between the Media Access Control (MAC) and the Port Physical Layer (PHY) in Gigabit Ethernet devices.

[0003] MDIO divides devices into two categories: the Station Management Entity (STA) as the master device and the MDIO Management Device (MMD) as the slave device. The Station Management Entity (STA) is used to drive the Management Data Clock (MDC) and initiate the communication of the Management Data Input / Output Signal MDIO. Usually, the Station Management Entity (STA) is part of the Media Access Layer MAC, and the MDIO Management Device (MMD) is part of the End Physical Layer PHY. The Management Data Input / Output Signal MDIO bus has two signal lines (wires), and transmits the Management Data Clock Signal MDC and the Management Data Input / Output Signal MDIO in a serial manner. The Management Data Input / Output Clock Signal MDC is driven by the Station Management Entity (STA), so its transmission direction remains fixed, while the transmission direction of the Management Data Input / Output Signal MDIO changes according to the different read operations READ or write operations WRITE.

[0004] The management data input and output signal MDIO was first defined in Clause 22 of the Institute of Electrical and Electronics Engineers (IEEE) 802.3 standard. Figure 1, which is a schematic diagram of the format of the management frame mngFRM22 according to the Clause 22 specification.

[0005] The communication format according to Clause 22 specification includes: start field ST (2 bits), access type field OP (2 bits), physical layer address field PHYADR (5 bits), register address field REGADR (5 bits), turnaround time field TA (2 bits), and data field DATA (16 bits). Table 1 lists the fields for the read operation READ or write operation WRITE performed by the management data input and output signal MDIO between the media access layer MAC and the end physical layer PHY according to the Clause 22 specification.

[0006] Table 1

[0007]

[0008] As shown in Table 1, at the beginning of the media access layer MAC sending the management frame mngFRM22, it first sends a series of preamble bits PRE, and then sends the start field ST (ST=01) representing Clause 22. If the media access layer MAC performs a read operation READ on the end physical layer PHY, the access type field OP is 10 (OP=10); if the media access layer MAC performs a write operation WRITE on the end physical layer PHY, the access type field OP is 01 (OP=01). In addition, after the media access layer MAC sends data to the end physical layer PHY, it sets the management data input and output signal MDIO to high impedance (Z) (idle state IDLE).

[0009] According to the definition of Clause 22, the length of the physical layer address field PHYADR is 5 bits, which means that an interface for managing data input and output signals MDIO can include 32 different physical layer components. These 32 physical layer components correspond to an access address represented by a length of 5 bits. Only when the physical layer address field PHYADR matches the access address corresponding to the end physical layer PHY, the end physical layer PHY will respond to the command of the media access layer MAC.

[0010] Because Clause 22 can contain too few physical layer components (32), an enhanced version of the management data input and output signal MDIO was later defined in Clause 45, which can contain 65536 different physical layer components (physical layer devices). Figure 2, which is a schematic diagram of the format of the management frame mngFRM45 according to the Clause 45 specification.

[0011] The management frame mngFRM45 according to Clause 45 specification includes a start field ST (2 bits), an access type field OP (2 bits), a physical layer address field PHYADR (5 bits), a device address field DEVADR (5 bits), a transition time field TA (2 bits), and an address field ADDR or a data field DATA (16 bits). Compared with Clause 22, Clause 45 replaces the register address field REGADR with the device address field DEVADR. According to the Clause 22 specification, a management frame mngFRM22 includes both the physical layer address field PHYADR and the data field DATA. However, in Clause 45, the media access layer MAC may first transmit the physical layer address to the MDIO management device (MMD) and the register using an address frame, and then transmit the access type field OP of the read operation READ or the write operation WRITE using another management frame mngFRM45.

[0012] In short, the main reason why Clause 22 and Clause 45 can contain different numbers of physical layer components is that Clause 22 and Clause 45 use different lengths of addresses for accessing physical layer components. Clause 22 uses a 5-bit physical layer address field PHYADR to represent the access address of the physical layer component, while Clause 45 uses a 16-bit address field ADDR to represent the access address of the physical layer component. Although Clause 45 can solve the problem of insufficient number of physical layer components in Clause 22, the physical layer components that originally support Clause 22 will not be able to correctly read the address field of the management data input and output signal MDIO. Summary of the invention

[0013] The present invention relates to a physical layer module and a network module which expand the number of physical layer components used in accordance with Clause 22 of the 802.3 standard.

[0014] According to a first aspect of the present invention, a physical layer module is provided. The physical layer module is accessed by a media access layer module through a management data input / output signal. The physical layer module comprises: a group decoder, an input selection module and a component module. The group decoder decodes a common input data signal generated according to the management data input / output signal to generate a group selection signal. The input selection module is electrically connected to the group decoder. The input selection module comprises: X input circuits divided into M groups. The X input circuits generate X component input data according to the common input data signal and the group selection signal. The component module is electrically connected to the input selection module. The component module comprises: K physical layer components divided into M groups. The K physical layer components receive X component input data from the X input circuits respectively. The mth group among the M groups corresponds to at least one input circuit among the X input circuits and N[m] physical layer components among the K physical layer components. When the group selection signal corresponds to the mth group, at least one input circuit corresponding to the mth group outputs at least one component input data to N[m] physical layer components according to the common input data signal and the group selection signal, so that the N[m] physical layer components selectively perform access operations according to the at least one component input data. In addition, input circuits other than at least one input circuit among the X input circuits stop outputting component input data other than at least one component input data among the X component input data, so that the remaining (KN[m]) physical layer components not corresponding to the mth group are disabled. Wherein, X, M, K, m, N[m] are positive integers, K is greater than N[m], and m is less than or equal to M.

[0015] According to a second aspect of the present invention, a network module is provided. The network module includes a physical layer module and a media access layer module. The media access layer module transmits or receives management data input / output signals. The physical layer module is electrically connected to the media access layer module. The physical layer module is accessed by the media access layer module through the management data input / output signals.

[0016] In order to better understand the above and other aspects of the present invention, embodiments are given below and described in detail with reference to the accompanying drawings: BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 , which is a schematic diagram of the format of the management frame mngFRM22 according to the Clause 22 specification;

[0018] Figure 2 , which is a schematic diagram of the format of the management frame mngFRM45 according to the Clause 45 specification;

[0019] Figure 3 , which is a schematic diagram of the format of the group selection frame gpFRM proposed according to the concept of the present disclosure;

[0020] Figure 4A , which is a flow chart of using the network module conceived by the present disclosure to manage the data input and output signal MDIO to manage the communication between the physical station (STA) and the MDIO management device (MMD);

[0021] Figure 4B , which is a block diagram of an electronic device using an embodiment of a network module conceived by the present disclosure;

[0022] Figure 5 , which is a schematic diagram of dividing the MDIO management device (MMD) conceived by the present disclosure into two component access groups GP1 and GP2, and the component access groups GP1 and GP2 each include two physical layer components;

[0023] Figure 6 , which is a schematic diagram of another embodiment of an MDIO management device (MMD) contemplated by the present disclosure;

[0024] Figure 7 , which is a flow chart of an MDIO management device (MMD) contemplated by the present disclosure; and

[0025] Figure 8 , which is a flowchart of the group decoder determining the type of input frame inFRM.

[0026] Description of reference numerals:

[0027] ST: Start column

[0028] OP: Access type field

[0029] PHYADR: Physical layer address field

[0030] REGADR: Register address field

[0031] TA: Transition Time Column

[0032] DATA: Data field

[0033] ADDR: Address field

[0034] DEVADR: Device address field

[0035] GROUP: Group selection field

[0036] REG0~REG31: register

[0037] 111,STA: Management Entity Station

[0038] 131,MMD:MDIO Management Device

[0039] S411, S413, S415, S417, S421, S423, S425, S603, S605, S607, S609, S610, S611, S605a, S605c, S605e, S605g, S605i, S605k, S605m: Step gsSTG: Group selection stage

[0040] acSTG: Access Phase

[0041] 1: Electronic devices

[0042] 18: Network

[0043] 10: Network module

[0044] 12: Control module

[0045] 14: Functional modules

[0046] 16: Transceiver module

[0047] 11, MAC: Media Access Layer Module

[0048] mac_Tx,phy_Tx: transmitter

[0049] mac_Rx,phy_Rx: receiver

[0050] MDC: Management Data Clock

[0051] MDIO: Management data input and output signals

[0052] 13,PHY: physical layer module

[0053] 131a,21: Buffer module

[0054] 131c,23,33: Group decoder

[0055] 131e,25,35: Input selection module

[0056] 131g,27,37: Component module

[0057] 131i,29,39: Output selection module

[0058] 211,213: Buffer circuit

[0059] 211a,213a: Pad

[0060] 211c,213c,213e: Buffer gate

[0061] mdc_in: clock input

[0062] mdio_in: data input terminal, management interface input signal

[0063] gpDEC: Group selection output terminal

[0064] inClk: input clock signal

[0065] inDAT_cmn: common input data signal

[0066] gsSIG[1],gsSIG[S]: Group selection signal

[0067] 251a,252a: Inverter

[0068] 251b, 252b, 253a, 254a: Input and gate

[0069] 291,292,293,294: Output and gate gsSIGb[1]: Inverted group selection signal

[0070] inCkt(GP1,1),inCkt(GP1,2),inCKT(GP2,1),inCKT(GP2,2),inCkt(GP1),inCkt(GPm),inCkt(GPM): Input circuit

[0071] devID1-1, devID1-2, devID2-1, devID2-2: component input data

[0072] inGP1, inGP2: input group

[0073] pDEV(GP1,1),pDEV(GP1,2),pDEV(GP2,1),pDEV(GP2,2),pDEV(GP1,n[1]),pDEV(GP1,N[1]),pDEV( GPm,1),pDEV(GPm,n[m]),pDEV(GPm,N[m]),pDEV(GPM,1),pDEV(GPM,n[M]),pDEV(GPM,N[M]): physical layer components

[0074] out: data output terminal

[0075] outEN: output data enable terminal

[0076] devOD1-1, devOD1-2, devOD2-1, devOD2-2: raw component output data

[0077] devOE1-1, devOE1-2, devOE2-1, devOE2-2: Component output enable signal

[0078] in1, in2, in3, in4: input terminals

[0079] outDAT1-1, outDAT1-2, outDAT2-1, outDAT2-2: Component output data after enabling

[0080] outD_phy: physical layer output data

[0081] outEN_phy: physical layer output enable signal

[0082] 29a,29b: or gate DETAILED DESCRIPTION

[0083] See also Figure 3 , which is a schematic diagram of the format of the group selection frame gpFRM proposed according to the concept of the present disclosure. The group selection frame gpFRM according to the concept of the present disclosure includes: a start field ST (2 bits), an access type field OP (2 bits), a physical layer address field PHYADR (5 bits), a register address field REGADR (5 bits), a conversion time field TA (2 bits), and a group selection field GROUP (16 bits). In the group selection frame gpFRM, the value of the conversion time field TA is fixed to "0b10".

[0084] Please also see Figure 1 , 3 . According to the concept of the present disclosure, the fields of the group selection frame gpFRM are roughly the same as the fields of the management frame mngFRM22 of Clause 22. The difference between the two is that the last 16 bits of the group selection frame gpFRM are defined as the group selection field GROUP, but the last 16 bits of the management frame mngFRM22 of Clause 22 are defined as the data field DATA. In the group selection frame gpFRM, the access type field OP is fixed to OP=01, that is, the value of the access type field OP corresponding to the write operation WRITE of Clause 22. In addition, according to the concept of the present disclosure, the end physical layer PHY does not read the physical layer address field PHYADR of the group selection frame gpFRM. Therefore, the media access layer MAC can arbitrarily fill in values ​​in the 5 bits of the physical layer address field PHYADR of the group selection frame gpFRM.

[0085] In the group selection frame gpFRM, the register address field REGADR is used to indicate a preselected register presetREG. The position (10th to 14th bits) and the number of bits (5 bits) of the register address field REGADR in the group selection frame gpFRM match the position (10th to 14th bits) and the number of bits (5 bits) of the register address field REGADR of the management frame mngFRM22 defined in Clause 22.

[0086] According to the definition of Clause 22, the register address field REGADR of the management frame mngFRM22 can address 32 registers (REG0-REG31). Among these 32 registers (REG0-REG31), the attribute of registers REG2, REG3, REG5, REG6, REG8, REG10, and REG12 is read only. Please refer to Table 2, which is a list of registers defined according to Clause 22 and with read-only attribute.

[0087] Table 2

[0088]

[0089] According to the concept of the present disclosure, when the management entity station (STA) sends the group selection frame gpFRM, the access type field OP in the group selection frame gpFRM is set to a value corresponding to the write operation WRITE (OP=01). In addition, the management entity station (STA) sets the register address field REGADR in the group selection frame gpFRM to a register with a read-only attribute. For example, at least one of the PHY identification code register REG2 (register address field = 0b00010), REG3 (register address field = 0b00011), the automatic coordination link partner base paging capability register REG5 (register address field = 0b00101), the automatic coordination extension register REG6 (register address field = 0b00110), the automatic coordination link partner received sub-page register REG8 (register address field = 0b01000), the master-slave status register REG10 (register address field = 0b01010), and the power source device status register REG12 (register address field = 0b01100).

[0090] According to the definition of Clause 22, the register with read-only attribute can only be read and cannot be written. That is to say, according to the management frame mngFRM22 defined in Clause 22, the register with read-only attribute REG will not be used with the access type field OP=01 of the write operation WRITE. Therefore, by using the access type field OP=01 of the write operation WRITE with the register with read-only attribute, the MDIO management device (MMD) can know that the input frame inFRM currently transmitted by the management entity station (STA) is not based on the management frame mngFRM22 defined in Clause 22, but the group selection frame gpFRM. Accordingly, the MDIO management device (MMD) can select the component access group GP1~GPM according to the group selection field GROUP in the group selection frame gpFRM.

[0091] Since the formats of all fields except the group selection field GROUP in the group selection frame gpFRM of the present disclosure are consistent with the specification of Clause 22, and the present disclosure uses the combination of the access type field OP and the register in the Clause 22 specification, which seems to be contradictory, in the group selection frame gpFRM, so that the MDIO management device (MMD) can identify the additional information (i.e., the group selection field GROUP) carried by the group selection frame gpFRM.

[0092] See also Figure 4A , which is a flow chart of using the network module conceived by the present disclosure to manage the data input and output signal MDIO to manage the communication between the physical station (STA) and the MDIO management device (MMD). In this figure, from top to bottom represents the passage of time (the order of steps). Figure 4A The left side of the diagram shows the steps performed by the management entity station (STA) 111, and the right side shows the steps performed by the MDIO management device (MMD) 131.

[0093] According to the concept of the present disclosure, the network module divides the process of managing the communication between the physical station (STA) and the MDIO management device (MMD) using the management data input and output signal MDIO into two stages: the group selection stage gsSTG and the access stage acSTG. The network module will enter the access stage acSTG after the group selection stage gsSTG ends.

[0094] In the group selection phase gsSTG, the management entity station (STA) 111 selects the component access group (GPm) where the physical layer component to be used is located (step S411), and transmits the group selection frame gpFRM (step S413). Next, the MDIO management device (MMD) 131 parses the group selection frame gpFRM and selects the component access group GPm (step S415). The input selection module enables the physical layer components pDEV (GPm, 1) to pDEV (GPm, N[m]) of the component access group GPm (step S417).

[0095] In the access phase acSTG, the management station (STA) 111 prepares and transmits a management frame mngFRM22 to the N[m] physical layer components pDEV(GPm,1) to pDEV(GPm,N[m]) in the m-th component access group GPm according to the specification of Clause 22 (steps S421 and S423). The content of the management frame mngFRM22 corresponds to a physical layer component pDEV(GPm,n) selected by the management station (STA) 111 for accessing the m-th component access group GPm.

[0096] Thereafter, the physical layer component pDEV(GPm,n) performs data access according to the management frame mngFRM22 (step S425). The physical layer component pDEV(GPm,n) includes a parser for parsing each field of the management frame mngFRM22 (see Figure 1 ). After analysis, the physical layer component pDEV (GPm, n) will perform a write operation WRITE or a read operation READ according to the access type field OP, or read or set the internal register according to the register address field REGADR. How the physical layer component pDEV (GPm, n) operates based on Clause 22 and its internal design will not be described in detail here.

[0097] According to the concept of the present disclosure, in the group selection phase gsSTG, the management entity station (STA) 111 selects Figure 3 In the access phase acSTG, the management entity station (STA) 111 transmits a group selection frame gpFRM. Figure 1Transmit the management frame mngFRM22 defined based on Clause 22. According to the concept of the present disclosure, only when the physical layer component pDEV that the management entity station (STA) 111 wants to access subsequently belongs to different component access groups GP1~GPM from the physical layer component pDEV that was originally accessed, the management entity station (STA) 111 needs to transmit the group selection frame gpFRM to the MDIO management device (MMD) 131 again. Therefore, when the physical layer components that the management entity station (STA) 111 wants to access successively belong to the same component access group GPm, the network module continues to be in the access stage acSTG. That is to say, in actual application, steps S421, S423, and S425 may be repeated multiple times before steps S411, S413, S415, and S417 are executed again.

[0098] See also Figure 4B , which is a block diagram of an electronic device using an embodiment of the network module conceived by the present disclosure. The electronic device 1 includes a control module 12, a functional module 14, a network module 10 and a transceiver module 16. The control module 12 is electrically connected to the functional module 14 and the network module 10. The transceiver module 16 is electrically connected to the network module 10, and the transceiver module 16 is signal-connected to the network 18. Among them, the control module 12 is used to coordinate the operation between various modules, and the operation of the functional module 14 varies depending on the purpose of the electronic device 1.

[0099] The network module 10 includes a media access layer module (MAC) 11 and a physical layer module (PHY) 13 which are electrically connected to each other. The media access layer module (MAC) 11 is electrically connected to the control module 12, and the physical layer module (PHY) 13 is electrically connected to the transceiver module 16. The media access layer module (MAC) 11 further includes: a management entity station (STA) 111, a transmitter mac_Tx, and a receiver mac_Rx. The physical layer module (PHY) 13 further includes: an MDIO management device (MMD) 131, a transmitter phy_Tx, and a receiver phy_Rx. The management entity station (STA) 111 and the MDIO management device (MMD) 131 are electrically connected to each other; the transmitter mac_Tx and the receiver phy_Rx are electrically connected to each other; and the receiver mac_Rx and the transmitter phy_Tx are electrically connected to each other.

[0100] For ease of explanation, this document uses different capitalized variables (M, K, S, N[m], X) to represent the number of components / signals, or uses lowercase variables (m, n) to refer to one of the same type of components / signals. Among them, M, K, m, n, N[m] are positive integers, and S is an integer greater than or equal to 1. m is less than or equal to M, n is less than or equal to N[m], S is less than M, and M is less than K.

[0101] The management station (STA) of the media access layer module (MAC) and the MDIO management device (MMD) 131 of the physical layer module (PHY) 13 communicate through the management data clock signal MDC and the management data input and output signal MDIO. The MDIO management device (MMD) 131 further includes: a buffer module 131a, a group decoder 131c, an input selection module 131e, a component module 131g and an output selection module 131i. Among them, the component module 131g includes K physical layer components (pDEV[1]~pDEV[K]) that support Clause 22. Among them, K is a positive integer, and K≤2 (16+5) .

[0102] According to the concept of the present disclosure, K physical layer components (pDEV[1]~pDEV[K]) can be divided into M component access groups GP1~GPM. Component access groups GP1~GPM respectively include N[1]~N[M] physical layer components. Among them, K=N[1]+N[2]+…+N[M]. Each component access group GP1~GPM corresponds to a group access address represented by the group selection field GROUP. Among them, the N[m] physical layer components pDEV(GPm,1)~pDEV(GPm,N[m]) in the same component access group GPm are distinguished by the physical layer address field PHYADR. Among the N[m] physical layer components pDEV(GPm,1)-pDEV(GPm,N[m]) of the component access group GPm, only one physical layer component (e.g., physical layer component pDEV(GPm,n)) has a component address that matches the physical layer address field PHYADR. This physical layer component pDEV(GPm,n) is the selected physical layer component.

[0103] Therefore, in the component access group GPm, only the physical layer component pDEV(GPm,n) performs related operations according to the content of the management frame mngFRM22. On the other hand, the remaining (N[m]-1) physical layer components pDEV(GPm,1)~pDEV(GPm,(n-1)), pDEV(GPm,(n+1))~pDEV(GPm,N[m]) belonging to the component access group GPm ignore or discard the content of the management frame mngFRM22 because the component address and the physical layer address field PHYADR do not match.

[0104] Since the length of the physical layer address field PHYADR is 5 bits, the maximum value of the number of physical layer components N[1]~N[M] included in each component access group GP1~GPM is 32 (2 5=32). In actual applications, the maximum value of the number of physical layer components N[1]~N[M] included in each component access group GP1~GPM depends on the application. For example, although the length of the physical layer address field PHYADR is 5 bits, the media access layer module (MAC) only uses two bits to represent the number of physical layer components N[1]~N[M] included in the component access group GP1~GPM. Then, each component access group GP1~GPM can contain 4 (2 2 =4) Physical layer components.

[0105] In addition, to simplify control, it can be assumed that the number of physical layer components N[1]-N[M] included in each component access group GP1-GPM is equal, that is, N[1]=N[2]=...=N[M]. In actual application, the number of physical layer components N[1]-N[M] included in each component access group GP1-GPM may be different.

[0106] In response to the group selection frame gpFRM sent by the management physical station (STA), the present disclosure sets related auxiliary circuits in the physical layer module, and uses them with the existing physical layer components that only support Clause 22. These auxiliary circuits include: group decoder 131c, input selection module 131e and output selection module 131i.

[0107] When the management entity station (STA) transmits an input frame inFRM to the MDIO management device (MMD), these auxiliary circuits can be used to analyze the type of the input frame inFRM to determine whether it is a group selection frame gpFRM or a management frame mngFRM22 in accordance with the Clause 22 specification. When the auxiliary circuit analyzes the type of the input frame inFRM and determines that the input frame inFRM belongs to the group selection frame gpFRM, it means that the management entity station (STA) intends to perform related operations on a physical layer component in a component access group GPm in the component access groups GP1 to GPM. At this time, the auxiliary circuit will enable the component access group GPm through the group selection signals gsSIG[1] to gsSIG[S], and disable the component access groups GP1 to GP(m-1), GP(m+1) to GPM through the group selection signals gsSIG[1] to gsSIG[S].

[0108] When the auxiliary circuit analyzes the frame type and determines that the input frame inFRM belongs to the management frame mngFRM22, the input frame inFRM is transmitted to the component module 131g. At this time, the physical layer components pDEV (GPm, 1) ~ pDEV (GPm, N [m]) in the component access group GPm will analyze the input frame inFRM according to the Clause 22 specification, and determine whether to perform subsequent operations according to the input frame inFRM based on the analysis results. The details of how the physical layer components pDEV (GPm, 1) ~ pDEV (GPm, N [m]) analyze according to the Clause 22 specification and determine whether to perform subsequent operations are not described in detail in this article.

[0109] Since the MDIO management device (MMD) 131 cannot predict the type of the input frame inFRM transmitted by the management entity station (STA) 111, the auxiliary circuit will continue to monitor the content of the management data input and output signal MDIO to determine the format of the input frame inFRM, and then respond in time according to the type of the input frame inFRM. To further explain how the auxiliary circuit monitors the content of the management data input and output signal MDIO and determines the format of the input frame inFRM, Figure 5 In the example, it is assumed that the MDIO management device (MMD) is divided into two component access groups GP1 and GP2, and each of the component access groups GP1 and GP2 includes two physical layer components.

[0110] See also Figure 5 , which is a schematic diagram of the MDIO management device (MMD) conceived by the present disclosure. In this embodiment, it is assumed that the MDIO management device (MMD) includes M=2 component access groups GP1, GP2, and each component access group GP1, GP2 includes 2 physical layer components (N[1]=N[2]=2). Based on this assumption, the internal components and connection relationships of the buffer module 21, the group decoder 23, the input selection module 25, the component module 27 and the output selection module 29 are described below. In order to facilitate the description of the properties and positions of components and signals, the component access group (GPm) to which the component belongs and the position (n) in the component access group are indicated in the coordinate format (GPm,n), and some components are indicated in the connection number format GPm-n. Among them, GPm represents the component access group GP1, GP2 corresponding to the component or signal; n represents the physical layer component pDEV corresponding to the component or signal in the component access group.

[0111] The buffer module 21 includes buffer circuits 211 and 213. The buffer circuit 211 includes a pad 211a and a buffer gate 211c electrically connected to each other. After the pad 211a receives the management data clock signal MDC from the management entity station (STA), the buffer gate 211c transmits the input clock signal inClk to the group decoder 23 and the input selection module 25.

[0112] The buffer circuit 213 includes a pad 213a and buffer gates 213c and 213e. The pad 213a is electrically connected to the input end of the buffer gate 213c and the output end of the buffer gate 213e. The buffer circuit 213 transmits the management data input / output signal MDIO to the management entity station (STA), or receives the management data input / output signal MDIO from the management entity station (STA). The input end of the buffer gate 213e receives the physical layer output data outD_phy, and the buffer gate 213e is enabled or disabled according to the physical layer output enable signal outEN_phy. When the buffer gate 213e is enabled by the physical layer output enable signal outEN_phy, the pad 213a receives the output of the buffer gate 213e, and the buffer gate 213a transmits the management data input / output signal MDIO to the management entity station (STA). When the buffer gate 213 e is disabled by the physical layer output enable signal outEN_phy, the buffer circuit 213 receives the management data input / output signal MDIO from the management physical station (STA), and the buffer gate 213 c outputs the common input data signal inDAT_cmn to the group decoder 23 and the input selection module 25 .

[0113] The clock input terminal mdc_in of the group decoder 23 is electrically connected to the buffer gate 211c, and the data input terminal mdio_in is electrically connected to the buffer gate 213c. In addition, the group selection output terminal gpDEC of the group decoder 23 generates S group selection signals gsSIG[1]-gsSIG[S]. Because it is assumed here that M=2, Figure 5 The number S of the group selection signal gsSIG=1. Table 3 further summarizes the correspondence between the group selection signal gsSIG[1] of the group decoder 23 and the device access groups GP1 and GP2.

[0114] Table 3

[0115]

[0116] The input selection module 25 includes input groups inGP1 and inGP2 corresponding to the device access groups GP1 and GP2 respectively. The input group inGP1 includes input circuits inCkt(GP1,1) and inCkt(GP1,2); the input group inGP2 includes input circuits inCKT(GP2,1) and inCkt(GP2,2).

[0117] In the input group inGP1, the input circuit inCkt(GP1,1) includes an inverter 251a and an input AND gate 251b; and the input circuit inCkt(GP1,2) includes an inverter 252a and an input AND gate 252b. The inverters 251a and 252a both receive the group selection signal gsSIG[1] from the group decoder 23 and generate an inverted group selection signal gsSIGb[1]. The input terminals in1 of the input AND gates 251b and 252b both receive the common input data signal inDAT_cmn from the buffer gate 213c, and the input terminals in2 of the input AND gates 251b and 252b respectively receive the inverted group selection signal gsSIGb[1] from the inverters 251a and 252a. The input AND gate 251b generates the device input data devID1-1 after performing an AND operation on the input terminals in1 and in2, and the input AND gate 252b generates the device input data devID1-2 after performing an AND operation on the input terminals in1 and in2. Since the internal components of the input circuits inCkt(GP1,1) and inCkt(GP1,2) are similar (each includes an input AND gate and an inverter, and the output of the inverter is electrically connected to one of the input terminals of the input AND gate), and the input circuits inCkt(GP1,1) and inCkt(GP1,2) both receive the group selection signal gsSIG[1] and the common input data signal inDAT_cmn. Therefore, the device input data devID1-1 generated by the input circuit inCkt(GP1,1) is substantially equal to the device input data devID1-2 generated by the input circuit inCkt(GP1,2).

[0118] In the input group inGP2, the input circuit inCKT(GP2,1) includes an input AND gate 253a; and the input circuit inCkt(GP2,2) includes an input AND gate 254a. The input terminals in1 of the input AND gates 253a and 254a both receive the common input data signal inDAT_cmn from the buffer gate 213c, and the input terminals in2 of the input AND gates 253a and 254a both receive the group selection signal gsSIG[1] from the group decoder 23. The input AND gate 253a performs an AND operation on the input terminals in1 and in2 to generate the device input data devID2-1, and the input AND gate 254a performs an AND operation on the input terminals in1 and in2 to generate the device input data devID2-2. Since the internal components of the input circuits inCkt(GP2,1) and inCkt(GP2,2) are similar (both include an input and gate), and the input circuits inCkt(GP2,1) and inCkt(GP2,2) both receive the group selection signal gsSIG[1] and the common input data signal inDAT_cmn, the device input data devID2-1 generated by the input circuit inCkt(GP2,1) and the device input data devID2-2 generated by the input circuit inCkt(GP2,2) are substantially equal.

[0119] Table 4 further summarizes the correspondence between the components, input / output signals and the device access groups GP1 and GP2 in the input selection module 25. In actual application, the configuration of the components inside the input circuit inCkt is related to the number of group selection signals gsSIG[1] to gsSIG[S] and the connection method between the input circuit inCkt and the group decoder 23, and does not need to be limited.

[0120] Table 4

[0121]

[0122] The component module 27 includes: physical layer components pDEV (GP1, 1), pDEV (GP1, 2), pDEV (GP2, 1), and pDEV (GP2, 2). The physical layer components pDEV (GP1, 1), pDEV (GP1, 2), pDEV (GP2, 1), and pDEV (GP2, 2) are all physical layer components designed based on the Clause 22 specification. The physical layer components pDEV (GP1, 1) to pDEV (GP2, 2) each have a clock input terminal mdc_in, a data input terminal mdio_in, a data output terminal out, and an output data enable terminal outEN.

[0123] The physical layer components pDEV(GP1,1) and pDEV(GP1,2) correspond to the component access group GP1; the physical layer components pDEV(GP2,1) and pDEV(GP2,2) correspond to the component access group GP2. The clock input terminals mdc_in of the physical layer components pDEV(GP1,1), pDEV(GP1,2), pDEV(GP2,1) and pDEV(GP2,2) all receive the input clock signal inClk. The data input terminals mdio_in of the physical layer components pDEV(GP1,1), pDEV(GP1,2), pDEV(GP2,1) and pDEV(GP2,2) are electrically connected to the output terminals of the input circuits inCkt(GP1,1), inCkt(GP1,2), inCkt(GP2,1) and inCkt(GP2,2), respectively. The data output terminal out and the output data enable terminal outEN of the physical layer component pDEV (GP1, 1) are electrically connected to the output AND gate 291; the data output terminal out and the output data enable terminal outEN of the physical layer component pDEV (GP1, 2) are electrically connected to the output AND gate 292; the data output terminal out and the output data enable terminal outEN of the physical layer component pDEV (GP2, 1) are electrically connected to the output AND gate 293; the data output terminal out and the output data enable terminal outEN of the physical layer component pDEV (GP2, 2) are electrically connected to the output AND gate 294.

[0124] According to the concept of the present disclosure, the way in which the physical layer components pDEV (GP1, 1), pDEV (GP1, 2), pDEV (GP2, 1), and pDEV (GP2, 2) perform a write operation WRITE (OP=01) or a read operation READ (OP=10) in response to the operation represented by the access type field OP varies with the component access groups GP1 and GP2 to which the physical layer components pDEV (GP1, 1), pDEV (GP1, 2), pDEV (GP2, 1), and pDEV (GP2, 2) belong. The following describes the situations of the write operation WRITE (OP=01) or the read operation READ (OP=10).

[0125] When the management entity station (STA) intends to perform a write operation WRITE (OP=01), if the content of the group selection field GROUP in the previously transmitted group selection frame gpFRM corresponds to the component access group GP1, only the physical layer components pDEV (GP1, 1) and pDEV (GP1, 2) belonging to the component access group GP1 receive the component input data devID1-1 and devID1-2; the physical layer components pDEV (GP2, 1) and pDEV (GP2, 2) belonging to the component access group GP2 are disabled (do not receive the component input data devID2-1 and devID2-2). On the contrary, when the management entity station (STA) intends to perform a write operation WRITE (OP=01), if the content of the group selection field GROUP in the previously transmitted group selection frame gpFRM corresponds to the component access group GP2, the physical layer components pDEV(GP1,1) and pDEV(GP1,2) belonging to the component access group GP1 are disabled (do not receive component input data devID1-1 and devID1-2); only the physical layer components pDEV(GP2,1) and pDEV(GP2,2) belonging to the component access group GP2 receive the component input data devID2-1 and devID2-2.

[0126] When the management station (STA) intends to perform a read operation READ (OP=10), if the content of the group selection field GROUP in the previously transmitted group selection frame gpFRM corresponds to the device access group GP1, the output data enable terminal outEN of the physical layer device corresponding to the physical layer address field PHYADR in the physical layer devices pDEV(GP1,1) and pDEV(GP1,2) belonging to the device access group GP1 is 1; the output data enable terminal outEN of the other physical layer device not corresponding to the physical layer address field PHYADR is 0. Furthermore, the output data enable terminal outEN of the physical layer devices pDEV(GP2,1) and pDEV(GP2,2) belonging to the device access group GP2 is 0.

[0127] For example, if the content of the group selection field GROUP in the previously transmitted group selection frame gpFRM corresponds to the device access group GP1, and the physical layer address field PHYADR=0b00000, the output data enable terminal outEN of the physical layer device pDEV(GP1,1) is set to 1 (outEN=1), and the output data enable terminal outEN of the physical layer device pDEV(GP1,2) is set to 0 (outEN=0). In addition, the output data enable terminals outEN of the physical layer devices pDEV(GP2,1) and pDEV(GP2,2) belonging to the device access group GP2 are both set to 0 (outEN=0).

[0128] Similarly, when the management physical station (STA) intends to perform a read operation READ (OP=10), if the content of the group selection field GROUP in the previously transmitted group selection frame gpFRM corresponds to the device access group GP2, the output data enable terminal outEN of the physical layer devices pDEV(GP1,1) and pDEV(GP1,2) belonging to the device access group GP1 is 0. Moreover, among the physical layer devices pDEV(GP2,1) and pDEV(GP2,2) belonging to the device access group GP2, the output data enable terminal outEN of the physical layer device whose device address matches the physical layer address field PHYADR is 1; and the output data enable terminal outEN of the other physical layer device whose device address does not match the physical layer address field PHYADR is 0.

[0129] According to the above description, it can be known that when the management entity station (STA) intends to perform a read operation READ, among the N[m] physical layer components pDEV(GPm,1)~pDEV(GPm,N[m]) contained in the component access group GPm corresponding to the content of the group selection field GROUP, only the output data enable terminal outEN of one physical layer component pDEV(GPm,n) is set to 1, and the output data enable terminals outEN of the remaining (N[m]-1) physical layer components pDEV(GPm,1)~pDEV(GPm,n-1) and pDEV(GPm,n+1)~pDEV(GPm,N[m]) are set to 0. Moreover, for the N[1]~N[m-1], N[m+1]~N[M] physical layer components pDEV included in the other (M-1) component access groups GP1~GP(m-1), GP(m+1)~GPM that do not correspond to the content of the group selection field GROUP, their output data enable terminals outEN are also set to 0.

[0130] In other words, among the N[m] enabled physical layer devices pDEV(GPm,1)~pDEV(GPm,N[m]) included in the device access group GPm, only the physical layer device pDEV(GPm,n) whose device address matches the content of the physical layer address field PHYADR in the management frame mngFRM22 is considered to be selected by the management physical station (STA). And, the selected physical layer device pDEV(GPm,n) will perform a write operation WRITE or a read operation READ according to the content of the access type field OP.

[0131] When a write operation WRITE is performed, the selected physical layer component pDEV (GPm, n) can receive the content transmitted by the management physical station (STA) using the data field DATA in the management frame mngFRM22 through its data input terminal mdio_in. For the other (K-1) unselected physical layer components, the management interface input signal mdio_in received by its data input terminal mdio_in is divided into two categories according to the component access groups GP1 to GPM to which it belongs.

[0132] The first type of unselected physical layer components are (KN[m]) physical layer components that belong to different component access groups GP1 to GP(m-1), GP(m+1) to GPM than the selected physical layer component pDEV(GPm,n). Since the management interface input signal mdio_in received by the data input terminal mdio_in of the (KN[m]) physical layer components that belong to different component access groups GP1 to GP(m-1), GP(m+1) to GPM than the selected physical layer component pDEV(GPm,n) remains equal to 0 (mdio_in=0), this type of physical layer components is equivalent to being disabled.

[0133] The second type of unselected physical layer components are the physical layer components pDEV(GPm,1)~pDEV(GPm,n-1), pDEV(GPm,n+1)~pDEV(GPm,N[m]) that belong to the same component access group GPm as the selected physical layer component pDEV(GPm,n). The data input terminals mdio_in of these physical layer components pDEV(GPm,1)~pDEV(GPm,n-1), pDEV(GPm,n+1)~pDEV(GPm,N[m]) that belong to the same component access group GPm as the selected physical layer component pDEV(GPm,n) will still receive the content transmitted by the receiving management physical station (STA) using the data field DATA in the management frame mngFRM22. Therefore, the physical layer components pDEV(GPm,1)~pDEV(GPm,n-1), pDEV(GPm,n+1)~pDEV(GPm,N[m]) belonging to the same component access group GPm as the selected physical layer component pDEV(GPm,n) are still enabled. However, such physical layer components pDEV(GPm,1)~pDEV(GPm,n-1), pDEV(GPm,n+1)~pDEV(GPm,N[m]) have the function of reading the physical layer address field PHYADR, so they can know that the content of the management frame mngFRM22 is irrelevant to themselves based on the comparison between the physical layer address field PHYADR and the component address corresponding to themselves (assigned) and do not perform subsequent processing.

[0134] When a read operation READ is performed, the selected physical layer component pDEV (GPm, n) transmits data to the management entity station (STA) through its data output terminal out using the data field DATA in the management frame mngFRM22. On the other hand, the output data enable terminals outEN of the (N[m]-1) physical layer components that belong to the same device access group GPm as the selected physical layer component pDEV (GPm, n) but are not selected are all equal to 0, and the output and gates connected thereto maintain output 0 without affecting the behavior of the or gate 29a. Furthermore, the (KN[m]) physical layer components that belong to different device access groups GP1 to GP(m-1), GP(m+1) to GPM as the selected physical layer component pDEV (GPm, n) are not enabled, so the output data enable terminals outEN of the (KN[m]) physical layer components that belong to the device access groups GP1 to GP(m-1), GP(m+1) to GPM are in a floating state. Accordingly, the content of the physical layer output data outD_phy is only determined by the physical layer component pDEV(GPm,n) whose output data enable terminal outEN is equal to 1, and the data output terminals out of the remaining (K-1) unselected physical layer components will not affect the content of the physical layer output data outD_phy.

[0135] Table 5 further summarizes the correspondence between each physical layer component pDEV(GP1,1)-pDEV(GP2,2) in the component module 27, the input and output signals, and the component access groups GP1 and GP2.

[0136] Table 5

[0137]

[0138] The output selection module 29 includes: output AND gates 291, 292, 293, 294 and OR gates 29a, 29b. Among them, the output AND gates 291, 292, 293, 294 correspond to the physical layer components pDEV (GP1, 1), pDEV (GP1, 2), pDEV (GP2, 1), pDEV (GP2, 2) respectively. OR gates 29a, 29b correspond to the physical layer components pDEV (GP1, 1), pDEV (GP1, 2), pDEV (GP2, 1), pDEV (GP2, 2) at the same time. The connection relationship between the output AND gates 291, 292, 293, 294 and the OR gates 29a, 29b is described below.

[0139] The input terminals in1 and in2 of the output AND gate 291 receive the original device output data devOD1-1 generated at the data output terminal out of the physical layer device pDEV (GP1, 1) and the device output enable signal devOE1-1 generated at the output data enable terminal outEN, respectively. Furthermore, the output AND gate 291 performs an AND operation on the signals received at the input terminals in1 and in2. The enabled device output data outDAT1-1 generated by the output AND gate 291 is transmitted to the input terminal in1 of the OR gate 29a. If the device output enable signal devOE1-1=1, the enabled device output data outDAT1-1 generated after the AND operation is equal to the original device output data devOD1-1 output by the physical layer device pDEV (GP1, 1) (outDAT1-1=devOD1-1). If the device output enable signal devOE1-1=0, the enabled device output data outDAT1-1 generated after the AND operation remains equal to 0 (outDAT1-1=0).

[0140] The input terminals in1 and in2 of the output AND gate 292 receive the original device output data devOD1-2 generated at the data output terminal out of the physical layer device pDEV(GP1,2) and the device output enable signal devOE1-2 generated at the output data enable terminal outEN, respectively. Moreover, the output AND gate 292 performs an AND operation on the signals received at the input terminals in1 and in2. The enabled device output data outDAT1-2 generated by the output AND gate 292 is transmitted to the input terminal in2 of the OR gate 29a. If the device output enable signal devOE1-2=1, the enabled device output data outDAT1-2 generated after the AND operation is equal to the original device output data devOD1-2 output by the physical layer device pDEV(GP1,2) (outDAT1-2=devOD1-2). If the device output enable signal devOE1-2=0, the enabled device output data outDAT1-2 generated after the AND operation remains equal to 0 (outDAT1-2=0).

[0141] The input terminals in1 and in2 of the output AND gate 293 receive the original device output data devOD2-1 generated at the data output terminal out of the physical layer device pDEV(GP2,1) and the device output enable signal devOE2-1 generated at the output data enable terminal outEN, respectively. Furthermore, the output AND gate 293 performs an AND operation on the signals received at the input terminals in1 and in2. The enabled device output data outDAT2-1 generated by the output AND gate 293 is transmitted to the input terminal in3 of the OR gate 29a. If the device output enable signal devOE2-1=1, the enabled device output data outDAT2-1 generated after the AND operation is equal to the original device output data devOD2-1 output by the physical layer device pDEV(GP2,1) (outDAT2-1=devOD2-1). If the device output enable signal devOE2-1=0, the enabled device output data outDAT2-1 generated after the AND operation remains equal to 0 (outDAT2-1=0).

[0142] The input terminals in1 and in2 of the output AND gate 294 receive the original device output data devOD2-2 generated at the data output terminal out of the physical layer device pDEV(GP2,2) and the device output enable signal devOE2-2 generated at the output data enable terminal outEN, respectively. The output AND gate 294 performs an AND operation on the signals received at the input terminals in1 and in2. Moreover, the enabled device output data outDAT2-2 generated by the output AND gate 294 is transmitted to the input terminal in4 of the OR gate 29a. If the device output enable signal devOE2-2=1, the enabled device output data outDAT2-2 generated after the AND operation is equal to the original device output data devOD2-2 output by the physical layer device pDEV(GP2,2) (outDAT2-2=devOD2-2). If the device output enable signal devOE2-2=0, the enabled device output data outDAT2-2 generated after the AND operation remains equal to 0 (outDAT2-2=0).

[0143] The input terminals in1, in2, in3, and in4 of the OR gate 29a receive the enabled device output data outDAT1-1, outDAT1-2, outDAT2-1, and outDAT2-2 generated by the output AND gates 291, 292, 293, and 294, respectively. The output terminal of the OR gate 29a is electrically connected to the buffer gate 213e. The OR gate 29a performs an OR operation on the enabled device output data outDAT1-1, outDAT1-2, outDAT2-1, and outDAT2-2 to generate the physical layer output data outD_phy as the input of the buffer gate 213e.

[0144] The input terminals in1, in2, in3, and in4 of the OR gate 29b receive the device output enable signals devOE1-1, devOE1-2, devOE2-1, and devOE2-2 generated by the physical layer devices pDEV(GP1,1), pDEV(GP1,2), pDEV(GP2,1), and pDEV(GP2,2), respectively. The output terminal of the OR gate 29b is electrically connected to the buffer gate 213e. The OR gate 29b performs an OR operation on the device output enable signals devOE1-1, devOE1-2, devOE2-1, and devOE2-2 to generate a physical layer output enable signal outEN_phy for enabling or disabling the buffer gate 213e. Table 6 further summarizes the correspondence between the components, signals, and device access groups GP1 and GP2 in the output selection module 29.

[0145] Table 6

[0146]

[0147] according to Figure 5 It can be inferred from the embodiments that in practical applications, the output selection module includes K output AND gates and two OR gates. The input end in1 of each of the K output AND gates receives the original device output data devOD1-1 to devODM-N[M] from the corresponding physical layer device pDEV(GP1,1) to pDEV(GPM,N[M]), and the input end in2 of each of the K output AND gates receives the device output enable signal devOE1-1 to devOEM-N[M] from the corresponding physical layer device pDEV(GP1,1) to pDEV(GPM,N[M]).

[0148] The two OR gates in the output selection module each have K input terminals in1-inK. After the K input terminals in1-inK of one of the OR gates receive the outputs from the K output AND gates, they generate physical layer output data outD_phy. Figure 5 It can be seen from the description that the physical layer output data outD_phy generated by this OR gate will change according to the original component output data devODm-n output by the actual selected physical layer component pDEV(GPm,n).

[0149] The K input terminals in1 to inK of another OR gate receive the device output enable signals devOE1-1 to devOEM-N[M] from the physical layer devices pDEV(GP1,1) to pDEV(GPM,N[M]) respectively, and generate the physical layer output enable signal outEN_phy. Figure 5As can be seen from the description, the physical layer output enable signal outEN_phy generated by the OR gate will be equal to 1 when any of the physical layer components pDEV(GP1,1)~pDEV(GPM,N[M]) generates the component output enable signal devOE1-1~devOEM-N[M]. At this time, the buffer in the buffer module 21 is enabled by the physical layer output enable signal outEN_phy, and the buffer module 21 outputs the management data input and output signal MDIO.

[0150] Please see again Figure 3 In actual application, it can be assumed that there are M component access groups GP1-GPM, and the S bits in the group selection field GROUP represent the number of available component access groups. Therefore, 1≤S≤16 and 1≤M≤2 S When S=1, the media access layer module (MAC) can set the value of the group selection field GROUP to 0x0 or 0x1, and the MDIO management device (MMD) can select M=2. S =2 1 =2 component access groups. For another example, when S=16, the value of the group selection field GROUP can be 0x0-0xFFFF. At this time, the MDIO management device (MMD) can select M=2 S= 2 16 =65536 component access groups.

[0151] In actual application, the media access layer module (MAC) can determine the content of the group selection field GROUP according to the number (M) of component access groups GP1~GPM. For example, assuming that S=1, the media access layer module (MAC) can maintain the value of the group selection field GROUP as 0x0. That is, the media access layer module (MAC) does not use 0x1 to set the value of the group selection field GROUP. At this time, the MDIO management device (MMD) only provides M=1 component access group GP1.

[0152] Similarly, assuming S = 3, although the maximum value of M can be 2 3 =8, but the MDIO management device (MMD) may only provide M=6 component access groups GP1-GP6. Then, the media access layer module (MAC) can still access the M=6 component access groups GP1-GP6 of the MDIO management device (MMD) by setting the value of the group selection field GROUP in the range of 0x0-0x5.

[0153] Please also note that when S<16, the positions of the S bits selected from the group selection field GROUP do not need to be limited, as long as the settings between the media access layer module (MAC) and the physical layer module (PHY) are consistent. For example, when S=1, the most significant bit (MSB) or the least significant bit (LSB) of the group selection field GROUP can be selected to represent the selected component access group. This application change is not described in detail here.

[0154] Here, the variable m represents any component access group GPm, where 1≤m≤M. In addition, the component access group GPm may include N[m] physical layer components pDEV. The number N[m] of physical layer components included in the component access group GPm depends on the number of bits actually used for component addressing of the physical layer components in the physical layer address field PHYADR.

[0155] Since the length of the physical layer address field PHYADR can be 5 bits, the maximum value of the number N[m] of physical layer components included in the component access group GPm can be 32 (2 5 =32). In actual applications, the number N[m] of physical layer components that can be included in the component access group GPm can be determined during circuit design based on the number of physical layer components (pDEV[1]~pDEV[K]) included in the MDIO management device (MMD), the number (M) of component access groups GP1~GPM, and the overall circuit planning. Figure 5 In FIG. 1 , it is assumed that the number of physical layer components N[1] and N[2] included in component access groups GP1 and GP2 is both 2. That is, N[1]=N[2]=2. Please also note that the number of physical layer components N[1] and N[2] included in different component access groups GP1 and GP2 may be different.

[0156] Further assume that the group decoder 23 transmits a group selection signal gsSIG[1]=1. When the group selection signal gsSIG[1]=1, the input of the input circuits inCkt(GP1,1) and inCkt(GP1,2) belonging to the component access group GP1 and the input terminals in2 of the gates 251b and 252b are equal to 0 (in2=0). Therefore, the management interface input signal mdio_in received by the physical layer components pDEV(GP1,1) and pDEV(GP1,2) through the data input terminal mdio_in remains equal to 0 (mdio_in=0). Therefore, when the group selection signal gsSIG[1]=1, the data output terminals out of the physical layer components pDEV(GP1,1) and pDEV(GP1,2) will not change with the common input data signal inDAT_cmn. Therefore, the physical layer components pDEV(GP1,1) and pDEV(GP1,2) are equivalent to being disabled.

[0157] On the other hand, when the group selection signal gsSIG[1]=1, the input terminals in2 of the input AND gates 253a, 254a of the input circuits inCkt(GP2,1), inCkt(GP2,2) corresponding to the device access group GP2 are equal to 1 (in2=1). Therefore, the device input data devID2-1, devID2-2 depend on the common input data signal inDAT_cmn received by the input terminal in1. That is, the management interface input signal mdio_in corresponding to the physical layer devices pDEV(GP2,1), pDEV(GP2,2) is equal to the common input data signal inDAT_cmn (mdio_in=inDAT_cmn). Therefore, when the group selection signal gsSIG[1]=1, the data output terminals out of the physical layer devices pDEV(GP2,1), pDEV(GP2,2) will change with the common input data signal inDAT_cmn. Therefore, the physical layer components pDEV(GP2,1) and pDEV(GP2,2) are equivalent to being enabled.

[0158] Further assume that the group decoder 23 transmits a group selection signal gsSIG[1]=0. When the group selection signal gsSIG[1]=0, the input terminals in2 of the input AND gates 251b, 252b of the input circuits inCkt(GP1,1), inCkt(GP1,2) corresponding to the device access group GP1 are equal to 1 (in2=1). Therefore, the device input data devID1-1, devID1-2 depend on the common input data signal inDAT_cmn received by the input terminal in1. That is, the management interface input signal mdio_in corresponding to the physical layer devices pDEV(GP1,1), pDEV(GP1,2) is equal to the common input data signal inDAT_cmn (mdio_in=inDAT_cmn). Therefore, when the group selection signal gsSIG[1]=0, the data output terminals out of the physical layer devices pDEV(GP1,1), pDEV(GP1,2) will change with the common input data signal inDAT_cmn. Therefore, the physical layer components pDEV(GP1,1) and pDEV(GP1,2) are equivalent to being enabled.

[0159] On the other hand, when the group selection signal gsSIG[1]=0, the input terminals in2 of the input circuits inCkt(GP2,1) and inCkt(GP2,2) belonging to the component access group GP2 and the gates 253a and 254a are equal to 0 (in2=0). Therefore, the management interface input signal mdio_in corresponding to the physical layer components pDEV(GP2,1) and pDEV(GP2,2) remains equal to 0 (mdio_in=0). Therefore, when the group selection signal gsSIG[1]=0, the data output terminals out of the physical layer components pDEV(GP2,1) and pDEV(GP2,2) will not change with the common input data signal inDAT_cmn. Therefore, the physical layer components pDEV(GP2,1) and pDEV(GP2,2) are equivalent to being disabled.

[0160] As mentioned above, the group selection signal gsSIG[1] is used to enable or disable component access groups GP1 and GP2. When component access group GP1 is enabled by the group selection signal gsSIG[1], component access group GP2 is disabled by the group selection signal gsSIG[1], and vice versa. Accordingly, the physical layer components in the component access group disabled by the group selection signal gsSIG[1] will not perform any operation on the management frame mngFRM22 subsequently sent by the media access layer module (MAC) 11.

[0161] In this embodiment, it is assumed that the number of component access groups GP1~GPM is 2 (M=2). Therefore, the group selection signal gsSIG[1] here has only one signal line (S=1). When the number (M) of component access groups GP1~GPM increases, the number of bits (S) of the group selection signal gsSIG[1]~gsSIG[S] also increases (1≤S≤16). The number of bits S of the group selection signal gsSIG[1]~gsSIG[S] can be expressed as S=ceil(log2(M)). For example, when the number M of component access groups GP1~GPM=13, the group decoder 23 requires S=ceil(log2(13))=ceil(3.7)=4 bits to represent the group selection signal gsSIG[1]~gsSIG[S]. According to the above calculation, it can be seen that the variable S and the variable M also satisfy 2 S ≥M relationship.

[0162] from Figure 5 It can be seen that the internal circuits of the input circuits inCkt(GP1,1) and inCkt(GP1,2) corresponding to the component access group GP1 are the same as the signals received by the input ends, and the internal circuits of the input circuits inCkt(GP2,1) and inCkt(GP2,2) corresponding to the component access group GP2 are the same as the signals received by the input ends. Therefore, based on the consideration of simplifying the design, only a single input circuit inCkt can be set in the same input group inGP. For example, in the input group inGP1, only the input circuit inCkt(GP1) is set. Moreover, the physical layer components pDEV(GP1,1)~pDEV(GP1,N[1]) in the component access group GP1 corresponding to the input group inGP1 are all electrically connected to the input circuit inCkt(GP1) in the input group inGP1, as shown in FIG. Figure 6 shown.

[0163] See also Figure 6 , which is a schematic diagram of another embodiment of the MDIO management device (MMD) conceived by the present disclosure. The MDIO management device includes: a buffer module, a group decoder 33, an input selection module 35, a component module 37 and an output selection module 39. In this figure, the architecture and connection relationship of the group decoder 33, the component module 37 and the output selection module 39 are the same as Figure 5 Similarly, it will not be repeated here. On the other hand, in this figure, the input selection module 35 only includes M input circuits inCkt(GP1)-inCkt(GPM). That is, each input group inGP1-inGPM only includes one input circuit inCkt(GP1)-inCkt(GPM).

[0164] like Figure 6 As shown, the input circuit inCkt(GP1) generates the device input data devID-GP1 according to the input clock signal inClk, the common input data signal inDAT and the group selection signals gsSIG[1]~gsSIG[S]. Moreover, the input circuit inCkt(GP1) simultaneously provides the device input data devID-GP1 as the management interface input signal mdio_in corresponding to the N[1] physical layer devices pDEV(GP1,1)~pDEV(GP1,N[1]) corresponding to the device access group GP1.

[0165] Similarly, the input circuit inCkt(GPm) generates the component input data devID-GPm according to the input clock signal inClk, the common input data signal inDAT and the group selection signal gsSIG[1]~gsSIG[S]. Moreover, the input circuit inCkt(GPm) also provides the component input data devID-GPm as the management interface input signal mdio_in corresponding to the N[m] physical layer components pDEV(GPm,1)~pDEV(GPm,N[m]) corresponding to the component access group GPm. For the design of the input circuits inCkt(GP1), inCkt(GPm), and inCkt(GPM), please refer to Figure 5 The description will not be described in detail here.

[0166] As mentioned above, the number of input circuits (X) included in the input selection module is at least M (e.g. Figure 6 As shown, they correspond to M component access groups GP1 to GPM, and there are at most K (such as Figure 5 As shown, they correspond to the physical layer components pDEV[1] to pDEV[K], respectively. Where X is a positive integer. In practical applications, it is also possible that only some access groups correspond to one input circuit, and the remaining access groups correspond to multiple input circuits (for example, the number of physical layer components included in the access group is equal to that of the physical layer components included in the access group). Therefore, M≤X≤K.

[0167] See also Figure 7 , which is a flow chart of the MDIO management device (MMD) conceived by the present disclosure. First, the MDIO management device (MMD) determines whether the input frame inFRM is received (step S603). If the determination result of step S603 is negative, the detection of the input frame inFRM continues. If the determination result of step S603 is positive, the group decoder 131c further determines whether the input frame inFRM is a group selection frame gpFRM (step S605).

[0168] If the result of the determination in step S605 is positive, the group decoder 131c issues group selection signals gsSIG[1]-gsSIG[S] corresponding to the group selection field GROUP (step S607). Furthermore, the input selection module 131e enables the component access group GPm represented by the group selection field GROUP according to the group selection signals gsSIG[1]-gsSIG[S], and disables all the N[1]-N[m-1], N[m+1]-N[M] (i.e., KN[m]) physical layer components included in the remaining (M-1) component access groups GP1-GP(m-1), GP(m+1)-GPM (step S609).

[0169] For details on how to execute step S609, please refer to Figure 5 In the embodiment of Figure 5 In the embodiment, if the group selection signal gsSIG[1]=0, the inverted group selection signal gsSIGb[1]=1. At this time, the output generated by the input AND gates 251b and 252b will change with the common input data signal inDAT_cmn received by the input terminal in1 because the input terminal in2=1; and the output generated by the input AND gates 253a and 254a will remain 0 because the input terminal in2=0. Therefore, the device input data devID1-1 and devID1-2 corresponding to the device access group GP1 outputted from the input AND gates 251b and 252b will change with the common input data signal inDAT_cmn; and the device input data devID2-1 and devID2-2 corresponding to the device access group GP2 outputted from the input AND gates 253a and 254a will remain 0 (devID2-1=devID2-2=0).

[0170] Therefore, the management interface input signal mdio_in corresponding to the physical layer devices pDEV(GP1,1) and pDEV(GP1,2) in the device access group GP1 is equal to the common input data signal inDAT_cmn (mdio_in=inDAT_cmn), so the physical layer devices pDEV(GP1,1) and pDEV(GP1,2) in the device access group GP1 can selectively operate according to the content of the common input data signal inDAT_cmn. On the other hand, the data input terminal mdio_in of the physical layer devices pDEV(GP2,1) and pDEV(GP2,2) in the device access group GP2 continuously receives the device input data devID2-1=devID2-2=0, so that the physical layer devices pDEV(GP2,1) and pDEV(GP2,2) are disabled.

[0171] On the contrary, if the group selection signal gsSIG[1]=1, the inverted group selection signal gsSIGb[1]=0. At this time, the output generated by the input AND gates 251b and 252b remains 0 due to the input terminal in2=0; and the output generated by the input AND gates 253a and 254a changes with the common input data signal inDAT_cmn received by the input terminal in1 due to the input terminal in2=1. Therefore, the device input data devID1-1 and devID1-2 corresponding to the device access group GP1 outputted from the input AND gates 251b and 252b remain 0 (device input data devID1-1=devID1-2=0); and the device input data devID2-1 and devID2-2 corresponding to the device access group GP2 outputted from the input AND gates 253a and 254a changes with the common input data signal inDAT_cmn.

[0172] Therefore, the data input terminal mdio_in of the physical layer devices pDEV(GP1,1) and pDEV(GP1,2) in the device access group GP1 continuously receives the device input data devID1-1=devID1-2=0 as the management interface input signal, so that the physical layer devices pDEV(GP1,1) and pDEV(GP1,2) are disabled. On the other hand, the management interface input signal mdio_in received from the data input terminal mdio_in of the physical layer devices pDEV(GP2,1) and pDEV(GP2,2) in the device access group GP2 is equal to the common input data signal inDAT_cmn (mdio_in=inDAT_cmn), so the physical layer devices pDEV(GP2,1) and pDEV(GP2,2) in the device access group GP2 can selectively operate according to the content of the common input data signal inDAT_cmn.

[0173] On the other hand, if the result of the determination in step S605 is negative, the physical layer component pDEV(GPm,n) corresponding to the physical layer address field PHYADR in the previously enabled component access group GPm will determine whether the input frame inFRM is a management frame mngFRM22 in accordance with the Clause 22 specification (step S610). If the result of the determination in step S610 is negative, the input frame inFRM is ignored and not processed. If the result of the determination in step S610 is positive, the management frame mngFRM22 is specified in accordance with Clause 22 (see Figure 1 ) performs analysis and access operations on the input frame inFRM (step S611). The relevant details of step S611 are not described in detail herein.

[0174] See also Figure 8, which is a flow chart of the group decoder determining the frame type. Figure 8 The process is, Figure 7 Please also refer to the further description of step S605. Figure 1 , 3 、8.

[0175] First, the parser in the group decoder 131c obtains the start field ST (bits 1-2 in the frame), the access type field OP (bits 3-4 in the frame), the register address field REGADR (bits 5-9 in the frame), and ( Figure 1 DATA or ( Figure 3 ) The content corresponding to the group selection field GROUP (bits 17 to 32 in the frame) (step S605a).

[0176] Next, the group decoder 131c determines whether the content corresponding to the start field ST in the input frame inFRM (bits 1-2 in the frame) matches the content ("01") of the start field ST defined by Clause 22 (step S605c). If the determination result of step S605c is negative, the group decoder 131c confirms that the input frame inFRM is not a group selection frame gpFRM (step S605m).

[0177] Thereafter, the group decoder 131c determines whether the content corresponding to the access type field OP in the input frame inFRM represents the write operation WRITE of Clause 22 (i.e., whether the access type field OP is equal to "01") (step S605e). If the determination result of step S605e is negative, the group decoder 131c confirms that the input frame inFRM is not a group selection frame gpFRM (step S605m).

[0178] If the determination result of step S605e is positive, the group decoder 131c will further determine whether the content corresponding to the register address field REGADR in the input frame inFRM is the pre-selected register presetREG (step S605g). According to the concept of the present disclosure, the pre-selected register presetREG can be at least one of the registers REG2, REG3, REG5, REG6, REG8, REG10, and REG12. If the pre-selected register presetREG is pre-defined as a specific one of the registers REG2, REG3, REG5, REG6, REG8, REG10, and REG12, the complexity of designing the group decoder 131c can be simplified. If the determination result of step S605g is negative, the group decoder 131c confirms that the input frame inFRM is not the group selection frame gpFRM (step S605m).

[0179] According to the concept of the present disclosure, the input frame inFRM that meets both step S605e and step S605g is called an input frame inFRM that meets the preset condition. In other words, when the input frame inFRM meets the preset condition, the access type field (OP) of the input frame inFRM corresponds to a write operation, and the register address field (REGADR) of the input frame inFRM corresponds to the register address of any pre-selected register (presetREG).

[0180] Finally, the group decoder 131c determines whether the content corresponding to the group selection field GROUP in the input frame inFRM belongs to one of the component access groups GP1 to GPM (step S605i). Step S605i can avoid the situation where the media access layer module (MAC) selects the wrong component access group. For example, assuming that the physical layer module (PHY) 13 only sets component access groups GP1 and GP2, but the group selection field GROUP transmitted by the media access layer module (MAC) indicates that the component access group GP3 is to be selected, this exception can be eliminated through step S605i. If the judgment result of step S605i is negative, the group decoder 131c confirms that the input frame inFRM is not a group selection frame gpFRM (step S605m). If the judgment result of step S605i is positive, the group decoder 131c confirms that the input frame inFRM is a group selection frame gpFRM (step S605k).

[0181] According to the above description, the present disclosure sets a group decoder 131c, an input selection module 131e and an output selection module 131i in the physical layer module (PHY), and sends a group selection frame gpFRM in the media access layer module (MAC) 11, so that the number of physical layer components set in the physical layer module (PHY) 13 can reach K=2. 16 *2 5 =2 21 In addition, the network module 10 of the present disclosure can directly use the circuit of the existing physical layer component module 131g designed according to the Clause 22 specification.

[0182] According to the concept of the present disclosure, the media access layer module (MAC) first sends a group selection frame gpFRM to the physical layer module (PHY). Accordingly, the media access layer module (MAC) can use the group selection field (GROUP) of the group selection frame gpFRM to inform the physical layer module (PHY) of the component access group GPm to be selected. Subsequently, the media access layer module (MAC) continues to send the management frame mngFRM22 defined according to Clause 22 to the physical layer module (PHY). Accordingly, the media access layer module (MAC) can use the physical layer address field (PHYADR) of the management frame mngFRM22 to inform the physical layer module (PHY) of the physical layer component pDEV(GPm,n) to be selected from the N[m] physical layer components included in the component access group GPm.

[0183] Since the media access layer module (MAC) usually implements the driving of the management data input and output signal MDIO in a software manner, the media access layer module (MAC) can send the management frame mngFRM22 or mngFRM45 defined according to Clause 22 or Clause 45 to the physical layer module (PHY), or send the group selection frame gpFRM according to the concept of the present disclosure to the physical layer module (PHY). When the media access layer module (MAC) sends the management frame mngFRM45 as the input frame inFRM to the physical layer module (PHY) according to the definition of Clause 45, the group decoder 33 can identify the type of the input frame inFRM from the start field ST of the input frame inFRM, and then skip (bypass) the content of such input frame inFRM sent according to Clause 45.

[0184] In summary, although the present invention has been disclosed in the above embodiments, it is not intended to limit the present invention. A person skilled in the art of the present invention may make various changes and modifications without departing from the concept and scope of the present invention. Therefore, the protection scope of the present invention shall be determined by the claims.

Claims

1. A physical layer module, which is accessed by a media access layer module through a management data input and output signal, comprising: a group decoder that decodes a common input data signal generated according to the management data input / output signal to generate a group selection signal; An input selection module, electrically connected to the group decoder, comprising: X input circuits are divided into M groups, which generate X device input data according to the common input data signal and the group selection signal; and A component module, electrically connected to the input selection module, comprising: K physical layer components are divided into the M groups, which receive input data of each of the X components from each of the X input circuits, respectively. An m-th group among the M groups corresponds to at least one input circuit among the X input circuits and N[m] physical layer components among the K physical layer components, wherein When the group selection signal corresponds to the m-th group, The at least one input circuit corresponding to the mth group outputs at least one component input data to the N[m] physical layer components according to the common input data signal and the group selection signal, so that the N[m] physical layer components selectively perform an access operation according to the at least one component input data, and Input circuits other than the at least one input circuit among the X input circuits stop outputting component input data other than the at least one component input data among the X component input data, so that the remaining (KN[m]) physical layer components not corresponding to the m-th group are disabled, wherein X, M, K, m, N[m] are positive integers, K is greater than N[m], and m is less than or equal to M.

2. The physical layer module according to claim 1, wherein When the group selection signal corresponds to the m-th group, The at least one component input data varies with the common input data signal, and Among the X component input data, the remaining component input data except the at least one component input data remain unchanged.

3. The physical layer module according to claim 1, wherein The group decoder obtains the contents of an access type field, a physical layer address field and a register address field, and the contents of one of a group select field and a data field from the common input data signal, and The group decoder generates the group selection signal when the access type field, the register address field and the group selection field meet a preset condition.

4. The physical layer module of claim 3, wherein the length of the access type field is 2 bits, the length of the physical layer address field is 5 bits, the length of the register address field is 5 bits, and the length of the group select field and the data field is 16 bits.

5. The physical layer module of claim 4, wherein the access type field and the register address field are defined according to volume 22 of the IEEE 802.3 standard.

6. The physical layer module of claim 3, wherein the preset condition means that the access type field corresponds to a write operation, and the register address field corresponds to a register address of a pre-selected register.

7. The physical layer module as described in claim 6, wherein the pre-selected register is at least one of a physical layer identification code register, an automatic coordination link partner baseline paging capability register, an automatic coordination extension register, an automatic coordination link partner received sub-page register, a master-slave status register and a power source device status register.

8. The physical layer module of claim 3, wherein M is determined according to S bits in the group selection field, and the number of bits of the group selection signal is equal to the S bits, wherein S is a positive integer and S is less than M.

9. The physical layer module of claim 3, wherein the media access layer module transmits a first input frame and a second input frame to the physical layer module using the management data input / output signal.

10. The physical layer module of claim 9, wherein the group decoder comprises: A parser obtains the contents of the access type field, the register address field and the group selection field from the first input frame, and then obtains the contents of the access type field, the physical layer address field, the register address field and the data field from the second input frame.

11. The physical layer module of claim 9, wherein the first input frame comprises a first start field, and the second input frame comprises a second start field, wherein the content of the first start field is equal to the content of the second start field.

12. The physical layer module according to claim 9, wherein: The N[m] physical layer components correspond to N[m] component addresses respectively, where: When the content of the physical layer address field of the second input frame matches a selected component address among the N[m] component addresses, Among the N[m] physical layer components, a selected physical layer component corresponding to the selected component address among the N[m] component addresses performs the access operation according to the contents of the access type field and the data field of the second input frame; and The remaining (N[m]-1) physical layer components among the N[m] physical layer components that do not correspond to the selected component address stop performing the access operation.

13. The physical layer module of claim 9, wherein each of the K physical layer components comprises: a data input terminal electrically connected to one of the X input circuits, and selectively receiving one of the X component input data from the one of the X input circuits; a data output terminal receiving said one of said X device input data at said data input terminal and outputting a raw device output data when the content of said access type field of said second input frame corresponds to a read operation; and An output data enable terminal outputs a device output enable signal according to a comparison between the content of the physical layer address field of the second input frame and a device address.

14. The physical layer module of claim 13, further comprising: An output selection module, electrically connected to the component module, comprising: K output AND gates, electrically connected to the K physical layer components, respectively, and performing an AND operation on the original component output data received from each of the K physical layer components and the component output enable signal, respectively, and outputting K enabled component output data; a first OR gate electrically connected to the K output AND gates, which performs a first OR operation on the K enabled component output data to generate a physical layer output data; and A second OR gate is electrically connected to the K physical layer components, and performs a second OR operation on the K component output enable signals received from each of the K physical layer components to generate a physical layer output enable signal.

15. The physical layer module of claim 14, further comprising: A buffer module, comprising: a first buffer circuit electrically connected to the media access layer module, the group decoder and the input selection module, and receiving a management data clock signal from the media access layer module; and A second buffer circuit is electrically connected to the media access layer module, the group decoder, the input selection module and the output selection module, and receives the management data input / output signal from the media access layer module or transmits the management data input / output signal to the media access layer module.

16. The physical layer module of claim 1, wherein X is equal to M.

17. The physical layer module of claim 16, wherein the at least one input circuit comprises an m-th input circuit, and the N[m] physical layer components simultaneously receive an m-th component input data from the m-th input circuit.

18. The physical layer module of claim 1, wherein X is equal to K.

19. The physical layer module of claim 18, wherein the at least one input circuit comprises N[m] input circuits, and the N[m] physical layer components receive N[m] component input data from each of the N[m] input circuits, respectively.

20. A network module, comprising: a media access layer module that transmits or receives a management data input / output signal; and a physical layer module, electrically connected to the media access layer module, and accessed by the media access layer module through the management data input and output signal, wherein the physical layer module comprises: a group decoder that decodes a common input data signal generated according to the management data input / output signal to generate a group selection signal; An input selection module, electrically connected to the group decoder, comprising: X input circuits are divided into M groups, which generate X device input data according to the common input data signal and the group selection signal; and A component module, electrically connected to the input selection module, comprising: K physical layer components are divided into the M groups, which receive input data of each of the X components from each of the X input circuits, respectively. An m-th group among the M groups corresponds to at least one input circuit among the X input circuits and N[m] physical layer components among the K physical layer components, wherein When the group selection signal corresponds to the m-th group, The at least one input circuit corresponding to the mth group outputs at least one component input data to the N[m] physical layer components according to the common input data signal and the group selection signal, so that the N[m] physical layer components selectively perform an access operation according to the at least one component input data, and Input circuits other than the at least one input circuit among the X input circuits stop outputting component input data other than the at least one component input data among the X component input data, so that the remaining (KN[m]) physical layer components not corresponding to the m-th group are disabled, wherein X, M, K, m, N[m] are positive integers, K is greater than N[m], and m is less than or equal to M.