CN107391848A - A kind of words direction detection method and device - Google Patents

A kind of words direction detection method and device Download PDF

Info

Publication number
CN107391848A
CN107391848A CN201710607375.8A CN201710607375A CN107391848A CN 107391848 A CN107391848 A CN 107391848A CN 201710607375 A CN201710607375 A CN 201710607375A CN 107391848 A CN107391848 A CN 107391848A
Authority
CN
China
Prior art keywords
information
standard
current character
direction detection
word
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710607375.8A
Other languages
Chinese (zh)
Inventor
崔铭航
李晓
翟西斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jinan Inspur Hi Tech Investment and Development Co Ltd
Original Assignee
Jinan Inspur Hi Tech Investment and Development Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Jinan Inspur Hi Tech Investment and Development Co Ltd filed Critical Jinan Inspur Hi Tech Investment and Development Co Ltd
Priority to CN201710607375.8A priority Critical patent/CN107391848A/en
Publication of CN107391848A publication Critical patent/CN107391848A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/30Circuit design
    • G06F30/39Circuit design at the physical level
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/30Circuit design
    • G06F30/39Circuit design at the physical level
    • G06F30/398Design verification or optimisation, e.g. using design rule check [DRC], layout versus schematics [LVS] or finite element methods [FEM]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Evolutionary Computation (AREA)
  • Geometry (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Machine Translation (AREA)

Abstract

The invention provides a kind of words direction detection method and device, this method may include:When receiving the execution triggering of outside, obtain that each word on contemporary printed board PCB is corresponding respectively to put information;For word each described, judge described corresponding to current character to put any standard that information is put with default at least one standard in information whether put information consistent;If it is not, then highlight the current character.This programme can shorten the time of detection word.

Description

A kind of words direction detection method and device
Technical field
The present invention relates to field of computer technology, more particularly to a kind of words direction detection method and device.
Background technology
In recent years, printed circuit board (PCB) (Printed Circuit Board, PCB) design software, e.g., Allegro softwares are got over Favored to get over by user.User using design software after PCB placement-and-routing is completed, to become apparent from intuitively showing, Then need to detect the word corresponding to each component on PCB, re-started with occurring the word of mistake to placing direction Put.
At present, the word on PCB corresponding to each component is mainly detected by artificial mode one by one.
But need integrated component number more and more because PCB is larger, and on PCB, so as to corresponding word Quantity is also more and more, if so still being detected one by one by artificial mode, then will take a significant amount of time.
The content of the invention
The embodiments of the invention provide a kind of words direction detection method and device, can shorten the time needed for detection.
In a first aspect, the embodiments of the invention provide a kind of words direction detection method, including:
When receiving the execution triggering of outside, each word obtained on contemporary printed board PCB corresponds to respectively Put information;
For word each described, judge described corresponding to current character to put information and default at least one standard Whether putting any standard in information, to put information consistent;If it is not, then highlight the current character.
Preferably,
At least one standard puts information, including:First standard puts information and the second standard puts information, its In,
First standard puts information, including:It is any one or more in 0 ° and 360 °;
Second standard puts information, including:90°.
Preferably,
Judging corresponding to current character that information and the default at least one standard of putting put appointing in information The standard of anticipating put information it is inconsistent when, further comprise:
Determine component corresponding with the current character on the current PC B;
It is described to highlight the current character, further comprise:Highlight the institute corresponding with the current character State component.
Preferably,
Further comprise:
It is determined that needing the quantity of the current character highlighted, and show.
Second aspect, the embodiments of the invention provide a kind of words direction detection means, including:At acquiring unit and first Unit is managed, wherein,
The acquiring unit, for when receiving the execution triggering of outside, obtaining every on contemporary printed board PCB One word is corresponding respectively to put information;
The first processing units, for for word each described, judging described corresponding to current character to put letter Whether any standard that breath is put with default at least one standard in information puts information consistent;It is if it is not, then prominent Show the current character.
Preferably,
At least one standard puts information, including:First standard puts information and the second standard puts information, its In,
First standard puts information, including:It is any one or more in 0 ° and 360 °;
Second standard puts information, including:90°.
Preferably,
Further comprise:Determining unit;
The determining unit, for determining component corresponding with the current character on the current PC B;
The first processing units, it is further used for highlighting the component corresponding with the current character.
Preferably,
Further comprise:Second processing unit;
The second processing unit, the quantity of the current character highlighted for determining needs, and show.
The third aspect, the embodiments of the invention provide a kind of computer-readable medium, including computer executed instructions, when depositing When storing up computer executed instructions described in the computing device of controller, the storage control is performed in any of the above-described embodiment Words direction detection method.
Fourth aspect, the embodiments of the invention provide a kind of storage control, including:Processor, memory and bus;
The memory is used to store computer executed instructions, and the processor is connected with the memory by the bus Connect, when the storage control is run, the computer executed instructions of memory storage described in the computing device, with The storage control is set to perform the words direction detection method in any of the above-described embodiment.
The embodiments of the invention provide a kind of words direction detection method and device, by pre-setting at least one standard Put information, then when receiving the execution triggering of outside, obtain first corresponding to each word included on current PC B Put information, then for get each put information, put with default at least one standard information progress Compare, when judge to put information and the arbitrary standards that at least one standard is put in information put information it is inconsistent when, say Bright corresponding word puts mistake, so as to highlight the word.Due to being examined one by one by artificial mode Survey, but when receiving the triggering of outside, detected automatically, therefore this programme can shorten the time of detection word.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are the present invention Some embodiments, for those of ordinary skill in the art, on the premise of not paying creative work, can also basis These accompanying drawings obtain other accompanying drawings.
Fig. 1 is a kind of flow chart for words direction detection method that one embodiment of the invention provides;
Fig. 2 is a kind of flow chart for words direction detection method that another embodiment of the present invention provides;
Fig. 3 is a kind of structural representation for PCB parts that one embodiment of the invention provides.
Fig. 4 is a kind of structural representation for words direction detection means that one embodiment of the invention provides;
Fig. 5 is a kind of structural representation for words direction detection means that another embodiment of the present invention provides;
Fig. 6 is a kind of structural representation for words direction detection means that another embodiment of the invention provides.
Embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is Part of the embodiment of the present invention, rather than whole embodiments, based on the embodiment in the present invention, those of ordinary skill in the art The every other embodiment obtained on the premise of creative work is not made, belongs to the scope of protection of the invention.
As shown in figure 1, the embodiments of the invention provide a kind of words direction detection method, this method can include following step Suddenly:
Step 101:When receiving the execution triggering of outside, each word on contemporary printed board PCB is obtained It is corresponding respectively to put information.
Step 102:For word each described, judge corresponding to current character it is described put information with it is default at least Whether any standard that one standard is put in information puts information consistent, if it is not, then performing step 103.
Step 103:Highlight the current character.
In the embodiment shown in fig. 1, information is put by pre-setting at least one standard, then receiving outside Execution triggering when, obtain put information corresponding to each word included on current PC B first, then for getting Each put information, compared with putting information with default at least one standard, when judge to put information with extremely The arbitrary standards that a few standard is put in information put information it is inconsistent when, illustrate that corresponding word puts mistake, from And highlight the word.Due to being detected one by one by artificial mode, but in the triggering for receiving outside When, detected automatically, therefore this programme can shorten the time of detection word.
In order to determine whether the word on PCB is put correctly, in one embodiment of the invention, at least one standard pendulum Information is put, including:First standard puts information and the second standard puts information, wherein,
First standard puts information, including:It is any one or more in 0 ° and 360 °;
Second standard puts information, including:90°.
As shown in Fig. 2 be a kind of PCB Local map, including:Inductance L1, resistance R5, LED 1, electric capacity C4 With electric capacity C3, wherein, L1 be from left to right, angles be 0 ° or 360 °, due to putting information one with default first standard Cause, thus L1 put it is qualified;R5 is that from top to bottom, angles are 90 °, due to putting information one with default second standard Cause, thus R5 put it is qualified;LED1 is top to bottm, and angles are 270 °, due to any putting information with default and differ Cause, therefore LED1 puts mistake, need to highlight;C4 is turned left from the right side, and angles are 180 °, due to arbitrarily being put with default It is inconsistent to put information, therefore C4 puts mistake, need to highlight;C3 is that from left to right, angles are 0 ° or 360 °, due to It is consistent to put information with default first standard, thus C3 put it is qualified.
For the ease of adjusting word, in one embodiment of the invention, judging described corresponding to current character to put letter Any standard that breath is put in information with default at least one standard put information it is inconsistent when, further comprise:
Determine component corresponding with the current character on the current PC B;
It is described to highlight the current character, further comprise:Highlight the institute corresponding with the current character State component.
For example, by taking the LED1 shown in Fig. 2 as an example, judging to put 270 ° and 0 °, 360 ° of information corresponding to the word With 90 ° in any one it is inconsistent when, determine and the component corresponding to LED1And highlight this yuan Device and LED1, such as willTogether highlighted as white with LED1.
Putting again for word whether is completed for the ease of verification, in one embodiment of the invention, is further comprised:It is determined that The quantity of the current character highlighted is needed, and is shown.
For example, each word on for PCB, judges to put information and default at least one standard corresponding to it Put the arbitrary standards in information put information it is whether consistent when, if it is, determine that the word is qualified, if it is not, then accumulative It is all to judge inconsistent word quantity, such as add up 5 altogether, then by showing 5 to user, user is in adjustment afterwards During, can check whether complete putting again for word by the numeral, can preferably improve Consumer's Experience.
A kind of words direction detection method provided in an embodiment of the present invention is described more detail below, as shown in figure 3, this method It may comprise steps of:
Step 301:Pre-set two standards and put 0 ° and 90 ° of information.
Generally, it is contemplated that visual effect, the placing direction of word are advisable with 0 ° (360 ° with 0 °) or 90 °.
For example, the embodiment of the present invention by taking Allegro softwares as an example, can realize text by the Skill interfaces of Allegro softwares The detection process of word direction.So the embodiment of the present invention before implementation, it is necessary to the partial profiles of the software be changed, to reach Necessary running environment, so as to be modified to the background data base of design.
So when the partial profiles to the software are modified, the menu bar of Allegro softwares can be changed first File, by its configuration file allegro.men be placed under Allegro installation paths Cadence SPB_16.5 share Pcb text under cuimenus catalogues.Realize that the key code of the process is as follows:
Secondly, to Cadence under Allegro installation paths SPB_16.5 share local pcb under skill catalogues Allegro.ilinit files modify, wherein add line code it is as follows:
load("check_dir.il")
Finally, the Cadence under Allegro installation paths SPB_16.5 share local pcb skill catalogues Lower addition check_dir.il files.
Step 302:When receiving the execution triggering of outside, obtain and put corresponding to 50 words difference on current PC B Put information.
In the embodiment of the present invention, exemplified by including 50 words on PCB, the putting angle that information is word is put in acquisition Degree.
Step 303:For each word, judge to put whether information is 0 ° corresponding to current character, if it is not, then holding Row step 304, if it is, terminating current process.
For example, by taking the C4 shown in Fig. 2 as an example, the C4 got information of putting is 180 °, because 180 ° not equal to 0 °, Therefore to put 0 ° of information inconsistent for C4 put information and default standard, so as to perform step 204, with continue with it is default separately One standard is put information and is compared.
Step 304:Judge to put whether information is 90 ° corresponding to current character, if it is not, then step 305 is performed, if It is then to terminate current process.
Because C4 180 ° of information of putting is not equal to 90 °, so as to judge that C4's puts information and default two standards It is inconsistent to put 0 ° and 90 ° of information, therefore can be derived that, placing direction current C4 is wrong.
Step 305:Determine component corresponding with current character on current PC B.
, can be by the one-to-one relationship of default component and word, to determine and C4 phases in the embodiment of the present invention Corresponding component electric capacity.
Step 306:Highlight current character, and the component corresponding with current character.
In the embodiment of the present invention, when highlighting, can be by the way that the corresponding component electric capacity of C4 is together highlighted White.
Step 307:It is determined that need the quantity of current character highlighted.
For example, determine there are 3 words for putting mistake on current PC B altogether.
Step 308:The quantity of determination is showed to the user of outside.
Realize that the key code of the embodiment of the present invention can be as follows:
As shown in figure 4, the embodiments of the invention provide a kind of words direction detection means, including:Acquiring unit and first Processing unit, wherein,
The acquiring unit 401, for when receiving the execution triggering of outside, obtaining on contemporary printed board PCB Each word corresponding respectively put information;
The first processing units 402, for for word each described, judging described corresponding to current character put Whether any standard that information is put with default at least one standard in information puts information consistent;It is if it is not, then prominent Go out and show the current character.In one embodiment of the invention, at least one standard puts information, including:First standard Put information and the second standard puts information, wherein,
First standard puts information, including:It is any one or more in 0 ° and 360 °;
Second standard puts information, including:90°.
As shown in figure 5, in one embodiment of the invention, further comprise:Determining unit 501;
The determining unit 501, for determining component corresponding with the current character on the current PC B;
The first processing units 402, it is further used for highlighting the first device corresponding with the current character Part.
As shown in fig. 6, in one embodiment of the invention, further comprise:Second processing unit 601;
The second processing unit 601, the quantity of the current character highlighted for determining needs, and show.
The contents such as the information exchange between each unit, implementation procedure in said apparatus, due to implementing with the inventive method Example is based on same design, and particular content can be found in the narration in the inventive method embodiment, and here is omitted.
The embodiments of the invention provide a kind of computer-readable medium, including computer executed instructions, work as storage control Computing device described in computer executed instructions when, the storage control performs the words direction in any of the above-described embodiment Detection method.
The embodiments of the invention provide a kind of storage control, including:Processor, memory and bus;
The memory is used to store computer executed instructions, and the processor is connected with the memory by the bus Connect, when the storage control is run, the computer executed instructions of memory storage described in the computing device, with The storage control is set to perform the words direction detection method in any of the above-described embodiment.
To sum up, each embodiment of the present invention at least has the advantages that:
1st, in embodiments of the present invention, information is put by pre-setting at least one standard, then receiving outside Execution triggering when, obtain put information corresponding to each word included on current PC B first, then for getting Each put information, compared with putting information with default at least one standard, when judge to put information with extremely The arbitrary standards that a few standard is put in information put information it is inconsistent when, illustrate that corresponding word puts mistake, from And highlight the word.Due to being detected one by one by artificial mode, but in the triggering for receiving outside When, detected automatically, therefore this programme can shorten the time of detection word.
2nd, in embodiments of the present invention, by determining to need the word quantity highlighted, and it is shown, is advantageous to It is complete whether the convenient verification of layout engineer is changed.
3rd, in embodiments of the present invention, by that to judging that the word of placing direction mistake highlights, can keep away Exempt from because the word occurred when manually detecting one by one omits problem, and the Comparison between detecting methods in this programme are easily realized, and And it can also ensure that the correctness of detection.
It should be noted that herein, such as first and second etc relational terms are used merely to an entity Or operation makes a distinction with another entity or operation, and not necessarily require or imply and exist between these entities or operation Any this actual relation or order.Moreover, term " comprising ", "comprising" or its any other variant be intended to it is non- It is exclusive to include, so that process, method, article or equipment including a series of elements not only include those key elements, But also the other element including being not expressly set out, or also include solid by this process, method, article or equipment Some key elements.In the absence of more restrictions, the key element limited by sentence " including one ", is not arranged Except other identical factor in the process including the key element, method, article or equipment being also present.
One of ordinary skill in the art will appreciate that:Realizing all or part of step of above method embodiment can pass through Programmed instruction related hardware is completed, and foregoing program can be stored in computer-readable storage medium, the program Upon execution, the step of execution includes above method embodiment;And foregoing storage medium includes:ROM, RAM, magnetic disc or light Disk etc. is various can be with the medium of store program codes.
It is last it should be noted that:Presently preferred embodiments of the present invention is the foregoing is only, is merely to illustrate the skill of the present invention Art scheme, is not intended to limit the scope of the present invention.Any modification for being made within the spirit and principles of the invention, Equivalent substitution, improvement etc., are all contained in protection scope of the present invention.

Claims (10)

  1. A kind of 1. words direction detection method, it is characterised in that including:
    When receiving the execution triggering of outside, obtain and put corresponding to each word difference on contemporary printed board PCB Put information;
    For word each described, judge described corresponding to current character to put information and put with default at least one standard Whether any standard in information puts information consistent;If it is not, then highlight the current character.
  2. 2. words direction detection method according to claim 1, it is characterised in that
    At least one standard puts information, including:First standard puts information and the second standard puts information, wherein,
    First standard puts information, including:It is any one or more in 0 ° and 360 °;
    Second standard puts information, including:90°.
  3. 3. words direction detection method according to claim 1, it is characterised in that
    Judging any institute put during information puts information with default at least one standard corresponding to current character The standard of stating put information it is inconsistent when, further comprise:
    Determine component corresponding with the current character on the current PC B;
    It is described to highlight the current character, further comprise:Highlight the member corresponding with the current character Device.
  4. 4. according to any described words direction detection methods of claim 1-3, it is characterised in that
    Further comprise:
    It is determined that needing the quantity of the current character highlighted, and show.
  5. A kind of 5. words direction detection means, it is characterised in that including:Acquiring unit and first processing units, wherein,
    The acquiring unit, for when receiving the execution triggering of outside, obtaining each on contemporary printed board PCB Word is corresponding respectively to put information;
    The first processing units, for for word each described, judge corresponding to current character it is described put information with Whether any standard that default at least one standard is put in information puts information consistent;If it is not, then highlight The current character.
  6. 6. words direction detection means according to claim 5, it is characterised in that
    At least one standard puts information, including:First standard puts information and the second standard puts information, wherein,
    First standard puts information, including:It is any one or more in 0 ° and 360 °;
    Second standard puts information, including:90°.
  7. 7. words direction detection means according to claim 5, it is characterised in that
    Further comprise:Determining unit;
    The determining unit, for determining component corresponding with the current character on the current PC B;
    The first processing units, it is further used for highlighting the component corresponding with the current character.
  8. 8. according to any described words direction detection means of claim 5-7, it is characterised in that
    Further comprise:Second processing unit;
    The second processing unit, the quantity of the current character highlighted for determining needs, and show.
  9. 9. a kind of computer-readable medium, it is characterised in that including computer executed instructions, when the processor of storage control is held During the row computer executed instructions, the storage control perform claim requires the method described in any one of 5-8.
  10. A kind of 10. storage control, it is characterised in that including:Processor, memory and bus;
    The memory is used to store computer executed instructions, and the processor is connected with the memory by the bus, When the storage control is run, the computer executed instructions of memory storage described in the computing device, so that The storage control perform claim requires the method described in any one of 5-8.
CN201710607375.8A 2017-07-24 2017-07-24 A kind of words direction detection method and device Pending CN107391848A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710607375.8A CN107391848A (en) 2017-07-24 2017-07-24 A kind of words direction detection method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710607375.8A CN107391848A (en) 2017-07-24 2017-07-24 A kind of words direction detection method and device

Publications (1)

Publication Number Publication Date
CN107391848A true CN107391848A (en) 2017-11-24

Family

ID=60336613

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710607375.8A Pending CN107391848A (en) 2017-07-24 2017-07-24 A kind of words direction detection method and device

Country Status (1)

Country Link
CN (1) CN107391848A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109857453A (en) * 2018-11-30 2019-06-07 济南浪潮高新科技投资发展有限公司 A kind of method for the text that automatically resets in Allegro software

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101739477A (en) * 2008-11-27 2010-06-16 英业达股份有限公司 Method for setting marking words of printed circuit board
CN103577026A (en) * 2013-11-15 2014-02-12 浪潮(北京)电子信息产业有限公司 Method for inspecting direction of words on single board
CN105700844A (en) * 2016-02-23 2016-06-22 珠海格力电器股份有限公司 Display method and device for specific device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101739477A (en) * 2008-11-27 2010-06-16 英业达股份有限公司 Method for setting marking words of printed circuit board
CN103577026A (en) * 2013-11-15 2014-02-12 浪潮(北京)电子信息产业有限公司 Method for inspecting direction of words on single board
CN105700844A (en) * 2016-02-23 2016-06-22 珠海格力电器股份有限公司 Display method and device for specific device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109857453A (en) * 2018-11-30 2019-06-07 济南浪潮高新科技投资发展有限公司 A kind of method for the text that automatically resets in Allegro software

Similar Documents

Publication Publication Date Title
CN107870976A (en) Resume identification device, method and computer-readable recording medium
CN104573243B (en) PCB design layout auditing device
CN109783355A (en) Page elements acquisition methods, system, computer equipment and readable storage medium storing program for executing
CN109739700B (en) Interface testing method and device
CN105740487A (en) Method for verifying consistency between layout and schematic on basis of process design kit
CN116245074A (en) Chip verification method, device and storage medium
CN112130951A (en) AI-based RPA flow generation end flow generation method, equipment and storage medium
CN105630301A (en) Menu selection system and method as well as electronic device
CN104461603B (en) A kind of information processing method and electronic equipment
CN107145417A (en) A kind of outer plug-in card installation site method of calibration and device
CN107783946A (en) Text display method and text display
CN110489347A (en) Method for edition management, device, equipment and readable storage medium storing program for executing based on GIT
CN107391848A (en) A kind of words direction detection method and device
CN109960772A (en) A kind of method and device identifying front end page design mistake
CN106250755A (en) For generating the method and device of identifying code
US20130326466A1 (en) Human Readable Software Program Test Step
CN107943635A (en) A kind of test method of storage device, device and medium
CN105700917A (en) Method and apparatus for synchronizing DLL and database
CN107705362A (en) DEM accuracy checking methods and device
CN107861779A (en) Page object localization method and device, storage medium, electronic equipment
CN105243134B (en) A kind of method and apparatus handling browser of being held as a hostage
CN108958855A (en) The method, apparatus and system of page jump
CN108255698A (en) Test cases generation method and device based on visualization interface
CN104834589A (en) Webpage detection method and device
CN103309993B (en) The extracting method of a kind of key word and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20171124

RJ01 Rejection of invention patent application after publication