Data detection method and apparatus, storage medium, and electronic device
By setting key data links for multi-source input data in circuit board layout design and using target programs for layout and testing, the problem of time-consuming and easily overlooked manual determination of input data is solved, realizing an automated and efficient design process.
Patent Information
- Application Number
- CN202211582068.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-09
- Publication Date
- 2025-12-05
- Estimated Expiration
- 2042-12-09
AI Technical Summary
In circuit board layout design, it is necessary to manually determine whether the input data meets the design requirements, which is time-consuming and may result in omissions.
By setting key data links for multi-source input data, the target program runs these links to place key components in the circuit board layout, obtains the layout results, and checks whether the data meets the design requirements based on the layout results.
The automated data inspection process reduces manual intervention time, lowers the risk of omissions, and improves the efficiency and accuracy of circuit board layout design.
Smart Images

Figure CN115841093B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computers, and more specifically, to a data detection method and apparatus, a storage medium, and an electronic device. Background Technology
[0002] Currently, there are several printed circuit board (PCB) design software programs on the market. Cadence, as the most widely used software in the industry, boasts powerful functions and is supported by multiple related software programs. It provides open secondary development interfaces and a relatively complete development language library, allowing users to modify and develop programs according to their own needs. The Skill programming language is a high-level programming language built into Cadence, based on C and LISP languages. Cadence provides a rich set of interactive functions for the Skill language.
[0003] In the early stages of circuit board product design, engineers from various fields confirm the development requirements and product specifications before starting the design and development process. Once the design data is completed, it will be provided to the circuit board layout engineer (hereinafter referred to as the Layout engineer) to initiate the design and development of the circuit board. The Layout engineer will then perform a physical board-side design of the product design data.
[0004] In the relevant technologies, the circuit board layout design requires manual verification of whether the input data meets the design requirements, which is time-consuming and may result in omissions. No effective solution has yet been proposed. Summary of the Invention
[0005] This application provides a data detection method and apparatus, storage medium, and electronic device to at least solve the problem in related technologies where manual determination of whether input data meets design requirements is required in circuit board layout design, which is time-consuming and may result in omissions.
[0006] According to one embodiment of this application, a data detection method is provided, comprising: acquiring multi-source input data required for circuit board layout, and setting data key links for the multi-source input data, wherein the data key links are used to link all the multi-source input data; running the multi-source input data with the data key links set by a target program to lay out key components in the circuit board layout, and obtaining a layout result; and detecting whether the multi-source input data needs to meet the design requirements of the circuit board layout based on the layout result.
[0007] In one exemplary embodiment, setting a data key link for the multi-source input data includes: obtaining data relationships between the multi-source input data; and setting a data key link for the multi-source input data based on the data relationships between the multi-source input data.
[0008] In one exemplary embodiment, the method for obtaining data relationships between the multi-source input data further includes: when the multi-source input data includes file-type data, image-type data, and board-end input data, obtaining a first data relationship between a first part number and a second part number, a second data relationship between the second part number and a third part number, and a third data relationship between the first part number and the third part number, wherein the first part number is a part number in the file-type data, the second part number is a part number in the image-type data, and the third part number is a part number in the board-end input data.
[0009] In one exemplary embodiment, setting a data key link for the multi-source input data based on the data relationships between the multi-source input data includes: setting a first data key link for the file-type data based on the first data relationship and the third data relationship; setting a second data key link for the image-type data based on the first data relationship and the second data relationship; and setting a third data key link for the board-end input data based on the second data relationship and the third data relationship.
[0010] In an exemplary embodiment, after setting a data key link for the multi-source input data based on the data relationships between the multi-source input data, the method further includes: running the first data key link, the second data key link, and the third data relationship link to link the file-type data, the image-type data, and the board-end input-type data through the part number, wherein the part number includes: the first part number, the second part number, and the third part number.
[0011] In one exemplary embodiment, a target program runs multi-source input data with the data key links configured to lay out key components in the circuit board layout and obtain a layout result. This includes: acquiring integrated board-side data after integrating the multi-source input data according to the data key links, wherein the integrated board-side data has synchronized the file-type data, the image-type data, and the board-side input data; and aligning and laying out component reference numbers according to the integrated board-side data to obtain the layout result.
[0012] In one exemplary embodiment, detecting whether the multi-source input data needs to meet the design requirements of the circuit board layout based on the layout result includes at least one of the following: detecting whether the file-type data meets the design requirements of the circuit board layout based on the layout result and the first data key link; detecting whether the image-type data meets the design requirements of the circuit board layout based on the layout result and the second data key link; and detecting whether the board-end input data meets the design requirements of the circuit board layout based on the layout result and the third data key link.
[0013] According to another embodiment of this application, a data detection device is provided, comprising: a setting module, configured to acquire multi-source input data required for circuit board layout, and set data key links for the multi-source input data, wherein the data key links are used to link all the multi-source input data; a running module, configured to run the multi-source input data with the data key links set through a target program to lay out key components in the circuit board layout and obtain a layout result; and a detection module, configured to detect whether the multi-source input data needs to meet the design requirements of the circuit board layout based on the layout result.
[0014] According to another embodiment of this application, a computer-readable storage medium is also provided, wherein a computer program is stored in the computer-readable storage medium, and the computer program is configured to execute the above-described data detection method at runtime.
[0015] According to another embodiment of this application, an electronic device is also provided, including a memory and a processor, wherein the memory stores a computer program and the processor is configured to run the computer program to perform the above-described data detection method.
[0016] This application obtains multi-source input data required for circuit board layout and sets key data links for the multi-source input data, wherein the key data links are used to connect all the multi-source input data. A target program runs the multi-source input data with the key data links set to lay out key components in the circuit board layout, obtaining a layout result. Based on the layout result, it is determined whether the multi-source input data meets the design requirements of the circuit board layout. In other words, by setting key data links for the multi-source input data, all multi-source input data are linked, allowing for the layout of key components in the circuit board layout based on the key data links, and enabling the determination of whether the multi-source input data meets the design requirements of the circuit board layout based on the obtained layout result and the key data links. Therefore, it solves the problems in related technologies where, in circuit board layout design, manual determination of whether input data meets design requirements is required, which is time-consuming and may result in omissions. Attached Figure Description
[0017] Figure 1 This is a hardware structure block diagram of a computer terminal for a data detection method according to an embodiment of this application;
[0018] Figure 2 This is a flowchart of an optional data detection method according to an embodiment of this application;
[0019] Figure 3 This is a flowchart of another optional data detection method according to an embodiment of this application;
[0020] Figure 4 This is a schematic diagram of a part number according to an optional data detection method based on an embodiment of this application;
[0021] Figure 5 This is a schematic diagram of a circuit diagram of an optional data detection method according to an embodiment of this application;
[0022] Figure 6 This is a schematic diagram of DXF / EMN data of an optional data detection method according to an embodiment of this application;
[0023] Figure 7 This is a schematic diagram of the key component list data of an optional data detection method according to an embodiment of this application;
[0024] Figure 8 This is a schematic diagram of image data showing the location of key components in each position in an optional data detection method according to an embodiment of this application.
[0025] Figure 9 This is a schematic diagram of the input synchronization of part number in an optional data detection method according to an embodiment of this application;
[0026] Figure 10 This is a schematic diagram of the layout of key components in an optional data detection method according to an embodiment of this application;
[0027] Figure 11 This is a schematic diagram of automatic comparison and detection analysis of circuit data for an optional data detection method according to an embodiment of this application;
[0028] Figure 12 This is a schematic diagram of the alignment of the aperture size of a mechanism hole according to an optional data detection method based on an embodiment of this application.
[0029] Figure 13 This is a schematic diagram of block data detection and height limit data detection according to an optional data detection method based on an embodiment of this application;
[0030] Figure 14This is a schematic diagram of a comparative detection result report of an optional data detection method according to an embodiment of this application;
[0031] Figure 15 This is a structural block diagram of a data detection device according to an embodiment of this application. Detailed Implementation
[0032] The embodiments of this application will be described in detail below with reference to the accompanying drawings and examples.
[0033] It should be noted that the terms "first," "second," etc., in the specification, claims, and drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence.
[0034] The methods and embodiments provided in this application can be executed on a computer terminal or similar computing device. Taking running on a computer terminal as an example, Figure 1 This is a hardware structure block diagram of a computer terminal for a data detection method according to an embodiment of this application. Figure 1 As shown, a computer terminal may include one or more ( Figure 1 Only one is shown in the diagram. A processor 102 (which may include, but is not limited to, a microprocessor MCU or a programmable logic device FPGA, etc.) and a memory 104 for storing data are also shown. The computer terminal may further include a transmission device 106 for communication functions and an input / output device 108. Those skilled in the art will understand that... Figure 1 The structure shown is for illustrative purposes only and does not limit the structure of the computer terminal described above. For example, the computer terminal may also include components that are more complex than those described above. Figure 1 The more or fewer components shown, or having the same Figure 1 The different configurations shown.
[0035] The memory 104 can be used to store computer programs, such as application software programs and modules, like the computer program corresponding to the data detection method in this embodiment. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, thus implementing the above-described method. The memory 104 may include high-speed random access memory and non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include memory remotely located relative to the processor 102, and these remote memories can be connected to a computer terminal via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
[0036] The transmission device 106 is used to receive or send data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider for the computer terminal. In one example, the transmission device 106 includes a Network Interface Controller (NIC), which can connect to other network devices via a base station to communicate with the Internet. In another example, the transmission device 106 may be a Radio Frequency (RF) module used for wireless communication with the Internet.
[0037] This embodiment provides a data detection method that runs on the aforementioned computer terminal. Figure 2 This is a flowchart of an optional data detection method according to an embodiment of this application, such as... Figure 2 As shown, the process includes the following steps:
[0038] Step S202: Obtain the multi-source input data required for circuit board layout, and set data key links for the multi-source input data, wherein the data key links are used to link all the multi-source input data;
[0039] Step S204: Run the target program to run multi-source input data with the data key links set to lay out the key components in the circuit board layout and obtain the layout result.
[0040] Step S206: Detect whether the multi-source input data needs to meet the design requirements of the circuit board layout based on the layout result.
[0041] This application obtains multi-source input data required for circuit board layout and sets key data links for the multi-source input data, wherein the key data links are used to connect all the multi-source input data. A target program runs the multi-source input data with the key data links set to lay out key components in the circuit board layout, obtaining a layout result. Based on the layout result, it is determined whether the multi-source input data meets the design requirements of the circuit board layout. In other words, by setting key data links for the multi-source input data, all multi-source input data are linked, allowing for the layout of key components in the circuit board layout based on the key data links, and enabling the determination of whether the multi-source input data meets the design requirements of the circuit board layout based on the obtained layout result and the key data links. Therefore, it solves the problems in related technologies where, in circuit board layout design, manual determination of whether input data meets design requirements is required, which is time-consuming and may result in omissions.
[0042] Step S202 above can be implemented in multiple ways. In one optional embodiment, it can be implemented in the following way: obtaining the data relationship between the multi-source input data; setting data key links for the multi-source input data according to the data relationship between the multi-source input data.
[0043] It should be noted that multi-source input data can be divided into three types: file-based data, image-based data, and board-based input data. Each type of data contains part reference numbers. Data relationships are established between different types of data based on the part reference numbers, and key data links are set for all multi-source input data based on these relationships.
[0044] The specific scheme for setting key data links for the aforementioned multi-source input data is as follows:
[0045] 1) Obtaining the data relationships between the multi-source input data can be achieved through the following scheme: When the multi-source input data includes file-type data, image-type data, and board-end input data, obtain the first data relationship between the first part number and the second part number, the second data relationship between the second part number and the third part number, and the third data relationship between the first part number and the third part number, wherein the first part number is the part number in the file-type data, the second part number is the part number in the image-type data, and the third part number is the part number in the board-end input data.
[0046] like Figure 4 As shown, the first part number 40 is the part number for file-type data, the second part number 42 is the part number for image-type data, and the third part number 44 is the part number for board-side input data. The second part number 42 can be obtained by integrating the first part number 40 from the file-type data into the image-type data, and the third part number 44 can be obtained by identifying the second part number 42 from the image-type data and then inputting it into the board-side input data.
[0047] Specifically, a first data association is obtained based on the first part number 40 and the second part number 42, representing a data association between file-type data and image-type data; a second data association is obtained based on the second part number 42 and the third part number 44, representing a data association between image-type data and board-end input data; and a third data association is obtained based on the first part number 40 and the third part number 44, representing a data association between file-type data and board-end input data. Through these data association settings, any type of data is associated with two other types of data.
[0048] 2) Setting key data links for the multi-source input data based on the data relationships between the multi-source input data includes: setting a first key data link for the file-type data based on the first data relationship and the third data relationship; setting a second key data link for the image-type data based on the first data relationship and the second data relationship; and setting a third key data link for the board-end input data based on the second data relationship and the third data relationship.
[0049] Specifically, setting key links for the file-type data involves linking the file-type data with the image-type data and the board-entry data; setting key links for the image-type data involves linking the image-type data with the file-type data and the board-entry data; and setting key links for the board-entry data involves linking the board-entry data with the file-type data and the image-type data. By setting these key links, any one type of data can be simultaneously linked with two other types of data.
[0050] After setting data key links for the multi-source input data based on the data relationships between the multi-source input data, the method further includes: running the first data key link, the second data key link, and the third data relationship link to link the file data, the image data, and the board-end input data through the part number, wherein the part number includes: the first part number, the second part number, and the third part number.
[0051] It is understandable that by running the set first data key link, second data key link, and third data key link, it is possible to link all three forms of data in the multi-source input data to each other, provided that any one form of data in the multi-source input data has been linked to the other two forms of data, thereby linking the multi-source input data.
[0052] The target program runs multi-source input data with the data key links set to lay out key components in the circuit board layout and obtains a layout result, including: obtaining integrated board-side data after integrating the multi-source input data according to the data key links, wherein the integrated board-side data has synchronized the file data, the image data and the board-side input data; and aligning and laying out the component reference numbers according to the integrated board-side data to obtain the layout result.
[0053] Understandably, each key component corresponds to a part number. In file-type data, it corresponds to a first part number; in image-type data, it corresponds to a second part number; and in board-side input data, it corresponds to a third part number. Based on the key data links, the multi-source input data is integrated to obtain integrated board-side data. The first, second, and third part numbers are then integrated to obtain a unique part number. Key components are then aligned and laid out according to this unique part number to obtain the layout result.
[0054] Detecting whether the multi-source input data needs to meet the design requirements of the circuit board layout based on the layout result includes at least one of the following: detecting whether the file-type data meets the design requirements of the circuit board layout based on the layout result and the first data key link; detecting whether the image-type data meets the design requirements of the circuit board layout based on the layout result and the second data key link; and detecting whether the board-end input data meets the design requirements of the circuit board layout based on the layout result and the third data key link.
[0055] It is understandable that the data in the layout results includes file-type data, image-type data, and board-end input data; key data links associate any one type of data with two other types of data simultaneously. Under these two conditions, it is possible to check whether a certain type of data meets the design requirements of the circuit board layout.
[0056] Specifically, the circuit diagram data in the board-end input data is automatically compared and analyzed, that is, the part reference number and its related data are compared and analyzed; the position, diameter, and alignment of the part pins and the mechanism holes in the board-end input data are automatically compared and analyzed, that is, the coordinates of the part pins and the mechanism holes are automatically compared and analyzed; the block data in the board-end input data is automatically compared and analyzed, that is, the block data is compared and analyzed with the height limit block data. This embodiment does not limit this.
[0057] To better understand the implementation of the above data detection method, in an optional embodiment, a scheme is also provided for explaining the above scheme.
[0058] Figure 3 This is a flowchart of another optional data detection method according to an embodiment of this application, including the following steps, such as... Figure 3 As shown:
[0059] Step 1: Place the circuit diagram data, DXF / EMN data, key component list for each position, and AllegroBRD file in the same folder;
[0060] Processing flow: Place the layout board data to be input in the same path as the Allegro BRD file, i.e., put it in the same path as the Allegro BRD file. Figure 5 The route diagram data shown is consistent with... Figure 6 The DXF / EMN data shown (equivalent to the board-side input data in the above embodiments), such as Figure 7 The list of key components for the job shown (equivalent to the file-type data in the above embodiment) is placed in the same path as the Allegro BRD file. This step can reduce data path interception problems, simplify complex processes, and speed up software execution when Allegro Skill is writing programs.
[0061] Step 2: Run the Skill program and select the MDSICC (MultiData Source Input with Key parts Comparison) function, a fast comparison detection method for multi-source input data.
[0062] Processing flow: The MDSIKC function selection unit is located in the Allegro Skill main menu. After selecting it, Allegro Skill will start the multi-source input data comparison and detection processing program.
[0063] Step 3: Automatically input circuit diagram data, DXF / EMN data, and a list of key components for each job position into the BRD file;
[0064] Processing flow: This is the first step of the MDSIKC function in this application embodiment. It involves inputting layout board data, and the main files include:
[0065] Route map data input: The original import program is modified using Allegro Skill to add an automatic data path input program.
[0066] DXF / EMN Data Input: The original import program is modified using Allegro Skill to add an automatic data path input program, and two basic connection points are set with the lower left corner as the origin and "DXF" as the fixed layer.
[0067] Key component list data input for each job: Use Allegro Skill to write an automatic data path input program and perform filtering and extraction of "job" and "part number" data.
[0068] Step 4: Based on the location of the key components to be integrated, enter the part number at the hole location on the "DXF" layer, and then click "RefDes Input" to confirm.
[0069] Processing Flow: This is the second step in the MDSIKC function of this application embodiment. The part number is input at the "DXF" level, and a part number input processing program is written using Allegro Skill. Layout engineers synchronously integrate image data of key component locations (equivalent to image-type data in the above embodiment) according to their respective roles. Figure 8 As shown, enter the synchronized part number at the location of the mechanism hole in the "DXF" layer imported from the board end, such as... Figure 9 As shown, after inputting the data, click "RefDesInput" to confirm execution. This step is a key link in the embodiments of this application, connecting the basic data. It is the main key technology that enables the board data to be programmed using Allegro Skill to add automatic comparison detection and analysis functions.
[0070] Step 5: After confirming "RefDes Input", Skill automatically performs the placement of critical components, such as... Figure 10 As shown;
[0071] Processing flow: This is the third step of the MDSIKC function in this application embodiment. The key component is automatically laid out. After selecting "RefDes Input" to execute the part number input, the automatic layout processing program is written through Allegro Skill. The program automatically performs layout alignment based on the position of the mechanism hole on the "DXF" layer of the input part number.
[0072] Step 6: After the automatic layout is completed, Skill automatically performs comparative detection and analysis of multi-source input data;
[0073] Processing flow: This is the fourth step of the MDSIKC function in this application embodiment. It is an automatic comparison and detection analysis of multi-source input data. After the automatic layout and alignment of the parts are completed, the board data (equivalent to the integrated board data in the above embodiment) integrates all the image data, file data and board input data of each position. At this time, the automatic comparison and detection processing program of multi-source data of each position is written through AllegroSkill to perform the following four automatic comparison and detection analysis of data.
[0074] 1) Automatic comparison, detection, and analysis of route map data, such as... Figure 11 As shown: By using Allegro Skill to write an automatic detection processing program, the part number, DXF, list of key components for each position and part number in the circuit diagram are searched, compared, detected and analyzed.
[0075] 2) Automatic comparison and analysis of the positioning of part pins and 2D DXF mechanism holes: Using Allegro Skill, an automatic detection processing program is written to search, compare, detect and analyze the coordinates of part pins and 2D DXF mechanism holes.
[0076] 3) Automatically compare and analyze the alignment of the part's pins with the 2D DXF mechanism's hole diameter, such as... Figure 12 As shown: By using Allegro Skill to write an automatic detection processing program, the coordinates of the part's pins and 2D DXF mechanism holes are searched, compared, detected, and analyzed.
[0077] 4) Automatic comparison and analysis of EMN and 2D DXF block data: An automatic detection and processing program is written using Allegro Skill to compare the block sizes of EMN and 2D DXF, performing searching, comparison, detection, and analysis of block data and height-limited block data, such as... Figure 13 As shown.
[0078] Specifically, the above layout and testing steps are based on the correlation of multi-source data from various positions (i.e., multi-source input data in the above embodiments), including the four correlations of the traditional manual inspection and analysis list: 1) Correlation of image location data: layout from connector function discussion to the establishment of part numbering in the initial version of the circuit; 2) Correlation of file data: synchronization of part numbering in the initial version of the circuit from multi-source data of each position; 3) Correlation of layout board input data one: positioning of part pins and 2D DXF mechanism holes; 4) Correlation of layout board input data two: alignment of part pin hole size with 2D DXF mechanism hole size.
[0079] In addition, based on the four-point correlation of the traditional manual inspection and analysis list, three main key links have been added, including: 1) Key link of document data: Each position's key component list must provide "Position" and "First Part Number 40", such as Figure 4 As shown in Part Number 40, for example: "Position" and "Part Number 40" are added to the critical component list of HWE / Thermal / DC / SI / Other; 2) Key link of image location data: The critical component location of ME is synchronized with the "Second Part Number 42" of each position, such as... Figure 4 As shown in part number 42, the key component locations of HWE / Thermal / DC / SI / Other are integrated; 3) Key links of main board data: Layout engineers integrate the image data of key component locations through various functions, and input the synchronized third part number 44 into the DXF data imported on the board, such as... Figure 4The third part number is 44. This means that three new part numbers have been added as the main critical links.
[0080] Step 7: Based on the results of the multi-source input data comparison and analysis, quickly provide a comparison and analysis result report, such as... Figure 14 As shown;
[0081] Processing flow: This is the fifth step of the MDSIKC function in this application embodiment, providing a comparative detection analysis result report. By digitally analyzing these integrated board-side data, we can more quickly cross-compare and obtain the detection result report we need. By writing an automatic detection data difference processing program through Allegro Skill, this application embodiment provides an easy-to-understand result report table. When providing feedback on issues with multi-source input data, it allows personnel in various positions to see the results at a glance, identify problems early, report problems, solve problems, and perform the fastest optimization and updates.
[0082] Step 8: Skill execution complete;
[0083] Processing flow: Click OK to end the function. Modify the original Allegro / Exit end function program into the end program of this application using AllegroSkill.
[0084] Through the above steps, the problem of irrelevance in the type classification of multi-source input data is solved. Furthermore, the following problems are addressed: Layout board input data, graphic data, and file data lack unified correlation; the optional embodiment connects multi-source input data. In the data alignment process, data input, data comparison and checking, and data analysis and judgment all require manual checks to ensure compliance with design requirements, which carries the risk of omissions and is time-consuming. The optional embodiment can automatically lay out and analyze multi-source input data. Cadence Allegro software cannot be automated by coding; when various design requirements change, actions must be repeatedly performed to align data. The optional embodiment adds the MDSICKC function to automate the process in the software.
[0085] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods according to the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.
[0086] This embodiment also provides a data detection device for implementing the above embodiments and preferred embodiments; details already described will not be repeated. As used below, the term "module" can refer to a combination of software and / or hardware that performs a predetermined function. Although the device described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.
[0087] Figure 15 This is a structural block diagram of a data detection device according to an embodiment of this application, such as... Figure 15 As shown, the device includes:
[0088] Setting module 150 is used to acquire multi-source input data required for circuit board layout and set data key links for the multi-source input data, wherein the data key links are used to link all the multi-source input data.
[0089] The running module 152 is used to run multi-source input data with the data key links set through the target program to lay out the key components in the circuit board layout and obtain the layout result.
[0090] The detection module 154 is used to detect whether the multi-source input data needs to meet the design requirements of the circuit board layout based on the layout result.
[0091] The above modules acquire multi-source input data required for circuit board layout and set key data links for this multi-source input data. These key data links connect all the multi-source input data. The target program runs the multi-source input data with the key data links set to lay out key components in the circuit board layout, obtaining a layout result. Based on the layout result, it is determined whether the multi-source input data meets the design requirements of the circuit board layout. In other words, by setting key data links for the multi-source input data, all multi-source input data are connected, allowing for the layout of key components in the circuit board layout based on these key data links. Furthermore, the layout result and key data links are used to determine whether the multi-source input data meets the design requirements of the circuit board layout. Therefore, this solves the problems in related technologies where manual determination of input data compliance is required in circuit board layout design, which is time-consuming and prone to omissions.
[0092] Optionally, the above-mentioned setting module 150 is further configured to obtain the data relationships between the multi-source input data; and set data key links for the multi-source input data according to the data relationships between the multi-source input data.
[0093] It should be noted that multi-source input data can be divided into three types: file-based data, image-based data, and board-based input data. Each type of data contains part reference numbers. Data relationships are established between different types of data based on the part reference numbers, and key data links are set for all multi-source input data based on these relationships.
[0094] The specific scheme for setting key data links for the aforementioned multi-source input data is as follows:
[0095] Optionally, the above-mentioned setting module 150 is further configured to, when the multi-source input data includes file-type data, image-type data, and board-end input data, obtain a first data relationship between a first part number and a second part number, a second data relationship between the second part number and a third part number, and a third data relationship between the first part number and the third part number, wherein the first part number is a part number in the file-type data, the second part number is a part number in the image-type data, and the third part number is a part number in the board-end input data.
[0096] like Figure 4As shown, the first part number 40 is the part number for file-type data, the second part number 42 is the part number for image-type data, and the third part number 44 is the part number for board-side input data. The second part number 42 can be obtained by integrating the first part number 40 from the file-type data into the image-type data, and the third part number 44 can be obtained by identifying the second part number 42 from the image-type data and then inputting it into the board-side input data.
[0097] Specifically, a first data association is obtained based on the first part number 40 and the second part number 42, representing a data association between file-type data and image-type data; a second data association is obtained based on the second part number 42 and the third part number 44, representing a data association between image-type data and board-end input data; and a third data association is obtained based on the first part number 40 and the third part number 44, representing a data association between file-type data and board-end input data. Through these data association settings, any type of data is associated with two other types of data.
[0098] Optionally, the above-mentioned setting module 150 is further configured to set a first data key link for the file-type data according to the first data relationship and the third data relationship; and set a second data key link for the image-type data according to the first data relationship and the second data relationship; and set a third data key link for the board-end input-type data according to the second data relationship and the third data relationship.
[0099] Specifically, setting key links for the file-type data involves linking the file-type data with the image-type data and the board-entry data; setting key links for the image-type data involves linking the image-type data with the file-type data and the board-entry data; and setting key links for the board-entry data involves linking the board-entry data with the file-type data and the image-type data. By setting these key links, any one type of data can be simultaneously linked with two other types of data.
[0100] Optionally, the above-mentioned running module 152 is further configured to run the first data key link, the second data key link, and the third data key link to link the file data, the image data, and the board input data through the part number, wherein the part number includes: the first part number, the second part number, and the third part number.
[0101] It is understandable that by running the set first data key link, second data key link, and third data key link, it is possible to link all three forms of data in the multi-source input data to each other, provided that any one form of data in the multi-source input data has been linked to the other two forms of data, thereby linking the multi-source input data.
[0102] Optionally, the above-mentioned running module 152 is further configured to acquire integrated board-end data after integrating the multi-source input data according to the data key link, wherein the integrated board-end data has synchronized the file-type data, the image-type data and the board-end input data; and to perform part number alignment layout according to the integrated board-end data to obtain the layout result.
[0103] Understandably, each key component corresponds to a part number. In file-type data, it corresponds to a first part number; in image-type data, it corresponds to a second part number; and in board-side input data, it corresponds to a third part number. Based on the key data links, the multi-source input data is integrated to obtain integrated board-side data. The first, second, and third part numbers are then integrated to obtain a unique part number. Key components are then aligned and laid out according to this unique part number to obtain the layout result.
[0104] Optionally, the detection module 154 is further configured to detect whether the file-type data meets the design requirements of the circuit board layout based on the layout result and the first data key link; detect whether the image-type data meets the design requirements of the circuit board layout based on the layout result and the second data key link; and detect whether the board-end input-type data meets the design requirements of the circuit board layout based on the layout result and the third data key link.
[0105] It is understandable that the data in the layout results includes file-type data, image-type data, and board-end input data; key data links associate any one type of data with two other types of data simultaneously. Under these two conditions, it is possible to check whether a certain type of data meets the design requirements of the circuit board layout.
[0106] Specifically, the circuit diagram data in the board-end input data is automatically compared and analyzed, that is, the part reference number and its related data are compared and analyzed; the position, diameter, and alignment of the part pins and the mechanism holes in the board-end input data are automatically compared and analyzed, that is, the coordinates of the part pins and the mechanism holes are automatically compared and analyzed; the block data in the board-end input data is automatically compared and analyzed, that is, the block data is compared and analyzed with the height limit block data. This embodiment does not limit this.
[0107] It should be noted that the above modules can be implemented by software or hardware. For the latter, they can be implemented in the following ways, but are not limited to: all the above modules are located in the same processor; or, the above modules are located in different processors in any combination.
[0108] Embodiments of this application also provide a computer-readable storage medium storing a computer program, wherein the computer program is configured to execute the steps in any of the above method embodiments when run.
[0109] S1, acquire the multi-source input data required for circuit board layout, and set data key links for the multi-source input data, wherein the data key links are used to link all the multi-source input data;
[0110] S2, run the target program to run multi-source input data with the data key links set, so as to lay out the key components in the circuit board layout and obtain the layout result;
[0111] S3, based on the layout result, detect whether the multi-source input data needs to meet the design requirements of the circuit board layout.
[0112] In one exemplary embodiment, the aforementioned computer-readable storage medium may include, but is not limited to, various media capable of storing computer programs, such as a USB flash drive, read-only memory (ROM), random access memory (RAM), portable hard disk, magnetic disk, or optical disk.
[0113] Embodiments of this application also provide an electronic device including a memory and a processor, wherein the memory stores a computer program and the processor is configured to run the computer program to perform the steps in any of the above method embodiments.
[0114] S1, acquire the multi-source input data required for circuit board layout, and set data key links for the multi-source input data, wherein the data key links are used to link all the multi-source input data;
[0115] S2, run the target program to run multi-source input data with the data key links set, so as to lay out the key components in the circuit board layout and obtain the layout result;
[0116] S3, based on the layout result, detect whether the multi-source input data needs to meet the design requirements of the circuit board layout.
[0117] In one exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor and the input / output device is connected to the processor.
[0118] Specific examples in this embodiment can be found in the examples described in the above embodiments and exemplary implementations, and will not be repeated here.
[0119] Obviously, those skilled in the art should understand that the modules or steps of this application described above can be implemented using general-purpose computing devices. They can be centralized on a single computing device or distributed across a network of multiple computing devices. They can be implemented using computer-executable program code, and thus can be stored in a storage device for execution by a computing device. In some cases, the steps shown or described can be performed in a different order than those presented here, or they can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Thus, this application is not limited to any particular combination of hardware and software.
[0120] The above description is merely a preferred embodiment of this application and is not intended to limit this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the principles of this application should be included within the protection scope of this application.
Claims
1. A data detection method, characterized in that, include: Obtain multi-source input data required for circuit board layout, and set data key links for the multi-source input data, wherein the data key links are used to link all the multi-source input data; The target program runs multi-source input data with the data key links set to place key components in the circuit board layout and obtains the layout result. Based on the layout results, it is determined whether the multi-source input data needs to meet the design requirements of the circuit board layout, wherein... Setting key data links for the multi-source input data includes: obtaining data relationships between the multi-source input data; and setting key data links for the multi-source input data based on the data relationships between the multi-source input data, wherein... The method for obtaining data relationships between the multi-source input data further includes: when the multi-source input data includes file-type data, image-type data, and board-end input data, obtaining a first data relationship between a first part number and a second part number, a second data relationship between the second part number and a third part number, and a third data relationship between the first part number and the third part number, wherein the first part number is a part number in the file-type data, the second part number is a part number in the image-type data, and the third part number is a part number in the board-end input data.
2. The method according to claim 1, characterized in that, Based on the data relationships between the multi-source input data, key data links are set for the multi-source input data, including: A first data key link is set for the file-type data based on the first data relationship and the third data relationship; and... Based on the first data relationship and the second data relationship, a second data key link is set for the image data; and... Based on the second data connection and the third data connection, a third data key connection is set for the board-side input data.
3. The method according to claim 2, characterized in that, After setting data key links for the multi-source input data based on the data relationships between the multi-source input data, the method further includes: Run the first data key link, the second data key link, and the third data key link to link the file data, the image data, and the board input data through the part number, wherein the part number includes: the first part number, the second part number, and the third part number.
4. The method according to claim 1, characterized in that, By running the target program with the set data key links, multi-source input data is used to lay out key components in the circuit board layout, and the layout result is obtained, including: Obtain integrated board-side data after integrating the multi-source input data based on the data key links, wherein the integrated board-side data has synchronized the file data, the image data and the board-side input data; The component reference designators are aligned and laid out based on the data from the integrated board, resulting in the layout.
5. The method according to claim 1, characterized in that, Based on the layout results, it is determined whether the multi-source input data needs to meet the design requirements of the circuit board layout, including at least one of the following: Based on the layout results and the first data key link, detect whether the file-type data meets the design requirements of the circuit board layout; Based on the layout results and the second data key link, it is detected whether the image data meets the design requirements of the circuit board layout; Based on the layout results and the third data key link, it is determined whether the board-end input data meets the design requirements of the circuit board layout.
6. A data detection device, characterized in that, include: The configuration module is used to acquire multi-source input data required for circuit board layout and to set data key links for the multi-source input data, wherein the data key links are used to link all the multi-source input data. The running module is used to run multi-source input data with the data key links set through the target program to lay out the key components in the circuit board layout and obtain the layout result; The detection module is used to detect whether the multi-source input data needs to meet the design requirements of the circuit board layout based on the layout result. The setting module is also used to obtain the data relationships between the multi-source input data; and to set data key links for the multi-source input data according to the data relationships between the multi-source input data, wherein, The setting module is further configured to, when the multi-source input data includes file-type data, image-type data, and board-end input data, obtain a first data relationship between a first part number and a second part number, a second data relationship between the second part number and a third part number, and a third data relationship between the first part number and the third part number, wherein the first part number is a part number in the file-type data, the second part number is a part number in the image-type data, and the third part number is a part number in the board-end input data.
7. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, wherein the computer program, when executed by a processor, implements the steps of the method described in any one of claims 1 to 5.
8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the method described in any one of claims 1 to 5.
Citation Information
Patent Citations
Device layout method, device and equipment in PCB, and readable storage medium
CN110516333A