Circuit board conductor adjustment method and device
By receiving the change schematic view request and obtaining pin wire name information, the schematic diagram is updated according to the mapping relationship between the global name and the local name, which solves the problem that the schematic designer needs to manually compare names, and improves the accuracy and efficiency of wire changes , realizes the automatic synchronization of schematic diagrams and circuit board design diagrams.
Patent Information
- Application Number
- CN202010590362.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-06-24
- Publication Date
- 2024-11-19
- Estimated Expiration
- 2040-06-24
AI Technical Summary
In the prior art, the schematic designer needs to manually compare the global name and local name after the wire is changed, resulting in a large workload and it is difficult to efficiently judge the accuracy of the wire change.
By receiving the change schematic view request, obtain pin wire name information, and update the wire name in the schematic based on the mapping relationship between the global name and the local name, reducing manual comparison, and realizing automated judgment.
It reduces the workload of the schematic designer, improves the accuracy and efficiency of wire changes, reduces manual errors, and realizes the automatic synchronization of the schematic and circuit board design drawings.
Smart Images

Figure CN113836857B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of electrical components, and in particular to a method and device for adjusting a circuit board conductor. Background Art
[0002] In the prior art, after a printed circuit board (PCB) designer completes the change of the wires connected to the pins of the PCB design drawing, the PCB design drawing with the changed wires is sent to a schematic designer, who compares the changed PCB design drawing with the schematic drawing to determine whether the change of the wires is accurate from a principle perspective.
[0003] Since the wires connected to the pins in the PCB design are usually named with global names, and the wires connected to the pins in the schematic are usually named with local names, it is usually necessary for the schematic designer to manually match the global names with the local names and then determine whether the changed principle is accurate, which brings a large workload to the schematic designer. Summary of the invention
[0004] The purpose of the embodiments of the present application is to provide a circuit board conductor adjustment method and device to improve the problem of heavy workload for schematic designers in the prior art.
[0005] In a first aspect, an embodiment of the present application provides a method for adjusting a circuit board wire, the method comprising: receiving a request for viewing a changed schematic diagram, and sending a request for obtaining a changed wire name to a server; receiving pin wire name information returned by the server, wherein the pin wire name information comprises a plurality of pin numbers, and a global name of a changed wire connected to each of the plurality of pin numbers, wherein the pins corresponding to each pin number are wires whose connected connections have been changed in the circuit board design drawing; updating the local name of the wire connected to the corresponding pin number in the schematic diagram according to a mapping relationship between the global name and the local name, wherein the schematic diagram is a working schematic diagram of the circuit board design drawing; and displaying the schematic diagram with the local name changed.
[0006] In the above-mentioned implementation, after receiving the schematic designer's request to view the changed schematic, the circuit board wire adjustment device will first obtain the pin wire name information from the server, and the pin wire name information includes the pin number of the pin whose connected wire has been changed, and the global name of the wire connected to each pin number. The circuit board wire adjustment device can update the local name of the wire connected to the corresponding pin number in the schematic according to the mapping relationship between the global name and the local name. Since the above-mentioned method directly realizes the interchange of the local name of the wire that has been changed in the schematic, the schematic designer can directly determine whether the wire that has been changed in the schematic meets the requirements from the principle perspective, without the need for the schematic designer to manually replace the name by comparing the relationship between the global name and the local name, thereby reducing the workload of the schematic designer.
[0007] In a possible design, before updating the local name of the wire connected to the corresponding pin number in the schematic diagram according to the mapping relationship between the global name and the local name, the method also includes: establishing a mapping relationship between the global name and the local name.
[0008] In the above implementation, by establishing a mapping relationship between the global name and the local name, the name can be changed more smoothly.
[0009] In a possible design, the establishing of the mapping relationship between the global name and the local name includes: searching for a chip corresponding to the same chip position number in the schematic diagram according to the chip position number of the chip whose wire has been changed in the circuit board design diagram; searching for a pin with the same pin number in the corresponding chip in the schematic diagram according to the pin number of the chip whose wire has been changed in the circuit board design diagram; obtaining the global name of the wire before the change connected to the pin corresponding to the pin number of the wire change in the circuit board design diagram; obtaining the local name of the wire connected to the pin with the same pin number in the schematic diagram; and establishing a mapping relationship between the global name and the local name.
[0010] In the above-mentioned implementation manner, a mapping relationship between the global name of the circuit board design drawing and the local name of the schematic diagram is established. First, the chip for which the mapping relationship is to be established can be determined from the circuit board design drawing and the schematic diagram respectively according to the chip position number; then, the pin where the wire change has occurred can be determined from the circuit board design drawing and the schematic diagram respectively according to the pin number of the chip; then, the global name of the wire before the change connected to a pin in the circuit board design drawing and the local name of the wire connected to the pin in the schematic diagram are obtained. The wire before the change connected to the circuit board design drawing and the wire connected to the schematic diagram are the same wire, and therefore, a mapping relationship between the global name and the local name of the two is established.
[0011] In one possible design, after displaying the schematic diagram with the changed local name, the method further includes: receiving a line adjustment rejection instruction and sending line adjustment rejection information to the server; or receiving a line adjustment confirmation instruction, updating the schematic diagram and generating a netlist document of the updated schematic diagram; uploading the netlist document to the server.
[0012] In the above-mentioned implementation, after the schematic designer determines whether the changed wire in the schematic meets the requirements from the principle point of view, two results can be obtained: meeting the requirements or not meeting the requirements. If the schematic designer determines that the changed wire does not meet the requirements from the principle point of view, a wire adjustment rejection instruction can be triggered, so that the circuit board wire adjustment device sends wire adjustment rejection information to the server; if the schematic designer determines that the changed wire meets the requirements from the principle point of view, a wire adjustment confirmation instruction can be triggered to update the schematic according to the changed wire, and generate a netlist document corresponding to the updated schematic. The netlist document records the information of the updated schematic. After the netlist document is uploaded to the server, the circuit board design drawing can be consistent with the schematic according to the latest netlist document stored in the server.
[0013] In a possible design, the updating of the local name of the wire connected to the corresponding pin number in the schematic diagram according to the mapping relationship between the global name and the local name includes: searching for the chip corresponding to the same chip number in the schematic diagram according to the chip number of the chip whose wire has been changed in the circuit board design diagram; searching for the pin with the same pin number in the corresponding chip in the schematic diagram according to the pin number of the chip whose wire has been changed in the circuit board design diagram; performing the following operations on the same pin in the circuit board design diagram and the schematic diagram: if a pin in the circuit board design diagram is dangling and the same pin in the schematic diagram is connected to a wire, deleting the connection of the same pin in the schematic diagram. , and mark the same pin with a mark indicating deletion; if a pin in the circuit board design drawing is connected to a wire, and the same pin in the schematic diagram is left floating, a wire connected to the same pin in the schematic diagram is added, and the same pin is marked with a mark indicating addition, wherein the name of the added wire is a local name corresponding to the global name of the pin in the circuit board design drawing; if the same pin in the circuit board design drawing and the schematic diagram are both connected to a wire, the name of the wire connected to the pin in the schematic diagram is changed to a local name corresponding to the global name of the wire connected to the pin in the circuit board design drawing, and the same pin in the schematic diagram is marked with a mark indicating change.
[0014] In a second aspect, an embodiment of the present application provides a method for adjusting a circuit board wire, the method comprising: receiving a first pin selection request, selecting a first pin corresponding to the first pin selection request, and marking a pin belonging to the same wire adjustment group as the first pin, wherein among multiple pins belonging to the same wire adjustment group, wires connected between two pins can be mutually changed; receiving a second pin selection request, selecting a second pin among the pins belonging to the same wire adjustment group as the first pin; popping up an inquiry interface to inquire whether to exchange the wire connected to the first pin with the wire connected to the second pin; in response to confirming the exchange instruction, exchanging the wire connected to the first pin with the wire connected to the second pin; or in response to canceling the exchange instruction, keeping the wire connected to the first pin and the wire connected to the second pin as they are.
[0015] In the above implementation, the circuit board designer can operate the circuit board design drawing and select the first pin in the circuit board design drawing. When the first pin is selected, at least one pin belonging to the same wire adjustment group as the first pin is marked to prompt the circuit board designer which pins the wire connected to the first pin can be connected to. The circuit board designer can select the second pin from at least one pin belonging to the same wire adjustment group as the first pin. When the second pin is selected by the circuit board designer, an inquiry interface can pop up to ask whether to interchange the wires connected to the first pin and the second pin, and according to the choice of the circuit board designer, the interchange between the two is completed or canceled.
[0016] In one possible design, after exchanging the wire connected to the first pin with the wire connected to the second pin in response to confirming the exchange instruction, the method further includes: generating a wire change circuit board document, wherein the wire change circuit board document includes the name of the circuit board where the wire change occurs, the chip position number of the chip where the wire change occurs, the pin number of the pin where the wire change occurs, the global name of the wire connected to the pin where the wire change occurs before the wire change, and the global name of the wire connected to the pin where the wire change occurs after the wire change; and sending the wire change circuit board document to a server.
[0017] In the above implementation, after the wire exchange of two pins is completed, a wire change circuit board document can be automatically generated. The wire change circuit board document records the name of the circuit board where the wire change occurs, the bit number of the chip where the wire change occurs, the pin number where the wire change occurs, and the global name of the wires connected to the pin sending the wire change before and after the wire change. The wire change circuit board document will be sent to the server, so that when the changed schematic diagram is to be viewed, the pin wire name information in the wire change circuit board document can be obtained from the server.
[0018] In a possible design, before receiving the first pin selection request and selecting the first pin corresponding to the first pin selection request, the method further includes: grouping multiple chips of the same chip type into a preliminary screening line adjustment group according to the chip type; obtaining multiple pins allowed to be adjusted in the preliminary screening line adjustment group, and power supply pins corresponding to the multiple pins, wherein the multiple pins allowed to be adjusted are pins whose functions can be configured; and grouping pins with the same power supply voltage corresponding to the power supply pins into a final selection line adjustment group, wherein the final selection line adjustment group is the determined line adjustment group.
[0019] In the above implementation, multiple chips of the same chip type can be first divided into the same group, and then for multiple pins in the same group that are allowed to be adjusted, the power supply pins corresponding to each pin are obtained respectively, and the pins with the same power supply voltage where the power supply pins are located are divided into the final selection adjustment group, thereby realizing the pin grouping process. The wires connecting the pins in the final selection adjustment group are interchangeable.
[0020] In a third aspect, an embodiment of the present application provides a circuit board wire adjustment device, the device comprising: a request sending module, used to receive a schematic diagram change viewing request, and send a wire name change acquisition request to a server; a wire name receiving module, used to receive pin wire name information returned by the server, wherein the pin wire name information includes multiple pin numbers, and the global name of the changed wire connected to each of the multiple pin numbers, and the pins corresponding to each pin number are all wires whose connected connections have been changed in the circuit board design drawing; a mapping change module, used to update the local name of the wire connected to the corresponding pin number in the schematic diagram according to the mapping relationship between the global name and the local name, wherein the schematic diagram is a working schematic diagram of the circuit board design drawing; an image display module, used to display the schematic diagram with the local name changed.
[0021] In one possible design, the device also includes: a mapping relationship establishment module, used to establish a mapping relationship between the global name and the local name.
[0022] In a possible design, a mapping relationship establishing module is specifically used to search for a chip corresponding to the same chip position number in the schematic diagram according to the chip position number of the chip whose wire has been changed in the circuit board design diagram; search for a pin with the same pin number in the corresponding chip in the schematic diagram according to the pin number of the chip whose wire has been changed in the circuit board design diagram; obtain the global name of the wire before the change connected to the pin corresponding to the pin number of the wire change in the circuit board design diagram; obtain the local name of the wire connected to the pin with the same pin number in the schematic diagram; and establish a mapping relationship between the global name and the local name.
[0023] In one possible design, the device also includes: a line adjustment operation module, which is used to receive a line adjustment rejection instruction and send line adjustment rejection information to the server; or receive a line adjustment confirmation instruction, update the schematic diagram and generate a netlist document of the updated schematic diagram; and upload the netlist document to the server.
[0024] In a possible design, the mapping change module is specifically used to search for a chip corresponding to the same chip position number in the schematic diagram according to the chip position number of the chip whose wire has been changed in the circuit board design diagram; search for a pin with the same pin number in the corresponding chip in the schematic diagram according to the pin number of the chip whose wire has been changed in the circuit board design diagram; and perform the following operations on the same pin in the circuit board design diagram and the schematic diagram: if a pin in the circuit board design diagram is dangling and the same pin in the schematic diagram is connected to a wire, delete the wire connected to the same pin in the schematic diagram, and mark the same pin with a deletion mark. mark; if a pin of the circuit board design drawing is connected to a wire, and the same pin in the schematic diagram is left floating, a wire connected to the same pin in the schematic diagram is added, and a mark representing the addition is marked on the same pin, wherein the name of the added wire is a local name corresponding to the global name of the pin of the circuit board design drawing; if the same pin in the circuit board design drawing and the schematic diagram are both connected to a wire, the name of the wire connected to the pin of the schematic diagram is changed to a local name corresponding to the global name of the wire connected to the pin of the circuit board design drawing, and a mark representing the change is marked on the same pin in the schematic diagram.
[0025] In a fourth aspect, an embodiment of the present application provides a circuit board wire adjustment device, wherein the device includes: a first pin selection module, used to receive a first pin selection request, select a first pin corresponding to the first pin selection request, and mark a pin belonging to the same wire adjustment group as the first pin, wherein among multiple pins belonging to the same wire adjustment group, wires connected between two pins can be mutually changed; a second pin selection module, used to receive a second pin selection request, and select a second pin among the pins belonging to the same wire adjustment group as the first pin; an inquiry interface pop-up module, used to pop up an inquiry interface to inquire whether to exchange the wire connected to the first pin with the wire connected to the second pin; a pin operation module, used to exchange the wire connected to the first pin with the wire connected to the second pin in response to a confirmation exchange instruction; or to keep the wire connected to the first pin and the wire connected to the second pin as they are in response to a cancellation exchange instruction.
[0026] In one possible design, the device also includes: a document generation module, used to generate a wire change circuit board document, wherein the wire change circuit board document includes the name of the circuit board where the wire change occurs, the chip position number of the chip where the wire change occurs, the pin number of the pin where the wire change occurs, the global name of the wire connected to the pin where the wire change occurs before the wire change, and the global name of the wire connected to the pin where the wire change occurs after the wire change; a document sending module, used to send the wire change circuit board document to a server.
[0027] In a possible design, the device also includes: a grouping module, which is used to divide multiple chips of the same chip type into a preliminary screening line adjustment group according to the chip type; obtain multiple pins allowed to be adjusted in the preliminary screening line adjustment group, and power supply pins corresponding to the multiple pins, wherein the multiple pins allowed to be adjusted are pins whose functions can be configured; divide pins with the same power supply voltage corresponding to the power supply pins into a final selection line adjustment group, wherein the final selection line adjustment group is the determined line adjustment group.
[0028] In a fifth aspect, an embodiment of the present application provides an electronic device, including the method described in the above-mentioned first aspect or any optional implementation of the first aspect.
[0029] In a sixth aspect, the present application provides a readable storage medium having an executable program stored thereon, and the executable program, when executed by a processor, executes the method described in the first aspect or any optional implementation of the first aspect.
[0030] In a seventh aspect, the present application provides an executable program product, which, when running on a computer, enables the computer to execute the method in the first aspect or any possible implementation of the first aspect.
[0031] In order to make the above-mentioned objectives, features and advantages to be achieved by the embodiments of the present application more obvious and understandable, the following specifically cites preferred embodiments and describes them in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0033] Figure 1 A schematic diagram of a process flow of a circuit board wire adjustment method provided in an embodiment of the present application is shown;
[0034] Figure 2A schematic flow chart showing some steps of a circuit board conductor adjustment method provided in an embodiment of the present application;
[0035] Figure 3 A schematic diagram showing a specific implementation of a circuit board wire adjustment method provided in an embodiment of the present application;
[0036] Figure 4 Shows Figure 1 A flowchart of the specific steps of step S130;
[0037] Figure 5 A structural block diagram of a circuit board wire adjustment device provided in an embodiment of the present application is shown;
[0038] Figure 6 A structural block diagram of a specific implementation of a circuit board wire adjustment device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION
[0039] In the comparative embodiment, in the design stage of the PCB board, in order to reduce the number of vias of the wires on the PCB board, or to reduce the wiring length of the wires, it is usually necessary to adjust the wires connected to some chip pins. The connection relationship of the wires on the PCB board is determined by the schematic diagram, so the adjustment of the wires needs to be performed on the PCB design drawing and the schematic diagram at the same time.
[0040] In the prior art, when drawing a PCB design, a PCB designer usually changes the wires connected to the pins in the PCB design. After making the changes, the PCB designer sends the PCB design with the changed wires to the schematic designer, who determines in principle whether the wire changes are correct based on the schematic.
[0041] The wires connected to the pins in the PCB design are usually named with global names, while the wires connected to the pins in the schematic are usually named with local names. Therefore, before making judgments based on the principles, the schematic designer needs to match the wire names in the PCB design with the wire names in the schematic according to the comparison table of global names and local names. Manually matching the wire names of the two drawings brings a lot of work to the schematic designer.
[0042] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.
[0043] See also Figure 1 , Figure 1The circuit board wire adjustment method provided in the embodiment of the present application is shown. The method can be performed by a circuit board wire adjustment device. The circuit board wire adjustment device can be applied to a terminal used by a schematic designer. The terminal can be a mobile terminal such as a mobile phone or a tablet computer, or a computer. The method specifically includes the following steps S110 to S140:
[0044] Step S110, receiving a schematic diagram viewing change request, and sending a wire name change acquisition request to a server.
[0045] The schematic diagram change viewing request is a request for viewing the schematic diagram after the wire is changed.
[0046] The wire name change acquisition request is a request for acquiring the global name of the changed wire, and in response to the schematic view change request, a request is made to the server to acquire the global name of the changed wire.
[0047] Step S120, receiving the pin wire name information returned by the server.
[0048] The pin and wire name information includes multiple pin numbers and the global name of the wire connected to each of the multiple pin numbers after the change. The pin corresponding to each pin number has the wire connected to it changed in the circuit board design drawing.
[0049] Step S130: updating the local name of the wire connected to the corresponding pin number in the schematic diagram according to the mapping relationship between the global name and the local name.
[0050] Among them, the schematic diagram is a working principle diagram of the circuit board design diagram.
[0051] Let's assume that the wire connected to the pin with pin number a has changed as follows: the wire with the original global name ABC001 has changed to the wire with the global name XYZ010. The wire connected to the pin with pin number b has changed as follows: the wire with the original global name XYZ010 has changed to the wire with the global name ABC001. That is, the wires connected to the pin with pin number a and the pin with pin number b have been swapped.
[0052] Suppose the local name of the wire with global name ABC001 is c001, and the local name of the wire with global name XYZ010 is z010. Then, the name of the wire connected to the pin with pin number a in the schematic diagram can be changed from c001 to z010, and the name of the wire connected to the pin with pin number b can be changed from z010 to c001.
[0053] Step S140, displaying the schematic diagram after changing the local name.
[0054] After receiving the request to view the changed schematic diagram, the circuit board wire adjustment device will first obtain the pin wire name information from the server, and the pin wire name information includes the pin number of the pin whose connected wire has been changed, and the global name of the wire connected to each pin number. The circuit board wire adjustment device can update the local name of the wire connected to the corresponding pin number in the schematic diagram according to the mapping relationship between the global name and the local name.
[0055] The above method realizes the interchange of local names of changed wires in the schematic diagram, so that the schematic designer can directly determine whether the changed wires in the schematic diagram meet the requirements from the principle perspective, without the need to manually replace the names by comparing the mapping relationship between the global name and the local name, thereby reducing the workload of the schematic designer.
[0056] Optionally, see Figure 4 In a specific implementation, step S130 may specifically include the following steps S131 to S133:
[0057] Step S131, according to the chip number of the chip with the wire changed in the circuit board design drawing, searching the schematic diagram for the chip with the same chip number.
[0058] Step S132, according to the pin number of the chip where the wire is changed in the circuit board design drawing, searching for the pin with the same pin number in the corresponding chip in the schematic diagram.
[0059] Step S133, for the same pin in the circuit board design and the schematic diagram, perform the following operations:
[0060] If a pin in the circuit board design is left unconnected and the same pin in the schematic is connected to a wire, delete the wire connected to the same pin in the schematic and mark the same pin with a deletion mark.
[0061] If a pin in the circuit board design is connected to a wire, and the same pin in the schematic is left unconnected, a wire is added to the same pin in the schematic, and a mark indicating the addition is given to the same pin, wherein the name of the added wire is a local name corresponding to the global name of the pin in the circuit board design;
[0062] If the same pin in the circuit board design and the schematic is connected to a wire, the name of the wire connected to the pin in the schematic is changed to a local name corresponding to the global name of the wire connected to the pin in the circuit board design, and the same pin in the schematic is marked with a mark indicating the change.
[0063] According to the mapping relationship between global names and local names, the change relationship of the pin connection of the circuit board design can be directly reflected in the schematic diagram, and different changes correspond to different marks, such as marks representing deletions, marks representing additions, and marks representing changes, which can all be displayed in different colors. The local name before the change can also be marked next to the mark representing the change. The above method makes it easier for schematic designers to understand the changes in the pins more intuitively and enables schematic designers to make judgments more conveniently from the principle.
[0064] It can be understood that the above-mentioned changed schematic is a revocable schematic. If the schematic designer wants to reject the wire change made by the circuit board designer, he can restore the schematic to its original state by triggering the undo action. If the schematic designer agrees with the wire change identification of the circuit board designer and can perform the confirmation action, the marking traces of the schematic can be absorbed, and the changed schematic can be used as a new schematic. The schematic designer does not need to manually delete wires, add wires, or change the local names of wires.
[0065] Optionally, in the process of adding a connecting wire to the same pin in the schematic diagram, the direction of the pin can be determined so that the connecting wire and the pin are in the same direction and extend from the position of the pin. The length of the extended connecting wire can be determined based on the local name of the connecting wire. For example, the number of characters in the wire name can be obtained, and the length of the connecting wire corresponding to the number of characters can be determined, and then it can be determined whether the space corresponding to the length of the connecting wire will intersect with other wires. If not, the wire is drawn in the schematic diagram; if so, the length of the wire can be shortened so that the wire does not intersect with other wires.
[0066] Optionally, after step S140, the method further includes: receiving a line adjustment rejection instruction, and sending line adjustment rejection information to the server; or receiving a line adjustment confirmation instruction, updating the schematic diagram and generating a netlist document of the updated schematic diagram; and uploading the netlist document to the server.
[0067] After the schematic designer determines whether the changed wires in the schematic meet the requirements from a principle perspective, two results can be obtained: the requirements are met or the requirements are not met.
[0068] If the schematic designer determines that the changed wire does not meet the requirements from a principle perspective, a wire adjustment rejection instruction can be triggered, causing the circuit board wire adjustment device to send wire adjustment rejection information to the server; if the schematic designer determines that the changed wire meets the requirements from a principle perspective, a wire adjustment confirmation instruction can be triggered, causing the circuit board wire adjustment device to update the schematic according to the changed wire and generate a netlist document corresponding to the updated schematic.
[0069] The operation of updating the schematic diagram by the circuit board wire adjustment device includes the following operations: deleting the wire connected to the pin of a chip in the schematic diagram, adding the wire connected to the pin of a chip, and changing the local name of the wire connected to the pin of a chip.
[0070] The netlist document records the information of the updated schematic diagram. After the netlist document is uploaded to the server, the circuit board designer can actively obtain the latest netlist document from the server so that the circuit board design drawing can be consistent with the schematic diagram based on the latest netlist document stored in the server.
[0071] Optionally, before step S130, the method may further include: establishing a mapping relationship between the global name and the local name.
[0072] See also Figure 2 , establish a mapping relationship between the global name and the local name, which can be specifically implemented through steps S210 to S250:
[0073] Step S210, searching the schematic diagram for a chip with the same chip number according to the chip number of the chip with the wire changed in the circuit board design drawing.
[0074] The chip number is the unique identification information of the chip. If the chip number is the same in the circuit board design and the schematic diagram, it means that they are the same chip. Therefore, the chip with the changed sending wire can be found in the schematic diagram based on the chip number.
[0075] Step S220, according to the pin number of the chip where the wire is changed in the circuit board design drawing, searching for the pin with the same pin number in the corresponding chip in the schematic diagram.
[0076] After the chip is determined in the schematic diagram, different pin numbers represent unique pins in the same chip. Therefore, the same pins can be determined in the schematic diagram based on the pin numbers of the pins where the wires are changed in the circuit board design.
[0077] Step S230, obtaining the global name of the wire before the change to which the pin corresponding to the pin number of the wire change is connected in the circuit board design drawing.
[0078] Step S240, obtaining the local name of the wire connected to the pin having the same pin number as the pin in the schematic diagram.
[0079] After the pin is determined in the schematic diagram, the global name of the wire connected to the pin in the circuit board design before the wire change occurs and the local name of the wire connected to the pin in the schematic diagram can be obtained respectively.
[0080] Step S250: establishing a mapping relationship between the global name and the local name.
[0081] The wire connected in the circuit board design before the change is the same as the wire connected in the schematic diagram, so a mapping relationship between the global name and the local name of the two is established.
[0082] The mapping relationship between the global name and the local name can be established in advance, or it can be established on the spot according to the above scheme when the local name of the wire needs to be obtained. The timing of establishing the mapping relationship should not be understood as a limitation of the present application.
[0083] See also Figure 3 , Figure 3 A flow chart of a specific implementation of a circuit board wire adjustment method provided in an embodiment of the present application is shown. The method is performed by a circuit board wire adjustment device. The circuit board wire adjustment device can be applied to a terminal used by a circuit board designer. The terminal can be a mobile terminal such as a mobile phone or a tablet computer, or a computer. The method specifically includes the following steps S310 to S340:
[0084] Step S310: receiving a first pin selection request, selecting a first pin corresponding to the first pin selection request, and marking pins that belong to the same line adjustment group as the first pin.
[0085] The circuit board designer can trigger the first pin selection request in a variety of ways. For example, the circuit board designer can select the first pin by clicking the first pin in the circuit board design drawing with a mouse, or can select the first pin by clicking the first pin in the circuit board design drawing displayed on the touch screen interface with a finger. The specific method of triggering the first pin selection request should not be understood as a limitation to the present application.
[0086] Among multiple pins belonging to the same wire adjustment group, the wires connected between two pins can be changed. After the circuit board designer selects the first pin, the pins in the same wire adjustment group as the first pin are marked, so that the circuit board designer can select the appropriate pin and change the wires connected between the two pins.
[0087] Optionally, when marking pins in the same line adjustment group as the first pin, the pins in the same line adjustment group can be set to be highlighted, or the pins in the same line adjustment group can be marked with special symbols. The specific marking method should not be understood as a limitation to the present application.
[0088] Step S320: receiving a second pin selection request, and selecting a second pin among the pins belonging to the same line adjustment group as the first pin.
[0089] The circuit board designer can trigger the second pin selection request in a variety of ways. For example, the circuit board designer can select the second pin by clicking the second pin in the circuit board design drawing with a mouse, or can select the second pin by clicking the second pin in the circuit board design drawing displayed on the touch screen interface with a finger. The specific method of triggering the second pin selection request should not be understood as a limitation to the present application.
[0090] Step S330: a query interface pops up to inquire whether to swap the wire connected to the first pin with the wire connected to the second pin.
[0091] Step S340, in response to confirming the exchange instruction, exchanging the wire connected to the first pin and the wire connected to the second pin; or in response to canceling the exchange instruction, keeping the wire connected to the first pin and the wire connected to the second pin as they are.
[0092] When the second pin is selected by the circuit board designer, the circuit board wire adjustment device can pop up an inquiry interface to inquire whether to interchange the wires connected to the first pin and the second pin, and complete or cancel the interchange between the two according to the circuit board designer's choice.
[0093] The circuit board designer may repeat the above steps S310 to S340 for multiple times, thereby realizing the change of multiple pin connection wires.
[0094] Optionally, after exchanging the wire connected to the first pin and the wire connected to the second pin in response to the confirmation of the exchange instruction, the method further includes:
[0095] Generate a wire change circuit board document, wherein the wire change circuit board document includes the name of the circuit board where the wire change occurs, the chip position number of the chip where the wire change occurs, the pin number of the pin where the wire change occurs, the global name of the wire connected to the pin where the wire change occurs before the wire change, and the global name of the wire connected to the pin where the wire change occurs after the wire change; send the wire change circuit board document to a server.
[0096] Optionally, the above-mentioned wire change circuit board document can be generated when the circuit board designer selects the first pin, and the document can be named after the circuit board name. In addition to recording the name of the circuit board where the wire change occurs, the chip number of the chip where the wire change occurs, the pin number of the pin where the wire change occurs, the global name of the wire connected to the pin where the wire change occurs before the wire change, and the global name of the wire connected to the pin where the wire change occurs after the wire change, the wire change circuit board document can also record the chip model.
[0097] Optionally, the first pin and the second pin may both be connected to wires, and the first pin and the second pin are selected to interchange the wires connected to the two pins; only one of the first pin and the second pin may be connected to a wire, and it is assumed that the first pin is connected to a wire and the second pin is not connected, and the first pin and the second pin are selected to change the wire from being connected to the first pin to being connected to the second pin. The wire name corresponding to the pin that is not connected to a wire can be represented by NULL.
[0098] After the circuit board wire adjustment device completes the wire exchange of two pins, a wire change circuit board document can be automatically generated. The wire change circuit board document records the name of the circuit board where the wire change occurs, the chip number where the wire change occurs, the pin number where the wire change occurs, and the global name of the wires connected to the pin that sent the wire change before and after the wire change. The wire change circuit board document will be sent to the server so that when the schematic designer wants to view the changed schematic, the circuit board wire adjustment device obtains the pin wire name information in the wire change circuit board document from the server. The schematic designer can reject the questionable wire adjustment, and the schematic designer and the circuit board designer can repeat the interactive action until the wire adjustment is completed.
[0099] Optionally, before step S310, the method further includes: dividing multiple chips of the same chip type into a preliminary screening line adjustment group according to the chip type; obtaining multiple pins allowed to be adjusted in the preliminary screening line adjustment group, and power supply pins corresponding to the multiple pins, wherein the multiple pins allowed to be adjusted are pins whose functions can be configured; dividing pins with the same power supply voltage corresponding to the power supply pins into a final selection line adjustment group, wherein the final selection line adjustment group is the determined line adjustment group.
[0100] Chip types include complex programmable logic device (CPLD) chip, field programmable gate array (FPGA) chip, general-purpose input / output (GPIO) chip, switching chip, physical layer interface (PHY) chip, etc.
[0101] Multiple chips of the same chip type can be first divided into the same group, and then for multiple pins in the same group that are allowed to be adjusted, the power supply pins corresponding to each pin are obtained respectively, and the pins with the same power supply voltage are divided into the final adjustment group, thereby realizing the pin grouping process. The wires connecting the pins in the final adjustment group are interchangeable.
[0102] After determining the line adjustment grouping, the chip model, chip type, pin number allowed to be adjusted, power supply pin corresponding to the pin with the pin number allowed to be adjusted, and the pin line adjustment grouping can be stored in the chip database. The chip database can be located in the circuit board wire adjustment device or in the server.
[0103] Next, the circuit board wire adjustment method is explained with a specific example:
[0104] Assume that the PCB name is PB030MBH010, and the circuit board designer wants to swap the wires connected to pin A17 and pin B22 in the chip with position number U22 in the PCB design. The model of the chip with position number U22 is *010677, the global name of the wire connected to pin A17 in the PCB design is PORT_LED22, and the global name of the wire connected to pin B22 in the PCB design is RESET_PHY.
[0105] When the PCB designer selects one of A17 or B22 (let's assume that A17 is selected first), since A17 and B22 belong to the same wire adjustment group, the other one will also be marked by the PCB wire adjustment device. At this time, a wire change PCB document PB030MBH010.txt with the same name as the assumed PCB name can be generated. After the PCB designer selects A17 and B22 successively, an inquiry interface pops up to ask whether to swap the wire connected to A17 with the wire connected to B22. After receiving the confirmation exchange instruction triggered by the PCB designer, the following content can be recorded in the document PB030MBH010.txt:
[0106] PCB:PB030MBH010
[0107] Part Reference:U22
[0108] Part Number:*010677
[0109] Pin Number Forward Net After Net
[0110] A17; PORT_LED22; RESET_PHY
[0111] B22; RESET_PHY; PORT_LED22
[0112] This document can be sent to the server by the circuit board wire adjustment device. A folder with the same name as the document PB030MBH010.txt can be created on the server: PB030MBH010 folder.
[0113] When the schematic designer wants to request to view the schematic after the wire is changed, the circuit board wire adjustment device sends a request to obtain the changed wire name to the server, thereby obtaining the above document, or part of the content in the above document: multiple pins of the wire whose connections have been changed, and the global name of the changed wire connected to each pin number among multiple pin numbers.
[0114] Then, the circuit board wire adjustment device can directly establish a mapping relationship between the global name and the local name, and then update the local name of the wire connected to the corresponding pin number in the schematic diagram based on the mapping relationship; it can also update the local name of the wire connected to the corresponding pin number in the schematic diagram based on a pre-established mapping relationship.
[0115] Subsequently, the schematic designer directly determines whether the changed wires in the schematic diagram meet the requirements from the principle point of view. If it is determined that the requirements are met, the circuit board wire adjustment device can update the schematic diagram.
[0116] The schematic diagram is updated by the Candence background TCL script, and the execution code is as follows:
[0117] Delete the signal line on the pin
[0118] set lend[$Pin_DboWire GetEndPoint$lStatus]
[0119] set lendx[expr[DboTclHelper_sGetCPointX$lend].0 / 100]
[0120] set lendy[expr[DboTclHelper_sGetCPointY$lend].0 / 100]
[0121] SelectObject$lendx$lendy 0
[0122] Delete
[0123] Draw signal lines and give them names
[0124] PlaceWire$PinEndx$PinEndy$NewOverX$PinEndy
[0125] set NewMidX[expr$PinEndx+0.1]
[0126] PlaceNetAlias$NewMidX$PinEndy$Pin_NewNetName
[0127] Wire name change
[0128] DboAlias_SetName$Wire_DboAlias$CsPin_NewNetName
[0129] After the schematic diagram is updated, the circuit board wire adjustment device can automatically generate a netlist document of the updated schematic diagram; and upload the netlist document to the server. During the uploading process, a folder PB030MBH010_netlist_1 can be created under the PB030MBH010 folder on the server. The newly generated netlist document is stored in the folder PB030MBH010_netlist_1.
[0130] If there is a new automatically generated netlist document, you can create a new folder under the PB030MBH010 folder on the server: PB030MBH010_netlist_2 folder to store the updated netlist document.
[0131] Similarly, when the netlist document is generated for the nth time, a new folder will be created under the PB030MBH010 folder on the server: PB030MBH010_netlist_n folder.
[0132] The circuit board designer actively obtains the latest netlist document from the server so that the circuit board design drawing can be consistent with the schematic diagram based on the latest netlist document stored in the server.
[0133] PCB:PB030MBH010
[0134] Part Reference:U22
[0135] Part Number:*010677
[0136] Netlist:PB030MBH010_netlist_n
[0137] Pin Number Forward Net After Net
[0138] A17; PORT_LED22; RESET_PHY
[0139] B22; RESET_PHY; PORT_LED22
[0140] See also Figure 5 , Figure 5The circuit board wire adjustment device provided in an embodiment of the present application is shown, which is applied to a circuit board wire adjustment device. The device 400 includes:
[0141] The request sending module 410 is used to receive a request to change the schematic diagram view and send a request to change the wire name to the server.
[0142] The wire name receiving module 420 is used to receive the pin wire name information returned by the server, wherein the pin wire name information includes multiple pin numbers and the global name of the changed wire connected to each pin number in the multiple pin numbers, and the pins corresponding to each pin number are all connected to the changed wires in the circuit board design drawing.
[0143] The mapping change module 430 is used to update the local name of the wire connected to the corresponding pin number in the schematic diagram according to the mapping relationship between the global name and the local name, wherein the schematic diagram is the working principle diagram of the circuit board design diagram.
[0144] The image display module 440 is used to display the schematic diagram after the local name is changed.
[0145] The device also includes:
[0146] The mapping relationship establishing module is used to establish a mapping relationship between the global name and the local name.
[0147] The mapping relationship establishment module is specifically used to search for a chip corresponding to the same chip position number in the schematic diagram according to the chip position number of the chip whose wire has been changed in the circuit board design diagram; search for a pin with the same pin number in the corresponding chip in the schematic diagram according to the pin number of the chip whose wire has been changed in the circuit board design diagram; obtain the global name of the wire before the change connected to the pin corresponding to the pin number with the wire change in the circuit board design diagram; obtain the local name of the wire connected to the pin with the same pin number in the schematic diagram; and establish a mapping relationship between the global name and the local name.
[0148] The line adjustment operation module is used to receive a line adjustment rejection instruction and send line adjustment rejection information to the server; or receive a line adjustment confirmation instruction, update the schematic diagram and generate a netlist document of the updated schematic diagram; and upload the netlist document to the server.
[0149] Figure 5 The circuit board wire adjustment device shown is Figure 1 The circuit board conductor adjustment method shown is the same and will not be described in detail here.
[0150] See also Figure 6 , Figure 6The circuit board wire adjustment device provided in an embodiment of the present application is shown, which is applied to a terminal used by a circuit board designer. The device 500 includes:
[0151] The first pin selection module 510 is used to receive a first pin selection request, select a first pin corresponding to the first pin selection request, and mark pins belonging to the same wire adjustment group as the first pin, wherein among the multiple pins belonging to the same wire adjustment group, the wires connected between two pins can be changed with each other.
[0152] The second pin selection module 520 is used to receive a second pin selection request and select a second pin among the pins belonging to the same line adjustment group as the first pin.
[0153] The inquiry interface pop-up module 530 is used to pop up an inquiry interface to inquire whether to swap the wire connected to the first pin with the wire connected to the second pin.
[0154] The pin operation module 540 is used to exchange the wire connected to the first pin and the wire connected to the second pin in response to the confirmation exchange instruction; or to keep the wire connected to the first pin and the wire connected to the second pin as they are in response to the cancellation exchange instruction.
[0155] The device also includes:
[0156] A document generation module is used to generate a conductor change circuit board document, wherein the conductor change circuit board document includes the name of the circuit board where the conductor change occurs, the chip position number of the chip where the conductor change occurs, the pin number of the pin where the conductor change occurs, the global name of the conductor connected to the pin where the conductor change occurs before the conductor change, and the global name of the conductor connected to the pin where the conductor change occurs after the conductor change.
[0157] The document sending module is used to send the wire change circuit board document to the server.
[0158] A grouping module is used to group multiple chips of the same chip type into a preliminary screening line adjustment group according to the chip type; obtain multiple pins allowed to be adjusted in the preliminary screening line adjustment group, and power supply pins corresponding to the multiple pins, wherein the multiple pins allowed to be adjusted are pins whose functions can be configured; and group pins with the same power supply voltage corresponding to the power supply pins into a final selection line adjustment group, wherein the final selection line adjustment group is the determined line adjustment group.
[0159] Figure 6 The circuit board wire adjustment device shown is Figure 2 The circuit board wire adjustment method shown corresponds to the above, which will not be described in detail here.
[0160] The circuit board wire adjustment method and device provided in the embodiment of the present application can realize the change of connecting wires across chips of the same type; and enable circuit board designers and schematic designers to interact more timely, converting the original serial working mode into parallel working, thereby improving efficiency; the circuit board wire adjustment device can also automatically modify the schematic diagram according to the circuit diagram line adjustment requirements, thereby avoiding errors caused by human negligence.
[0161] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.
[0162] In addition, the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0163] Furthermore, the functional modules in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
[0164] In this document, relational terms such as first and second, etc. are used merely to distinguish one entity or operation from another entity or operation, but do not necessarily require or imply any such actual relationship or order between these entities or operations.
[0165] The above description is only an embodiment of the present application and is not intended to limit the protection scope of the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims
1. A circuit board conductor adjustment method, It is characterized in that The method comprises: Receive a request to change the schematic diagram view, and send a request to the server to change the wire name; Receive the pin and wire name information returned by the server, wherein the pin and wire name information includes multiple pin numbers and the global name of the wire connected to each of the multiple pin numbers after the change, and the pins corresponding to each pin number are all connected to the wires changed in the circuit board design drawing; According to the mapping relationship between the global name and the local name, the local name of the wire connected to the corresponding pin number in the schematic diagram is updated, wherein the schematic diagram is a working principle diagram of the circuit board design diagram; Showing a schematic with said local name changed.
2. The method according to claim 1, It is characterized in that Before updating the local name of the wire connected to the corresponding pin number in the schematic diagram according to the mapping relationship between the global name and the local name, the method further includes: A mapping relationship between the global name and the local name is established.
3. The method according to claim 2, It is characterized in that The establishing of a mapping relationship between the global name and the local name includes: According to the chip number of the chip with the wire changed in the circuit board design diagram, searching the schematic diagram for the chip with the same chip number; According to the pin number of the chip where the wire is changed in the circuit board design drawing, searching for the pin with the same pin number in the corresponding chip of the schematic diagram; Get the global name of the wire before the change connected to the pin corresponding to the pin number where the wire has been changed in the circuit board design; Obtain the local name of the wire connected to the pin with the same pin number in the schematic diagram; A mapping relationship between the global name and the local name is established.
4. The method according to claim 1, It is characterized in that After displaying the schematic diagram with the local name changed, the method further includes: receiving a line transfer rejection instruction, and sending a line transfer rejection message to the server; or receiving a line adjustment confirmation instruction, updating the schematic diagram and generating a netlist document of the updated schematic diagram; The netlist document is uploaded to the server.
5. The method according to claim 1, It is characterized in that The updating of the local name of the wire connected to the corresponding pin number in the schematic diagram according to the mapping relationship between the global name and the local name includes: According to the chip number of the chip with the wire changed in the circuit board design diagram, searching the schematic diagram for the chip with the same chip number; According to the pin number of the chip where the wire is changed in the circuit board design drawing, searching for the pin with the same pin number in the corresponding chip of the schematic diagram; For the same pin in the circuit board design and the schematic diagram, perform the following operations: If a pin of the circuit board design drawing is left unconnected and the same pin in the schematic drawing is connected to a wire, the wire connected to the same pin in the schematic drawing is deleted, and a mark indicating deletion is marked on the same pin; If a pin of the circuit board design is connected to a wire, and the same pin in the schematic diagram is left unconnected, a wire connected to the same pin in the schematic diagram is added, and a mark indicating the addition is given to the same pin, wherein the name of the added wire is a local name corresponding to the global name of the pin in the circuit board design; If the same pin in the circuit board design and the schematic diagram is connected to a wire, the name of the wire connected to the pin in the schematic diagram is changed to a local name corresponding to the global name of the wire connected to the pin in the circuit board design, and the same pin in the schematic diagram is marked with a mark indicating the change.
6. A method for adjusting a circuit board conductor. It is characterized in that The method comprises: In response to a first pin selection request, a first pin corresponding to the first pin selection request is selected, and pins belonging to the same wire adjustment group as the first pin are marked, wherein wires connected between two or more pins belonging to the same wire adjustment group can be changed mutually; receiving a second pin selection request, and selecting a second pin among pins belonging to the same line adjustment group as the first pin; A query interface is popped up to inquire whether to swap the wire connected to the first pin with the wire connected to the second pin; In response to confirming the exchange instruction, exchanging the wire connected to the first pin with the wire connected to the second pin; or In response to the cancel exchange instruction, the wire connected to the first pin and the wire connected to the second pin are kept as they are.
7. The method according to claim 6, It is characterized in that After receiving the confirmation exchange instruction and exchanging the wire connected to the first pin with the wire connected to the second pin, the method further includes: Generate a wire-changed circuit board document, wherein the wire-changed circuit board document includes the name of the circuit board where the wire change occurs, the chip number of the chip where the wire change occurs, the pin number of the pin where the wire change occurs, the global name of the wire connected to the pin where the wire change occurs before the wire change occurs, and the global name of the wire connected to the pin where the wire change occurs after the wire change occurs; The wire change circuit board document is sent to a server.
8. The method according to claim 6, It is characterized in that Before receiving the first pin selection request and selecting the first pin corresponding to the first pin selection request, the method further includes: According to the chip type, multiple chips of the same chip type are divided into preliminary screening adjustment line groups; Acquire multiple pins that are allowed to be adjusted in the initially screened line adjustment group, and power supply pins corresponding to the multiple pins, wherein the multiple pins that are allowed to be adjusted are pins whose functions can be configured; Pins corresponding to the power supply pins and having the same power supply voltage are divided into final selected line adjustment groups, wherein the final selected line adjustment groups are the determined line adjustment groups.
9. A circuit board wire adjustment device, It is characterized in that The device comprises: A request sending module is used to receive a request to change the schematic diagram view and send a request to change the wire name to the server; A wire name receiving module, used to receive the pin wire name information returned by the server, wherein the pin wire name information includes multiple pin numbers and the global name of the wire connected to each of the multiple pin numbers after the change, and the pins corresponding to each pin number are all wires whose connection has been changed in the circuit board design drawing; A mapping change module, used for updating the local name of the wire connected to the corresponding pin number in the schematic diagram according to the mapping relationship between the global name and the local name, wherein the schematic diagram is a working principle diagram of the circuit board design diagram; The image display module is used to display the schematic diagram with the local name changed.
10. A circuit board wire adjustment device, It is characterized in that The device comprises: A first pin selection module is used to receive a first pin selection request, select a first pin corresponding to the first pin selection request, and mark pins belonging to the same wire adjustment group as the first pin, wherein among the multiple pins belonging to the same wire adjustment group, wires connected between two pins can be changed mutually; A second pin selection module, used for receiving a second pin selection request, and selecting a second pin among pins belonging to the same line adjustment group as the first pin; An inquiry interface pop-up module, used to pop-up an inquiry interface to inquire whether to swap the wire connected to the first pin with the wire connected to the second pin; The pin operation module is used to exchange the wire connected to the first pin and the wire connected to the second pin in response to the confirmation exchange instruction; or to keep the wire connected to the first pin and the wire connected to the second pin as they are in response to the cancellation exchange instruction.
