CN113050767B - Expansion slot channel allocation method and device, electronic equipment and medium - Google Patents

Expansion slot channel allocation method and device, electronic equipment and medium Download PDF

Info

Publication number
CN113050767B
CN113050767B CN202110343240.1A CN202110343240A CN113050767B CN 113050767 B CN113050767 B CN 113050767B CN 202110343240 A CN202110343240 A CN 202110343240A CN 113050767 B CN113050767 B CN 113050767B
Authority
CN
China
Prior art keywords
expansion
expansion slot
target
switch
slot
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110343240.1A
Other languages
Chinese (zh)
Other versions
CN113050767A (en
Inventor
张文静
王元成
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN202110343240.1A priority Critical patent/CN113050767B/en
Publication of CN113050767A publication Critical patent/CN113050767A/en
Application granted granted Critical
Publication of CN113050767B publication Critical patent/CN113050767B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/16Constructional details or arrangements
    • G06F1/18Packaging or power distribution
    • G06F1/183Internal mounting support structures, e.g. for printed circuit boards, internal connecting means
    • G06F1/185Mounting of expansion boards
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/40Bus structure
    • G06F13/4004Coupling between buses
    • G06F13/4022Coupling between buses using switching circuits, e.g. switching matrix, connection or expansion network

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Power Engineering (AREA)
  • Human Computer Interaction (AREA)
  • Electronic Switches (AREA)

Abstract

The embodiment of the application provides an expansion slot channel distribution method, an expansion slot channel distribution device, electronic equipment and a medium, wherein the electronic equipment comprises a main board, a plurality of expansion slots connected with a processor are arranged on the main board, at least one switch piece is arranged on the main board, and each switch piece is respectively connected with the expansion slots; when the switch piece is in a first state, a plurality of expansion slots connected with the switch piece are connected to form a target expansion slot; therefore, the user can control the state of the switch piece based on the type of the adapter card to be inserted, so that a target expansion slot matched with the type of the adapter card to be inserted is formed, and the expansion capability of the main board is improved.

Description

Expansion slot channel allocation method and device, electronic equipment and medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method, an apparatus, an electronic device, and a medium for allocating an expansion slot channel.
Background
Currently, electronic devices may use expansion slots on a motherboard to insert various types of adapter cards, such as an independent sound card, an independent network card, a USB interface expansion card, a RAID (Redundant Arrays of INDEPENDENT DISKS, redundant array of independent disks) card, an SSD (Solid STATE DISK ), an m.2 wireless network card, or other m.2 interface devices. The types of adapter cards into which different types of expansion slots are inserted may be different.
The type of the expansion slot pre-configured on the motherboard is fixed so that the motherboard can be connected with the corresponding type of adapter card through the expansion slot. And the number of certain types of adapter cards which can be connected with the motherboard is limited by the number of expansion slots of the type arranged on the motherboard, so that the expansion capability of the motherboard is limited.
Disclosure of Invention
In view of the above, the present application provides a method, apparatus, electronic device and medium for allocating expansion slot channels, so as to at least improve expansion capability of a motherboard.
In order to achieve the above purpose, the present application provides the following technical solutions:
according to a first aspect of embodiments of the present disclosure, there is provided an electronic device, comprising:
A main board;
the processor is arranged on the main board;
The processor is used for distributing a first number of transmission channels for the expansion slots, wherein the first number is the number corresponding to the type of the slots to which the expansion slots belong;
the switch piece is arranged on the main board and is respectively connected with the expansion slots;
And when the switch piece is in a first state, a plurality of expansion slots connected with the switch piece are connected to form a target expansion slot, the processor allocates a second number of transmission channels for the target expansion slot, and the second number is the sum of the first numbers corresponding to the connected expansion slots respectively.
According to a second aspect of an embodiment of the present disclosure, there is provided an expansion slot channel allocation method, which is applied to the electronic device according to the first aspect, and the expansion slot channel allocation method includes:
Obtaining a target signal;
Determining a target expansion slot layout mode corresponding to the target signal from the corresponding relation between the preset signal and the expansion slot layout mode; the target expansion slot layout mode includes: the expansion slot identification set corresponds to the target expansion slot and/or the identification of the independent expansion slot, wherein the expansion slot identification set comprises the identifications of a plurality of expansion slots forming the target expansion slot;
the second number of transmission channels is allocated in total for expansion slots having identifications of expansion slots forming the target expansion slot based on the target expansion slot layout pattern, and/or the first number of transmission channels is allocated for expansion slots having identifications of independent expansion slots.
According to a third aspect of embodiments of the present disclosure, there is provided an expansion slot channel allocation device, applied to the electronic apparatus according to the first aspect, the expansion slot channel allocation device including:
The acquisition module is used for acquiring a target signal;
The determining module is used for determining a target expansion slot layout mode corresponding to the target signal from the corresponding relation between the preset signal and the expansion slot layout mode; the target expansion slot layout mode includes: the expansion slot identification set corresponds to the target expansion slot and/or the identification of the independent expansion slot, wherein the expansion slot identification set comprises the identifications of a plurality of expansion slots forming the target expansion slot;
an allocation module, configured to allocate the second number of transmission channels for the expansion slots having the identifiers of the expansion slots forming the target expansion slots in total based on the target expansion slot layout pattern, and/or allocate the first number of transmission channels for the expansion slots having the identifiers of the independent expansion slots.
According to a fourth aspect of embodiments of the present disclosure, there is provided a computer readable storage medium, which when executed by a processor of an electronic device, enables the electronic device to perform the expansion slot channel allocation method according to the second aspect.
According to a fifth aspect of the embodiments of the present disclosure, there is provided a computer program product directly loadable into an internal memory of a computer, for example, a memory included in an electronic device according to the first aspect, and including software code, and when the computer program is loaded and executed by the computer, the computer program product is capable of implementing the method for allocating extended slot channels according to the second aspect.
In the electronic equipment provided by the embodiment of the application, a plurality of expansion slots connected with a processor are arranged on a main board, at least one switch piece is arranged on the main board, and each switch piece is respectively connected with the expansion slots; when the switch piece is in a first state, a plurality of expansion slots connected with the switch piece are connected to form a target expansion slot; therefore, the user can control the state of the switch piece based on the type of the adapter card to be inserted, so that a target expansion slot matched with the type of the adapter card to be inserted is formed, and the expansion capability of the main board is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only embodiments of the present application, and other drawings may be obtained according to the provided drawings without inventive effort for a person skilled in the art.
Fig. 1 is a hardware configuration diagram of an electronic device according to an embodiment of the present application;
Fig. 2 is a circuit diagram of an electronic device according to an embodiment of the present application;
fig. 3 is a schematic diagram of a target expansion slot formed in a case that 3 switch pieces are in a first state according to an embodiment of the present application;
FIG. 4 is a circuit diagram of another implementation of an electronic device according to an embodiment of the present application;
FIG. 5 is a flowchart of a method for allocating expansion slot channels according to an embodiment of the present application;
FIG. 6 is a circuit diagram of a branch circuit of a switching circuit according to an embodiment of the present application;
FIG. 7 is a block diagram of an expansion slot channel allocation apparatus according to an embodiment of the present application;
Fig. 8 is a block diagram of an electronic device, according to an example embodiment.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
The embodiment of the application provides an expansion slot channel allocation method, an expansion slot channel allocation device, electronic equipment and a storage medium. Before explaining the technical scheme provided by the embodiment of the application, the structure related to the electronic equipment is explained.
As shown in fig. 1, a hardware structure diagram of an electronic device according to an embodiment of the present application is shown.
By way of example, the electronic device may be any electronic product that can interact with a user by one or more of a keyboard, a touchpad, a touch screen, a remote control, a voice interaction, a handwriting device, etc., such as a mobile phone, a notebook computer, a tablet computer, a palm top computer, a personal computer, a wearable device, a smart television, a PAD, etc.
The electronic device may be a server, a server cluster formed by a plurality of servers, or a cloud computing server center.
As shown in fig. 1, the electronic device includes: the device comprises a main board 11, a processor 12 arranged on the main board, a plurality of expansion slots 13 arranged on the main board and at least one switch piece 14 arranged on the main board.
By way of example, expansion slot 13 may be a PCIE (PERIPHERAL COMPONENT INTERCONNECT EXPRESS, high speed serial computer expansion bus standard) slot.
Exemplary, the slot types of the plurality of expansion slots arranged on the main board are the same; or, the slot types of the expansion slots arranged on the main board are not identical; or, the slot types of the plurality of expansion slots arranged on the main board are completely different.
Illustratively, the expansion slots of different shapes shown in fig. 1 are different in the type of slot corresponding to the expansion slots of the same shape.
Exemplary slot types include, but are not limited to: any one of a PCIE x1 slot type, a PCIE x4 slot type, a PCIE x8 slot type, a PCIE x16 slot type, and a PCIE x32 slot type.
The expansion slot belonging to the PCIE x1 slot type is the expansion slot PCIE x1; the expansion slot belonging to the PCIE x4 slot type is expansion slot PCIE x4; the expansion slot belonging to the PCIE x8 slot type is expansion slot PCIE x8; the expansion slot belonging to the PCIE x16 slot type is expansion slot PCIE x16; the expansion slot belonging to the PCIE x32 slot type is the expansion slot PCIE x32.
Where xi represents the bandwidth over which i transmission channels can be used in total, i being a positive integer greater than or equal to 1. Illustratively, the maximum bandwidth of the expansion slot PCIEx4 can reach 3.938GB/s, the maximum bandwidth of the expansion slot PCIEx8 can reach 7.877GB/s, and the maximum bandwidth of the expansion slot PCIEx16 can reach 15.754GB/s. And the bandwidths of the transmission channel numbers of PCIEs of different versions have a plurality of different specification standards.
It should be noted that 10 expansion slots are shown in fig. 1, and the embodiment of the present application is not limited to the number of expansion slots provided on the motherboard, for example, the number of expansion slots provided on the motherboard may be any integer greater than or equal to 2, such as 2, 3, 4, …, etc. In fig. 1, 5 switching elements 14 are shown, and the number of switching elements disposed on the motherboard is not limited in the embodiment of the present application, for example, the number of switching elements disposed on the motherboard may be any positive integer such as 1, 2, 3, …, etc.
It should be noted that the positions of the expansion slots, the switching elements, and the processors shown in fig. 1 are only examples and are not limiting.
For example, the plurality of expansion slots may be located on the same side of the motherboard, or on different sides of the motherboard.
It should be noted that the shapes and structures of the expansion slots and the switch members shown in fig. 1 are only examples and are not limited thereto.
It should be noted that, as those skilled in the art will appreciate, the structure of the electronic device shown in fig. 1 is not limited to the electronic device, and more or fewer components than those shown in fig. 1 may be included on a motherboard, or in combination with some components, or in different arrangements of components.
For example, the motherboard 11 may further include a memory slot 15, and the processor 12 may be electrically connected to the memory slot 15 to control the same frequency and the respective operating frequency, and may support functions such as expansion slot data transmission.
In an alternative implementation, the motherboard 11 may also be provided with switching circuitry 16. The switching circuit 16 will be described in connection with the specific implementation, and will not be described in detail here.
It should be noted that the location of the switching circuit 16 on the motherboard 11 shown in fig. 1 is merely an example and is not limiting.
The circuit diagram of the electronic device will be described below with reference to the hardware configuration diagram of the electronic device.
Fig. 2 is a circuit diagram of an electronic device according to an embodiment of the present application.
The processor 12 is connected to a plurality of expansion slots, and in fig. 2, M expansion slots are illustrated as an example, where M is an integer greater than or equal to 2. The M expansion slots are respectively: expansion slot 1, expansion slot 2, expansion slots 3, …, expansion slot M.
The processor 12 allocates a first number of transmission channels for each expansion slot, wherein the first number corresponding to the expansion slot is the number corresponding to the slot type to which the expansion slot belongs; the first numbers of expansion slots belonging to different slot types are different.
For example, if the expansion slot belongs to the PCIE x4 slot type, the processor 12 allocates 4 transmission channels for the expansion slot (i.e., PCIE x4 slot), i.e., the first number is 4; if the expansion slot belongs to the PCIE x8 slot type, the processor 12 allocates 8 transmission channels for the expansion slot (i.e., PCIE x8 slot), i.e., the first number is 8.
Each switch member may be connected to a plurality of expansion slots. Each of the switch elements is illustrated in fig. 2 as being connected to two expansion slots.
For example, for the same switch element, the slot types of the plurality of expansion slots connected with the switch element may be the same, or completely different, or not completely the same.
The number of expansion slots to which different switchgears are connected may be the same or may be different, for example.
And when the switch piece is in the first state, the plurality of expansion slots connected with the switch piece are connected to form a target expansion slot. The processor allocates a second number of transmission channels for the target expansion slot, wherein the second number is the sum of the first numbers corresponding to the connected expansion slots respectively.
In the electronic equipment provided by the embodiment of the application, a plurality of expansion slots connected with a processor are arranged on a main board, at least one switch piece is arranged on the main board, and each switch piece is respectively connected with the expansion slots; when the switch piece is in a first state, a plurality of expansion slots connected with the switch piece are connected to form a target expansion slot; therefore, the user can control the state of the switch piece based on the type of the adapter card to be inserted, so that a target expansion slot matched with the type of the adapter card to be inserted is formed, and the expansion capability of the main board is improved.
For example, assume that 2 switch elements are provided on the motherboard, and the switch elements 1 and 2 are respectively, and that the number of the plurality of expansion slots connected to the motherboard is 3, and the expansion slots PCIEx4, and PCIEx8 are respectively; the switch element 1 is connected to two expansion slots pcie x4, and the switch element 2 is connected to one expansion slot pcie x4 and one expansion slot pcie x8 respectively.
If the user needs to connect two adapter cards corresponding to the expansion slots pcie x8 on the motherboard, for example, a display card and an AI (ARTIFICIAL INTELLIGENCE ) accelerator card, the switch element 1 may be controlled to be in the first state, so that the motherboard includes two expansion slots pcie x8, and the user may insert the display card and the AI accelerator card into the expansion slots pcie x8 respectively.
If the user needs to connect two adapter cards, for example, solid state disks, corresponding to the expansion slots pcie x4 on the motherboard, the switch element 1 may be controlled to be in the second state, so that the motherboard includes two expansion slots pcie x4 and one expansion slot pcie x8, and the two solid state disks are respectively inserted into the expansion slots pcie x4.
If the user needs to connect an adapter card corresponding to the expansion slot pcie x16 on the motherboard, the switch element 1 and the switch element 2 may be controlled to be in the first state, so that the motherboard includes the expansion slot pcie x16, and the adapter card may be inserted.
The following description will be made of "a plurality of expansion slots connected to the switch member in the first state, form a target expansion slot". The present application provides, but is not limited to, the following two cases where "the switch member is in the first state, and a plurality of expansion slots connected to the switch member are connected to form one target expansion slot".
First kind: if the switch pieces are in the first state, and any switch piece of the switch pieces is in the switch pieces, the switch pieces connected with the same expansion slot are all in the switch pieces, and the expansion slots respectively connected with the switch pieces are connected to form a target expansion slot.
It can be understood that if any one of the plurality of switch elements is a switch element having the same expansion slot connected with the switch element, the plurality of expansion slots respectively connected with the switch elements are described as being connected. The following examples are illustrative.
Assume that the number of the plurality of switching elements is 3, and is switching element 1, switching element 2, and switching element 3, respectively; the switch piece 1 is respectively connected with the expansion slot A1 and the expansion slot A2, and the switch piece 2 is respectively connected with the expansion slot B1, the expansion slot B2 and the expansion slot A1; the switch member 3 is connected to the expansion slot B2 and the expansion slot C1, respectively. For the switch piece 1, the same expansion slot A1 is connected with the switch piece 1 by the switch piece 2 in 3 switch pieces; for the switch piece 2, the same expansion slot A1 is connected with the switch piece 2 in the switch pieces 1 in 3 switch pieces; for the switch 3, the same expansion slot B2 is connected to the switch 3 with the switch 2 among the 3 switches. If the switch element 1, the switch element 2 and the switch element 3 are in the first state, the expansion slot A1, the expansion slot A2, the expansion slot B1, the expansion slot B2 and the expansion slot C1 are connected, thereby forming a target expansion slot.
As shown in fig. 3, a schematic diagram of a target expansion slot formed in the case that 3 switch pieces are in a first state according to an embodiment of the present application is shown.
In fig. 3, each switch element is illustrated as being connected to two expansion slots. The number of transmission channels allocated by the processor to the two expansion slots to which each switch is connected is shown in fig. 3. After the 3 switch elements shown in fig. 3 are in the first state, the 4 expansion slots shown in fig. 3 form a target expansion slot, and the number of transmission channels allocated by the processor to the target expansion slot is 32.
Second kind: if one or more of the switch pieces are in the first state and the expansion slots respectively connected with one or more of the switch pieces are different, the expansion slots connected with each switch piece are connected and form a target expansion slot.
The expansion slots to which one or more switch elements are respectively connected are different, so that for each switch element, the expansion slots to which the switch element is connected are connected, and the expansion slots to which different switch elements are connected are not connected, so that the expansion slots to which the same switch element is connected are connected, and a target expansion slot is formed.
In an alternative implementation, in the second state of the switch device connected to the expansion slot, the expansion slot is the original independent expansion slot.
It can be understood that the switch member connected to the expansion slot is in the second state, and the expansion slot is not connected to any expansion slot, so that the expansion slot is an original independent expansion slot, i.e. is itself.
In summary, for a plurality of expansion slots disposed on the motherboard, at least some of the expansion slots form one or more target expansion slots, and/or at least some of the expansion slots are original independent expansion slots. I.e., the electronic device may include one or more target expansion slots, and/or one or more independent expansion slots.
How to control the state of the switch member will be described below. There are various ways of controlling the switch member to be in the corresponding state, and the following two ways are provided in the embodiments of the present application, but are not limited thereto.
First, software control.
The switch member may be controlled by the processor to be in either the first state or the second state.
The switch is a transistor, such as a diode or a triode, and the user can select a target slot type of the expansion slot required by the user through an interface displayed by the electronic device, and the processor determines the target switch from a plurality of switches based on the target slot type to control the target switch to be in the first state.
The target switch piece comprises one or more switch pieces, and the sum of the first numbers corresponding to the expansion slots connected with the target switch piece is the number corresponding to the type of the target slot.
For example, if one or more of the switching elements is in the first state; the processor may determine a target switch piece from the switch pieces in the first state based on the target slot type, and control the target switch piece to be in the second state.
After the control target switch piece is in the second state, the sum of the first numbers corresponding to the expansion slots connected with the switch piece in the first state is the number corresponding to the type of the target slot.
Second, hardware control.
In an alternative implementation, the electronic device further includes a connector.
The switch piece is matched and connected with the connecting piece so as to enable the switch piece to be in a first state; the switch piece is matched and disconnected with the connecting piece so that the switch piece is in a second state.
For example, the switch member is a groove, and the connecting member is a protrusion that mates with the groove.
For example, the switch member may be manually operated to be cooperatively connected with the connecting member, or the switch member may be cooperatively disconnected from the connecting member.
For example, the switch member may be cooperatively connected to the connecting member or may be cooperatively disconnected from the connecting member by software control.
In an alternative implementation, the electronic device further includes a switching circuit 16, where the number of input terminals of the switching circuit 16 is the same as the number of switching elements provided on the motherboard, and one input terminal of the switching circuit 16 is connected to one switching element. The output of the switching circuit 16 is connected to the processor 12.
As shown in fig. 4, a circuit diagram of another implementation manner of the electronic device according to the embodiment of the present application is shown.
The switch is illustratively in a state that is different from the signal detected at the input to which it is connected.
Illustratively, each input of the switching circuit may detect a signal; the signals detected at all inputs of the switching circuit constitute the input signal of the switching circuit.
Illustratively, the switch is in a first state and the signal detected at the input terminal connected to the switch is ON; the switching element is in a second state and the signal detected by the input terminal connected to the switching element is OFF.
The correspondence between the input signal and the output signal is illustrated below.
Assuming that the number of the switch pieces is 2, and the switch pieces are respectively 1 and 2, and assuming that the number of the plurality of expansion slots connected with the motherboard is 3, and the expansion slots are respectively PCIEx4, PCIEx4 and PCIEx8; the switch element 1 is connected to two expansion slots pcie x4, and the switch element 2 is connected to one expansion slot pcie x4 and one expansion slot pcie x8 respectively.
For example, the output signals of the switching circuits corresponding to different input signals are different, and the layout modes of the expansion slots corresponding to different output signals are different. The correspondence between the output signals and the expansion slot layout pattern is preset, and the correspondence between the input signals, the output signals and the expansion slot layout pattern is illustrated in the following, as shown in table 1.
TABLE 1
Illustratively, the number of outputs of the switching circuit is related to the number of output signals, and illustratively, if the number of outputs of the switching circuit is N and the number of output signals is L, 2 N is greater than or equal to L. For example, if there are 2 output signals, the number of output terminals of the switching circuit may be 1, and the output signals of the output terminals of the switching circuit may be two signals of a high level signal or a low level signal; if the number of the output signals is 3, the number of the output terminals of the switching circuit may be 2, and the number of the combinations of the signals output by the output terminal 1 and the output terminal 2 may be 4, and the number of the signals is 3.
Illustratively, a low level signal may be represented by 0 and a high level signal may be represented by 1.
Illustratively, the output of the switching circuit may be connected to a pin of the processor, and if the number of output of the switching circuit is 2, illustratively, the output 1 of the switching circuit may be connected to a pin CFG6 of the processor, and the output 2 may be connected to a pin CFG5 of the processor.
It can be understood that if the number of the plurality of expansion slots connected to the motherboard is assumed to be 4, and the expansion slots are respectively the expansion slot pci ex4, the expansion slot pci ex8, and the expansion slot pci ex8; if the target expansion slot is formed as the expansion slot pci ex16, two expansion slots pci ex8 may be formed, or two expansion slots pci ex4 and one expansion slot pci ex8 may be formed. If the target expansion slot is formed by two expansion slots pcie x8, the processor needs to provide 16 transmission channels for the two expansion slots pcie x8; if the target expansion slot is formed by two expansion slots pci ex4 and one expansion slot pci ex8, the processor needs to provide 16 transmission channels for the two expansion slots pci ex4 and one expansion slot pci ex 8. If the target expansion slot is formed by two expansion slots pcie x4 and one expansion slot pcie x8, the processor provides 16 transmission channels for the two expansion slots pcie x8, which is not available 16 transmission channels.
In order to enable the processor to accurately provide a corresponding number of transmission channels for a corresponding expansion slot, the expansion slot layout pattern further includes identification of a plurality of expansion slots forming the target expansion slot, and/or identification of original individual expansion slots.
Illustratively, the identification of the expansion slot characterizes a location of the expansion slot on the motherboard.
The electronic device is described in detail in the embodiments disclosed in the present application, and the method implemented by the electronic device of the present application may be implemented by using various forms of procedures, so the present application also discloses a method, and a specific embodiment is given below for details.
As shown in fig. 5, a flowchart of an expansion slot channel allocation method according to an embodiment of the present application may be applied to a processor of an electronic device, and the method includes the following steps S51 to S53 in an implementation process.
Step S51: a target signal is obtained.
The target signal is an output signal of the switching circuit, for example.
Step S52: and determining a target expansion slot layout mode corresponding to the target signal from the corresponding relation between the preset signal and the expansion slot layout mode.
The target expansion slot layout mode includes: the expansion slot identification set corresponding to the target expansion slot and/or the identification of the independent expansion slot, wherein the expansion slot identification set comprises identifications of a plurality of expansion slots forming the target expansion slot, and each expansion slot layout mode comprises: and forming the identification of the expansion slot of the target expansion slot and/or the identification of the independent expansion slot.
For example, if the switch components respectively connected to the plurality of expansion slots connected to the processor are all in the second state, the plurality of expansion slots connected to the processor are all original independent expansion slots. The corresponding expansion slot layout pattern includes the identification of a plurality of independent expansion slots.
For example, if the switch elements respectively connected to the plurality of expansion slots connected to the processor are all in the first state, the plurality of expansion slots connected to the processor form one or more target expansion slots. The corresponding expansion slot layout pattern includes: and the expansion slot identification sets corresponding to the one or more target expansion slots.
In an exemplary embodiment, if the switch part connected to each of the plurality of expansion slots connected to the processor is in the first state and the switch part is in the second state, a target expansion slot is formed by a part of expansion slots in the plurality of expansion slots connected to the processor, and the part of expansion slots are still original independent expansion slots. The corresponding expansion slot layout pattern includes: and the identification sets of the expansion slots corresponding to the one or more target expansion slots and the identification of the one or more independent expansion slots.
For example, the switch element which is respectively connected with the plurality of expansion slots connected with the processor can be defaulted to be in the second state; the expansion slot layout mode may include only the expansion slot identification set corresponding to the target expansion slot, and the other expansion slots default to independent expansion slots.
Step S53: the second number of transmission channels is allocated in total for expansion slots having identifications of expansion slots forming the target expansion slot based on the target expansion slot layout pattern, and/or the first number of transmission channels is allocated for expansion slots having identifications of independent expansion slots.
In an alternative implementation, the implementation of step S51 is various, and the embodiment of the present application provides, but is not limited to, the following method, which includes steps A1 to A2.
Step A1: an input signal is determined, the input signal comprising a signal detected at an input of the switching circuit.
Step A2: and controlling the switching circuit to output the target signal through the input signal, wherein the target signals corresponding to different input signals are different.
The implementation manner of the switching circuit is various, and the following two kinds of embodiments of the present application are provided but not limited to.
The first implementation mode: and controlling by software.
The correspondence relation between the input signal and the output signal detected by the switching circuit is set in the switching circuit in advance.
The switching circuit is illustratively a controller.
Illustratively, the input signal is the same as the output signal. Illustratively, the input signal is not the same as the output signal.
The second implementation mode: and (5) controlling hardware.
The switching circuit comprises a plurality of switching tubes, and the switching circuit outputs an output signal based on an input signal by controlling the on-off of the switching tubes.
The switching transistor may be a transistor, for example, a diode or a triode, for example.
The following examples illustrate switching circuits, one for each input of the switching circuit, assuming that the input signal of the switching circuit is equal to the output signal. The circuits corresponding to the different input ends are different. For example, a circuit corresponding to one input terminal of the switching circuit may be as shown in fig. 6.
As shown in fig. 6, a circuit diagram of a branch circuit of the switching circuit according to an embodiment of the present application is shown.
The branch circuit includes two transistors, transistor 61 and transistor 62, respectively.
For example, if the switching element connected to the input terminal is in the first state, the signal detected by the input terminal is ON, and if the signal is represented by a high level signal, the transistor 61 is in the ON state, the level at the position 1 is low, so that the transistor 62 is in the off state, and the output terminal outputs the high level signal; if the switching element connected to the input terminal is in the second state, the signal detected by the input terminal is OFF, and if the signal is OFF, the transistor 61 is in the OFF state, and the level at the position 1 is high, so that the transistor 62 is in the on state, and the output terminal outputs the signal of the low level, so that the signal detected by the input terminal is identical to the signal output by the output terminal.
It should be noted that fig. 6 is only an example, and does not limit the switching circuit according to the embodiment of the present application.
The method is described in detail in the embodiments disclosed in the present application, and the method of the present application can be implemented by using various types of devices, so that the present application also discloses various devices, and specific embodiments are given below for details.
As shown in fig. 7, the configuration diagram of the expansion slot channel allocation device according to the embodiment of the present application includes: an acquisition module 71, a determination module 72 and an allocation module 73, wherein:
an acquisition module 71 for acquiring a target signal.
A determining module 72, configured to determine a target expansion slot layout mode corresponding to the target signal from a preset correspondence between signals and expansion slot layout modes; the target expansion slot layout mode includes: the expansion slot identification set corresponding to the target expansion slot and/or the identification of the independent expansion slot, wherein the expansion slot identification set comprises the identifications of a plurality of expansion slots forming the target expansion slot.
An allocation module 73, configured to allocate the second number of transmission channels to the expansion slots having the identifiers of the expansion slots forming the target expansion slots in total based on the target expansion slot layout pattern, and/or allocate the first number of transmission channels to the expansion slots having the identifiers of the independent expansion slots.
In an alternative implementation, the electronic device further includes: the switching circuit is arranged on the main board, the output end of the switching circuit is connected with the processor, and the input end of the switching circuit is connected with the at least one switch piece; wherein the number of the input ends of the switching circuit is the same as the number of the at least one switch element, and one input end of the switching circuit is connected with one switch element; the state of the switch element is different from the signal of the input end connected with the switch element; the acquisition module comprises:
A determining unit, configured to determine an input signal, where the input signal includes a signal detected by an input terminal of the switching circuit;
And the control unit is used for controlling the switching circuit to output the target signal through the input signal, and the target signal corresponding to different input signals is different.
Fig. 8 is a block diagram of an electronic device, according to an example embodiment.
Electronic devices include, but are not limited to: processor 12, a plurality of expansion slots 13, switch 14, switching circuitry 16, memory 81, network interface 82, I/O controller 83, and communication bus 84.
It should be noted that the structure of the electronic device shown in fig. 7 is not limited to the electronic device, and the electronic device may include more or less components than those shown in fig. 7, or may combine some components, or may be arranged with different components, as will be understood by those skilled in the art.
The following describes the respective constituent elements of the electronic device in detail with reference to fig. 7:
the processor 12 is a control center of the electronic device, connects various parts of the entire electronic device using various interfaces and lines, and performs various functions of the electronic device and processes data by running or executing software programs and/or modules stored in the memory 81, and calling data stored in the memory 81, thereby performing overall monitoring of the electronic device. Processor 12 may include one or more processing units; by way of example, the processor 12 may integrate an application processor that primarily handles operating systems, user interfaces, applications, etc., with a modem processor that primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 12.
Processor 12 may be a central processing unit (Central Processing Unit, CPU), or an Application SPECIFIC INTEGRATED Circuit (ASIC), or one or more integrated circuits configured to implement embodiments of the application, etc.;
the Memory 81 may include a Memory such as a Random-Access Memory (RAM) 811 and a Read-Only Memory (ROM) 812, and may further include a mass storage device 813 such as at least 1 disk Memory or the like. Of course, the electronic device may also include hardware required for other services.
The memory 81 is used for storing the executable instructions of the processor 12. The processor 12 has the following functions: obtaining a target signal;
Determining a target expansion slot layout mode corresponding to the target signal from the corresponding relation between the preset signal and the expansion slot layout mode; the target expansion slot layout mode includes: the expansion slot identification set corresponds to the target expansion slot and/or the identification of the independent expansion slot, wherein the expansion slot identification set comprises the identifications of a plurality of expansion slots forming the target expansion slot;
the second number of transmission channels is allocated in total for expansion slots having identifications of expansion slots forming the target expansion slot based on the target expansion slot layout pattern, and/or the first number of transmission channels is allocated for expansion slots having identifications of independent expansion slots.
A wired or wireless network interface 82 is configured to connect the electronic device to a network.
The processor 12, the plurality of expansion slots 13, the switch device 14, the switching circuit 16, the memory 81, the network interface 82, and the I/O controller 83 may be connected to each other through a communication bus 84, which may be an ISA (Industry Standard Architecture ) bus, a PCI (PERIPHERAL COMPONENT INTERCONNECT, peripheral component interconnect standard) bus, or an EISA (Extended Industry Standard Architecture ) bus, or the like. The buses may be classified as address buses, data buses, control buses, etc.
In an exemplary embodiment, the electronic device may be implemented by one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic elements for performing the expansion slot channel allocation methods described above.
In an exemplary embodiment, a computer readable storage medium is also provided, which can be directly loaded into an internal memory of a computer, such as the memory 81, and contains software codes, and the computer program can implement the expansion slot channel allocation method after being loaded and executed by the computer.
In an exemplary embodiment, a computer program product is also provided, which can be directly loaded into an internal memory of a computer, for example, the memory 81 included in the electronic device, and contains software codes, and the computer program can implement the above-mentioned expansion slot channel allocation method after being loaded and executed by the computer.
Alternatively, the storage medium may be a non-transitory computer readable storage medium, which may be, for example, ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, and the like.
The features described in the respective embodiments in the present specification may be replaced with each other or combined with each other. For device or system class embodiments, the description is relatively simple as it is substantially similar to method embodiments, with reference to the description of method embodiments in part.
It is further noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. The software modules may be disposed in Random Access Memory (RAM), memory, read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. An electronic device, comprising:
A main board;
the processor is arranged on the main board;
The processor is used for distributing a first number of transmission channels for the expansion slots, wherein the first number is the number corresponding to the type of the slots to which the expansion slots belong;
the switch piece is arranged on the main board and is respectively connected with the expansion slots;
And when the switch piece is in a first state, the plurality of expansion slots connected with the switch piece are connected to form a target expansion slot, the type of the target expansion slot is different from the original type of the plurality of expansion slots connected with the switch piece, the processor allocates a second number of transmission channels for the target expansion slot, and the second number is the sum of the first numbers corresponding to the connected plurality of expansion slots respectively.
2. The electronic device of claim 1, wherein the plurality of expansion slots coupled to the switch member when the switch member is in the first state, the forming a target expansion slot comprises:
If the switch pieces are in the first state, and for any switch piece of the switch pieces, the switch pieces with the same expansion slot connected with the switch piece exist in the switch pieces, the expansion slots respectively connected with the switch pieces are connected to form a target expansion slot; and/or the number of the groups of groups,
If one or more of the switch pieces are in the first state and the expansion slots respectively connected with one or more of the switch pieces are different, the expansion slots connected with each switch piece are connected and form a target expansion slot.
3. The electronic device of claim 1, wherein the expansion slot is a native stand-alone expansion slot in the second state of the switch member coupled to the expansion slot.
4. An electronic device according to any one of claims 1 to 3, wherein:
the electronic device further comprises a connector;
The switch piece is matched and connected with the connecting piece so as to enable the switch piece to be in a first state;
the switch piece is matched and disconnected with the connecting piece so that the switch piece is in a second state.
5. The electronic device according to any one of claims 1 to 3, the slot types of the plurality of expansion slots being the same; or, the slot types of the plurality of expansion slots are not identical; or, the slot types of the plurality of expansion slots are different.
6. The electronic device of any of claims 1-3, further comprising:
The switching circuit is arranged on the main board, the output end of the switching circuit is connected with the processor, and the input end of the switching circuit is connected with the at least one switch piece;
Wherein the number of the input ends of the switching circuit is the same as the number of the at least one switch element, and one input end of the switching circuit is connected with one switch element; the state of the switch element is different from the signal of the input end connected with the switch element.
7. An expansion slot channel allocation method applied to the electronic device according to any one of claims 1 to 6, the expansion slot channel allocation method comprising:
Obtaining a target signal;
Determining a target expansion slot layout mode corresponding to the target signal from the corresponding relation between the preset signal and the expansion slot layout mode; the target expansion slot layout mode includes: the expansion slot identification set corresponds to the target expansion slot and/or the identification of the independent expansion slot, wherein the expansion slot identification set comprises the identifications of a plurality of expansion slots forming the target expansion slot;
the second number of transmission channels is allocated in total for expansion slots having identifications of expansion slots forming the target expansion slot based on the target expansion slot layout pattern, and/or the first number of transmission channels is allocated for expansion slots having identifications of independent expansion slots.
8. The expansion slot channel allocation method according to claim 7, said electronic device further comprising: the switching circuit is arranged on the main board, the output end of the switching circuit is connected with the processor, and the input end of the switching circuit is connected with the at least one switch piece; wherein the number of the input ends of the switching circuit is the same as the number of the at least one switch element, and one input end of the switching circuit is connected with one switch element; the state of the switch element is different from the signal of the input end connected with the switch element; the obtaining the target signal includes:
determining an input signal, the input signal comprising a signal detected at an input of the switching circuit;
and controlling the switching circuit to output the target signal through the input signal, wherein the target signals corresponding to different input signals are different.
9. An expansion slot channel allocation device applied to the electronic apparatus according to any one of claims 1 to 6, comprising:
The acquisition module is used for acquiring a target signal;
The determining module is used for determining a target expansion slot layout mode corresponding to the target signal from the corresponding relation between the preset signal and the expansion slot layout mode; the target expansion slot layout mode includes: the expansion slot identification set corresponds to the target expansion slot and/or the identification of the independent expansion slot, wherein the expansion slot identification set comprises the identifications of a plurality of expansion slots forming the target expansion slot;
an allocation module, configured to allocate the second number of transmission channels for the expansion slots having the identifiers of the expansion slots forming the target expansion slots in total based on the target expansion slot layout pattern, and/or allocate the first number of transmission channels for the expansion slots having the identifiers of the independent expansion slots.
10. A computer readable storage medium, which when executed by a processor of an electronic device, causes the electronic device to perform the expansion slot channel allocation method of any of claims 7 or 8.
CN202110343240.1A 2021-03-30 2021-03-30 Expansion slot channel allocation method and device, electronic equipment and medium Active CN113050767B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110343240.1A CN113050767B (en) 2021-03-30 2021-03-30 Expansion slot channel allocation method and device, electronic equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110343240.1A CN113050767B (en) 2021-03-30 2021-03-30 Expansion slot channel allocation method and device, electronic equipment and medium

Publications (2)

Publication Number Publication Date
CN113050767A CN113050767A (en) 2021-06-29
CN113050767B true CN113050767B (en) 2024-06-18

Family

ID=76516946

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110343240.1A Active CN113050767B (en) 2021-03-30 2021-03-30 Expansion slot channel allocation method and device, electronic equipment and medium

Country Status (1)

Country Link
CN (1) CN113050767B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113742281B (en) * 2021-09-08 2024-02-02 英业达科技有限公司 Server system with bandwidth switching function

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109032989A (en) * 2018-07-23 2018-12-18 山东超越数控电子股份有限公司 A kind of server master board framework based on Shen prestige processor and bridge piece
CN112187303A (en) * 2020-09-23 2021-01-05 深圳联想懂的通信有限公司 SIM card expansion equipment, SIM card switching method and device

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004246849A (en) * 2003-02-13 2004-09-02 Hagiwara Sys-Com:Kk Extension card adapter device
CN101505257B (en) * 2009-03-14 2012-02-22 中北大学 Hardware structure for high speed multi-link loop network system
CN104133533A (en) * 2014-08-06 2014-11-05 浪潮(北京)电子信息产业有限公司 Expansion board card system for supporting full-length PCIE
US10466923B2 (en) * 2015-02-27 2019-11-05 Samsung Electronics Co., Ltd. Modular non-volatile flash memory blade
US10296478B1 (en) * 2015-09-11 2019-05-21 Amazon Technologies, Inc. Expansion card configuration of motherboard
CN110362511B (en) * 2018-04-11 2021-07-02 杭州海康威视数字技术股份有限公司 PCIE equipment
CN210006040U (en) * 2019-07-23 2020-01-31 浪潮商用机器有限公司 expansion cards
CN209980238U (en) * 2019-08-12 2020-01-21 深圳市讯盾科技有限公司 Compatible expansion device and electronic equipment
CN211207322U (en) * 2019-12-31 2020-08-07 东莞立华海威网联科技有限公司 Multi-path expansion communication switching system of dual processor

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109032989A (en) * 2018-07-23 2018-12-18 山东超越数控电子股份有限公司 A kind of server master board framework based on Shen prestige processor and bridge piece
CN112187303A (en) * 2020-09-23 2021-01-05 深圳联想懂的通信有限公司 SIM card expansion equipment, SIM card switching method and device

Also Published As

Publication number Publication date
CN113050767A (en) 2021-06-29

Similar Documents

Publication Publication Date Title
US11199890B2 (en) Peripheral device expansion card system
CN113050767B (en) Expansion slot channel allocation method and device, electronic equipment and medium
CN110704350A (en) Resource management method and device, electronic equipment and storage medium
CN115981971A (en) Lighting method of server hard disk and server
CN114003528A (en) OCP switching card, switching system and switching method
TW201913398A (en) Intelligent PCIe slot channel assignment method capable of achieving flexible configuration of the number of transmission channels according to a bandwidth requirement of PCIe expansion cards without manually adjusting a control channel switch
CN115344520B (en) Method and device for using PCIe interface compatible with silver fir card, storage medium and equipment
CN112783809A (en) Hard disk connecting device, method, computer equipment and storage medium
CN114443445B (en) Hard disk lighting method and device, electronic equipment and storage medium
CN116340230A (en) Hard disk expansion device and method
CN113760810A (en) Information processing method, information processing device, equipment and storage medium
CN114116415A (en) Hard disk backboard, hard disk lighting control system, method, device and medium
CN115358331A (en) Device type identification method and device, computer readable storage medium and terminal
CN111258733B (en) Embedded OS task scheduling method and device, terminal equipment and storage medium
CN100520727C (en) Method and system for identification of erection switching card type
CN110245016B (en) Data processing method, system, device and terminal equipment
CN107145213A (en) A kind of device and method being multiplexed for PCH MEdebug and USB port
CN109558387B (en) Method and device for processing identity card number, storage medium and terminal
US10255224B1 (en) Intelligent PCIe slot lane assignment method
CN115344506B (en) Memory address mapping method, memory access method and device, chip and device
CN111459867B (en) Method, device, converter and storage medium for converting USB (Universal Serial bus) into SMI (SMI)
CN117055824B (en) Controller, configuration method and system of controller, storage medium and electronic device
CN212515790U (en) Server system configuration switching device and multi-configuration server
CN112988250B (en) Multi-mainboard USB service configuration method, system, terminal and storage medium
CN115695061A (en) NCSI communication system, method, device and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant