Summary of the invention
The main object of the present invention is that the method, apparatus for providing a kind of PCB component placement, computer equipment and storage are situated between
Matter realizes the arrangement for being automatically performed each element in PCB, saves user time.
A kind of method that the present invention proposes PCB component placement, comprising:
The net list of configuration circuit figure, the corresponding parameter information of element in circuit diagram is arranged, parameter information includes position
Parameter;
The net list of derived circuit figure;
The net list of circuit diagram is imported into PCB design software;
According to location parameter, element is arranged in PCB design software.
Further, location parameter includes first position parameter, second position parameter and/or modularization parameter, and first
Setting parameter includes the first element information at a distance from element within the scope of the first pre-determined distance, and second position parameter includes and member
Second element information of the distance of part within the scope of the second pre-determined distance, the first pre-determined distance range is less than the second pre-determined distance model
It encloses, modularization parameter includes the zone number where element, wherein the first element and the second element are the electricity
The element that position determines in the figure of road;The net list of configuration circuit figure, the corresponding parameter information of element in circuit diagram is arranged
The step of, comprising:
The first instruction of user's input is received, the first instruction includes first position ginseng corresponding with element in setting circuit diagram
The instruction of number, second position parameter and/or modularization parameter;
It is instructed according to first, the corresponding first position parameter of element, second position parameter and/or module in configuration circuit figure
Change parameter.
Further, first element information includes the number and number of pins of first element, and second element information includes second
The number and number of pins of element, zone number include mask frame number or circuit region number;According to the first instruction, configuration circuit
In figure the step of the corresponding first position parameter of element, second position parameter and/or modularization parameter, comprising:
It is instructed according to first, the first element in configuration circuit figure at a distance from element within the scope of the first pre-determined distance
Number and number of pins;First element is the element in circuit diagram;
And/or the second element in configuration circuit figure at a distance from element within the scope of the second pre-determined distance number and
Number of pins;Second element is the element different from first element in circuit diagram;
And/or mask frame number or circuit region number in configuration circuit figure where element.
Further, above-mentioned first element information includes the first distance of element and first element, and above-mentioned first distance exists
Within the scope of first pre-determined distance, above-mentioned second element information includes the second distance of element and second element, above-mentioned second distance
Within the scope of sub second pre-determined distance;It is instructed according to first, the corresponding first position parameter of element, the second position in configuration circuit figure
The step of parameter and/or modularization parameter, comprising:
It is instructed according to first, the first distance of element and first element in configuration circuit figure;
And/or in configuration circuit figure element and second element second distance.
Further, before the step of net list of circuit diagram being imported PCB design software, comprising:
In PCB design software, pcb board frame is drawn;
Receive the second instruction for arranging the specified element in circuit diagram of user's input;
According to the second instruction, by specified element arrangements in designated position corresponding on pcb board frame.
Further, according to location parameter, in PCB design software the step of arrangement element, comprising:
Obtain net list in element location parameter, location parameter include first position parameter, second position parameter and/or
Modularization parameter;
According to preset design rule and location parameter, element is arranged on pcb board frame.
Further, according to location parameter, after the step of element is arranged in PCB design software, comprising:
According to default inspection rule, check whether the layout of element is reasonable;
If unreasonable, the information for being laid out unreasonable reason is shown.
The present invention also proposes a kind of device of PCB component placement, comprising:
Configuration module, for the net list of configuration circuit figure, the corresponding parameter information of element in circuit diagram, parameter is arranged
Information includes location parameter;
Export module, the net list for derived circuit figure;
Import modul, for the net list of circuit diagram to be imported PCB design software;
First order module, for arranging element in PCB design software according to location parameter.
The present invention also proposes that a kind of terminal, including memory and processor, memory are stored with computer program, processor
The step of realizing the method for above-mentioned PCB component placement when executing computer program.
The present invention also proposes a kind of computer readable storage medium, is stored thereon with computer program, computer program quilt
The step of processor realizes the method for above-mentioned PCB component placement when executing.
The present invention in the net list of circuit diagram by increasing location parameter, and according to conventional design rule and location parameter
Corresponding position constraint rule, realize each element in circuit diagram in PCB design software auto arrangement in designated position, thus real
The autoplacement of existing PCB element, saves user time and energy, increases user experience.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
Referring to Fig.1, in one embodiment of the invention PCB component placement method, comprising:
S1, the net list of configuration circuit figure, the corresponding parameter information of element in the circuit diagram, the parameter letter is arranged
Breath includes location parameter;
S2 exports the net list of the circuit diagram;
The net list of the circuit diagram is imported PCB design software by S3;
S4 arranges the element in the PCB design software according to the location parameter.
In above-mentioned steps S1, above-mentioned net list is the tables of data for recording a component information in foregoing circuit figure, above-mentioned net
The information of network table record include: element title, element number, element connected using parameter, network name, network it is all
The pin name of element, PCB encapsulation name, pcb board layer defines, conventional design is regular and the position constraint comprising position of components parameter
Regular (PLACEMENT RULES);Above-mentioned conventional design rule includes the constraint of the safe spacing of element, wiring and high speed, point
At the constraint of default, classification and specified network and condition design rule and differential pair.Above-mentioned parameter information includes position
Parameter, location parameter include that first position parameter (and can be described as close to parameter, close to), second position parameter (and can claim
For far from parameter, keep away from) and modularization parameter (modularization), above-mentioned first position parameter is and mesh
Component information of the distance of element within the scope of the first pre-determined distance is marked, said second position parameter is at a distance from object component
Component information within the scope of the second pre-determined distance, modularization parameter include the zone number where object component, above-mentioned target
Element is the element for needing to configure location parameter.Said elements include the multiple element in net list;In one embodiment, in electricity
Circuit diagram is designed in the G- Design software of road, is first designed element in circuit according to the conventional design rule of electric circuit diagram design software
Connection relationship, then need to configure the parameter information of all elements (or subelement) in circuit, such as element names
Title, attribute of element itself etc., meanwhile, in order to realize that the circuit diagram is laid out in PCB design software, then also need to configure element
Location parameter, to provide the information of clear position of components in circuit diagram, to read the information by machine to identify element
Position, and the element arrangements that position is determined are in corresponding position, and then realize and configure the net that can be realized PCB autoplacement
Network table.
In above-mentioned steps S2 and step S3, above-mentioned PCB design software is the software of designing printed circuit board schematic diagram, packet
Altium Designer, PADS, Cadence Allegro etc. are included, the electric circuit diagram design software of foregoing circuit figure is designed and is carried out
The above-mentioned PCB design software design rule having the same of PCB layout, wherein design rule includes at least position constraint rule
(PLACEMENT RULES) and conventional design rule.In one embodiment, the electricity completed design by electric circuit diagram design software
Road figure generates net list, and net list is exported as the file format that above-mentioned PCB design software can be run, and contains in the net list
There is the parameter information (including location parameter) of element in circuit diagram, the net list is for importing PCB design software and according to above-mentioned
The parameter information of each element carries out PCB component placement in circuit diagram.
In above-mentioned steps S4, after above-mentioned net list imports circuit diagram, the element names in PCB design software scans net list
After the data such as title, element number, the element in circuit diagram is all deposited on the pcb board frame in PCB design software, further according to net
The location parameter of element in network table, by the designated position of element auto arrangement corresponding position parameter on pcb board frame;Realize PCB
The autoplacement of element saves user time and energy, increases user experience.
In an embodiment of the present invention, above-mentioned location parameter includes first position parameter, second position parameter and/or module
Change parameter, the first position parameter includes the first element letter at a distance from the element within the scope of the first pre-determined distance
Breath, the second position parameter includes the second element information at a distance from the element within the scope of the second pre-determined distance, institute
The first pre-determined distance range is stated less than the second pre-determined distance range, the modularization parameter includes the area where the element
Field Number, wherein the first element and the second element are the element that position determines in the circuit diagram;It is above-mentioned
The net list of configuration circuit figure, the step S1 of the corresponding parameter information of element described in the circuit diagram is arranged, comprising:
S11, receives the first instruction of user's input, and first instruction includes corresponding with the element in setting circuit diagram
First position parameter, second position parameter and/or modularization parameter instruction;
S12 configures the corresponding first position parameter of element described in the circuit diagram, second according to first instruction
Location parameter and/or modularization parameter.
In above-mentioned steps S11 and step S12, above-mentioned first instruction is the instruction of user's operation electric circuit diagram design software,
Specifically, the instruction is for being arranged the corresponding first position parameter of element in circuit diagram, second position parameter and/or modularization ginseng
Number;Above-mentioned first element information may include the number and pin of first element, and above-mentioned second element information may include second element
Number and number of pins, wherein different elements corresponds to different first element or second element, such as element A1 corresponding
One component information be number be B1, the first element that number of pins is G1, the corresponding first element information of element A2 be number be B2,
Number of pins is the first element of G2;Above-mentioned first element and second element are the element that position is specifically determined in circuit diagram, example
Such as, antenna, switch etc.;Above-mentioned first pre-determined distance range is said elements close to the distance range of first element, can be according to this
The position of said elements is adaptively adjusted in distance range, preferably close to the minimum range model of first element when being adaptively adjusted
It encloses;Above-mentioned second pre-determined distance range is distance range of the said elements far from second element, range can be adapted to according to this distance
Property adjustment said elements position, when being adaptively adjusted preferably far from second element maximum distance range;Above-mentioned zone is compiled
It number may include circuit region number and mask frame number, such as digital circuitry regions number, analog circuit zone number, high-frequency electrical
Road zone number etc.;In one embodiment, the first position parameter, second position parameter and/or module of each element are configured
Change parameter, guarantees that each element has determining location information, to guarantee that PCB software can be according to the position of each element
Counter element is arranged in corresponding position by information;In another embodiment, (subelement can be to need to arrange to configuration section element
In the element of specific position) first position parameter, second position parameter and/or modularization parameter, and other do not have configuration bit
The element for setting parameter is then arranged according to the conventional design rule of PCB design software, for example, according to element A and element B it
Between safe spacing arranged;In the net list of configuration circuit figure, the location parameter of setting member realizes the circuit diagram energy
The autoplacement in PCB design software, finally obtains pcb board.
In an embodiment of the present invention, above-mentioned first element information includes the number and number of pins of first element, and described
Two element information includes the number and number of pins of second element, and above-mentioned zone number includes that mask frame number or circuit region are compiled
Number;It is above-mentioned according to first instruction, configure the corresponding first position parameter of each element in the circuit diagram, the second position
The step S12 of parameter and/or modularization parameter, comprising:
S121a is configured default described first at a distance from the element in the circuit diagram according to first instruction
The number and number of pins of first element in distance range;The first element is the element in the circuit diagram;
S121b, and/or, it configures in the circuit diagram at a distance from the element within the scope of second pre-determined distance
Second element number and number of pins;The second element is the member different from the first element in the circuit diagram
Part;
S121c, and/or, configure the mask frame number or circuit region number in the circuit diagram where element.
In above-mentioned steps S121a, user selects to need to be arranged the member of first position parameter in electric circuit diagram design software
Part, the mode selected can be " close to (close to) " icon of element number and the element number in click element list
(icon of the title being not limited to, as long as function is the same), is also possible to the element clicked choose on circuit diagram and selection should
" close to (close to) " in the shortcut menu of element;Then it is inputted in the parameter input frame under " close to (close to) "
The number and number of pins of first element, first element be at a distance from the element will in the element within the scope of the first pre-determined distance,
For example, number be " A1 " element close to (" close " in the present invention can be regarded as the distances of two elements first it is default away from
From in range) number be " A2 " element " G1 " pin, then in above-mentioned parameter input frame input (A2, G1);Due to existing
The constraint rules such as safe spacing, wiring and constraint of high speed of element in conventional design rule, so " A1 " element is close to " A2 "
The distance of the G1 pin of element is adaptively adjusted in the safe spacing range (including first pre-determined distance range), therefore is arranged the
One location parameter can determine the positional relationship between element and element, it is preferable that determine unknown bits according to the element of known location
The position for the element set, so that PCB design software is according to the position of location parameter automatic identification element and realizes layout.
It is above-mentioned far from (" separate " of the invention can be regarded as the distance of two elements second in above-mentioned steps S121b
Within the scope of pre-determined distance) second element number and number of pins be second position parameter, be arranged second position parameter mode
It is identical that mode is obtained with above-mentioned setting first position parameter, this is repeated no more;Due in circuit diagram element there are disturbance factor,
So the second position parameter of setting member, while determining the position of element;In one embodiment, it is being provided with the first of element
On the basis of location parameter, the second position parameter of the element is also set up, to further determine that the position range of element, to make
It is more accurate to be laid out.
In above-mentioned steps S121c, above-mentioned mask frame number or circuit region number are modularization parameter;Above-mentioned mask frame
Number or circuit region number have been defined position when designing circuit diagram;Such as: it can be by total electricity when designing circuit diagram
Road figure is divided into multiple small circuit diagrams, then a small circuit diagram is a region, such as the zone number of the resistance-capacitance circuit in circuit diagram
For Q1, the zone number of control circuit is Q2;When PCB design software carries out PCB component placement, first by each mask frame or area
Domain is laid out, then is laid out to each element in each mask frame or region, so that PCB be made to be laid out clearer, beautiful, conjunction
Reason.
In an embodiment of the present invention, above-mentioned first element information includes the first distance of the element and first element,
For above-mentioned first distance within the scope of first pre-determined distance, above-mentioned second element information includes the element and second element
Second distance, within the scope of above-mentioned second distance second pre-determined distance;It is above-mentioned to be instructed according to described first, configure the electricity
The step S12 of the corresponding first position parameter of each element, second position parameter and/or modularization parameter in the figure of road, comprising:
S122a configures the first distance of element and the first element in the circuit diagram according to first instruction;
S122b, and/or the second distance of element and the second element described in the configuration circuit diagram.
In above-mentioned steps S122a and S122b, although the safe spacing in conventional design rule can guarantee in PCB cloth
It will not intersect between element and element when office, but the position that element and element may also occur is being laid out the possibility being exchanged,
By taking the parameter of first position as an example, user needs for element P1, P2, P3 to be arranged successively from left to right using element P0 as starting point, therefore
Provided with element P1, P2, P3 respectively with the close relationship of element P0, but as safe spacing, it may occur that first
The case where part P1, P3, P2 are arranged successively using element P0 as starting point from left to right, in order to avoid such case, so being provided with member
The first distance of part P1, P2, P3 close to element P0;Above-mentioned example is equally applicable to second position parameter;Above-mentioned first distance and
Second distance is distance value or distance range.
In an embodiment of the present invention, the above-mentioned net list by the circuit diagram import PCB design software step S3 it
Before, comprising:
S301 draws pcb board frame in the PCB design software;
S302 receives the second instruction for arranging the specified element in the circuit diagram of user's input;
S303, according to second instruction, by the specified element arrangements in corresponding specific bit on the pcb board frame
It sets.
In above-mentioned steps S301, above-mentioned drafting pcb board frame is to draw PCB on the PCB design figure in PCB design software
Switch, location hole, pilot hole and fluting of plate etc. and definition mask frame number position corresponding with zone number;Due to
After completing layout on PCB design software, final purpose is that pcb board is made, so the design drawing of PCB is needed to applied to peace
The hole of dress etc. or slot;Pcb board frame is first finished before importing net list, is conducive to avoid pilot hole etc. when PCB component placement, or
Be conducive to for PCB element being placed in fluting.
In above-mentioned steps S302 and step S303, above-mentioned specified element is the element for needing precise positioning, such as is connected
Device, antenna, mask frame etc.;Above-mentioned specified element can be used as above-mentioned first element and/or second element;The above-mentioned finger in circuit diagram
Determine the element that element is known location and does not need the position for being laid out above-mentioned specified element when carrying out PCB component placement;Pendulum manually
Put the accuracy for needing the element of precise positioning to be conducive to component placement and advantageous as known location element determine it is unknown
The position of the element of position is to realize the layout of element;In one embodiment, element of the above-mentioned specified element as known location
Determine the position of the element of unknown position, i.e., the element of setting unknown position is using the element of known location as the first position of target
Parameter or second position parameter.
In an embodiment of the present invention, above-mentioned according to the location parameter, the member is arranged in the PCB design software
The step S4 of part, comprising:
S41, obtains the location parameter of element in the net list, and the location parameter includes first position parameter, second
Location parameter and/or modularization parameter;
S42 arranges the element on the pcb board frame according to preset design rule and the location parameter.
In above-mentioned steps S41, PCB design software reads the parameter information of each element in net list, the member that will be read
Part is loaded on pcb board frame, and element all in circuit diagram is shown on pcb board frame at this time, but at this time element not yet into
There is various fly lines (not being connected to) prompting, so user can click the layout (Auto on PCB design software in row layout
Placement after) function menu selects key layout, PCB design software to receive the instruction of above-mentioned key layout, network is obtained
All location parameters of each element in table, wherein first position parameter include close to first element number and number of pins and its
Close first distance, second position parameter include number and number of pins and its separate second distance far from second element,
Modularization parameter includes the number of mask frame locating for element and circuit region number.
It is each in PCB software auto arrangement foregoing circuit figure after the location parameter for obtaining element in above-mentioned steps S42
A element, while in order to avoid fly line (being as connected to) occurs in element, also for keeping PCB component placement more reasonable, so PCB
Design software is adaptively adjusted the direction of element and the connecting line between element and element according to preset design rule,
Above-mentioned preset design rule includes at least conventional design rule identical with electric circuit diagram design software and position constraint rule;One
In embodiment, after tentatively obtaining PCB design figure by PCB layout, it is also necessary to the element wiring of PCB design figure is optimized,
Obtain more reasonable PCB design figure.
In an embodiment of the present invention, above-mentioned according to the location parameter, the member is arranged in the PCB design software
After the step S4 of part, comprising:
S401 checks whether the layout of the element is reasonable according to default inspection rule;
S402 shows the information for being laid out unreasonable reason if unreasonable.
In above-mentioned steps S401, above-mentioned preset design review (check) (DR) rule is the design review (check) (DR) rule containing position constraint rule
Then (DRC), in order to avoid unreasonable mistake occurs in the PCB design figure after layout, then the layout for checking each element by DRC is
It is no reasonable;Specifically, DRC includes at least whether the design of Grounding Connections checked in PCB design figure meets design rule, checks that electromagnetism is simultaneous
Whether capacitive, i.e., there is the equality cabling of long range, check decoupling capacitor whether the side of functional component locating for it, check
Whether each element intersects, and checks that the safe spacing of each element whether in the range of conventional design rule requires, checks each
Whether the wiring of element there is the case where fly line (being as connected to), checks first position parameter, the second position parameter of each element
And/or whether modularization parameter meets the data in net list;In one embodiment, user is to the PCB design figure after layout
Wiring is optimized, the PCB in order to avoid artificially designing the situation for ignoring some rules, after Wiring optimization is checked by DRC
Whether design drawing is reasonable, to obtain optimal PCB design figure.
In above-mentioned steps S402, the unreasonable reason of component placement is told to user, being conducive to user will not conform to manually
The place of reason is adjusted to reasonably to be laid out, and improves the efficiency of corrigendum layout errors.
Referring to Fig. 2, the device of PCB component placement in one embodiment of the invention, comprising:
Configuration module 1, for the net list of configuration circuit figure, the corresponding parameter letter of element in the circuit diagram is arranged
Breath, the parameter information includes location parameter;
Export module 2, for exporting the net list of the circuit diagram, with for PCB design software by the circuit diagram
Net list, which imports, carries out PCB component placement in PCB design software;
Import modul 3, for the net list of the circuit diagram to be imported PCB design software;
First order module 4, for arranging the element in the PCB design software according to the location parameter.
In above-mentioned apparatus, the corresponding parameter information of circuit diagram element in the net list of 1 configuration circuit figure of configuration module, with
After the completion of realizing that PCB auto arrangement, configuration module 1 configure according to the parameter information of element for PCB design software, export module
2 export as the configured net list of configuration module 1 file format that PCB design software can be run, then are connect by import modul 3
After the importing instruction for receiving user, the net list of circuit diagram is imported into PCB design software, first order module 4 is according to importing mould
The location parameter of each element in the net list of importing described in block 3, so that net list can realize PCB element in PCB design software
Layout.Step in above-mentioned apparatus explains the explanation that can refer in corresponding method embodiment, and details are not described herein.
Referring to Fig. 3, in an embodiment of the present invention, above-mentioned location parameter includes first position parameter, second position parameter
And/or modularization parameter, above-mentioned first position parameter include within the scope of the first pre-determined distance at a distance from the element
One component information, said second position parameter include the second element at a distance from the element within the scope of the second pre-determined distance
Information, above-mentioned first pre-determined distance range are less than the second pre-determined distance range, and above-mentioned modularization parameter includes the element
The zone number at place, wherein the first element and the second element are the member that position determines in the circuit diagram
Part;The configuration module 1, comprising:
Receiving unit 11, for receive user input first instruction, it is described first instruction include setting circuit diagram in
The instruction of the element corresponding first position parameter, second position parameter and/or modularization parameter;
Configuration unit 12, for it is first corresponding to configure element described in the circuit diagram according to first instruction
Set parameter, second position parameter and/or modularization parameter.
In above-mentioned configuration module 1, configuration module 1 includes receiving unit 11 and configuration unit 12, and receiving unit 11 receives
User's input is used to that the corresponding first position parameter of element in circuit diagram, second position parameter and/or modularization parameter to be arranged
The first instruction, configuration unit 12 responds receiving unit 11 and receives the first instruction, and then element is corresponding in configuration circuit figure
First position parameter, second position parameter and/or modularization parameter.Step explanation in above-mentioned apparatus can refer to corresponding method reality
The explanation in example is applied, details are not described herein.
Referring to Fig. 4, in an embodiment of the present invention, above-mentioned first element information includes the number and pin of first element
Number, above-mentioned second element information includes the number and number of pins of second element, and above-mentioned zone number includes mask frame number or electricity
Road zone number;Above-mentioned configuration unit 12, comprising:
First configuration subelement 121a, for according to it is described first instruction, configure in the circuit diagram with the element
The number and number of pins of the first element of the distance within the scope of first pre-determined distance;The first element is the electricity
Element in the figure of road;
And/or the second configuration subelement 121b, for configuring in the circuit diagram at a distance from the element described the
The number and number of pins of the second element within the scope of two pre-determined distances;The second element is the difference in the circuit diagram
In the element of the first element;
And/or third configures subelement 121c, numbers for the mask frame where configuring element described in the circuit diagram
Or circuit region number.
In above-mentioned configuration unit 12, configuration unit 12 includes the first configuration subelement 121a, the second configuration subelement
121b and/or third configure subelement 121c;When the first instruction is single instruction, the first configuration subelement 121a or second matches
Set the first instruction that subelement 121b or third configuration subelement 121c response receiving unit 11 receive;When the first instruction is more
When secondary instruction, first configuration subelement 121a and second configuration subelement 121b and third configuration subelement 121c in two with
The first instruction that upper configuration subelement response receiving unit 11 receives;Further, when the first configuration subelement 121a response
When the above-mentioned first instruction, the number and number of pins of the close first element of element in configuration circuit figure, when the second configuration subelement
When 121b the above-mentioned first instruction of response, the number and number of pins of the separate second element of element in configuration circuit figure, when third is matched
When setting subelement 121c the above-mentioned first instruction of response, mask frame number or zone number locating for element in configuration circuit figure.On
It states the step in device and explains the explanation that can refer in corresponding method embodiment, details are not described herein.
Referring to Fig. 5, in an embodiment of the present invention, above-mentioned first element information includes the of the element and first element
One distance, for above-mentioned first distance within the scope of first pre-determined distance, above-mentioned second element information includes the element and
The second distance of two element, within the scope of above-mentioned second distance second pre-determined distance;Above-mentioned configuration unit 12, comprising:
4th configuration subelement 122a, for according to first instruction, configuring in the circuit diagram element and described the
The first distance of one element;
And/or the 5th configuration subelement 122b, for configuring element described in the circuit diagram and the second element
Second distance.
In above-mentioned configuration unit 12, configuration unit 12 includes that the 4th configuration subelement 122a and/or the 5th configuration are single
First 122b;When above-mentioned first instruction is single instruction, the 4th configuration subelement 122a or the 5th configuration subelement 122b response
Above-mentioned first instruction, when above-mentioned first instruction is repeatedly instructs, the 4th configuration subelement 122a and the 5th configuration subelement
Above-mentioned first instruction of 122b response;Further, when the 4th configuration subelement 122a the above-mentioned first instruction of response, configuration circuit
First distance in figure between the number or number of pins and element and second element of the close first element of element, when the 5th configuration
When subelement 122b the above-mentioned first instruction of response, in configuration circuit figure the number of the separate second element of element or number of pins and
Second distance between element and second element.Step in above-mentioned apparatus explains the explanation that can refer in corresponding method embodiment,
Details are not described herein.
Referring to Fig. 6, in an embodiment of the present invention, above-mentioned apparatus further include:
Drafting module 301, for drawing pcb board frame in the PCB design software;
Receiving module 302, second for arranging the specified element in the circuit diagram for receiving user's input refer to
It enables;
Second order module 303, for being instructed according to described second, by the specified element arrangements in the pcb board frame
Upper corresponding designated position.
In above-mentioned drafting module 301, receiving module 302 and second order module 303, import modul 3 imports net list
Before, drafting module 301 is first drawn pcb board frame in PCB design software and has been drawn so that the layout of PCB element is more reasonable
After pcb board frame, second for arranging the specified element in circuit diagram that receiving module 302 receives user's input is instructed, and second
Arrangement module 303 responds above-mentioned second instruction, will formulate element arrangements in the designated position on pcb board frame, to complete to need essence
The certainly positioning of the element of position.Step in above-mentioned apparatus explains the explanation that can refer in corresponding method embodiment, herein no longer
It repeats.
Referring to Fig. 7, in an embodiment of the present invention, above-mentioned first order module 4, comprising:
Acquiring unit 41, for obtaining the location parameter of element in the net list, the location parameter includes first
Set parameter, second position parameter and/or modularization parameter;
Arrangement units 42, described in being arranged on the pcb board frame according to preset design rule and the location parameter
Element in circuit diagram.
In above-mentioned first order module 4, first order module 4 includes acquiring unit 41 and arrangement module 42;Import mould
After above-mentioned net list is imported PCB design software by block 3, acquiring unit 41 obtains the location parameter of each element in net list, will
Above-mentioned location parameter is supplied to arrangement units 42 and carries out auto arrangement, and arrangement units 42 are joined according to preset design rule and position
Number, each element on pcb board frame in auto arrangement circuit diagram, to realize the layout of PCB element, wherein preset design
Rule includes at least conventional design rule identical with electric circuit diagram design software and position constraint rule.Step in above-mentioned apparatus
Explain the explanation that can refer in corresponding method embodiment, details are not described herein.
Referring to Fig. 8, in an embodiment of the present invention, above-mentioned apparatus further include:
It checks module 401, for checking rule according to default, checks whether the layout of the element is reasonable;
Display module 402, if showing the information for being laid out unreasonable reason for unreasonable.
In above-mentioned inspection module 401 and display module 402, first order module 4 connects after the completion of PCB component placement
It receives user to select to check the instruction of rationally distributed property, checks that module 401 checks each element according to preset design review (check) (DR) rule
Be laid out it is whether reasonable, according to check module 401 check result be it is unreasonable, then display module 402 display layout it is unreasonable
Element and its unreasonable reason of layout, to improve the efficiency of optimization wiring.Step explanation in above-mentioned apparatus can refer to correspondence
Explanation in embodiment of the method, details are not described herein.
The present invention also proposes that a kind of computer equipment, including memory and processor, memory are stored with computer program,
The step of processor realizes the method for above-mentioned PCB component placement when executing computer program.
Above-mentioned terminal is equipped with design software, and above-mentioned design software may include that electric circuit diagram design software and/or PCB design are soft
Part may also comprise the design software for being provided simultaneously with the function of foregoing circuit G- Design software and PCB design software;Above-mentioned terminal
It may include that mobile phone, tablet computer, PDA (Personal Digital Assistant, personal digital assistant), vehicle-mounted computer etc. are appointed
Meaning terminal device.
Computer readable storage medium in one embodiment of the invention is stored thereon with computer program, the computer journey
The step of method of above-mentioned PCB component placement is realized when sequence is executed by processor.
The above method is joined by increasing location parameter in the net list of circuit diagram, and according to conventional design rule and position
Number corresponding position constraints rule, realize each element in circuit diagram in PCB design software auto arrangement in designated position, thus
It realizes the layout of PCB element, saves user time and energy, increase user experience.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with
Relevant hardware is instructed to complete by computer program, the computer program can be stored in a non-volatile computer
In read/write memory medium, the computer program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein,
Any reference used in provided herein and embodiment to memory, storage, database or other media,
Including non-volatile and/or volatile memory.Nonvolatile memory may include read-only memory (ROM), programming ROM
(PROM), electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include
Random access memory (RAM) or external cache.By way of illustration and not limitation, RAM is available in many forms,
Such as static state RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double speed are according to rate SDRAM (SSRSDRAM), enhancing
Type SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM
(RDRAM), direct memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM) etc..
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that the process, device, article or the method that include a series of elements not only include those elements, and
And further include other elements that are not explicitly listed, or further include for this process, device, article or method institute it is intrinsic
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do
There is also other identical elements in the process, device of element, article or method.
The above description is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all utilizations
Equivalent structure or equivalent flow shift made by description of the invention and accompanying drawing content is applied directly or indirectly in other correlations
Technical field, be included within the scope of the present invention.