Server schematic connection method and apparatus, communication device, and storage medium
By receiving attribute information in the server schematic design, the pins of the components are automatically matched and connected, solving the problem of low efficiency in manual wiring, achieving efficient and accurate component connection, and improving design quality.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- INSPUR SUZHOU INTELLIGENT TECH CO LTD
- Filing Date
- 2023-10-31
- Publication Date
- 2026-07-24
AI Technical Summary
In existing server schematic designs, manual wiring is inefficient, time-consuming, and prone to connection errors, resulting in low design efficiency.
By receiving attribute information input by the user, the system locates the device to be connected in the server schematic interface, obtains the pin connection status and parameter information, and performs fuzzy matching and automatic connection according to preset connection rules, replacing manual wiring.
It improves the efficiency of server schematic design, avoids DP/DN connection reversal and bus branch connection errors, and enhances design quality and readability.
Smart Images

Figure CN117633942B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of data processing, and in particular to a server schematic connection method, apparatus, communication device and storage medium. Background Technology
[0002] In the current server principle design industry, the mainstream design software used is Candence ConceptHDL. In order to enable users to carry out design more efficiently, ConceptHDL software provides users with a secondary development software interface. Through HDL Skill programming, users can achieve rapid design and batch processing, and can perform design checks or quick and batch design.
[0003] In server design, schematic design is a critical step. The efficiency of schematic design directly affects the project schedule. Without schematics, subsequent development work will be stalled. The schematic development process often requires a lot of time and manpower for design and checking. The accuracy of the schematic is directly related to the final functional implementation of the board. Therefore, improving the efficiency of schematic design is particularly important.
[0004] In current server product schematic design, the schematic design mainly relies on manual wiring. The human has to determine the network name to be connected and manually draw lines. However, manual wiring is inefficient and time-consuming, especially in bus design. Furthermore, manual wiring is prone to connection errors, resulting in low efficiency in server schematic design. Summary of the Invention
[0005] The purpose of this application is to provide a server schematic connection method, apparatus, communication device, and storage medium. The specific technical solution is as follows:
[0006] In a first aspect of this application, a server schematic connection method is provided, the method comprising:
[0007] Receive attribute information input by the user;
[0008] Based on the attribute information, search among all devices in the preset server schematic interface to determine at least two devices to be connected.
[0009] Obtain the pin connection status of the device to be connected;
[0010] Whether to obtain the parameter information corresponding to the device to be connected is determined based on the pin connection status, and the parameter information includes the pin name;
[0011] According to the preset connection rules, fuzzy matching is performed on the fields in the pin names corresponding to at least two devices to be connected, to obtain the connection relationship between the pins of at least two devices to be connected.
[0012] Connect each pin of at least two of the devices to be connected according to the connection relationship.
[0013] Optionally, determining whether to obtain parameter information corresponding to the device to be connected based on the pin connection status includes:
[0014] When the pin connection status is detected as not connected, the parameter information corresponding to the device to be connected is obtained. The parameter information includes the pin name of each pin, the center coordinate of the device, and the coordinate offset of the pin. The coordinate offset is the X-axis offset and Y-axis offset relative to the center coordinate of the device.
[0015] If all the pins are detected to be in a connected state, the connection process of the device is stopped.
[0016] Optionally, connecting the pins of at least two of the devices to be connected according to the connection relationship includes:
[0017] The absolute coordinates of each pin are calculated based on the coordinate offset of the pin and the center coordinates of the device, wherein the absolute coordinates are used for positioning during automatic connection.
[0018] Connect the pins of at least two of the devices to be connected according to the absolute coordinates and the connection relationship.
[0019] Optionally, the attribute information received from user input includes:
[0020] Receive attribute information about the device to be connected from the user through the UI interface;
[0021] The step of searching through all devices in the preset server schematic interface based on the attribute information to determine at least two devices to be connected includes:
[0022] If the attribute information is detected to be non-empty, the page number information corresponding to the device to be connected is obtained based on the attribute information.
[0023] Based on the attribute information, a global search is performed on all devices on the preset server schematic interface corresponding to different page number information to locate at least two devices to be connected.
[0024] Based on the attribute information, a global search is performed on all devices on the preset server schematic interface corresponding to the same page number information to locate at least two of the devices to be connected.
[0025] Optionally, after the step of connecting the pins of at least two of the devices to be connected according to the connection relationship, the method includes:
[0026] The signal network name is generated by integrating the pin names corresponding to the two interconnected pins.
[0027] Optionally, connecting the pins of at least two of the devices to be connected according to the connection relationship includes:
[0028] The pins of at least two devices to be connected are connected by signals and the connection relationship, and a signal flow indicator is added to the end of any signal in the signal connected between the two pins;
[0029] Adding a signal flow indicator to the end of either signal in the signal connected between the two pins includes:
[0030] Add a signal flow indicator to the end of any signal in the signal connected between two pins by calling the flow indicator, which corresponds to one of the six versions of the component.
[0031] The method of adding a signal flow indicator at the end of the signal by calling the six versions of the component corresponding to the flow indicator includes:
[0032] By calling the left-to-left IN component in the flow direction indicator addition component, a left-to-left IN signal flow direction indicator is added to the corresponding signal end;
[0033] By calling the flow direction indicator, a left OUT signal flow direction indicator is added to the corresponding signal end in the component;
[0034] By calling the flow direction indicator to add the left-direction BI in the component, a left-direction BI signal flow direction indicator is added to the corresponding signal end;
[0035] By calling the flow direction indicator to add the right-to-IN signal flow direction indicator in the component, a right-to-IN signal flow direction indicator is added to the end of the corresponding signal;
[0036] By calling the flow direction indicator to add the right-to-out signal flow direction indicator in the component, a right-to-out signal flow direction indicator is added to the end of the corresponding signal;
[0037] By calling the flow direction indicator, the right-direction BI in the component adds a right-direction BI signal flow direction indicator at the corresponding signal end.
[0038] Optionally, the preset connection rules are connection rules for signal connections that are pre-set based on server architecture and design specifications;
[0039] Prior to the step of receiving attribute information input by the user, the method includes:
[0040] An operation script is generated according to the preset connection rules, and the operation script includes automatic connection instructions.
[0041] The automatic connection instruction is executed, wherein the automatic connection instruction is used to determine the device corresponding to the attribute information as the device to be connected when the attribute information input by the user is received.
[0042] In a second aspect of this application, a server schematic connection device is also provided, the device comprising:
[0043] The receiving module is used to receive attribute information input by the user;
[0044] The search module is used to search for all devices in the preset server schematic interface based on the attribute information, and determine at least two devices to be connected.
[0045] The first acquisition module is used to acquire the pin connection status of the device to be connected;
[0046] The second acquisition module is used to determine whether to acquire parameter information corresponding to the device to be connected based on the pin connection status, wherein the parameter information includes the pin name;
[0047] The fuzzy matching module is used to perform fuzzy matching on the fields in the pin names corresponding to at least two devices to be connected according to a preset connection rule, so as to obtain the pin connection relationship between at least two devices to be connected.
[0048] A connection module is used to connect each pin of at least two of the devices to be connected according to the connection relationship.
[0049] Optionally, the second acquisition module includes:
[0050] The acquisition submodule is used to acquire parameter information corresponding to the device to be connected when the pin connection status is detected to be unconnected. The parameter information includes the pin name of each pin, the center coordinate of the device, and the coordinate offset of the pin. The coordinate offset is the X-axis offset and Y-axis offset relative to the center coordinate of the device.
[0051] The stop submodule is used to stop the connection process of the device when all the pins are detected to be in a connected state.
[0052] Optionally, the connection module includes:
[0053] The first connection submodule is used to calculate the absolute coordinates of each pin based on the coordinate offset of the pin and the center coordinates of the device, wherein the absolute coordinates are used for positioning during automatic connection.
[0054] The second connection submodule is used to connect the pins of at least two of the devices to be connected according to the absolute coordinates and the connection relationship.
[0055] Optionally, the receiving module includes:
[0056] The receiving submodule is used to receive attribute information about the device to be connected from the user through the UI interface;
[0057] The search module includes:
[0058] The first lookup submodule is used to obtain the page number information corresponding to the device to be connected based on the attribute information when the attribute information is detected to be non-empty.
[0059] The second search submodule is used to perform a global search on all devices in the preset server schematic interface corresponding to different page number information based on the attribute information, and locate at least two of the devices to be connected.
[0060] The third search submodule is used to perform a global search on all devices on the preset server schematic interface corresponding to the same page number information based on the attribute information, and locate at least two of the devices to be connected.
[0061] Optionally, the device further includes:
[0062] The integration module is used to perform integration processing based on the pin names corresponding to the two interconnected pins to generate a signal network name.
[0063] Optionally, the connection module includes:
[0064] The third connection submodule is used to connect each pin of at least two devices to be connected through signals and the connection relationship, and to add a signal flow indicator to the end of any signal in the signal connected between the two pins;
[0065] The third connection submodule includes:
[0066] The addition unit is used to add a signal flow direction indicator to the end of any signal in the signal connected between two pins by calling the flow direction indicator corresponding to the six versions of the component;
[0067] The adding unit includes:
[0068] The first adding subunit is used to add a left IN signal flow direction indicator to the corresponding signal end by calling the left IN in the flow direction indicator adding component;
[0069] The second addition subunit is used to add a left OUT signal flow direction indicator to the corresponding signal end by calling the left OUT in the flow direction indicator addition component;
[0070] The third addition subunit is used to add a left BI signal flow direction indicator at the corresponding signal end by calling the left BI in the flow direction indicator addition component;
[0071] The fourth addition subunit is used to add a right-to-right IN signal flow direction indicator at the corresponding signal end by calling the right-to-right IN in the flow direction indicator addition component;
[0072] The fifth addition subunit is used to add a right-out signal flow indicator to the corresponding signal end by calling the right-out component in the flow indicator addition component;
[0073] The sixth addition subunit is used to add a right BI signal flow indicator at the corresponding signal end by calling the flow indicator addition component.
[0074] Optionally, the device further includes:
[0075] A generation module is used to generate an operation script according to the preset connection rules, the operation script including automatic connection instructions;
[0076] The running module is used to run the automatic connection instruction, wherein the automatic connection instruction is used to determine the device corresponding to the attribute information as the device to be connected when receiving attribute information input by the user.
[0077] In a third aspect of this application, a communication device is also provided, comprising: a transceiver, a memory, a processor, and a program stored in the memory and executable on the processor;
[0078] The processor is used to read the program in the memory to implement the server schematic connection method as described in any of the first aspects.
[0079] In a fourth aspect of this application, a computer-readable storage medium is also provided, wherein instructions are stored therein, which, when executed on a computer, cause the computer to implement the server schematic connection method as described in any of the first aspects.
[0080] The server schematic connection method provided in this application embodiment receives attribute information input by the user;
[0081] Based on the attribute information, a search is performed on all devices in the preset server schematic interface to identify at least two devices to be connected; the pin connection status of the devices to be connected is obtained; based on the pin connection status, it is determined whether to obtain the parameter information corresponding to the devices to be connected, the parameter information including pin names; according to preset connection rules, fuzzy matching is performed on the fields in the pin names corresponding to the at least two devices to be connected to obtain the pin connection relationship between the at least two devices to be connected; and the pins of the at least two devices to be connected are connected according to the connection relationship. That is, in this embodiment, the devices to be connected are found in the server schematic through device attribute information, and then the pins of the two devices to be connected are matched and connected according to the parameter information corresponding to the devices to be connected, thereby realizing automatic matching of connection relationships and completion of wiring connection operations during schematic design, replacing the original manual wiring. Especially for the design of buses, automatic wiring avoids DP / DN reverse connection or bus branch connection errors, improving design efficiency and design quality. Attached Figure Description
[0082] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the accompanying drawings used in the description of the embodiments or the prior art will be briefly introduced below.
[0083] Figure 1 The step flow of the server schematic connection method provided in the embodiments of this application Figure 1 ;
[0084] Figure 2 This application provides a flowchart of the steps for connecting a server schematic diagram according to an embodiment. Figure 2 ;
[0085] Figure 3 This application provides a flowchart of the steps for connecting a server schematic diagram according to an embodiment. Figure 3 ;
[0086] Figure 4 This application provides a flowchart of the steps for connecting a server schematic diagram according to an embodiment. Figure 4 ;
[0087] Figure 5 This is a block diagram of a server schematic connection device provided in an embodiment of this application;
[0088] Figure 6 This is a schematic diagram of a communication device provided in an embodiment of this application;
[0089] Figure 7 This is a schematic diagram of a server schematic interface interaction provided in an embodiment of this application;
[0090] Figure 8This is a schematic diagram of a server schematic pinout provided in an embodiment of this application. Detailed Implementation
[0091] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the various embodiments of this application will be described in detail below with reference to the accompanying drawings. However, those skilled in the art will understand that many technical details have been presented in the various embodiments of this application to enable readers to better understand this application. However, even without these technical details and various changes and modifications based on the following embodiments, the technical solutions claimed in this application can be implemented. The division of the various embodiments below is for the convenience of description and should not constitute any limitation on the specific implementation of this application. The various embodiments can be combined with and referenced by each other without contradiction.
[0092] It should be noted that this application combines server product characteristics and design rules with HDL Skill programming and runs the program in Concept HDL software.
[0093] Reference Figure 1 The flowchart illustrates the steps of the server schematic connection method provided in the embodiments of this application. Figure 1 The embodiments of this application are applied to a management engine system, and the method may include:
[0094] Step 101: Receive attribute information input by the user;
[0095] It should be noted that the system receives attribute information input by the user. The user can input attribute information on a preset UI interface. This attribute information corresponds to a device to be connected, and there is a one-to-one relationship between the attribute information and the device to be connected.
[0096] Specifically, such as Figure 7 As shown, Figure 7 This is a schematic diagram of a server schematic interface interaction provided in an embodiment of this application. The user inputs the attribute information corresponding to two devices to be connected on the interactive interface. For example, LOCATION, attribute name = "$LOCATION", attribute value = the obtained LOCATION value. Then, the Concept HDL software system can identify the two devices to be connected as the devices to be automatically connected.
[0097] It should be noted that after obtaining the user's input, the attribute values input will be validated. If both devices are in an undesigned state, where the undesigned state refers to the state where the device's pins are floating and there are no wires, this validation step is to avoid modifying the parts that have been manually designed or modified.
[0098] Step 102: Based on the attribute information, search all devices in the preset server schematic interface to determine at least two devices to be connected;
[0099] It should be noted that, in this embodiment of the application, after obtaining the attribute information input by the user, the device to be connected can be quickly located based on the attribute information. Specifically, a global search is performed on the preset server schematic interface based on the attribute information to find the device that matches the input attribute information.
[0100] Step 103: Obtain the pin connection status of the device to be connected;
[0101] It should be noted that after identifying the device to be connected, it is necessary to determine the current connection status of each pin of the device to be connected. This is because it is necessary to determine the pin connection status of the device to be connected first in order to enable automatic wiring later.
[0102] Specifically, each device (classified as a component in Concept HDL software) can be processed one by one to obtain the pin connection status of each device. Since the schematic is frequently updated during the server schematic design process, it is necessary to query the pin connection status in order to avoid software changes to the completed design.
[0103] If there are already signal connections on the pins of the current device, it means that the current pin has already been connected. Therefore, no wiring processing will be performed on the device to avoid modifying the parts that have been manually designed or modified.
[0104] If there is no signal connection, it means that the current device can automatically connect.
[0105] Step 104: Determine whether to obtain the parameter information corresponding to the device to be connected based on the pin connection status. The parameter information includes the pin name.
[0106] Therefore, the pin connection status can determine whether it is necessary to obtain the parameter information of the device to be connected. That is, if the pin connection status is in the no-signal connection state, the parameter information of the device to be connected is obtained; if the pin connection status is in the signal connection state, the connection operation is stopped.
[0107] The parameter information may include the center coordinates of the device on the preset server principle interface, the pin names of each pin, and the coordinate offset of each pin relative to the center coordinates on the preset server principle interface.
[0108] Step 105: Perform fuzzy matching on the fields in the pin names corresponding to at least two devices to be connected according to preset connection rules to obtain the pin connection relationship between at least two devices to be connected.
[0109] It should be noted that, in the embodiments of this application, according to the pre-connection rules, the fields in the pin names corresponding to the two devices to be connected can be fuzzily matched, and the corresponding pins can be matched. Finally, the connection relationship between the pins of at least two devices to be connected can be obtained.
[0110] Specifically, based on this connection relationship, it can be determined that pin a in device A to be connected and pin b in device B to be connected can be connected.
[0111] Among them, the preset connection rules are a signal connection logic formulated based on the server architecture and design specifications. Since the server system is very complex and contains a variety of boards, functional modules, control units, etc., the signal connection logic is directly related to the completeness of the automatic connection.
[0112] In this embodiment, by integrating the signal connection logic, preset connection rules are obtained as the basis for automatic connection between devices.
[0113] Specifically, such as Figure 8 As shown, Figure 8 This is a schematic diagram of a server schematic pinout provided in this application embodiment. It takes some lines in an actual server design as an example, and the connection of the remaining lines is also based on the signal connection rules formulated according to the server architecture and design specifications.
[0114] Taking "PCIe" signals as an example, in actual design, the pin name in the chip or connector package is obtained, and the PCIe signal pin is identified. For example, the identification keywords for TX DP signals include "PETP*", "PE*_TX_DP*", "TX*+", etc. Correspondingly, the identification keywords for TX DN signals include "PETN*", "PE*_TX_DN*", "TX*-", etc. RX signals correspond sequentially. * refers to a number, representing the PCIe signal lane number. A group of X16 "PCIe" signals needs to be tabbed sequentially from 0 to 15 to achieve a one-to-one correspondence between signals. The pins between two devices are matched by the number indicated by the * identifier.
[0115] Step 106: Connect each pin of at least two of the devices to be connected according to the connection relationship.
[0116] After determining the connection relationship, the pins of the two devices to be connected can be connected one by one.
[0117] At this point, automatic wiring of the server schematic can be achieved, and log records can be generated. These records can record intermediate data of the wiring process, including the wiring location, pin number, coordinates, network name, flow direction indicator, and the direction of component addition.
[0118] Users can then check the server schematic by viewing the log file, and can also perform operations such as copying, saving, packaging, and generating backup files of the server schematic.
[0119] Further, connecting the pins of at least two of the devices to be connected according to the connection relationship includes:
[0120] The pins of at least two devices to be connected are connected by signals and the connection relationship, and a signal flow indicator is added to the end of any signal in the signal connected between the two pins;
[0121] Adding a signal flow indicator to the end of either signal in the signal connected between the two pins includes:
[0122] Add a signal flow indicator to the end of any signal in the signal connected between two pins by calling the flow indicator, which corresponds to one of the six versions of the component.
[0123] The method of adding a signal flow indicator at the end of the signal by calling the six versions of the component corresponding to the flow indicator includes:
[0124] By calling the left-to-left IN component in the flow direction indicator addition component, a left-to-left IN signal flow direction indicator is added to the corresponding signal end;
[0125] By calling the flow direction indicator, a left OUT signal flow direction indicator is added to the corresponding signal end in the component;
[0126] By calling the flow direction indicator to add the left-direction BI in the component, a left-direction BI signal flow direction indicator is added to the corresponding signal end;
[0127] By calling the flow direction indicator to add the right-to-IN signal flow direction indicator in the component, a right-to-IN signal flow direction indicator is added to the end of the corresponding signal;
[0128] By calling the flow direction indicator to add the right-to-out signal flow direction indicator in the component, a right-to-out signal flow direction indicator is added to the end of the corresponding signal;
[0129] By calling the flow direction indicator, the right-direction BI in the component adds a right-direction BI signal flow direction indicator at the corresponding signal end.
[0130] It should be noted that in this embodiment, the input and output states of each pin can be obtained by reading the symbol information. After the pins between the devices are connected one by one, in order to enhance the readability of the schematic diagram, a signal flow indicator needs to be added to the end of the signal, i.e., a flow indicator adding component. The signal flow indicator is used to indicate the direction of the signal. Different signal flows can be implemented by calling six versions of the flow indicator adding component. The six versions of the flow indicator adding component are left IN, left OUT, left BI, right IN, right OUT, and right BI. After adding the flow indicator adding component, the automatic connection ends here.
[0131] In this context, left-direction IN means that the signal at this pin connection is input from right to left, left-direction OUT means that the signal at this pin connection is output from right to left, and left-direction BI (bipolar signal) means that the signal at this pin connection is transmitted from right to left as a bipolar signal. Similarly, right-direction is the opposite.
[0132] The server schematic connection method provided in this application embodiment receives attribute information input by the user; searches for at least two devices to be connected in all devices in a preset server schematic interface based on the attribute information; obtains the pin connection status corresponding to the devices to be connected; determines whether to obtain the parameter information corresponding to the devices to be connected based on the pin connection status, the parameter information including pin names; performs fuzzy matching on the fields in the pin names corresponding to the at least two devices to be connected according to preset connection rules to obtain the pin connection relationship between the at least two devices to be connected; connects each pin in the at least two devices to be connected according to the connection relationship. That is, this application embodiment finds the devices to be connected in the server schematic through device attribute information, and then matches and connects the pins in the two devices to be connected according to the parameter information corresponding to the devices to be connected, thereby realizing automatic matching of connection relationships and completion of wiring connection operations during schematic design, replacing the original manual wiring. Especially for the design of buses, automatic wiring avoids DP / DN reverse connection or bus branch connection errors, improving design efficiency and design quality.
[0133] In addition, by obtaining the input and output status of each pin, a signal flow indicator can be added to the end of the signal, which further enhances the readability of the server schematic diagram while achieving automatic wiring.
[0134] Reference Figure 2 The flowchart illustrates the steps of the server schematic connection method provided in the embodiments of this application. Figure 2 The method may include:
[0135] Step 201: Receive attribute information input by the user;
[0136] Step 202: Based on the attribute information, search all devices in the preset server schematic interface to determine at least two devices to be connected;
[0137] Step 203: Obtain the pin connection status of the device to be connected;
[0138] It should be noted that steps 201-203 above are based on the previous discussion and will not be repeated here.
[0139] Step 204: When the pin connection status is detected as unconnected, obtain the parameter information corresponding to the device to be connected. The parameter information includes the pin name of each pin, the center coordinate of the device, and the coordinate offset of the pin. The coordinate offset is the X-axis offset and Y-axis offset relative to the center coordinate of the device.
[0140] Step 205: If all the pins are detected to be in a connected state, stop the connection process of the device.
[0141] It should be noted that after obtaining the pin connection status, you can determine whether to obtain parameter information based on the pin connection status.
[0142] Specifically, if all the pins are detected to be in a connected state, meaning that there are already signals connected on each pin of the current device, it means that the current pin has already been connected. Therefore, no wiring processing will be performed on the device to avoid modifying the parts that have been manually designed or modified.
[0143] If the pin connection status is detected as not connected, i.e. no signal connection, it means that the current device can be automatically connected, and then the parameter information of the device to be connected can be obtained.
[0144] The parameter information may include the center coordinates of the device on the preset server principle interface, the pin names of each pin, and the coordinate offset of each pin relative to the center coordinates on the preset server principle interface.
[0145] The coordinate offset is used to better locate the position of each pin. The coordinates of the pin in the software are indicated by the offset, which is the offset X value and offset Y value relative to the center coordinate of the device. After the schematic package is established, the offset value will not be changed. The device movement during the design process only affects the center coordinate of the device. The absolute coordinate of the pin can be obtained by the device center coordinate ± the coordinate offset. The absolute coordinate can solve the positioning problem in automatic wiring.
[0146] Step 206: Perform fuzzy matching on the fields in the pin names corresponding to at least two devices to be connected according to preset connection rules to obtain the pin connection relationship between at least two devices to be connected.
[0147] Step 207: Calculate the absolute coordinates of each pin based on the coordinate offset of the pin and the center coordinates of the device, wherein the absolute coordinates are used for positioning during automatic connection;
[0148] Step 208: Connect the pins of at least two of the devices to be connected according to the absolute coordinates and the connection relationship.
[0149] It should be noted that steps 206-208 above are based on the previous discussion and will not be repeated here.
[0150] This application embodiment finds the device to be connected in the server schematic diagram by using the device attribute information, and then matches and connects the pins of the two devices according to the parameter information of the device to be connected. This realizes automatic matching of connection relationship during schematic design and completes the wiring connection operation, replacing the original manual wiring. Especially for the design of buses, automatic wiring avoids DP / DN reverse connection or bus branch connection errors, improving design efficiency and design quality.
[0151] In addition, this application can further achieve precise positioning in automatic wiring by obtaining the absolute coordinates of each pin, and can better combine the connection relationship to achieve automatic connection.
[0152] Reference Figure 3 The flowchart illustrates the steps of the server schematic connection method provided in the embodiments of this application. Figure 3 The method may include:
[0153] Step 301: Receive attribute information for the device to be connected from the user through the UI interface;
[0154] It should be noted that, in this embodiment of the application, the device attribute information input by the user can be received through a preset UI interface, which can be referred to as... Figure 7 However, this does not limit the UI interface and interaction methods in this application.
[0155] Step 302: If the attribute information is detected to be non-empty, obtain the page number information corresponding to the device to be connected based on the attribute information;
[0156] Step 303: Based on the attribute information, perform a global search on all devices on the preset server schematic interface corresponding to different page number information to locate at least two devices to be connected;
[0157] Step 304: Based on the attribute information, perform a global search on all devices on the preset server schematic interface corresponding to the same page number information to locate at least two devices to be connected.
[0158] It should be noted that in steps 302-304 above, if the device attribute is empty, it means that the attribute information obtained from the user is incorrect, or that no attribute information was received from the user. In this case, the attribute information needs to be confirmed again. When the device attribute information is confirmed to be non-empty, the subsequent automatic connection can be performed.
[0159] It should be noted that a preset server schematic interface can contain multiple devices and multiple pages. Furthermore, each page can contain a large device and multiple small devices. Therefore, the page number information corresponding to the device to be connected can be obtained through attribute information, and the device to be connected can be located more quickly based on the page number information. In this way, when two devices are not on the same page, the obtained page number information can be used to quickly jump to and locate other pages, which can more accurately locate the device to be connected and assist the device to be connected to connect automatically.
[0160] Step 305: Obtain the pin connection status of the device to be connected;
[0161] Step 306: Determine whether to obtain the parameter information corresponding to the device to be connected based on the pin connection status. The parameter information includes the pin name.
[0162] Step 307: Perform fuzzy matching on the fields in the pin names corresponding to at least two of the devices to be connected according to the preset connection rules to obtain the pin connection relationship between at least two of the devices to be connected.
[0163] Step 308: Connect each pin of at least two of the devices to be connected according to the connection relationship.
[0164] It should be noted that steps 305-308 above are based on the previous discussion and will not be repeated here.
[0165] Step 309: Integrate the pin names corresponding to the two interconnected pins to generate a signal network name.
[0166] It should be noted that, in this embodiment of the application, there is no need for the user to design and connect the wires before manually inputting the signal network name. In this application, the signal network name can be automatically generated and added to the server schematic diagram by integrating the pin names corresponding to the two interconnected pins.
[0167] This application embodiment finds the device to be connected in the server schematic diagram by using the device attribute information, and then matches and connects the pins of the two devices according to the parameter information of the device to be connected. This realizes automatic matching of connection relationship during schematic design and completes the wiring connection operation, replacing the original manual wiring. Especially for the design of buses, automatic wiring avoids DP / DN reverse connection or bus branch connection errors, improving design efficiency and design quality.
[0168] In addition, by obtaining the page number information of each device to be connected, it is possible to quickly jump to and locate other pages when two devices are not on the same page, thereby achieving more accurate positioning of the device to be connected and assisting the device to be connected to connect automatically.
[0169] In addition, the integrated pin names in this application can automatically generate signal network names, improving the efficiency of server schematic design.
[0170] Reference Figure 4 The flowchart illustrates the steps of the server schematic connection method provided in the embodiments of this application. Figure 4 The method may include:
[0171] Step 401: Generate an operation script according to preset connection rules, the operation script including automatic connection instructions;
[0172] The preset connection rules are connection rules for signal connections that are pre-set based on the server architecture and design specifications.
[0173] Step 402: Run the automatic connection instruction, wherein the automatic connection instruction is used to determine the device corresponding to the attribute information as the device to be connected when receiving attribute information input by the user;
[0174] It should be noted that in steps 401-402 above, firstly, the preset connection rules generate an operation script. The operation script includes automatic connection instructions. The preset connection rules are a signal connection logic formulated based on the server architecture and design specifications. Since the server system is very complex and contains various boards, functional modules, control units, etc., the signal connection logic is directly related to the completeness of the automatic connection.
[0175] Specifically, an operation script can be written, defining the automatic connection instruction as "AUTO_WIRE". The instruction "AUTO_WIRE" is run in the schematic diagram. The automatic connection instruction is used to determine the device corresponding to the attribute information as the device to be connected when the attribute information is received from the user.
[0176] Step 403: Receive attribute information input by the user;
[0177] Step 404: Search all devices in the preset server schematic interface according to the attribute information to determine at least two devices to be connected;
[0178] Step 405: Obtain the pin connection status of the device to be connected;
[0179] Step 406: Determine whether to obtain the parameter information corresponding to the device to be connected based on the pin connection status. The parameter information includes the pin name.
[0180] Step 407: Perform fuzzy matching on the fields in the pin names corresponding to at least two devices to be connected according to preset connection rules to obtain the pin connection relationship between at least two devices to be connected.
[0181] Step 408: Connect the pins of at least two of the devices to be connected according to the connection relationship.
[0182] It should be noted that steps 403-408 above are based on the previous discussion and will not be repeated here.
[0183] This application embodiment finds the device to be connected in the server schematic diagram by using the device attribute information, and then matches and connects the pins of the two devices according to the parameter information of the device to be connected. This realizes automatic matching of connection relationship during schematic design and completes the wiring connection operation, replacing the original manual wiring. Especially for the design of buses, automatic wiring avoids DP / DN reverse connection or bus branch connection errors, improving design efficiency and design quality.
[0184] In addition, by setting preset connection rules and generating operation scripts, and defining automatic connection instructions in the operation scripts, the automatic connection program can be run in the Concept HDL software to achieve automatic connection between the two ends during schematic design, and to perform operations such as pulling out signals, adding page out symbols, adding signal network names, and recording changes.
[0185] Reference Figure 5 The diagram illustrates a schematic of a server schematic connection device according to an embodiment of this application. The device may include:
[0186] The receiving module 501 is used to receive attribute information input by the user;
[0187] The search module 502 is used to search for at least two devices to be connected in all devices in the preset server schematic interface according to the attribute information.
[0188] The first acquisition module 503 is used to acquire the pin connection status of the device to be connected;
[0189] The second acquisition module 504 is used to determine whether to acquire the parameter information corresponding to the device to be connected based on the pin connection status, wherein the parameter information includes the pin name;
[0190] Fuzzy matching module 505 is used to perform fuzzy matching on the fields in the pin names corresponding to at least two devices to be connected according to a preset connection rule, so as to obtain the connection relationship of the pins between at least two devices to be connected.
[0191] The connection module 506 is used to connect each pin of at least two of the devices to be connected according to the connection relationship.
[0192] Optionally, the second acquisition module includes:
[0193] The acquisition submodule is used to acquire parameter information corresponding to the device to be connected when the pin connection status is detected to be unconnected. The parameter information includes the pin name of each pin, the center coordinate of the device, and the coordinate offset of the pin. The coordinate offset is the X-axis offset and Y-axis offset relative to the center coordinate of the device.
[0194] The stop submodule is used to stop the connection process of the device when all the pins are detected to be in a connected state.
[0195] Optionally, the connection module includes:
[0196] The first connection submodule is used to calculate the absolute coordinates of each pin based on the coordinate offset of the pin and the center coordinates of the device, wherein the absolute coordinates are used for positioning during automatic connection.
[0197] The second connection submodule is used to connect the pins of at least two of the devices to be connected according to the absolute coordinates and the connection relationship.
[0198] Optionally, the receiving module includes:
[0199] The receiving submodule is used to receive attribute information about the device to be connected from the user through the UI interface;
[0200] The search module includes:
[0201] The first lookup submodule is used to obtain the page number information corresponding to the device to be connected based on the attribute information when the attribute information is detected to be non-empty.
[0202] The second search submodule is used to perform a global search on all devices in the preset server schematic interface corresponding to different page number information based on the attribute information, and locate at least two of the devices to be connected.
[0203] The third search submodule is used to perform a global search on all devices in the preset server schematic interface corresponding to the same page number information based on the attribute information, and locate at least two of the devices to be connected.
[0204] Optionally, the device further includes:
[0205] The integration module is used to perform integration processing based on the pin names corresponding to the two interconnected pins to generate a signal network name.
[0206] Optionally, the connection module includes:
[0207] The third connection submodule is used to connect each pin of at least two devices to be connected through signals and the connection relationship, and to add a signal flow indicator to the end of any signal in the signal connected between the two pins;
[0208] The third connection submodule includes:
[0209] The addition unit is used to add a signal flow direction indicator to the end of any signal in the signal connected between two pins by calling the flow direction indicator corresponding to the six versions of the component;
[0210] The adding unit includes:
[0211] The first adding subunit is used to add a left IN signal flow direction indicator to the corresponding signal end by calling the left IN in the flow direction indicator adding component;
[0212] The second addition subunit is used to add a left OUT signal flow direction indicator to the corresponding signal end by calling the left OUT in the flow direction indicator addition component;
[0213] The third addition subunit is used to add a left BI signal flow direction indicator at the corresponding signal end by calling the left BI in the flow direction indicator addition component;
[0214] The fourth addition subunit is used to add a right-to-right IN signal flow direction indicator at the corresponding signal end by calling the right-to-right IN in the flow direction indicator addition component;
[0215] The fifth addition subunit is used to add a right-out signal flow indicator to the corresponding signal end by calling the right-out component in the flow indicator addition component;
[0216] The sixth addition subunit is used to add a right BI signal flow indicator at the corresponding signal end by calling the flow indicator addition component.
[0217] Optionally, the device further includes:
[0218] A generation module is used to generate an operation script according to the preset connection rules, the operation script including automatic connection instructions;
[0219] The running module is used to run the automatic connection instruction, wherein the automatic connection instruction is used to determine the device corresponding to the attribute information as the device to be connected when receiving attribute information input by the user.
[0220] This application embodiment finds the device to be connected in the server schematic diagram by using the device attribute information, and then matches and connects the pins of the two devices according to the parameter information of the device to be connected. This realizes automatic matching of connection relationship during schematic design and completes the wiring connection operation, replacing the original manual wiring. Especially for the design of buses, automatic wiring avoids DP / DN reverse connection or bus branch connection errors, improving design efficiency and design quality.
[0221] This application also provides a communication device, such as... Figure 6 As shown, it includes a processor 601, a communication interface 602, a memory 603, and a communication bus 604, wherein the processor 601, the communication interface 602, and the memory 603 communicate with each other through the communication bus 604.
[0222] Memory 603 is used to store computer programs;
[0223] When processor 601 executes the program stored in memory 603, it can perform the following steps:
[0224] Receive attribute information input by the user;
[0225] Based on the attribute information, search among all devices in the preset server schematic interface to determine at least two devices to be connected.
[0226] Obtain the pin connection status of the device to be connected;
[0227] Whether to obtain the parameter information corresponding to the device to be connected is determined based on the pin connection status, and the parameter information includes the pin name;
[0228] According to the preset connection rules, fuzzy matching is performed on the fields in the pin names corresponding to at least two devices to be connected, to obtain the connection relationship between the pins of at least two devices to be connected.
[0229] Connect each pin of at least two of the devices to be connected according to the connection relationship.
[0230] The communication bus mentioned above can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. This communication bus can be divided into address bus, data bus, control bus, etc. For ease of illustration, only one thick line is used to represent it in the diagram, but this does not mean that there is only one bus or one type of bus.
[0231] The communication interface is used for communication between the aforementioned terminal and other devices.
[0232] The memory may include random access memory (RAM) or non-volatile memory, such as at least one disk storage device. Optionally, the memory may also be at least one storage device located remotely from the aforementioned processor.
[0233] The processors mentioned above can be general-purpose processors, including central processing units (CPUs), network processors (NPs), etc.; they can also be digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components.
[0234] In another embodiment provided in this application, a computer-readable storage medium is also provided, which stores instructions that, when executed on a computer, cause the computer to perform any of the server schematic connection methods described in the above embodiments.
[0235] In another embodiment provided in this application, a computer program product containing instructions is also provided, which, when run on a computer, causes the computer to execute any of the server schematic connection methods described in the above embodiments.
[0236] In the above embodiments, implementation can be achieved entirely or partially through software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented entirely or partially in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid state disk (SSD)).
[0237] It should be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0238] The various embodiments in this specification are described in a related manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, the system embodiments are basically similar to the method embodiments, so the description is relatively simple; relevant parts can be referred to the descriptions of the method embodiments.
[0239] The above description is merely a preferred embodiment of this application and is not intended to limit the scope of protection of this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application are included within the scope of protection of this application.
Claims
1. A server schematic connection method, characterized in that, The method includes: Receive attribute information input by the user; Based on the attribute information, search among all devices in the preset server schematic interface to determine at least two devices to be connected. Obtain the pin connection status of the device to be connected; Whether to obtain the parameter information corresponding to the device to be connected is determined based on the pin connection status, and the parameter information includes the pin name; According to the preset connection rules, fuzzy matching is performed on the fields in the pin names corresponding to at least two devices to be connected, to obtain the connection relationship between the pins of at least two devices to be connected. Connect each pin of at least two of the devices to be connected according to the connection relationship.
2. The method according to claim 1, characterized in that, The step of determining whether to obtain the parameter information corresponding to the device to be connected based on the pin connection status includes: When the pin connection status is detected as not connected, the parameter information corresponding to the device to be connected is obtained. The parameter information includes the pin name of each pin, the center coordinate of the device, and the coordinate offset of the pin. The coordinate offset is the X-axis offset and Y-axis offset relative to the center coordinate of the device. If all the pins are detected to be in a connected state, the connection process of the device is stopped.
3. The method according to claim 2, characterized in that, Connecting the pins of at least two of the devices to be connected according to the connection relationship includes: The absolute coordinates of each pin are calculated based on the coordinate offset of the pin and the center coordinates of the device, wherein the absolute coordinates are used for positioning during automatic connection. Connect the pins of at least two of the devices to be connected according to the absolute coordinates and the connection relationship.
4. The method according to claim 1, characterized in that, The attribute information received from user input includes: Receive attribute information about the device to be connected from the user through the UI interface; The step of searching through all devices in the preset server schematic interface based on the attribute information to determine at least two devices to be connected includes: If the attribute information is detected to be non-empty, the page number information corresponding to the device to be connected is obtained based on the attribute information. Based on the attribute information, a global search is performed on all devices on the preset server schematic interface corresponding to different page number information to locate at least two devices to be connected. Based on the attribute information, a global search is performed on all devices on the preset server schematic interface corresponding to the same page number information to locate at least two of the devices to be connected.
5. The method according to claim 1, characterized in that, After the step of connecting the pins of at least two of the devices to be connected according to the connection relationship, the method includes: The signal network name is generated by integrating the pin names corresponding to the two interconnected pins.
6. The method according to claim 1, characterized in that, Connecting the pins of at least two of the devices to be connected according to the connection relationship includes: The pins of at least two devices to be connected are connected by signals and the connection relationship, and a signal flow indicator is added to the end of any signal in the signal connected between the two pins; Adding a signal flow indicator to the end of either signal in the signal connected between the two pins includes: Add a signal flow indicator to the end of any signal in the signal connected between two pins by calling the flow indicator, which corresponds to one of the six versions of the component. The method of adding a signal flow indicator at the end of the signal by calling the six versions of the component corresponding to the flow indicator includes: By calling the left-to-left IN component in the flow direction indicator addition component, a left-to-left IN signal flow direction indicator is added to the corresponding signal end; By calling the flow direction indicator, a left OUT signal flow direction indicator is added to the corresponding signal end in the component; By calling the flow direction indicator to add the left-direction BI in the component, a left-direction BI signal flow direction indicator is added to the corresponding signal end; By calling the flow direction indicator to add the right-to-IN signal flow direction indicator in the component, a right-to-IN signal flow direction indicator is added to the end of the corresponding signal; By calling the flow direction indicator to add the right-to-out signal flow direction indicator in the component, a right-to-out signal flow direction indicator is added to the end of the corresponding signal; By calling the flow direction indicator, the right-direction BI in the component adds a right-direction BI signal flow direction indicator at the corresponding signal end.
7. The method according to claim 1, characterized in that, The preset connection rules are connection rules for signal connections that are pre-set based on the server architecture and design specifications. Prior to the step of receiving attribute information input by the user, the method includes: An operation script is generated according to the preset connection rules, and the operation script includes automatic connection instructions. The automatic connection instruction is executed, wherein the automatic connection instruction is used to determine the device corresponding to the attribute information as the device to be connected when the attribute information input by the user is received.
8. A server schematic connection device, characterized in that, The device includes: The receiving module is used to receive attribute information input by the user; The search module is used to search for all devices in the preset server schematic interface based on the attribute information, and determine at least two devices to be connected. The first acquisition module is used to acquire the pin connection status of the device to be connected; The second acquisition module is used to determine whether to acquire parameter information corresponding to the device to be connected based on the pin connection status, wherein the parameter information includes the pin name; The fuzzy matching module is used to perform fuzzy matching on the fields in the pin names corresponding to at least two devices to be connected according to a preset connection rule, so as to obtain the pin connection relationship between at least two devices to be connected. A connection module is used to connect each pin of at least two of the devices to be connected according to the connection relationship.
9. A communication device, characterized in that, include: A transceiver, a memory, a processor, and a program stored in the memory and executable on the processor; The processor is used to read the program in the memory to implement the server schematic connection method as described in any one of claims 1-7.
10. A readable storage medium for storing a program, characterized in that, When the program is executed by the processor, it implements the server schematic connection method as described in any one of claims 1-7.