CN113050767A - Expansion slot channel distribution method and device, electronic equipment and medium - Google Patents

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

Info

Publication number
CN113050767A
CN113050767A CN202110343240.1A CN202110343240A CN113050767A CN 113050767 A CN113050767 A CN 113050767A CN 202110343240 A CN202110343240 A CN 202110343240A CN 113050767 A CN113050767 A CN 113050767A
Authority
CN
China
Prior art keywords
expansion
expansion slot
target
slot
switch
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.)
Pending
Application number
CN202110343240.1A
Other languages
Chinese (zh)
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/CN113050767A/en
Publication of CN113050767A publication Critical patent/CN113050767A/en
Pending legal-status Critical Current

Links

Images

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)
  • Power Engineering (AREA)
  • Human Computer Interaction (AREA)
  • Mathematical Physics (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 mainboard, a plurality of expansion slots connected with a processor are arranged on the mainboard, at least one switch piece is arranged on the mainboard, and each switch piece is connected with the plurality of expansion slots respectively; 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 mainboard is improved.

Description

Expansion slot channel distribution 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 and an apparatus for allocating expansion slot channels, an electronic device, and a medium.
Background
At present, the electronic device may use an expansion slot 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 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 vary.
The type of the expansion slot pre-configured on the mainboard is fixed, so that the mainboard can be connected with the adapter card of the corresponding type through the expansion slot. The number of certain types of adapter cards which can be connected with the mainboard is limited by the number of the expansion slots of the type arranged on the mainboard, and the expansion capability of the mainboard is limited.
Disclosure of Invention
In view of the above, the present application provides a method, an apparatus, an electronic device and a medium for allocating expansion slot channels, so as to at least improve the 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, including:
a main board;
the processor is arranged on the mainboard;
the processor distributes a first number of transmission channels for the expansion slots, wherein the first number is the number corresponding to the type of the slot to which the expansion slots belong;
the switch piece is arranged on the mainboard and is respectively connected with the plurality of expansion slots;
when the switch piece is in a first state, the switch piece is connected with a plurality of expansion slots connected with the switch piece to form a target expansion slot, the processor allocates a second number of transmission channels to the target expansion slot, and the second number is the sum of the first numbers respectively corresponding to the plurality of expansion slots connected with the processor.
According to a second aspect of the embodiments of the present disclosure, there is provided an expansion slot channel allocation method, applied to the electronic device according to the first aspect, the expansion slot channel allocation method including:
obtaining a target signal;
determining a target expansion slot layout mode corresponding to the target signal from a corresponding relation between a preset signal and an expansion slot layout mode; the target expansion slot layout mode comprises: an expansion slot identification set corresponding to the target expansion slot and/or identifications of independent expansion slots, wherein the expansion slot identification set comprises identifications of a plurality of expansion slots forming the target expansion slot;
assigning the second number of transmission channels in total for expansion slots having an identification of an expansion slot forming the target expansion slot based on the target expansion slot layout pattern, and/or assigning the first number of transmission channels for expansion slots having an identification of an independent expansion slot.
According to a third aspect of the embodiments of the present disclosure, there is provided an expansion slot channel allocation apparatus, applied to the electronic device according to the first aspect, the expansion slot channel allocation apparatus 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 comprises: an expansion slot identification set corresponding to the target expansion slot and/or identifications of independent expansion slots, wherein the expansion slot identification set comprises identifications of a plurality of expansion slots forming the target expansion slot;
an allocation module to allocate the second number of transmission channels to a total of expansion slots having the identification of the expansion slot forming the target expansion slot and/or to allocate the first number of transmission channels to expansion slots having the identification of an independent expansion slot based on the target expansion slot layout pattern.
According to a fourth aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium having instructions that, when executed by a processor of an electronic device, enable 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, which is directly loadable into an internal memory of a computer, for example, a memory included in the electronic device according to the first aspect, and contains software codes, and which, when loaded and executed by the computer, is capable of implementing the expansion slot channel allocation method according to the second aspect.
In the electronic device provided by the embodiment of the application, a plurality of expansion slots connected with a processor are arranged on a mainboard, at least one switch piece is arranged on the mainboard, and each switch piece is respectively connected with the plurality of 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 mainboard is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on the provided drawings without creative efforts.
Fig. 1 is a hardware structure diagram of an electronic device according to an embodiment of the present disclosure;
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 when 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 manner of an electronic device provided by an embodiment of the present application;
fig. 5 is a flowchart of an expansion slot channel allocation method according to an embodiment of the present application;
FIG. 6 is a circuit diagram of a branch circuit of the switching circuit according to an embodiment of the present application;
fig. 7 is a structural diagram of an expansion slot channel distribution device according to an embodiment of the present application;
FIG. 8 is a block diagram illustrating an electronic device in accordance with an example embodiment.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The embodiment of the application provides an expansion slot channel distribution method and 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.
Fig. 1 is a hardware block diagram of an electronic device according to an embodiment of the present disclosure.
For example, the electronic device may be any electronic product that can interact with a user through one or more ways such as a keyboard, a touch PAD, a touch screen, a remote controller, a voice interaction device, or a handwriting device, for example, a mobile phone, a notebook computer, a tablet computer, a palm computer, a personal computer, a wearable device, a smart television, a PAD, and the like.
The electronic device may be, for example, one server, a server cluster composed of multiple servers, or a cloud computing server center.
As shown in fig. 1, the electronic apparatus includes: mainboard 11, set up in the treater 12 of mainboard, set up in a plurality of extension slots 13 of mainboard, set up in at least one switch member 14 of mainboard.
For example, the expansion slot 13 may be a PCIE (peripheral component interconnect express) slot.
Exemplarily, the slot types of the plurality of expansion slots provided in the motherboard are the same; or the slot types of the plurality of expansion slots arranged on the mainboard are not completely the same; or the slot types of the plurality of expansion slots arranged on the mainboard are completely different.
For example, the slot types corresponding to the expansion slots of different shapes shown in fig. 1 are different, and the slot types corresponding to the expansion slots of the same shape are the same.
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.
Wherein, the expansion slot belonging to the PCIE x1 slot type is an expansion slot PCIE x 1; an expansion slot belonging to the PCIE x4 slot type is an expansion slot PCIE x 4; an expansion slot belonging to the PCIE x8 slot type is an expansion slot PCIE x 8; an expansion slot belonging to the PCIE x16 slot type is an expansion slot PCIE x 16; an expansion slot belonging to the PCIE x32 slot type is expansion slot PCIE x 32.
Where xi represents the bandwidth where i transmission channels can be used in total, and i is a positive integer greater than or equal to 1. Illustratively, the maximum bandwidth of the expansion slot pcie 4 may reach 3.938GB/s, the maximum bandwidth of the expansion slot pcie 8 may reach 7.877GB/s, and the maximum bandwidth of the expansion slot pcie 16 may reach 15.754 GB/s. And the bandwidth of each transmission channel number of the PCIE with different versions has various different specification standards.
It should be noted that 10 expansion slots are shown in fig. 1, and the number of expansion slots provided on the motherboard is not limited in the embodiments of the present application, 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, …, and the like. Fig. 1 shows 5 switch elements 14, and the number of the switch elements disposed on the main board is not limited in the embodiments of the present application, for example, the number of the switch elements disposed on the main board may be any positive integer such as 1, 2, 3, …, and the like.
It should be noted that the locations of the expansion slots, the switch pieces, and the processor shown in fig. 1 are merely examples and are not limiting.
For example, multiple 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 shape and structure of the expansion slot and the switch member 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 does not constitute a limitation of the electronic device, and the main board may include more or less components than those shown in fig. 1, or may combine some components, or may arrange different 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 for controlling the same frequency and the respective operating frequency, and for supporting functions such as slot data transmission.
In an alternative implementation, the main board 11 may also be provided with a switching circuit 16. The switching circuit 16 is described later with reference to specific implementation manners, which are not described herein again.
It should be noted that the position of the switching circuit 16 on the main board 11 shown in fig. 1 is merely an example and does not cause limitation.
The following describes a circuit diagram of an electronic device with reference to a 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 M expansion slots are illustrated in fig. 2 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 slot 3, …, and expansion slot M.
The processor 12 allocates a first number of transmission channels to each expansion slot, where the first number corresponding to the expansion slot is a number corresponding to a slot type to which the expansion slot belongs; the first number of expansion slots belonging to different slot types is different.
For example, if the expansion slot belongs to the PCIE x4 slot type, the processor 12 allocates 4 transmission channels to the expansion slot (i.e., PCIE x4 slot), that is, the first number is 4; if the expansion slot is of the PCIE x8 slot type, the processor 12 allocates 8 transmission channels to the expansion slot (i.e., PCIE x8 slot), that is, the first number is 8.
Each switch member may be associated with a plurality of expansion slots. Fig. 2 illustrates an example in which each switch is connected to two expansion slots.
For example, the slot types of the expansion slots connected to the same switch member may be the same, or completely different, or not completely the same for the same switch member.
For example, the number of expansion slots connected by different switch pieces may be the same or different.
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. And the processor allocates a second number of transmission channels to the target expansion slot, wherein the second number is the sum of the first numbers respectively corresponding to the plurality of connected expansion slots.
In the electronic device provided by the embodiment of the application, a plurality of expansion slots connected with a processor are arranged on a mainboard, at least one switch piece is arranged on the mainboard, and each switch piece is respectively connected with the plurality of 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 mainboard is improved.
For example, assume that 2 switches are disposed on the motherboard, and are respectively switch 1 and switch 2, and assume that the number of the expansion slots connected to the motherboard is 3, and are respectively an expansion slot pci express 4, an expansion slot pci express 4, and an expansion slot pci express 8; the switch 1 is connected to two expansion slots pcie 4, and the switch 2 is connected to one expansion slot pcie 4 and one expansion slot pcie 8, respectively.
If a user needs to connect two adapter cards corresponding to the extension slot pcie 8, for example, a display card and an AI (Artificial Intelligence) accelerator card, to the motherboard, the switch 1 may be controlled to be in the first state, so that the motherboard includes two extension slots pcie 8, and the user may insert the display card and the AI accelerator card into the extension slot pcie 8, respectively.
If a user needs to connect two adapter cards, such as solid state disks, corresponding to the expansion slot pcie 4 on the motherboard, the switch device 1 may be controlled to be in the second state, so that the motherboard includes two expansion slots pcie 4 and one expansion slot pcie 8, and the two solid state disks are inserted into the expansion slot pcie 4 respectively.
If a user needs to connect an adapter card corresponding to the expansion slot pcie 16 on the motherboard, the switch 1 and the switch 2 may be controlled to be in the first state, so that the motherboard includes an expansion slot pcie 16, and the adapter card may be inserted.
Next, description will be made of "a plurality of expansion slots connected to the switch member to form one target expansion slot when the switch member is in the first state". There are various cases of "a plurality of expansion slots connected to the switch member in the first state to form a target expansion slot", and the embodiments of the present application provide, but are not limited to, the following two.
The first method comprises the following steps: if the plurality of switch pieces are all in the first state, and for any one of the plurality of switch pieces, the switch pieces which are connected with the same expansion slots with the switch pieces exist in the plurality of switch pieces, the plurality of expansion slots which are respectively connected with the plurality of switch pieces are connected to form one target expansion slot.
It can be understood that, if any one of the plurality of switch pieces and a switch piece connected with the same expansion slot as the switch piece exists in the plurality of switch pieces, it means that the plurality of expansion slots connected with the plurality of switch pieces respectively are connected. The following examples are given.
Assuming that the number of the plurality of switching elements is 3, and the switching elements are switching element 1, switching element 2 and switching element 3; 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; switch 3 is connected to expansion slot B2 and expansion slot C1, respectively. For the switch 1, the switch 2 and the switch 1 are connected with the same expansion slot A1 in the 3 switches; for the switch 2, the same expansion slot a1 is connected to the switch 1 and the switch 2 in 3 switches; for switch 3, there is the same expansion slot B2 connected to switch 2 and switch 3 among the 3 switches. If the switch piece 1, the switch piece 2 and the switch piece 3 are all 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 to form a target expansion slot.
Fig. 3 is a schematic diagram of a target expansion slot formed when 3 switch pieces are in a first state according to an embodiment of the present application.
Fig. 3 illustrates an example in which each switch is connected to two expansion slots. The number of transmission channels allocated by the processor for the two expansion slots connected by each switch element is shown in fig. 3. After the 3 switches 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.
And the second method comprises the following steps: 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 of the switch pieces are connected with each other to form a target expansion slot.
The expansion slots respectively connected with one or more switch pieces are different, so that for each switch piece, a plurality of expansion slots connected with the switch piece are connected and are not connected with expansion slots connected with different switch pieces, so that a plurality of expansion slots connected with the same switch piece are connected and form a target expansion slot.
In an optional implementation manner, when the switch piece connected to the expansion slot is in the second state, the expansion slot is an original independent expansion slot.
It can be understood that, when the switch member connected to the expansion slot is in the second state, 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 a 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. That is, the electronic device may include one or more target expansion slots, and/or one or more stand-alone expansion slots.
The following is a description of how to control the state of the switch member. There are various ways to control the switch member to be in the corresponding state, and the embodiments of the present application provide, but are not limited to, the following two.
First, software control.
The switch member may be controlled by the processor to be in the first state or the second state.
Illustratively, the switch element is a transistor, for example, a diode or a triode, 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 element from the plurality of switch elements based on the target slot type and controls the target switch element to be in the first state.
Illustratively, the target switch element includes one or more switch elements, and a sum of the first numbers respectively corresponding to the plurality of expansion slots connected to the target switch element is a number corresponding to the type of the target slot.
Illustratively, if one or more of the switching elements are 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.
And after the target switch piece is controlled to be in the second state, the sum of the first numbers respectively corresponding to the plurality of expansion slots connected with the switch piece in the first state is the number corresponding to the type of the target slot.
And the 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 disconnected with the connecting piece in a matched mode, so that the switch piece is in a second state.
For example, the switch member is a groove, and the connection member is a protrusion that fits in the groove.
Illustratively, the switch member may be manually operated to be connected with the connecting member in a fitting manner, or the switch member may be disconnected from the connecting member in a fitting manner.
Illustratively, the software control can be used for making the switch member be matched with and connected with the connecting member or making the switch member be matched with and disconnected from the connecting member.
In an alternative implementation, the electronic device further includes a switching circuit 16, the number of input terminals of the switching circuit 16 is the same as the number of switch elements provided on the main board, and one input terminal of the switching circuit 16 is connected to one switch element. An output of switching circuit 16 is coupled to processor 12.
Fig. 4 is a circuit diagram of another implementation manner of an electronic device according to an embodiment of the present application.
Illustratively, the switching element is in a different state than the signal detected at the input to which the switching element is connected.
Illustratively, a signal may be detected at each input of the switching circuit; the signals detected at all the inputs of the switching circuit constitute the input signals of the switching circuit.
Illustratively, the switching element is in a first state, and the signal detected by the input end connected with the switching element is ON; the switching element is in a second state and the signal detected at the input connected to the switching element is OFF.
The correspondence between the input signal and the output signal is exemplified below.
Assuming that the number of the switches is 2, and the switches are switch 1 and switch 2, respectively, assuming that the number of the expansion slots connected to the motherboard is 3, and the expansion slots are expansion slot pcie 4, expansion slot pcie 4, and expansion slot pcie 8, respectively; the switch 1 is connected to two expansion slots pcie 4, and the switch 2 is connected to one expansion slot pcie 4 and one expansion slot pcie 8, respectively.
For example, the output signals of the switching circuits corresponding to different input signals are different, and the layout patterns of the expansion slots corresponding to different output signals are different. The corresponding relationship between the output signal and the expansion slot layout pattern is preset, and the following illustrates the corresponding relationship between the input signal, the output signal and the expansion slot layout pattern, as shown in table 1.
TABLE 1
Figure BDA0002999897610000101
Illustratively, the number of output terminals of the switching circuit is related to the number of output signals, and illustratively, if the number of output terminals of the switching circuit is N and the number of output signals is L, then 2NIs more than or equal to L. For example, if there are 2 output signals, the number of the output terminals of the switching circuit may be 1, and the output signal of the output terminal of the switching circuit may be two signals, i.e., a high level signal and a low level signal; if there are 3 output end signals, the number of the output ends of the switching circuit can be 2, and there can be 4 combinations of the signals output by the output end 1 and the output end 2, namely 3.
Illustratively, a low level signal may be represented by 0 and a high level signal may be represented by 1.
Illustratively, the output terminal of the switching circuit may be connected to the pin of the processor, and if the number of the output terminals of the switching circuit is 2, the output terminal 1 of the switching circuit may be connected to the pin CFG6 of the processor, and the output terminal 2 may be connected to the pin CFG5 of the processor.
It can be understood that, if the number of the expansion slots connected to the motherboard is assumed to be 4, and the expansion slots are expansion slot pcie 4, expansion slot pcie 4, expansion slot pcie 8, and expansion slot pcie 8; if the formed target expansion slot is the expansion slot pcie 16, two expansion slots pcie 8 may be formed, or two expansion slots pcie 4 and one expansion slot pcie 8 may be formed. If the target expansion slot is formed by two expansion slots pcie 8, the processor needs to provide 16 transmission channels for the two expansion slots pcie 8; if the target expansion slot is formed by two expansion slots pcie 4 and one expansion slot pcie 8, the processor needs to provide 16 transmission channels for the two expansion slots pcie 4 and the one expansion slot pcie 8. If the target expansion slot is formed by two expansion slots pcie 4 and one expansion slot pcie 8, the processor provides 16 transmission channels for the two expansion slots pcie 8, which cannot be realized by 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 an identification of a plurality of expansion slots forming the target expansion slot, and/or an identification of the original independent expansion slot.
Illustratively, the identification of the expansion slot characterizes the position 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 can be implemented by adopting various forms of processes, so that the present application also discloses a method, and specific embodiments are described in detail below.
As shown in fig. 5, a flowchart of an expansion slot channel allocation method provided in this embodiment of the present application, which may be applied to a processor of an electronic device, includes the following steps S51 to S53.
Step S51: a target signal is obtained.
Illustratively, the target signal is an output signal of the switching circuit.
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 comprises: an extension slot identifier set corresponding to the target extension slot and/or an identifier of an independent extension slot, where the extension slot identifier set includes identifiers of a plurality of extension slots forming the target extension slot, and each extension slot layout mode includes: an identification of an expansion slot forming the target expansion slot, and/or an identification of an independent expansion slot.
For example, if the switch elements respectively connected to the expansion slots connected to the processor are all in the second state, the 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 expansion slots connected to the processor are all in the first state, the 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 set corresponding to the one or more target expansion slots.
For example, if a part of the switch elements respectively connected to the plurality of expansion slots connected to the processor is in the first state and a part of the switch elements is in the second state, a target expansion slot is formed by a part of the plurality of expansion slots connected to the processor, and a part of the plurality of expansion slots is still the original independent expansion slot. The corresponding expansion slot layout pattern includes: a set of expansion slot identifications corresponding to the one or more target expansion slots, and identifications of the one or more independent expansion slots.
For example, it may be default that the switch pieces respectively connected to the plurality of expansion slots connected to the processor are in the second state; therefore, the expansion slot layout pattern may only include the expansion slot identifier set corresponding to the target expansion slot, and the other expansion slots are defaulted to be independent expansion slots.
Step S53: assigning the second number of transmission channels in total for expansion slots having an identification of an expansion slot forming the target expansion slot based on the target expansion slot layout pattern, and/or assigning the first number of transmission channels for expansion slots having an identification of an independent expansion slot.
In an alternative implementation manner, there are various implementation manners of step S51, and the present embodiment provides, but is not limited to, a method including step a1 to step a 2.
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.
There are various implementations of the switching circuit, and the embodiments of the present application provide, but are not limited to, the following two.
The first implementation mode comprises the following steps: and (4) controlling by software.
The correspondence relationship between the input signal and the output signal detected by the switching circuit is set in the switching circuit in advance.
Illustratively, the switching circuit is 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 comprises the following steps: 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.
Illustratively, the switching tube may be a transistor, such as a diode or a triode.
In the following description, the switching circuit is illustrated by way of example, and it is assumed that the input signal of the switching circuit is equal to the output signal, and one circuit corresponds to each input terminal of the switching circuit. The circuits corresponding to 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.
Fig. 6 is a circuit diagram of a branch circuit of the switching circuit according to an embodiment of the present application.
The branch circuit includes two transistors, transistor 61 and transistor 62.
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 assuming that the ON signal is represented by a high level signal, the transistor 61 is in the ON state, the level at position 1 is low level, so that the transistor 62 is in the off state, and the output terminal outputs a high level signal; if the switch connected to the input terminal is in the second state, the signal detected by the input terminal is OFF, and if the OFF is represented by a low level signal, the transistor 61 is in the OFF state, the level at position 1 is high, so that the transistor 62 is in the on state, and the output terminal outputs a low level signal, so that the signal detected by the input terminal is the same as 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 proposed in 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 apparatuses, so that various apparatuses are also disclosed in the present application, and specific embodiments are given below for detailed description.
As shown in fig. 7, a block diagram of an expansion slot channel distribution apparatus provided in an embodiment of the present application includes: an acquisition module 71, a determination module 72, and an assignment module 73, wherein:
and an obtaining module 71, configured to obtain the target signal.
A determining module 72, configured to determine a target expansion slot layout pattern corresponding to the target signal from a corresponding relationship between a preset signal and an expansion slot layout pattern; the target expansion slot layout mode comprises: the expansion slot identification set comprises identification of a plurality of expansion slots forming the target expansion slot.
An assigning module 73 for assigning the second number of transmission channels in total to expansion slots having the identification of the expansion slot forming the target expansion slot and/or assigning the first number of transmission channels to expansion slots having the identification of an independent expansion slot based on the target expansion slot layout pattern.
In an optional implementation, the electronic device further includes: the switching circuit is arranged on the mainboard, 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 element; wherein the number of the input ends of the switching circuit is the same as that of the at least one switching element, and one input end of the switching circuit is connected with one switching element; the state of the switch piece is different, and the signals of the input ends connected with the switch piece are different; the acquisition module comprises:
a determination unit configured to determine an input signal including a signal detected at 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 signals corresponding to different input signals are different.
FIG. 8 is a block diagram illustrating an electronic device in accordance with an example embodiment.
Electronic devices include, but are not limited to: a processor 12, a plurality of expansion slots 13, a switch 14, a switching circuit 16, a memory 81, a network interface 82, an I/O controller 83, and a communication bus 84.
It should be noted that, as those skilled in the art will appreciate, the structure of the electronic device shown in fig. 7 does not constitute a limitation of 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 have different component arrangements.
The following describes each component 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 by various interfaces and lines, and performs various functions of the electronic device and processes data by operating 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; illustratively, the processor 12 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 12.
The processor 12 may be a Central Processing Unit (CPU), or an application Specific Integrated circuit (asic), or one or more Integrated circuits configured to implement embodiments of the present 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 also include a mass storage device 813 such as at least 1 disk storage. 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 a corresponding relation between a preset signal and an expansion slot layout mode; the target expansion slot layout mode comprises: an expansion slot identification set corresponding to the target expansion slot and/or identifications of independent expansion slots, wherein the expansion slot identification set comprises identifications of a plurality of expansion slots forming the target expansion slot;
assigning the second number of transmission channels in total for expansion slots having an identification of an expansion slot forming the target expansion slot based on the target expansion slot layout pattern, and/or assigning the first number of transmission channels for expansion slots having an identification of an independent expansion slot.
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 14, the switching circuit 16, the memory 81, the network interface 82, and the I/O controller 83 may be connected to each other by a communication bus 84, which may be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus, an EISA (Extended Industry Standard Architecture) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, 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, micro-controllers, microprocessors or other electronic components for performing the above-described expansion slot channel allocation method.
In an exemplary embodiment, a computer-readable storage medium is provided, which is directly loadable into an internal memory of a computer, such as the memory 81 described above, and contains software codes, and the computer program is loaded into and executed by the computer to implement the slot channel allocation method described above.
In an exemplary embodiment, a computer program product is also provided, which is directly loadable into an internal memory of a computer, such as the memory 81 included in the electronic device, and contains software codes, and which, when loaded and executed by the computer, is able to implement the above-mentioned expansion slot channel allocation method.
Alternatively, the storage medium may be a non-transitory computer readable storage medium, which may be, for example, a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Note that the features described in the embodiments in the present specification may be replaced with or combined with each other. For the device or system type embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
It is further noted that, herein, relational terms such as first and second, and the like may be 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. Also, 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 an … …" does not exclude the presence of other identical 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. A software module may reside 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 mainboard;
the processor distributes a first number of transmission channels for the expansion slots, wherein the first number is the number corresponding to the type of the slot to which the expansion slots belong;
the switch piece is arranged on the mainboard and is respectively connected with the plurality of expansion slots;
when the switch piece is in a first state, the switch piece is connected with a plurality of expansion slots connected with the switch piece to form a target expansion slot, the processor allocates a second number of transmission channels to the target expansion slot, and the second number is the sum of the first numbers respectively corresponding to the plurality of expansion slots connected with the processor.
2. The electronic device of claim 1, wherein the plurality of expansion slots connected to the switch member in the first state form a target expansion slot, the expansion slot comprising:
if the plurality of switch pieces are in the first state and any one of the plurality of switch pieces has a switch piece connected with the same expansion slot as the switch piece, the plurality of expansion slots connected with the switch pieces respectively are connected to form a target expansion slot; and/or the presence of a gas in the gas,
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 of the switch pieces are connected with each other to form a target expansion slot.
3. The electronic device of claim 1, wherein the expansion slot is an original independent expansion slot when the switch connected to the expansion slot is in the second state.
4. The electronic device of any of claims 1-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 disconnected with the connecting piece in a matched mode, so that the switch piece is in a second state.
5. The electronic device of any of claims 1-3, wherein the expansion slots are of the same slot type; or, the slot types of the plurality of expansion slots are not completely the same; or, the slot types of the multiple expansion slots are different.
6. The electronic device of any of claims 1-3, further comprising:
the switching circuit is arranged on the mainboard, 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 element;
wherein the number of the input ends of the switching circuit is the same as that of the at least one switching element, and one input end of the switching circuit is connected with one switching element; the switch piece is in different states and different signals are transmitted to the input end connected with the switch piece.
7. An expansion slot channel allocation method applied to the electronic device as claimed in 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 a corresponding relation between a preset signal and an expansion slot layout mode; the target expansion slot layout mode comprises: an expansion slot identification set corresponding to the target expansion slot and/or identifications of independent expansion slots, wherein the expansion slot identification set comprises identifications of a plurality of expansion slots forming the target expansion slot;
assigning the second number of transmission channels in total for expansion slots having an identification of an expansion slot forming the target expansion slot based on the target expansion slot layout pattern, and/or assigning the first number of transmission channels for expansion slots having an identification of an independent expansion slot.
8. The expansion slot channel allocation method according to claim 7, the electronic device further comprising: the switching circuit is arranged on the mainboard, 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 element; wherein the number of the input ends of the switching circuit is the same as that of the at least one switching element, and one input end of the switching circuit is connected with one switching element; the state of the switch piece is different, and the signals of the input ends connected with the switch piece are different; the obtaining a target signal comprises:
determining an 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 distribution device applied to the electronic device as claimed in any one of claims 1 to 6, the expansion slot channel distribution device 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 comprises: an expansion slot identification set corresponding to the target expansion slot and/or identifications of independent expansion slots, wherein the expansion slot identification set comprises identifications of a plurality of expansion slots forming the target expansion slot;
an allocation module to allocate the second number of transmission channels to a total of expansion slots having the identification of the expansion slot forming the target expansion slot and/or to allocate the first number of transmission channels to expansion slots having the identification of an independent expansion slot based on the target expansion slot layout pattern.
10. A computer readable storage medium having instructions which, when executed by a processor of an electronic device, enable the electronic device to perform the expansion slot channel allocation method of any one of claims 7 or 8.
CN202110343240.1A 2021-03-30 2021-03-30 Expansion slot channel distribution method and device, electronic equipment and medium Pending CN113050767A (en)

Priority Applications (1)

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

Applications Claiming Priority (1)

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

Publications (1)

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

Family

ID=76516946

Family Applications (1)

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

Country Status (1)

Country Link
CN (1) CN113050767A (en)

Cited By (1)

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

Citations (11)

* 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
CN101505257A (en) * 2009-03-14 2009-08-12 中北大学 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
CN105929903A (en) * 2015-02-27 2016-09-07 三星电子株式会社 Modular Non-volatile Flash Memory Blade
CN109032989A (en) * 2018-07-23 2018-12-18 山东超越数控电子股份有限公司 A kind of server master board framework based on Shen prestige processor and bridge piece
US10296478B1 (en) * 2015-09-11 2019-05-21 Amazon Technologies, Inc. Expansion card configuration of motherboard
CN110362511A (en) * 2018-04-11 2019-10-22 杭州海康威视数字技术股份有限公司 A kind of PCIE device
CN209980238U (en) * 2019-08-12 2020-01-21 深圳市讯盾科技有限公司 Compatible expansion device and electronic equipment
CN210006040U (en) * 2019-07-23 2020-01-31 浪潮商用机器有限公司 expansion cards
CN211207322U (en) * 2019-12-31 2020-08-07 东莞立华海威网联科技有限公司 Multi-path expansion communication switching system of dual processor
CN112187303A (en) * 2020-09-23 2021-01-05 深圳联想懂的通信有限公司 SIM card expansion equipment, SIM card switching method and device

Patent Citations (11)

* 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
CN101505257A (en) * 2009-03-14 2009-08-12 中北大学 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
CN105929903A (en) * 2015-02-27 2016-09-07 三星电子株式会社 Modular Non-volatile Flash Memory Blade
US10296478B1 (en) * 2015-09-11 2019-05-21 Amazon Technologies, Inc. Expansion card configuration of motherboard
CN110362511A (en) * 2018-04-11 2019-10-22 杭州海康威视数字技术股份有限公司 A kind of PCIE device
CN109032989A (en) * 2018-07-23 2018-12-18 山东超越数控电子股份有限公司 A kind of server master board framework based on Shen prestige processor and bridge piece
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
CN112187303A (en) * 2020-09-23 2021-01-05 深圳联想懂的通信有限公司 SIM card expansion equipment, SIM card switching method and device

Cited By (2)

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

Similar Documents

Publication Publication Date Title
CN106961454B (en) File downloading method and device and terminal equipment
CN111708724B (en) Method and equipment for allocating resources of PCIe board card
CN108932124A (en) neural network model compression method, device, terminal device and storage medium
CN110704350A (en) Resource management method and device, electronic equipment and storage medium
CN109309735B (en) Connection processing method, server, system and storage medium
US10203961B2 (en) BIOS control method for PCI-E lane
CN113050767A (en) Expansion slot channel distribution method and device, electronic equipment and medium
CN112559425A (en) PCIE port splitting method, device, equipment and medium
WO2018161969A1 (en) Broadcast queue adjustment method and apparatus, and terminal device
CN113784477B (en) Lighting unit control method, lighting unit control device, electronic equipment and storage medium
US10863521B1 (en) Broadcast receiver control method and apparatus, and mobile terminal
CN106851016A (en) Broadcast the message method, device and the terminal queued up
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
CN109107148B (en) Control method, control device, storage medium and mobile terminal
CN112783809A (en) Hard disk connecting device, method, computer equipment and storage medium
CN114116415B (en) Hard disk backboard, hard disk lighting control system, method, device and medium
US20180262358A1 (en) Method for monitoring broadcast message and terminal
CN106709298B (en) Information processing method and device and intelligent terminal
CN114579499A (en) Control method, device, equipment and storage medium of processor communication interface
CN111130847B (en) Data configuration method and data filtering method of hardware filter and related products
CN114003528A (en) OCP switching card, switching system and switching method
CN113760810A (en) Information processing method, information processing device, equipment and storage medium
CN111258733B (en) Embedded OS task scheduling method and device, terminal equipment and storage medium
CN109144578B (en) Display card resource allocation method and device based on Loongson computer
CN109558387B (en) Method and device for processing identity card number, storage medium and terminal

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