A network card and computing device
By introducing a selection circuit inside the network card chip, the pins of the working signals are adjusted according to the number of target processors, solving the problem of OCP network cards being unable to adapt to different host modes, and realizing flexible switching of the network card between multiple multi-Host and multi-Host and single-Host modes.
Patent Information
- Application Number
- CN202310282899.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-21
- Publication Date
- 2026-11-17
- Estimated Expiration
- 2043-03-21
AI Technical Summary
Existing OCP network cards cannot flexibly switch between different host modes, resulting in an inability to adapt to the communication differences between various multi-Host and single-Host modes.
By introducing a selection circuit inside the network card chip, the pins of the working signals can be adjusted according to the number of target processors, enabling the network card chip to adapt to different host modes, including flexible switching of clock signals and reset signals.
It enables flexible adaptation of network cards to different host modes and different numbers of processors, and supports flexible switching between multiple multi-hosts and between multi-host and single-host.
Smart Images

Figure CN116467231B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computing devices, and more particularly to a network interface card and a computing device. Background Technology
[0002] OCP (Open Compute Project) network interface cards (NICs) are Ethernet communication network controllers developed based on the OCP protocol. OCP NICs can support Single-Host or Multi-Host. Multi-Host evolved from Single-Host. In Single-Host, an OCP NIC connects to only one processor, such as a CPU (central processing unit), offering limited functionality and unable to meet certain needs. In Multi-Host, an OCP NIC needs to connect to at least two CPUs.
[0003] In addition, some network cards support multiple host modes (such as Single-Host and Multi-Host), but the internal logic of the network card chip differs from the OCP protocol. For example, in at least one host mode, the pins required for receiving clock and reset signals in the internal logic design of the network card are different from the pins specified by the OCP protocol for receiving clock and reset signals in that mode. This causes the network card to be unable to adapt to the OCP protocol for flexible switching between multiple Multi-Host modes and between Multi-Host and Single-Host modes. Summary of the Invention
[0004] This application provides a network interface card (NIC) and a computing device. The NIC can adjust the pins that receive working signals in different host modes to ensure that the NIC can adapt to protocols to support different host modes (i.e., communicate with different numbers of processors), and realize flexible switching between multiple multi-host and multi-host and single-host modes.
[0005] In a first aspect, embodiments of this application provide a network interface card (NIC), comprising: a circuit board for communicating with a motherboard; a NIC chip disposed on the circuit board and including multiple pins, the NIC chip being able to receive a first message sent by the motherboard through the circuit board, the first message being used to indicate the number of target processors, the target processors being processors disposed on the motherboard and needing to communicate with the NIC chip; and a selection circuit disposed on the circuit board for receiving multiple control signals and multiple working signals sent by the motherboard, the multiple control signals being generated based on the first message; the selection circuit being able to select according to the multiple control signals to send a target working signal from the multiple working signals to the corresponding target pin among the multiple pins, and being able to change the number of target working signals and the correspondence between the target working signals and the target pins according to a preset protocol based on changes in the number of target processors, the target working signal being a working signal required for communication between the target processor and the NIC chip, and the target pin being the pin among the multiple pins that receives the target working signal.
[0006] In the network card of this application embodiment, when there are differences between the internal logic of the network card chip and the OCP protocol, such as when the pins of the network card chip's internal logic design that need to receive working signals differ from the pins of the OCP protocol specified in that mode, the network card chip can control the selection circuit based on the OCP protocol to adjust the pins of the network card chip that receive working signals. For example, it can send the target working signal provided by the motherboard (i.e., the working signal specified by the OCP protocol in this host scenario) to the target pins of the network card chip (i.e., the pins of the network card chip's internal logic design that receive working signals in this host scenario) as needed to communicate with the number of processors (i.e., target processors), so that the network card can adapt to the OCP protocol in different host modes (i.e., communicating with different numbers of processors). That is, the network card can support different host modes and realize flexible switching between multiple multi-host and multi-host and single-host modes.
[0007] In one possible implementation, the plurality of pins includes a plurality of clock pins and a plurality of reset pins, each clock pin being used to receive a clock signal and each reset pin being used to receive a reset signal; the plurality of working signals includes a plurality of clock signals and a plurality of reset signals, and the selection circuit is capable of sending a target clock signal from the plurality of clock signals to the corresponding target clock pin from the plurality of clock pins and sending a target reset signal from the plurality of reset signals to the corresponding target reset pin from the plurality of reset pins according to the plurality of control signals; the target working signal includes the target clock signal and the target reset signal, and the target pin includes the target clock pin and the target reset pin; the target clock signal, the target reset signal, and the target processor correspond one-to-one, and the network interface card chip is capable of communicating with the corresponding target processor based on the target clock signal and the target reset signal. This allows the network card to send the target clock signal provided by the motherboard (i.e., the clock signal specified by the OCP protocol in this host scenario) to the target clock pin of the network card chip (i.e., the pin where the internal logic design of the network card chip receives the clock signal in this host scenario) as needed to communicate with the number of processors (i.e., target processors), and to send the target reset signal provided by the motherboard (i.e., the reset signal specified by the OCP protocol in this host scenario) to the target reset pin of the network card chip (i.e., the pin where the internal logic design of the network card chip receives the reset signal in this host scenario). This enables the network card to adapt to the OCP protocol in different host modes, ensuring that the network card can support different host modes and achieve flexible switching between multiple multi-host and multi-host and single-host modes.
[0008] In one possible implementation, the selection circuit can send at least one working signal to different pins of the network interface card (NIC) chip via different links, so that the NIC chip can select the link according to the number of target processors to change the correspondence between at least a portion of the working signals and at least a portion of the pins. For example, the selection circuit can send at least one clock signal to different clock pins of the NIC chip via different links, so that the NIC chip can select the link according to the number of target processors to change the correspondence between at least a portion of the clock signals and at least a portion of the clock pins; and / or, the selection circuit can send at least one reset signal to different reset pins of the NIC chip via different links, so that the NIC chip can select the link according to the number of target processors to change the correspondence between at least a portion of the reset signals and at least a portion of the reset pins. In this way, the clock signal and reset signal provided by the motherboard can be sent to different pins of the network card chip in different modes (such as Single-Host or Multi-Host) to adapt to the requirements of protocols such as OCP in different modes. This can meet the clock signal and reset signal requirements of the network card in different modes (such as Single-Host or Multi-Host), thereby enabling the network card to flexibly switch between multiple Multi-Host modes and between Multi-Host and Single-Host modes.
[0009] In one possible implementation, the plurality of clock signals includes a first clock signal, a second clock signal, a third clock signal, and a fourth clock signal, and the plurality of clock pins includes a first clock pin, a second clock pin, a third clock pin, and a fourth clock pin, wherein: when the number of target processors is 1, the target clock signal includes the first clock signal, the target clock pin includes the third clock pin, and the selection circuit is capable of sending the first clock signal to the third clock pin; when the number of target processors is 2, the target clock signal includes the first clock signal and the second clock signal, and the target clock pin includes the first clock pin and the third clock pin. The selection circuit can send the first clock signal to the first clock pin and the second clock signal to the third clock pin. When the number of target processors is 4, the target clock signal includes the first clock signal, the second clock signal, the third clock signal, and the fourth clock signal. The target clock pins include the first clock pin, the second clock pin, the third clock pin, and the fourth clock pin. The selection circuit can send the first clock signal to the first clock pin, the second clock signal to the second clock pin, the third clock signal to the third clock pin, and the fourth clock signal to the fourth clock pin. This ensures that the target clock signal can be sent to the target clock pin of the network card chip in different modes, thus providing the network card chip with the required clock signal in different modes (such as Single-Host or Multi-Host).
[0010] In one possible implementation, the plurality of control signals includes a first control signal, and the selection circuit includes a first clock selection switch. A first input terminal of the first clock selection switch receives the first control signal, a second input terminal receives the first clock signal, a first output terminal is connected to a first clock pin, and a second output terminal is connected to a third clock pin. When the number of target processors is 1, the first control signal controls the second input terminal of the first clock selection switch to connect with the second output terminal to send the first clock signal to the third clock pin. When the number of target processors is 2 or 4, the first control signal controls the second input terminal of the first clock selection switch to connect with the first output terminal to send the first clock signal to the first clock pin. Thus, the first clock selection switch allows the first clock signal to be sent to different pins of the network interface card (NIC) chip in different host modes.
[0011] In one possible implementation, the plurality of control signals includes a second control signal, the selection circuit includes a second clock selection switch, a first input terminal of the second clock selection switch for receiving the second control signal, a second input terminal of the second clock selection switch for receiving the second clock signal, a first output terminal of the second clock selection switch connected to a second clock pin, and a second output terminal of the second clock selection switch connected to a third clock pin; when the number of target processors is 1 or 4, the second control signal is used to control the second input terminal of the second clock selection switch to connect with the first output terminal of the second clock selection switch to send the second clock signal to the second clock pin; when the number of target processors is 2, the second control signal is used to control the second input terminal of the second clock selection switch to connect with the second output terminal of the second clock selection switch to send the second clock signal to the second clock pin. The second clock signal is sent to the third clock pin; and / or, the plurality of control signals include a third control signal, the selection circuit includes a third clock selection switch, the first input terminal of the third clock selection switch is used to receive the third control signal, the second input terminal of the third clock selection switch is used to receive the third clock signal, the first output terminal of the third clock selection switch is connected to the third clock pin, and the second output terminal of the third clock selection switch is left floating; when the number of target processors is 1 or 2, the third control signal is used to control the second input terminal of the third clock selection switch to connect with the second output terminal of the third clock selection switch; when the number of target processors is 4, the third control signal is used to control the second input terminal of the third clock selection switch to connect with the first output terminal of the third clock selection switch, so as to send the third clock signal to the third clock pin. That is, the second clock selection switch is used to send the second clock signal to different pins of the network card chip in different host modes; the third clock selection switch is used to send the third clock signal to the corresponding pin of the network card chip or not send it to the network card chip in different host modes.
[0012] In one possible implementation, when the number of target processors is any one of 1, 2, and 4, the fourth clock pin receives the fourth clock signal; or, the plurality of control signals include a fourth control signal, the selection circuit includes a fourth clock selection switch, the first input terminal of the fourth clock selection switch is used to receive the fourth control signal, the second input terminal of the fourth clock selection switch is used to receive the fourth clock signal, the first output terminal of the fourth clock selection switch is connected to the fourth clock pin, and the second output terminal of the fourth clock selection switch is left floating; wherein: when the number of target processors is 1 or 2, the fourth control signal is used to control the second input terminal of the fourth clock selection switch to connect with the second output terminal of the fourth clock selection switch; when the number of target processors is 4, the fourth control signal is used to control the second input terminal of the fourth clock selection switch to connect with the first output terminal of the fourth clock selection switch, so as to send the fourth clock signal to the fourth clock pin. In order to reduce the number of selector switches used, the fourth clock signal can be continuously connected to the fourth clock pin of the network card chip in different host modes; or, the fourth clock selection switch can be used to send the fourth clock signal to the corresponding pin of the network card chip in different host modes or not send it to the network card chip.
[0013] In one possible implementation, the plurality of reset signals include a first reset signal, a second reset signal, a third reset signal, and a fourth reset signal, and the plurality of reset pins include a first reset pin, a second reset pin, a third reset pin, and a fourth reset pin, wherein: when the number of target processors is 1, the target reset signal includes the first reset signal, the target reset pin includes the third reset pin, and the selection circuit is capable of sending the first reset signal to the third reset pin; when the number of target processors is 2, the target reset signal includes the first reset signal and the second reset signal, and the target reset pin includes the first reset pin and the third reset pin. The selection circuit can send the first reset signal to the first reset pin and the second reset signal to the third reset pin. When the number of target processors is 4, the target reset signal includes the first reset signal, the second reset signal, the third reset signal, and the fourth reset signal. The target reset pins include the first reset pin, the second reset pin, the third reset pin, and the fourth reset pin. The selection circuit can send the first reset signal to the first reset pin, the second reset signal to the second reset pin, the third reset signal to the third reset pin, and the fourth reset signal to the fourth reset pin. This ensures that the target reset signal can be sent to the target reset pin of the network card chip in different host modes, ensuring that the network card can provide the required reset signal in different host modes.
[0014] In one possible implementation, the plurality of control signals includes a fifth control signal, and the selection circuit includes a first reset selection switch. A first input terminal of the first reset selection switch receives the fifth control signal, a second input terminal receives the first reset signal, a first output terminal is connected to the first reset pin, and a second output terminal is connected to the third reset pin. When the number of target processors is 1, the fifth control signal controls the second input terminal of the first reset selection switch to connect with the second output terminal to send the first reset signal to the third reset pin. When the number of target processors is 2 or 4, the fifth control signal controls the second input terminal of the first reset selection switch to connect with the first output terminal to send the first reset signal to the first reset pin. Thus, the first reset signal can be sent to different pins of the network interface card chip in different host modes via the first reset selection switch.
[0015] In one possible implementation, the plurality of control signals includes a sixth control signal, the selection circuit includes a second reset selection switch, a first input terminal of the second reset selection switch for receiving the sixth control signal, a second input terminal of the second reset selection switch for receiving the second reset signal, a first output terminal of the second reset selection switch connected to the second reset pin, and a second output terminal of the second reset selection switch connected to the third reset pin; when the number of target processors is 1 or 4, the sixth control signal is used to control the second input terminal of the second reset selection switch to connect with the first output terminal of the second reset selection switch to send the second reset signal to the second reset pin; when the number of target processors is 2, the sixth control signal is used to control the second input terminal of the second reset selection switch to connect with the second output terminal of the second reset selection switch to... The second reset signal is sent to the third reset pin; and / or, the plurality of control signals include a seventh control signal, the selection circuit includes a third reset selection switch, the first input terminal of the third reset selection switch is used to receive the seventh control signal, the second input terminal of the third reset selection switch is used to receive the third reset signal, the first output terminal of the third reset selection switch is connected to the third reset pin, and the second output terminal of the third reset selection switch is left floating; when the number of target processors is 1 or 2, the seventh control signal is used to control the second input terminal of the third reset selection switch to connect with the second output terminal of the third reset selection switch; when the number of target processors is 4, the seventh control signal is used to control the second input terminal of the third reset selection switch to connect with the first output terminal of the third reset selection switch to send the third reset signal to the third reset pin. Thus, the second reset signal can be sent to different pins of the network card chip in different host modes via the second reset selection switch; the third reset selection switch can be used to send the third reset signal to the corresponding pin of the network card chip or not send it to the network card chip in different host modes.
[0016] In one possible implementation, when the number of target processors is any one of 1, 2, and 4, the fourth reset pin receives the fourth reset signal; or, the plurality of control signals include an eighth control signal, the selection circuit includes a fourth reset selection switch, the first input terminal of the fourth reset selection switch is used to receive the eighth control signal, the second input terminal of the fourth reset selection switch is used to receive the fourth reset signal, the first output terminal of the fourth reset selection switch is connected to the fourth reset pin, and the second output terminal of the fourth reset selection switch is left floating; wherein: when the number of target processors is 1 or 2, the eighth control signal is used to control the second input terminal of the fourth reset selection switch to connect with the second output terminal of the fourth reset selection switch; when the number of target processors is 4, the eighth control signal is used to control the second input terminal of the fourth reset selection switch to connect with the first output terminal of the fourth reset selection switch, so as to send the fourth reset signal to the fourth reset pin. In order to reduce the number of selector switches used, the fourth reset signal can be continuously connected to the fourth reset pin of the network card chip in different host modes; or, the fourth reset selector switch can be used to send the fourth reset signal to the corresponding pin of the network card chip in different host modes or not send it to the network card chip.
[0017] In one possible implementation, the network interface card (NIC) chip includes multiple first output pins and multiple second output pins, and the NIC chip is capable of generating the multiple control signals according to the first message; or, the NIC further includes a microcontroller connected to the NIC chip, the NIC chip is capable of sending the first message to the microcontroller, and the microcontroller is capable of generating the multiple control signals according to the first message, the microcontroller including multiple first output pins and multiple second output pins; wherein each first output pin and each second output pin is used to output one of the multiple control signals, the multiple first output pins are respectively connected to the first input terminals of multiple clock selection switches of the selection circuit, and the multiple second output pins are respectively connected to the first input terminals of multiple reset selection switches of the selection circuit. That is, the network card chip can receive the first message sent by the motherboard. Then, there are two possible schemes, but not limited to the following: Scheme 1 - The network card chip generates multiple control signals based on the first message, and then sends the multiple control signals to multiple clock selection switches and multiple reset selection switches through multiple pins of the network card chip; Scheme 2 - In order to reduce the number of pins of the network card chip, the network card chip can be connected to a microcontroller. The network card chip can send the first message to the microcontroller, the microcontroller generates multiple control signals based on the first message, and then sends the multiple control signals to multiple clock selection switches and multiple reset selection switches through multiple pins of the microcontroller.
[0018] Secondly, embodiments of this application provide a computing device, the computing device including: a motherboard; multiple processors disposed on the motherboard; a network interface card (NIC) as described in the first aspect, wherein the circuit board of the NIC is communicatively connected to the motherboard, and the motherboard can send a first message to the NIC chip of the NIC through the circuit board, the first message being used to indicate the number of target processors, the target processor being the processor among the multiple processors that needs to communicate with the NIC chip; the motherboard also sends multiple working signals to the selection circuit of the NIC, the selection circuit being able to select according to multiple control signals to send a target working signal among the multiple working signals to the corresponding target pin among the multiple pins of the NIC chip, and being able to change the number of target working signals and the correspondence between the target working signals and the target pins according to a preset protocol based on the change in the number of target processors, the multiple control signals being generated based on the first message, the target working signal being the working signal required for the target processor to communicate with the NIC chip, and the target pin being the pin among the multiple pins that receives the target working signal.
[0019] Other features and advantages of the present invention will be described in detail in the following detailed embodiments section. Attached Figure Description
[0020] The accompanying drawings used in the description of the embodiments or prior art are briefly introduced below.
[0021] Figure 1 This is a schematic diagram of the structure of a server;
[0022] Figure 2 This is a schematic diagram of the structure of a network interface card (NIC) provided in an embodiment of this application;
[0023] Figure 3 for Figure 2 The diagram shows an exemplary specific structure of a network interface card.
[0024] Figure 4 for Figure 2 The diagram shows another exemplary specific structure of the network card.
[0025] Figure 5 This is a schematic diagram of another network card structure provided in an embodiment of this application;
[0026] Figure 6 This is a schematic diagram of the structure of a computing device provided in an embodiment of this application;
[0027] Figure 7 This is a schematic diagram of another computing device provided in an embodiment of this application. Detailed Implementation
[0028] The technical solutions in the embodiments of this application will now be described with reference to the accompanying drawings.
[0029] In the description of this application, unless otherwise expressly specified and limited, the terms "installation", "connection" and "joining" should be interpreted broadly, for example, they can be fixed connections, detachable connections, mating connections or integral connections; those skilled in the art can understand the specific meaning of the above terms in this application according to the specific circumstances.
[0030] In the description of this specification, specific features, structures, materials, or characteristics may be combined in any suitable manner in one or more embodiments.
[0031] Currently, OCP (Open Compute Project) network cards support Single-Host and / or Multi-Host modes. Multi-Host evolved from Single-Host. In Single-Host, an OCP network card connects to only one processor, such as a CPU (central processing unit / processor), offering limited functionality and failing to meet certain requirements. In Multi-Host, however, an OCP network card needs to connect to at least two CPUs.
[0032] Regardless of whether it's Single-Host or Dual-Host, the output pins of the motherboard's clock signal and the pins of the network card chip that receive the clock signal are in a one-to-one, fixed connection. Similarly, the output pins of the motherboard's reset signal and the pins of the network card chip that receive the reset signal are also in a one-to-one, fixed connection. According to the OCP protocol, in Single-Host, the network card chip's first clock pin receives the first clock signal, and its first reset pin receives the first reset signal. The network card chip uses both the first clock signal and the first reset signal to communicate with the first processor on the motherboard. In Dual-Host, taking Dual-Host as an example, the network card chip's first clock pin still receives the first clock signal, and its second clock pin receives the second clock signal. Similarly, the network card chip's first reset pin still receives the first reset signal, and its second reset pin receives the second reset signal. The network card chip uses both the first clock signal and the first reset signal to communicate with the first processor on the motherboard, and uses the second clock signal and the second reset signal to communicate with the second processor on the motherboard.
[0033] Figure 1 This is a schematic diagram of a server structure. (Example) Figure 1As shown, the server includes a motherboard and a network interface card (NIC). The NIC includes a circuit board and a NIC chip mounted on the circuit board. The motherboard can provide the NIC chip with four clock signals, namely PCIE_CLK[3:0] and four reset signals, namely PCIE_RST[3:0]. The motherboard can also send BIF signals to the NIC chip. The BIF signal is a bifurcation signal, for example, it can be BIF[2:0], which includes BIF0, BIF1, and BIF2. The BIF signal is used to configure the internal working mode of the NIC chip. For example, when BIF[2:0] is 000, it is identified as a Single Host, and the NIC chip works in Single Host mode based on the BIF signal. When BIF[2:0] is 001, it is identified as a specific Multi-Host, such as Dual-Host, and the NIC chip works in that specific Multi-Host mode based on the BIF signal.
[0034] In addition, some network cards support multiple host modes (such as Single-Host and Multi-Host), but the internal logic of the network card chip differs from the OCP protocol. For example, in at least one host mode, the pins required for receiving clock and reset signals in the internal logic design of the network card are different from the pins specified by the OCP protocol for receiving clock and reset signals in that mode. This causes the network card to be unable to flexibly switch between multiple Multi-Host modes or between Multi-Host and Single-Host based on the OCP protocol.
[0035] In view of this, embodiments of this application provide a network interface card (NIC) and a computing device. The NIC can adjust for differences between different Host modes and the provisions of protocols such as OCP (for example, the internal logic design of the NIC chip requires the receiving signal pins to be different from the receiving signal pins specified by the protocol in this Host mode), ensuring that the NIC can support different Host modes (i.e., communicate with different numbers of processors), and realize the NIC's flexible switching between multiple Multi-Host and Multi-Host and Single-Host modes.
[0036] Figure 2 This is a schematic diagram of the structure of a network interface card (NIC) provided in an embodiment of this application. Figure 2 As shown, the network card includes a circuit board 1, a network card chip 2 mounted on the circuit board 1, and a selection circuit 3. The circuit board 1 is used for communication with the motherboard. For clarity, [the following is a simplified description of the circuit board 1]. Figure 2 And will be introduced below Figure 5The motherboard is also shown. For example, circuit board 1 has gold fingers, and slots are provided on the motherboard. The gold fingers are placed in the slots to achieve communication connection with the motherboard. Network card chip 2 includes multiple pins. Network card chip 2 can receive a first message sent by the motherboard through circuit board 1. The first message is used to indicate the number of target processors. The target processors are processors installed on the motherboard that need to communicate with network card chip 2. Selection circuit 3 is used to receive multiple control signals and multiple working signals sent by the motherboard. The multiple control signals are generated based on the first message. Selection circuit 3 can select from the multiple control signals to send the target working signal from the multiple working signals to the corresponding target pin among the multiple pins. It can also change the number of target working signals and the correspondence between target working signals and target pins according to a preset protocol based on the change in the number of target processors. The target working signal is the working signal required for the target processor to communicate with network card chip 2, and the target pin is the pin among the multiple pins that receives the target working signal.
[0037] The first message can be the BIF signal, or bifurcation signal, used to configure the network card chip's internal operating mode. The BIF signal can be BIF[2:0], which includes BIF0, BIF1, and BIF2. For example, when BIF[2:0] is 000, it is considered Single Host, and the network card chip operates in Single Host mode based on the BIF signal. When BIF[2:0] is 001, it is considered a specific type of Multi-Host, such as Dual-Host, and the network card chip operates in Dual Host mode based on the BIF signal. In this way, the motherboard can use the BIF signal to inform the network card chip which HOST mode it needs to support (i.e., how many hosts / CPUs the network card needs to communicate with).
[0038] For example, the multiple pins may include multiple clock pins and multiple reset pins, each clock pin being used to receive a clock signal and each reset pin being used to receive a reset signal. The multiple working signals may include multiple clock signals CLK (such as four clock signals PCIE_CLK[3:0]) and multiple reset signals RST (such as four reset signals PCIE_RST[3:0]). The selection circuit 3 can send the target clock signal from the multiple clock signals CLK to the corresponding target clock pin among the multiple clock pins and send the target reset signal from the multiple reset signals RST to the corresponding target reset pin among the multiple reset pins according to the multiple control signals. The target working signal includes the target clock signal and the target reset signal, and the target pin includes the target clock pin and the target reset pin. The number of target clock signals and the number of target reset signals are equal to the number of target processors. The target clock signals, target reset signals, and target processors correspond one-to-one. The network card chip 2 can communicate with the corresponding target processor based on the target clock signals and target reset signals. At this time, the selection circuit 3 enables the target clock signal, the correspondence between the target clock signal and the target clock pin, the target reset signal, and the correspondence between the target reset signal and the target reset pin to change according to the change in the number of target processors.
[0039] In addition, the multiple operating signals sent by the motherboard may also include signals other than the clock signal and the reset signal. Correspondingly, the multiple pins of the network card chip 2 may also include pins other than the clock pin and the reset pin. In this application, the example of operating signals including clock signals and reset signals and multiple pins of the network card chip 2 including clock pins and reset pins will be mainly described.
[0040] In the network card of this application embodiment, when there are differences between the internal logic of the network card chip and the OCP protocol, such as when the pins of the network card chip's internal logic design that need to receive working signals differ from the pins of the OCP protocol that need to receive working signals in at least one Host mode, the network card chip can control the selection circuit based on the OCP protocol to adjust the pins of the network card chip that receive working signals. For example, it can send the target working signal provided by the motherboard (i.e., the working signal specified by the OCP protocol in this Host scenario) to the target pins of the network card chip (i.e., the pins of the network card chip's internal logic design that receive working signals in this Host scenario) as needed to communicate with the number of processors (i.e., target processors), so that the network card can adapt to the OCP protocol in different Host modes (i.e., communicating with different numbers of processors). That is, the network card can support different Host modes and realize flexible switching between multiple Multi-Host and Multi-Host and Single-Host modes.
[0041] In some examples, selection circuit 3 can send at least one working signal to different pins of network interface card (NIC) chip 2 via different links, enabling NIC chip 2 to select links based on the number of target processors, thereby changing the correspondence between at least a portion of the working signals and at least a portion of the pins. For example, selection circuit 3 can send at least one clock signal to different clock pins of NIC chip 2 via different links, enabling NIC chip 2 to select links based on the number of target processors, thereby changing the correspondence between at least a portion of the clock signals (CLK) and at least a portion of the clock pins. In other examples, selection circuit 3 can send at least one reset signal to different reset pins of NIC chip 2 via different links, enabling NIC chip 2 to select links based on the number of target processors, thereby changing the correspondence between at least a portion of the reset signals (RST) and at least a portion of the reset pins. That is, in different host modes, the target working signal may be sent to different target pins or the same target pin. Taking the clock signal as an example, as shown in Table 1 below, when the Host mode / type is 4X4 (i.e., the network card chip communicates with four processors), PCLK1 corresponds to CLK1. When the Host mode / type is 2X8 (i.e., the network card chip communicates with two processors), PCLK1 corresponds to CLK2. The target working signal is sent to different target pins under different hosts. When the Host mode / type is 4X4 and 2X8, PCLK0 corresponds to CLK0. The target working signal is sent to the same target pin under different hosts.
[0042] Figure 3 for Figure 2 The diagram shows an exemplary specific structure of a network interface card. Figure 3As shown, multiple clock signals CLK may include a first clock signal PCLK0, a second clock signal PCLK1, a third clock signal PCLK2, and a fourth clock signal PCLK3, and multiple clock pins may include a first clock pin CLK0, a second clock pin CLK1, a third clock pin CLK2, and a fourth clock pin CLK3. Specifically: when the number of target processors is 1, the target clock signal may include the first clock signal PCLK0, and the target clock pin may include the third clock pin CLK2; the selection circuit 3 can send the first clock signal PCLK0 to the third clock pin CLK2. When the number of target processors is 2, the target clock signal may include the first clock signal PCLK0 and the second clock signal PCLK1, and the target clock pins may include the first clock pin CLK0 and the third clock pin CLK2; the selection circuit 3 can send the first clock signal PCLK0 to the first clock pin CLK0 and send the second clock signal PCLK1 to the third clock pin CLK2; at the target... When the number of processors is 4, the target clock signal may include a first clock signal PCLK0, a second clock signal PCLK1, a third clock signal PCLK2, and a fourth clock signal PCLK3. The target clock pin may include a first clock pin CLK0, a second clock pin CLK1, a third clock pin CLK2, and a fourth clock pin CLK3. The selection circuit 3 can send the first clock signal PCLK0 to the first clock pin CLK0, send the second clock signal PCLK1 to the second clock pin CLK1, send the third clock signal PCLK2 to the third clock pin CLK2, and send the fourth clock signal PCLK3 to the fourth clock pin CLK3.
[0043] For example, the multiple control signals may include a first control signal such as GPIO1, and the selection circuit 3 may include multiple clock selection switches K1. The clock selection switches K1 may be single-pole double-throw (SPDT) switches. The multiple clock selection switches K1 may include a first clock selection switch K11. The first input terminal (S terminal of switch K11) of the first clock selection switch K11 is used to receive the first control signal such as GPIO1; the second input terminal (A terminal of switch K11) of the first clock selection switch K11 is used to receive the first clock signal PCLK0; the first output terminal (B0 terminal of switch K11) of the first clock selection switch K11 is connected to the first clock pin CLK0; and the second output terminal (B1 terminal of switch K11) of the first clock selection switch K11 is connected to the third clock pin CLK2. When the number of target processors is 1, the first control signal, such as GPIO1, is used to connect the second input terminal of the first clock selection switch K11 to the second output terminal of the first clock selection switch K11, so as to send the first clock signal PCLK0 to the third clock pin CLK2; when the number of target processors is 2 or 4, the first control signal, such as GPIO1, is used to connect the second input terminal of the first clock selection switch K11 to the first output terminal of the first clock selection switch K11, so as to send the first clock signal PCLK0 to the first clock pin CLK0.
[0044] Furthermore, the multiple control signals include a second control signal such as GPIO2, and the multiple clock selection switches K1 may also include a second clock selection switch K12. The first input terminal of the second clock selection switch K12 (the S terminal of switch K12) is used to receive the second control signal such as GPIO2, the second input terminal of the second clock selection switch K12 (the A terminal of switch K12) is used to receive the second clock signal PCLK1, the first output terminal of the second clock selection switch K12 (the B0 terminal of switch K12) is connected to the second clock pin CLK1, and the second output terminal of the second clock selection switch K12 (the B1 terminal of switch K12) is connected to the third clock pin CLK2. When the number of target processors is 1 or 4, the second control signal, such as GPIO2, is used to connect the second input terminal of the second clock selection switch K12 to the first output terminal of the second clock selection switch K12, so as to send the second clock signal PCLK1 to the second clock pin CLK1; when the number of target processors is 2, the second control signal, such as GPIO2, is used to connect the second input terminal of the second clock selection switch K12 to the second output terminal of the second clock selection switch K12, so as to send the second clock signal PCLK1 to the third clock pin CLK2.
[0045] Furthermore, the multiple control signals include a third control signal such as GPIO3, and the multiple clock selection switches K1 may also include a third clock selection switch K13. The first input terminal of the third clock selection switch K13 (the S terminal of switch K13) is used to receive the third control signal such as GPIO3, the second input terminal of the third clock selection switch K13 (the A terminal of switch K13) is used to receive the third clock signal PCLK2, the first output terminal of the third clock selection switch K13 (the B0 terminal of switch K13) is connected to the third clock pin CLK2, and the second output terminal of the third clock selection switch K13 (the B1 terminal of switch K13) is left floating, i.e. connected to NC. When the number of target processors is 1 or 2, the third control signal, such as GPIO3, is used to control the second input terminal of the third clock selection switch K13 to connect with the second output terminal of the third clock selection switch K13; when the number of target processors is 4, the third control signal, such as GPIO3, is used to control the second input terminal of the third clock selection switch K13 to connect with the first output terminal of the third clock selection switch K13, so as to send the third clock signal PCLK2 to the third clock pin CLK2.
[0046] Continue to refer to Figure 3 Multiple reset signals RST may include a first reset signal PRST0, a second reset signal PRST1, a third reset signal PRST2, and a fourth reset signal PRST3, and multiple reset pins may include a first reset pin RST0, a second reset pin RST1, a third reset pin RST2, and a fourth reset pin RST3. Specifically: when the number of target processors is 1, the target reset signal includes the first reset signal PRST0, the target reset pin includes the third reset pin RST2, and the selection circuit 3 can send the first reset signal PRST0 to the third reset pin RST2; when the number of target processors is 2, the target reset signal includes the first reset signal PRST0 and the second reset signal PRST1, the target reset pin includes the first reset pin RST0 and the third reset pin RST2, and the selection circuit 3 can send the first reset signal PRST0 to the first reset pin RST0 and send the second reset signal PRST1 to the third reset pin RST2; in the target processor... When the number of devices is 4, the target reset signal includes the first reset signal PRST0, the second reset signal PRST1, the third reset signal PRST2, and the fourth reset signal PRST3. The target reset pins include the first reset pin RST0, the second reset pin RST1, the third reset pin RST2, and the fourth reset pin RST3. The selection circuit 3 can send the first reset signal PRST0 to the first reset pin RST0, send the second reset signal PRST1 to the second reset pin RST1, send the third reset signal PRST2 to the third reset pin RST2, and send the fourth reset signal PRST3 to the fourth reset pin RST3.
[0047] The multiple control signals may include a fifth control signal such as GPIO5. The selection circuit 3 may include multiple reset selection switches K2, which may be single-pole double-throw (SPDT) switches. The multiple reset selection switches K2 may include a first reset selection switch K21. The first input terminal (S terminal of switch K21) of the first reset selection switch K21 is used to receive the fifth control signal such as GPIO5. The second input terminal (A terminal of switch K21) of the first reset selection switch K21 is used to receive the first reset signal PRST0. The first output terminal (B0 terminal of switch K21) of the first reset selection switch K21 is connected to the first reset pin RST0, and the second output terminal (B1 terminal of switch K21) of the first reset selection switch K21 is connected to the third reset pin RST2. When the number of target processors is 1, the fifth control signal, such as GPIO5, is used to connect the second input terminal of the first reset selection switch K21 to the second output terminal of the first reset selection switch K21, so as to send the first reset signal PRST0 to the third reset pin RST2; when the number of target processors is 2 or 4, the fifth control signal, such as GPIO5, is used to connect the second input terminal of the first reset selection switch K21 to the first output terminal of the first reset selection switch K21, so as to send the first reset signal PRST0 to the first reset pin RST0.
[0048] Furthermore, the multiple control signals include a sixth control signal such as GPIO6, and the multiple reset selection switches K2 may also include a second reset selection switch K22. The first input terminal (S terminal of switch K22) of the second reset selection switch K22 is used to receive the sixth control signal such as GPIO6, the second input terminal (A terminal of switch K22) of the second reset selection switch K22 is used to receive the second reset signal PRST1, the first output terminal (B0 terminal of switch K22) of the second reset selection switch K22 is connected to the second reset pin RST1, and the second output terminal (B1 terminal of switch K22) of the second reset selection switch K22 is connected to the third reset pin RST2. When the number of target processors is 1 or 4, the sixth control signal, such as GPIO6, is used to connect the second input terminal of the second reset selection switch K22 to the first output terminal of the second reset selection switch K22, so as to send the second reset signal PRST1 to the second reset pin RST1; when the number of target processors is 2, the sixth control signal, such as GPIO6, is used to connect the second input terminal of the second reset selection switch K22 to the second output terminal of the second reset selection switch K22, so as to send the second reset signal PRST1 to the third reset pin RST2.
[0049] Furthermore, the multiple control signals include a seventh control signal such as GPIO7, and the multiple reset selection switches K2 may also include a third reset selection switch K23. The first input terminal (S terminal of switch K23) of the third reset selection switch K23 is used to receive the seventh control signal such as GPIO7, the second input terminal (A terminal of switch K23) is used to receive the third reset signal PRST2, the first output terminal (B0 terminal of switch K23) of the third reset selection switch K23 is connected to the third reset pin RST2, and the second output terminal (B1 terminal of switch K23) of the third reset selection switch K23 is left floating, i.e., connected to NC. When the number of target processors is 1 or 2, the seventh control signal such as GPIO7 is used to control the second input terminal of the third reset selection switch K23 to connect with the second output terminal of the third reset selection switch K23; when the number of target processors is 4, the seventh control signal such as GPIO7 is used to control the second input terminal of the third reset selection switch K23 to connect with the first output terminal of the third reset selection switch K23, so as to send the third reset signal PRST2 to the third reset pin RST2.
[0050] In addition, Figure 3 In this example, to reduce the number of selector switches and lower costs, the fourth clock pin CLK3 is not connected to a selector switch. When the number of target processors is 1, 2, or 4, the fourth clock pin CLK3 receives the fourth clock signal PCLK3. Similarly, the fourth reset pin RST3 is not connected to a selector switch, and when the number of target processors is 1, 2, or 4, the fourth reset pin RST3 receives the fourth reset signal PRST3. In other examples, the fourth clock pin CLK3 and the fourth reset pin RST3 can also be connected to selector switches, as detailed below. Figure 4 introduce.
[0051] Figure 4 for Figure 2 The diagram shows another exemplary specific structure of the network card. (See attached diagram.) Figure 4As shown, multiple control signals include a fourth control signal such as GPIO4. Multiple clock selection switches K1 may also include a fourth clock selection switch K14. The first input terminal of the fourth clock selection switch K14 (the S terminal of switch K14) is used to receive the fourth control signal such as GPIO4. The second input terminal of the fourth clock selection switch K14 (the A terminal of switch K14) is used to receive the fourth clock signal PCLK3. The first output terminal of the fourth clock selection switch K14 (the B0 terminal of switch K14) is connected to the fourth clock pin CLK3. The second output terminal of the fourth clock selection switch K14 (the B1 terminal of switch K14) is left floating, i.e., connected to NC. Specifically: when the number of target processors is 1 or 2, the fourth control signal, such as GPIO4, is used to control the second input terminal of the fourth clock selection switch K14 to connect with the second output terminal of the fourth clock selection switch K14; when the number of target processors is 4, the fourth control signal, such as GPIO4, is used to control the second input terminal of the fourth clock selection switch K14 to connect with the first output terminal of the fourth clock selection switch K14, so as to send the fourth clock signal PCLK3 to the fourth clock pin CLK3.
[0052] Multiple control signals include an eighth control signal such as GPIO8. Multiple reset selection switches K2 may also include a fourth reset selection switch K24. The first input terminal (S terminal of switch K24) of the fourth reset selection switch K24 is used to receive the eighth control signal such as GPIO8. The second input terminal (A terminal of switch K24) of the fourth reset selection switch K24 is used to receive the fourth reset signal PRST3. The first output terminal (B0 terminal of switch K24) of the fourth reset selection switch K24 is connected to the fourth reset pin RST3. The second output terminal (B1 terminal of switch K24) of the fourth reset selection switch K24 is left floating, i.e., connected to NC. Specifically: when the number of target processors is 1 or 2, the eighth control signal such as GPIO8 is used to control the connection between the second input terminal and the second output terminal of the fourth reset selection switch K24; when the number of target processors is 4, the eighth control signal such as GPIO8 is used to control the connection between the second input terminal and the first output terminal of the fourth reset selection switch K24, so as to send the fourth reset signal PRST3 to the fourth reset pin RST3.
[0053] In other words, Figure 3 The network card shown includes three clock selection switches K1 and three reset selection switches K2; Figure 4 The network card shown includes four clock selection switches K1 and four reset selection switches K2, thus enabling... Figure 3 and Figure 4The number of clock selection switches K1 and the number of reset selection switches K2 are equal. In other examples, the number of clock selection switches K1 and the number of reset selection switches K2 may not be equal if needed. For example, the network card may include three clock selection switches and four reset selection switches, or the network card may include four clock selection switches and three reset selection switches.
[0054] In addition, Figures 2-4 In the network card shown, the network card chip 2 includes multiple first output pins and multiple second output pins. The network card chip 2 can generate multiple control signals such as GPIO [1:8] according to the first message. Each first output pin and each second output pin is used to output one of the multiple control signals. The multiple first output pins are respectively connected to the first input terminals of the multiple clock selection switches K1 of the selection circuit 3, and the multiple second output pins are respectively connected to the first input terminals of the multiple reset selection switches K2 of the selection circuit 3.
[0055] like Figure 3 As shown, the network card has three clock selection switches K1. For example, in different Host modes, the fourth clock signal PCLK3 can be continuously connected to the fourth clock pin CLK3 of the network card chip 2. All three first output pins of the network card chip can output GPIO (general-purpose input / output) signals. GPIO signals can be high or low level signals, and each first output pin can output one of GPIO1, GPIO2, and GPIO3. For example: 1) Sending GPIO1 to the first input of the first clock selection switch K11, for instance, when GPIO1 is low (0), the second input of the first clock selection switch K11 can be connected to the first output of the first clock selection switch K11; when GPIO1 is high (1), the second input of the first clock selection switch K11 can be connected to the second output of the first clock selection switch K11; 2) Sending GPIO2 to the first input of the second clock selection switch K12, for instance, when GPIO2 is low (0), the second input of the second clock selection switch K12 can be connected to the first output of the first clock selection switch K12. The first output terminal of the second clock selection switch K12 is connected. When GPIO2 is high level 1, the second input terminal of the second clock selection switch K12 can be connected to the second output terminal of the second clock selection switch K12. 3) GPIO3 is sent to the first input terminal of the third clock selection switch K13. For example, when GPIO3 is low level 0, the second input terminal of the third clock selection switch K13 can be connected to the first output terminal of the third clock selection switch K13. When GPIO3 is high level 1, the second input terminal of the third clock selection switch K13 can be connected to the second output terminal of the third clock selection switch K13.
[0056] As shown in Table 1 below, the motherboard can provide four clock signals, namely PCLK0, PCLK1, PCLK2 and PCLK3. The host type of the network card can be any of 4×4 (a multi-host mode in which the network card needs to communicate with four processors), 2×8 (another multi-host mode in which the network card needs to communicate with two processors), and 1×16 (a single-host mode in which the network card needs to communicate with one processor).
[0057] When the Host type is 4×4, GPIO[1:3] can be "000". At this time, the four clock pins of the network card chip 2, namely CLK0, CLK1, CLK2 and CLK3, can receive the corresponding clock signals. For example, pin CLK0 can receive the first clock signal PCLK0, pin CLK1 can receive the second clock signal PCLK1, pin CLK2 can receive the third clock signal PCLK2, and pin CLK3 can receive the fourth clock signal PCLK3.
[0058] When the Host type is 2×8, GPIO[1:3] can be "011". At this time, three of the four clock pins of the network card chip 2, namely CLK0, CLK1, CLK2 and CLK3, can receive the corresponding clock signals. For example, pin CLK0 can receive the first clock signal PCLK0, pin CLK2 can receive the second clock signal PCLK1, and pin CLK3 can receive the fourth clock signal PCLK3 (not mandatory).
[0059] When the Host type is 1×16, GPIO[1:3] can be "101". At this time, three of the four clock pins of the network card chip 2, namely CLK0, CLK1, CLK2 and CLK3, can receive the corresponding clock signals. For example, pin CLK2 can receive the first clock signal PCLK0, pin CLK1 can receive the second clock signal PCLK1 (not required), and pin CLK3 can receive the fourth clock signal PCLK3 (not required).
[0060]
[0061] Table 1
[0062] Continue to refer to Figure 3The network card has three reset selection switches K2. For example, in different Host modes, the fourth reset signal PRST3 can be continuously connected to the fourth reset pin RST3 of the network card chip 2. All three second output pins of the network card chip can output GPIO signals, which can be high or low level signals. Each second output pin can output one of GPIO5, GPIO6, and GPIO7. For example: 1) GPIO5 is sent to the first input of the first reset selection switch K21. For example, when GPIO5 is low (0), the second input of the first reset selection switch K21 is connected to the first output of the first reset selection switch K21; when GPIO5 is high (1), the second input of the first reset selection switch K21 is connected to the second output of the first reset selection switch K21. 2) GPIO6 is sent to the first input of the second reset selection switch K22. For example, when GPIO6 is low (0), the second input of the second reset selection switch K22 is connected to the first output of the second reset selection switch K22. The first output terminal of the second reset selection switch K22 is connected. When GPIO6 is high level 1, the second input terminal of the second reset selection switch K22 can be connected to the second output terminal of the second reset selection switch K22. 3) GPIO7 is sent to the first input terminal of the third reset selection switch K23. For example, when GPIO7 is low level 0, the second input terminal of the third reset selection switch K23 can be connected to the first output terminal of the third reset selection switch K23. When GPIO7 is high level 1, the second input terminal of the third reset selection switch K23 can be connected to the second output terminal of the third reset selection switch K23.
[0063] As shown in Table 2 below, the motherboard can provide four reset signals, namely PRST0, PRST1, PRST2 and PRST3. The network card's Host type can be any of 4×4 (a Multi-Host mode in which the network card needs to communicate with four processors), 2×8 (another Multi-Host mode in which the network card needs to communicate with two processors), and 1×16 (a Single-Host mode in which the network card needs to communicate with one processor).
[0064] When the Host type is 4×4, GPIO[5:7] can be "000". At this time, the four reset pins of the network card chip 2, namely RST0, RST1, RST2 and RST3, can receive the corresponding reset signals. For example, pin RST0 can receive the first reset signal PRST0, pin RST1 can receive the second reset signal PRST1, pin RST2 can receive the third reset signal PRST2, and pin RST3 can receive the fourth reset signal PRST3.
[0065] When the Host type is 2×8, GPIO[5:7] can be "011". At this time, three of the four reset pins of the network card chip 2, namely RST0, RST2, RST3 and RST4, can receive the corresponding reset signal. For example, pin RST0 can receive the first reset signal PRST0, pin RST2 can receive the second reset signal PRST1, and pin RST3 can receive the fourth reset signal PRST3 (not mandatory).
[0066] When the Host type is 1×16, GPIO[5:7] can be "101". At this time, three of the four reset pins of the network card chip 2, namely RST0, RST2, RST3 and RST2, can receive the corresponding reset signal. For example, pin RST2 can receive the first reset signal PRST2, pin RST1 can receive the second reset signal PRST1 (not required), and pin RST3 can receive the fourth reset signal PRST3 (not required).
[0067]
[0068] Table 2
[0069] like Figure 4 As shown, the network card has four clock selection switches K1. Each of the four first output pins of the network card chip 2 can output GPIO signals, which can be high or low level signals. Each first output pin can output one of GPIO1, GPIO2, GPIO3, and GPIO4. For example, GPIO1 is sent to the first input of the first clock selection switch K11, GPIO2 is sent to the first input of the second clock selection switch K12, and GPIO3 is sent to the first input of the third clock selection switch K13. The specific control methods of GPIO1, GPIO2, and GPIO3 on their respective clock selection switches can be found in the above description. Figure 3 The corresponding introduction. Additionally, with Figure 3 The difference shown is that, in Figure 4 In addition, the first output pin of the network card chip 2 can also send GPIO4 to the first input terminal of the fourth clock selection switch K14. For example, when GPIO4 is low level 0, the second input terminal of the fourth clock selection switch K14 can be connected to the first output terminal of the fourth clock selection switch K14. When GPIO4 is high level 1, the second input terminal of the fourth clock selection switch K14 can be connected to the second output terminal of the fourth clock selection switch K14.
[0070] As shown in Table 3 below, the motherboard can provide four clock signals, namely PCLK0, PCLK1, PCLK2 and PCLK3. The network card's Host type can be any of 4×4 (a Multi-Host mode in which the network card needs to communicate with four processors), 2×8 (another Multi-Host mode in which the network card needs to communicate with two processors), and 1×16 (a Single-Host mode in which the network card needs to communicate with one processor).
[0071] When the Host type is 4×4, GPIO[1:4] can be "0000". At this time, the four clock pins of the network card chip 2, namely CLK0, CLK1, CLK2 and CLK3, can receive the corresponding clock signals. For example, pin CLK0 can receive the first clock signal PCLK0, pin CLK1 can receive the second clock signal PCLK1, pin CLK2 can receive the third clock signal PCLK2, and pin CLK3 can receive the fourth clock signal PCLK3.
[0072] When the Host type is 2×8, GPIO[1:4] can be "0111". At this time, only two of the four clock pins of the network card chip 2, namely CLK0, CLK1, CLK2 and CLK3, can receive the corresponding clock signal. For example, pin CLK0 can receive the first clock signal PCLK0, and pin CLK2 can receive the second clock signal PCLK1.
[0073] When the Host type is 1×16, GPIO[1:4] can be "1011". At this time, only two of the four clock pins of the network card chip 2, namely CLK0, CLK1, CLK2 and CLK3, can receive the corresponding clock signal. For example, pin CLK2 can receive the first clock signal PCLK0, and pin CLK1 can receive the second clock signal PCLK1 (not mandatory).
[0074]
[0075] Table 3
[0076] Continue to refer to Figure 4 The network card has four reset selection switches K2. Each of the four second output pins of the network card chip 2 can output GPIO signals, which can be high or low level signals. Each second output pin can output one of GPIO5, GPIO6, GPIO7, and GPIO8. For example, GPIO5 is sent to the first input of the first reset selection switch K21, GPIO6 is sent to the first input of the second reset selection switch K22, and GPIO7 is sent to the first input of the third reset selection switch K23. The specific control methods of GPIO5, GPIO6, and GPIO7 on their respective reset selection switches can be found in the above description. Figure 3The corresponding introduction. Additionally, with Figure 3 The difference shown is that, in Figure 4 In addition, the second output pin of the network card chip 2 can also send GPIO8 to the first input terminal of the fourth reset selection switch K24. For example, when GPIO8 is low level 0, the second input terminal of the fourth reset selection switch K24 can be connected to the first output terminal of the fourth reset selection switch K24. When GPIO8 is high level 1, the second input terminal of the fourth reset selection switch K24 can be connected to the second output terminal of the fourth reset selection switch K24.
[0077] As shown in Table 4 below, the motherboard can provide four reset signals, namely PRST0, PRST1, PRST2 and PRST3. The network card's Host type can be any of 4×4 (a Multi-Host mode in which the network card needs to communicate with four processors), 2×8 (another Multi-Host mode in which the network card needs to communicate with two processors), and 1×16 (a Single-Host mode in which the network card needs to communicate with one processor).
[0078] When the Host type is 4×4, GPIO[5:8] can be "0000". At this time, the four reset pins of the network card chip 2, namely RST0, RST1, RST2 and RST3, can receive the corresponding reset signal. For example, pin RST0 can receive the first reset signal PRST0, pin RST1 can receive the second reset signal PRST1, pin RST2 can receive the third reset signal PRST2, and pin RST3 can receive the fourth reset signal PRST3.
[0079] When the Host type is 2×8, GPIO[5:8] can be "0111". At this time, only two of the four reset pins of the network card chip 2, namely RST0, RST2, RST3, can receive the corresponding reset signal. For example, pin RST0 can receive the first reset signal PRST0, and pin RST2 can receive the second reset signal PRST1.
[0080] When the Host type is 1×16, GPIO[5:8] can be "1011". At this time, only two of the four reset pins of the network card chip 2, namely RST0, RST2, RST3, can receive the corresponding reset signal. For example, pin RST2 can receive the first reset signal PRST0, and pin RST1 can receive the second reset signal PRST1 (not mandatory).
[0081]
[0082] Table 4
[0083] Considering that outputting multiple control signals through network card chip 2 would occupy multiple pins of network card chip 2, in order to reduce the number of pins occupied by network card chip 2, for example, a miniaturized microcontroller can be set on the network card. See below for reference. Figure 5 Let me introduce it.
[0084] Figure 5 This is a schematic diagram of another network interface card (NIC) provided in an embodiment of this application. Figure 2 The difference shown is that, for example, Figure 5 As shown, the network card also includes a microcontroller 4, which is connected to the network card chip 2. The network card chip 2 can send a first message to the microcontroller 4, and the microcontroller 4 can generate multiple control signals based on the first message. The microcontroller 4 includes multiple first output pins and multiple second output pins. Each first output pin and each second output pin is used to output one of the multiple control signals. The multiple first output pins are respectively connected to the first input terminals of the multiple clock selection switches K1 of the selection circuit 3, and the multiple second output pins are respectively connected to the first input terminals of the multiple reset selection switches K2 of the selection circuit 3.
[0085] Figure 6 This is a schematic diagram of the structure of a computing device provided in an embodiment of this application. Figure 7 This is a schematic diagram of another computing device provided in an embodiment of this application. Figure 6 The computing device shown uses Figure 3 The network card shown is Figure 7 The computing device shown uses Figure 4 The network interface card (NIC) is shown. For example, the computing device could be a server. Figure 6 and Figure 7 As shown, the computing device includes a motherboard 10, multiple processors, and the aforementioned network interface card (NIC) 20. The multiple processors are mounted on the motherboard 10. These processors can be CPU0, CPU1, CPU2, and CPU3. The circuit board 1 of the NIC 20 is communicatively connected to the motherboard 10. The motherboard 10 can send a first message to the NIC chip 2 of the NIC 20 via the circuit board 1. The first message indicates the number of target processors, which are the processors among the multiple processors that need to communicate with the NIC chip 2. The first message can be a BIF signal, such as BIF[2:0], which includes BIF0, BIF1, and BIF2.
[0086] The motherboard 10 also sends multiple working signals to the selection circuit 3 of the network card 20. The selection circuit 3 can select according to multiple control signals to send the target working signal among the multiple working signals to the corresponding target pin among the multiple pins of the network card chip 2. It can also change the number of target working signals and the correspondence between target working signals and target pins according to the change of the number of target processors according to a preset protocol. The multiple control signals are generated based on the first message. The target working signal is the working signal required for communication between the target processor and the network card chip 2. The target pin is the pin among the multiple pins that receives the target working signal.
[0087] For example, the multiple pins may include multiple clock pins and multiple reset pins, each clock pin being used to receive a clock signal and each reset pin being used to receive a reset signal. Furthermore, the multiple working signals may include multiple clock signals CLK (e.g., four clock signals PCIE_CLK[3:0]) and multiple reset signals RST (e.g., four reset signals PCIE_RST[3:0]). The selection circuit 3 can send the target clock signal from the multiple clock signals CLK to the corresponding target clock pin among the multiple clock pins and send the target reset signal from the multiple reset signals RST to the corresponding target reset pin among the multiple reset pins according to the multiple control signals. The target working signal includes the target clock signal and the target reset signal, and the target pin includes the target clock pin and the target reset pin. The number of target clock signals and the number of target reset signals are equal to the number of target processors, and the target clock signals, target reset signals, and target processors correspond one-to-one. The network card chip 2 can communicate with the corresponding target processor based on the target clock signal and the target reset signal.
[0088] In summary, when there are differences between the internal design logic of a network interface card (NIC) chip and the OCP protocol, existing designs can only implement Single-Host mode or a single-mode Multi-Host mode, and cannot switch between Single-Host and Multi-Host modes or between multiple Multi-Host modes. The NIC and computing device including the NIC in this embodiment have different links on the NIC hardware connected between the motherboard's operating signal output and the NIC chip's pins. For example, different links are connected between the motherboard's clock signal output and the NIC's clock pin, and between the motherboard's reset signal output and the NIC's reset pin. Through hardware design combined with software (firmware) control of GPIO, the NIC chip can output different GPIOs to switch between different links. Different combinations can achieve different host functions. This allows chips with internal design logic differing from the OCP protocol to be designed to adapt to the OCP protocol and implement multiple host functions.
[0089] Specifically, after receiving the BIF signal (indicating the number of processors / hosts / CPUs that need to communicate with the network card chip) sent by the motherboard, the network card chip adaptively generates multiple control signals based on the internal structure of the BIF signal. These control signals are then output to the selection circuit through corresponding pins of the network card chip. This allows the hardware link at the output of the selection circuit to automatically switch, thereby rationally allocating working signals such as clock and reset signals. This ensures that different numbers of hosts can communicate with the network card. In other words, different GPIO pins of the network card chip output multiple control signals according to different hardware configurations. This enables the motherboard-side clock signal output to adapt and connect with the network card chip's pins that need to receive clock signals under different hosts, and also enables the motherboard-side reset signal output to adapt and connect with the network card chip's pins that need to receive reset signals under different hosts, thus forming multi-host protocol communication.
[0090] In other words, the network interface card (NIC) in this embodiment, through the design of a selection circuit, can adapt NIC chips whose internally designed pins requiring the reception of working signals differ from the pins specified by the OCP protocol in this mode to the OCP protocol. This enables not only Single-Host but also various Multi-Host configurations. The NIC chip acts as a network controller, automatically selecting hardware links by sending multiple control signals to the selection circuit, thereby achieving different Host modes. Furthermore, when needed, a single Host mode can be selected to fix the hardware link connection, such as through resistance welding. This allows the automatically switching hardware link to be fixed in a specific Host mode, eliminating the need for software configuration (i.e., no need to generate multiple control signals to control the selection circuit).
[0091] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application.
Claims
1. A network card, characterized in that, include: Circuit board (1), used for communication connection with the motherboard; The network card chip (2) is disposed on the circuit board (1) and includes multiple pins. The network card chip (2) can receive a first message sent by the motherboard through the circuit board (1). The first message is used to indicate the number of target processors. The target processors are processors disposed on the motherboard and need to communicate with the network card chip (2). The selection circuit (3) is disposed on the circuit board (1) and is used to receive multiple control signals and multiple working signals sent by the motherboard. The multiple control signals are generated based on the first message. The selection circuit (3) can select according to the multiple control signals to send the target working signal among the multiple working signals to the corresponding target pin among the multiple pins. It can also change the number of target working signals and the correspondence between the target working signals and the target pins according to a preset protocol based on the change in the number of target processors. The target working signal is the working signal required for communication between the target processor and the network card chip (2). The target pin is the pin among the multiple pins that receives the target working signal. The multiple pins include multiple clock pins and multiple reset pins. Each clock pin is used to receive a clock signal, and each reset pin is used to receive a reset signal. The multiple working signals include multiple clock signals (CLK) and multiple reset signals (RST). The selection circuit (3) can send the target clock signal from the multiple clock signals (CLK) to the corresponding target clock pin from the multiple clock pins and send the target reset signal from the multiple reset signals (RST) to the corresponding target reset pin from the multiple reset pins according to the multiple control signals. The target working signal includes the target clock signal and the target reset signal. The target pin includes the target clock pin and the target reset pin.
2. The network card of claim 1, wherein, The target clock signal, the target reset signal, and the target processor are in one-to-one correspondence, and the network card chip (2) can communicate with the corresponding target processor based on the target clock signal and the target reset signal.
3. The network interface card according to claim 2, characterized in that, The plurality of clock signals (CLK) includes a first clock signal (PCLK0), a second clock signal (PCLK1), a third clock signal (PCLK2), and a fourth clock signal (PCLK3), and the plurality of clock pins includes a first clock pin (CLK0), a second clock pin (CLK1), a third clock pin (CLK2), and a fourth clock pin (CLK3), wherein: When the number of target processors is 1, the target clock signal includes the first clock signal (PCLK0), the target clock pin includes the third clock pin (CLK2), and the selection circuit (3) can send the first clock signal (PCLK0) to the third clock pin (CLK2). When the number of target processors is 2, the target clock signal includes the first clock signal (PCLK0) and the second clock signal (PCLK1), the target clock pin includes the first clock pin (CLK0) and the third clock pin (CLK2), and the selection circuit (3) can send the first clock signal (PCLK0) to the first clock pin (CLK0) and send the second clock signal (PCLK1) to the third clock pin (CLK2). When the number of target processors is 4, the target clock signal includes the first clock signal (PCLK0), the second clock signal (PCLK1), the third clock signal (PCLK2), and the fourth clock signal (PCLK3). The target clock pins include the first clock pin (CLK0), the second clock pin (CLK1), the third clock pin (CLK2), and the fourth clock pin (CLK3). The selection circuit (3) can send the first clock signal (PCLK0) to the first clock pin (CLK0), send the second clock signal (PCLK1) to the second clock pin (CLK1), send the third clock signal (PCLK2) to the third clock pin (CLK2), and send the fourth clock signal (PCLK3) to the fourth clock pin (CLK3).
4. The network card of claim 3, wherein, The plurality of control signals include a first control signal, and the selection circuit (3) includes a first clock selection switch (K11). The first input terminal of the first clock selection switch (K11) is used to receive the first control signal, the second input terminal of the first clock selection switch (K11) is used to receive the first clock signal (PCLK0), the first output terminal of the first clock selection switch (K11) is connected to the first clock pin (CLK0), and the second output terminal of the first clock selection switch (K11) is connected to the third clock pin (CLK2). When the number of target processors is 1, the first control signal is used to connect the second input terminal of the first clock selection switch (K11) to the second output terminal of the first clock selection switch (K11) so as to send the first clock signal (PCLK0) to the third clock pin (CLK2). When the number of target processors is 2 or 4, the first control signal is used to connect the second input terminal of the first clock selection switch (K11) to the first output terminal of the first clock selection switch (K11) so as to send the first clock signal (PCLK0) to the first clock pin (CLK0).
5. The network card of claim 3 or 4, wherein, The plurality of control signals include a second control signal. The selection circuit (3) includes a second clock selection switch (K12). The first input terminal of the second clock selection switch (K12) is used to receive the second control signal. The second input terminal of the second clock selection switch (K12) is used to receive the second clock signal (PCLK1). The first output terminal of the second clock selection switch (K12) is connected to the second clock pin (CLK1). The second output terminal of the second clock selection switch (K12) is connected to the third clock pin (CLK2). When the number of target processors is 1 or 4, the second control signal is used to connect the second input terminal of the second clock selection switch (K12) to the first output terminal of the second clock selection switch (K12) to send the second clock signal (PCLK1) to the second clock pin (CLK1); when the number of target processors is 2, the second control signal is used to connect the second input terminal of the second clock selection switch (K12) to the second output terminal of the second clock selection switch (K12) to send the second clock signal (PCLK1) to the third clock pin (CLK2); and / or, The plurality of control signals include a third control signal. The selection circuit (3) includes a third clock selection switch (K13). The first input terminal of the third clock selection switch (K13) is used to receive the third control signal. The second input terminal of the third clock selection switch (K13) is used to receive the third clock signal (PCLK2). The first output terminal of the third clock selection switch (K13) is connected to the third clock pin (CLK2). The second output terminal of the third clock selection switch (K13) is left floating. When the number of target processors is 1 or 2, the third control signal is used to control the second input terminal of the third clock selection switch (K13) to connect with the second output terminal of the third clock selection switch (K13); when the number of target processors is 4, the third control signal is used to control the second input terminal of the third clock selection switch (K13) to connect with the first output terminal of the third clock selection switch (K13) to send the third clock signal (PCLK2) to the third clock pin (CLK2).
6. The network interface card according to any one of claims 3-4, characterized in that, When the number of target processors is any one of 1, 2, and 4, the fourth clock pin (CLK3) receives the fourth clock signal (PCLK3); or, The plurality of control signals include a fourth control signal. The selection circuit (3) includes a fourth clock selection switch (K14). The first input terminal of the fourth clock selection switch (K14) is used to receive the fourth control signal. The second input terminal of the fourth clock selection switch (K14) is used to receive the fourth clock signal (PCLK3). The first output terminal of the fourth clock selection switch (K14) is connected to the fourth clock pin (CLK3). The second output terminal of the fourth clock selection switch (K14) is left floating. Wherein: When the number of target processors is 1 or 2, the fourth control signal is used to control the second input terminal of the fourth clock selection switch (K14) to connect with the second output terminal of the fourth clock selection switch (K14); When the number of target processors is 4, the fourth control signal is used to control the second input terminal of the fourth clock selection switch (K14) to connect with the first output terminal of the fourth clock selection switch (K14) so as to send the fourth clock signal (PCLK3) to the fourth clock pin (CLK3).
7. The network card of any of claims 1-4, wherein, The plurality of reset signals (RST) include a first reset signal (PRST0), a second reset signal (PRST1), a third reset signal (PRST2), and a fourth reset signal (PRST3), and the plurality of reset pins include a first reset pin (RST0), a second reset pin (RST1), a third reset pin (RST2), and a fourth reset pin (RST3), wherein: When the number of target processors is 1, the target reset signal includes the first reset signal (PRST0), the target reset pin includes the third reset pin (RST2), and the selection circuit (3) is able to send the first reset signal (PRST0) to the third reset pin (RST2). When the number of target processors is 2, the target reset signal includes the first reset signal (PRST0) and the second reset signal (PRST1), the target reset pin includes the first reset pin (RST0) and the third reset pin (RST2), and the selection circuit (3) can send the first reset signal (PRST0) to the first reset pin (RST0) and send the second reset signal (PRST1) to the third reset pin (RST2). When the number of target processors is 4, the target reset signal includes the first reset signal (PRST0), the second reset signal (PRST1), the third reset signal (PRST2), and the fourth reset signal (PRST3). The target reset pins include the first reset pin (RST0), the second reset pin (RST1), the third reset pin (RST2), and the fourth reset pin (RST3). The selection circuit (3) can send the first reset signal (PRST0) to the first reset pin (RST0), send the second reset signal (PRST1) to the second reset pin (RST1), send the third reset signal (PRST2) to the third reset pin (RST2), and send the fourth reset signal (PRST3) to the fourth reset pin (RST3).
8. The network card of claim 7, wherein, The plurality of control signals include a fifth control signal. The selection circuit (3) includes a first reset selection switch (K21). The first input terminal of the first reset selection switch (K21) is used to receive the fifth control signal. The second input terminal of the first reset selection switch (K21) is used to receive the first reset signal (PRST0). The first output terminal of the first reset selection switch (K21) is connected to the first reset pin (RST0). The second output terminal of the first reset selection switch (K21) is connected to the third reset pin (RST2). When the number of target processors is 1, the fifth control signal is used to connect the second input terminal of the first reset selection switch (K21) to the second output terminal of the first reset selection switch (K21) so as to send the first reset signal (PRST0) to the third reset pin (RST2). When the number of target processors is 2 or 4, the fifth control signal is used to connect the second input terminal of the first reset selection switch (K21) to the first output terminal of the first reset selection switch (K21) so as to send the first reset signal (PRST0) to the first reset pin (RST0).
9. The network card of claim 8, wherein, The plurality of control signals include a sixth control signal. The selection circuit (3) includes a second reset selection switch (K22). The first input terminal of the second reset selection switch (K22) is used to receive the sixth control signal. The second input terminal of the second reset selection switch (K22) is used to receive the second reset signal (PRST1). The first output terminal of the second reset selection switch (K22) is connected to the second reset pin (RST1). The second output terminal of the second reset selection switch (K22) is connected to the third reset pin (RST2). When the number of target processors is 1 or 4, the sixth control signal is used to connect the second input terminal of the second reset selection switch (K22) to the first output terminal of the second reset selection switch (K22) to send the second reset signal (PRST1) to the second reset pin (RST1); when the number of target processors is 2, the sixth control signal is used to connect the second input terminal of the second reset selection switch (K22) to the second output terminal of the second reset selection switch (K22) to send the second reset signal (PRST1) to the third reset pin (RST2); and / or, The plurality of control signals include a seventh control signal. The selection circuit (3) includes a third reset selection switch (K23). The first input terminal of the third reset selection switch (K23) is used to receive the seventh control signal. The second input terminal of the third reset selection switch (K23) is used to receive the third reset signal (PRST2). The first output terminal of the third reset selection switch (K23) is connected to the third reset pin (RST2). The second output terminal of the third reset selection switch (K23) is left floating. When the number of target processors is 1 or 2, the seventh control signal is used to control the second input terminal of the third reset selection switch (K23) to connect with the second output terminal of the third reset selection switch (K23); when the number of target processors is 4, the seventh control signal is used to control the second input terminal of the third reset selection switch (K23) to connect with the first output terminal of the third reset selection switch (K23) to send the third reset signal (PRST2) to the third reset pin (RST2).
10. The network interface card according to any one of claims 8 and 9, characterized in that, When the number of target processors is any one of 1, 2, and 4, the fourth reset pin (RST3) receives the fourth reset signal (PRST3); or, The plurality of control signals include an eighth control signal. The selection circuit (3) includes a fourth reset selection switch (K24). The first input terminal of the fourth reset selection switch (K24) is used to receive the eighth control signal, and the second input terminal of the fourth reset selection switch (K24) is used to receive the fourth reset signal (PRST3). The first output terminal of the fourth reset selection switch (K24) is connected to the fourth reset pin (RST3), and the second output terminal of the fourth reset selection switch (K24) is left floating. Wherein: When the number of target processors is 1 or 2, the eighth control signal is used to control the second input terminal of the fourth reset selection switch (K24) to connect with the second output terminal of the fourth reset selection switch (K24); When the number of target processors is 4, the eighth control signal is used to control the second input terminal of the fourth reset selection switch (K24) to connect with the first output terminal of the fourth reset selection switch (K24) so as to send the fourth reset signal (PRST3) to the fourth reset pin (RST3).
11. The network interface card according to any one of claims 1-4, 8, and 9, characterized in that: The network card chip (2) includes multiple first output pins and multiple second output pins, and the network card chip (2) can generate the multiple control signals according to the first message; Alternatively, the network card may also include a microcontroller (4), which is connected to the network card chip (2). The network card chip (2) can send the first message to the microcontroller (4), and the microcontroller (4) can generate the plurality of control signals according to the first message. The microcontroller (4) includes a plurality of first output pins and a plurality of second output pins. Each of the first output pins and each of the second output pins is used to output one of the plurality of control signals. The plurality of first output pins are respectively connected to the first input terminals of the plurality of clock selection switches of the selection circuit (3), and the plurality of second output pins are respectively connected to the first input terminals of the plurality of reset selection switches of the selection circuit (3).
12. A computing device, comprising: include: Motherboard (10); Multiple processors are mounted on the motherboard (10); According to any one of claims 1-11, the network card (20) has a circuit board (1) that is communicatively connected to the motherboard (10), and the motherboard (10) can send a first message to the network card chip (2) of the network card (20) through the circuit board (1). The first message is used to indicate the number of target processors, and the target processor is the processor among the plurality of processors that needs to communicate with the network card chip (2). The motherboard (10) also sends multiple working signals to the selection circuit (3) of the network card (20). The selection circuit (3) can select according to multiple control signals to send the target working signal among the multiple working signals to the target pin among the multiple pins of the network card chip (2). It can also change the number of the target working signals and the correspondence between the target working signals and the target pins according to the change of the number of target processors according to a preset protocol. The multiple control signals are generated based on the first message. The target working signal is the working signal required for the target processor to communicate with the network card chip (2). The target pin is the pin among the multiple pins that receives the target working signal.
Citation Information
Patent Citations
Interface configuration method and device, electronic device and electronic equipment
CN110837485A
Interconnection device of network card and processor and server
CN113568847A
