CN104699930A - Method and device for generating LVDS signal eyespattern - Google Patents
Method and device for generating LVDS signal eyespattern Download PDFInfo
- Publication number
- CN104699930A CN104699930A CN201310658504.8A CN201310658504A CN104699930A CN 104699930 A CN104699930 A CN 104699930A CN 201310658504 A CN201310658504 A CN 201310658504A CN 104699930 A CN104699930 A CN 104699930A
- Authority
- CN
- China
- Prior art keywords
- lvds signal
- msk
- clock period
- generating
- file
- 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
Links
Landscapes
- Dc Digital Transmission (AREA)
Abstract
The invention discloses a method and a device for generating an LVDS signal eyespattern. The method comprises the following steps: 1, acquiring a clock period of an LVDS signal; 2, according to the clock period of the LVDS signal, calculating variable for generating the eyespattern; 3, generating an .msk file according to the variable; 4, generating the LVDS signal eyespattern according to the .msk file. The device for generating the LVDS signal eyespattern adopts a Windows XP operation system, a .Net Framework development platform is used, all operation can be completed on an oscilloscope, a requested .msk file can be automatically generated by inputting the clock period, and abnormal operation of users can be specifically prompted. .msk files can be rapidly and accurately generated for LVDS testing departments, the labor and the materials can be saved, the working efficiency can be greatly improved, and only 10 seconds are taken when one .msk file is generated each time.
Description
Technical field
The present invention relates to a kind of generation method of .msk file.Particularly relate to a kind of LVDS signal eye map generalization method and device.
Background technology
All the time, LVDS(Low Voltage Differential Signal) test transmission department when testing LVDS eye pattern, always need manually to make .msk file.Described eye pattern is exactly the quality that the phase differential of the bound of high level by oscilloscope display, low level bound and eye pattern judges output signal.And .msk file is the standard that oscillograph generates eye pattern, extremely important..msk template be oscillograph producer to instructions, the .msk file that user will be corresponding with the LVDS eye pattern that will test according to this .msk template generation .msk documenting process is as follows:
1, clock period of LVDS signal is measured and record.
2, on an other computer, open an excel template write according to test request, there is the form designed the inside, and inputs the clock period recorded, automatically calculates (having 4 after radix point) data of 14 required 7 position effective digitals.
3, on oscillograph, set up msk template, these 14 numerals are filled out assigned address by regulation.
.msk documenting process is from the above mentioned known, and it exists following weak point.
1, need an extra computer to load onto excel, and also must have such a excel template.
Easily make mistakes when 2,14 data being filled up on oscillograph by regulation.First because data volume is more, figure place is many easily to be misremembered; Secondly, need the data of changing together with the data cube computation not needing to change, be difficult to look for position.
3, very time-consuming in integrated operation, if will test repeatedly, the time of waste is more.Conscientiously finish a .msk file and need about 10 minutes.
Summary of the invention
Technical matters to be solved by this invention is, providing a kind of can be LVDS signal eye map generalization method and the device that LVDS test organization generates .msk file fast and accurately.
Technical scheme provided by the present invention is: a kind of LVDS signal eye map generalization method, comprises the following steps:
S1. the clock period of LVDS signal is obtained;
S2. according to the clock period of described LVDS signal, the required variable for generating described eye pattern is calculated;
S3. .msk file is generated according to described variable;
S4. according to described .msk file generated LVDS signal eye diagram.
The required variable calculated in step S2 for generating described eye pattern comprises: temp1, seg1, seg20, seg21, and the specific formula for calculation of above-mentioned 4 variablees is as follows:
temp1=CLK*1000/7;
seg1=temp1/2;
seg20=-(temp1*0.3-seg1);
seg21=-(temp1*0.35-seg1)。
Also comprise the steps: between step S1 and step S2
Judge that whether the clock period (CLK) of the LVDS signal obtained is correct, if so, then enter step S3, if not, then return step S2.
Another technical scheme provided by the present invention is: a kind of generating apparatus of LVDS signal eye diagram, comprising:
Acquisition module, for obtaining the clock period of LVDS signal;
Computing module, for the clock period according to described LVDS signal, calculates the required variable generating described eye pattern;
Generation module, the described variable for basis generates .msk file, then according to described .msk file generated LVDS signal eye diagram.
The generating apparatus of described LVDS signal eye diagram adopts Windows XP operating system, uses .NetFramework development platform.
In the generating apparatus of described LVDS signal eye diagram, for the input frame obtaining LVDS signal clock cycle (CLK), the button beyond forbidden digit and radix point.
Wherein, for the input frame of the clock period (CLK) of acquisition LVDS signal, whether the clock period of the LVDS signal obtained is correct to adopt following steps to judge:
S21. judge whether the first character inputted is ". ", if so, then at ". " Plus "0" before, and cursor is moved to the last of input frame;
S22. convert the character string of input to double type, if convert failed, then judge a more than radix point in the character string inputted, by the place that cursor dwell inputs at radix point, and point out input error.
Preferably, the generating apparatus of described LVDS signal eye diagram is oscillograph.
A kind of LVDS signal eye map generalization method of the present invention and device, all operations all completes on oscillograph, and input clock cycle can generate the .msk file of needs automatically, and the abnormal operation for user has clear and definite prompting.Can generate .msk file fast and accurately for LVDS test organization, use manpower and material resources sparingly, work efficiency improves greatly.As long as each generation .msk file 10 seconds.
Accompanying drawing explanation
Fig. 1 is the process flow diagram of the inventive method.
Embodiment
Below in conjunction with embodiment and accompanying drawing, a kind of LVDS signal eye map generalization method of the present invention and device are described in detail.
A kind of LVDS signal eye map generalization method of the present invention and device, realizing all operations can complete on oscillograph, and input clock cycle can generate the .msk file of needs automatically, and the abnormal operation for user has clear and definite prompting.
A kind of LVDS signal eye map generalization method of the present invention, first obtains the clock period (CLK) of LVDS signal; According to the clock period (CLK) of described LVDS signal, calculate the required variable for generating described eye pattern; . generate .msk file according to described variable; . according to described .msk file generated LVDS signal eye diagram,
Before carrying out method of the present invention, first to set .msk file generated condition; Described .msk file generated condition comprises:
(1) according to the Window XP operating system carried .Net Framework is used;
(2) window scheme of man-machine interaction is adopted.
(3) to the textbox of clock input, the button beyond forbidden digit and radix point, is converted into 0.5 automatically for .5 form, and forbids the form inputting 0..5 or 0.5.5, and forbids the button on keyboard except " 0 "-" 9 " and ". ";
(4) filename forbids illegal character :/: " <>|, to ensure security for *.
A kind of LVDS signal eye map generalization method provided by the invention, specifically comprises the following steps:
S1: the clock period (CLK) obtaining LVDS signal;
S2: judge that whether the clock period (CLK) of the LVDS signal obtained is correct, if so, then enter step S3, if not, then return step S1;
Described judges that whether the clock period (CLK) is correct, is whenever having text event detection, judges whether the first character inputted is ". ", if ". " just Plus "0" before ". ", and is moved to by cursor finally; Following trial converts the character string of input to double type, if transforming mistakes, it is a more than radix point in character string, therefore the character string before and after the radix point of clock period (CLK) value of the user newly keyed in is intercepted and splices, delete the new radix point keyed in, and by the place that cursor dwell inputted just now, produce bubble prompting input error.
S3: according to the clock period (CLK) of described LVDS signal, calculates the required variable for generating described eye pattern, and the present embodiment calculates 14 numerical value needing to fill in, and generate the character string of filling in required in .msk file,
Calculate and comprise for the required variable generating described eye pattern: temp1, seg1, seg20, seg21, the specific formula for calculation of above-mentioned 4 variablees is as follows:
temp1=CLK*1000/7;
seg1=temp1/2;
seg20=-(temp1*0.3-seg1);
seg21=-(temp1*0.35-seg1)。
14 described numerical value are by adopting above-mentioned formulae discovery 4 double variablees: temp1, seg1, seg20, seg21, obtain, and the account form of variable is based on testing standard, and by the seg1 obtained, seg20, seg21 insert on 14 corresponding positions.
14 numbers are as follows: { seg1 is filled in 0} representative, and { seg20 is filled in 1} representative, and { seg21 is filled in 2} representative
″:MASK:USER:AMP 100.0000E-3;:MASK:USER:PATTERNBITS1;:MASK:USER:PRESAMPBITS 0;:MASK:USER:WID666.6667E-12;:MASK:USER:HSCA 100.0000E-12;:MASK:USER:HTRIGPOS500.0000E-3;:MASK:USER:LAB\″SATA Tx5Gen1x\″;:MASK:USER:TRIGTOSAMP0.0000;:MASK:USER:RECO 5000;:MASK:USER:VSCA250.0000E-3;:MASK:USER:VPOS 0.0000;:MASK:USER:VOFFS0.0000;:MASK:USER:BITR 1.5000E+9;:MASK:USER:SERIALTRIGNRZ;:MASK:USER:SEG1:POINTS
-{0}E-12,600.0000E-3,{0}E-12,600.0000E-3,{0}E-12,800.0000E-3,-{0}E-12,800.0000E-3;:MASK:USER:SEG2:POINTS
-{1}E-12,0.0000,-{2}E-12,-100.0000E-3,{2}E-12,-100.0000E-3,{1}E-12,0.0000,{2}E-12,100.0000E-3,-{2}E-12,100.0000E-3;:MASK:USER:SEG3:POINTS
-{0}E-12,-600.0000E-3,{0}E-12,-600.0000E-3,{0}E-12,-800.0000E-3,-{0}E-12,-800.0000E-3;:MASK:AUTOSET:STANDARD ATATXG1;″,seg1,seg20,seg21。
S3. generate .msk file according to described variable, comprising:
(1) input or selection are stored in the filename that the eye pattern for LVDS on hard disk is tested;
(2) whether the filename that inputs of determining step (1) is correct, is enter next step, otherwise returns step (1);
Described judgement is when input characters changes, detect in the word of input and whether comprise unallowable instruction digit, if had, the character string newly keyed in before and after unallowable instruction digit is intercepted and splices, delete the new unallowable instruction digit keyed in, and by the place that cursor dwell inputted just now, produce bubble prompting input error.
(3) selected by the write step (1) that the character string obtained by step S2 is correct or in the relevant position of the file of input, and add suffix .msk, automatically generate .msk file.
Because test channel is more, a kind of LVDS signal eye map generalization method of the present invention, with the addition of radiobox and is convenient to user and writes filename.
Such as user can directly click ⊙ 1, and the filename of generation is exactly 1.msk; Choose (check box) CLK and can carry out removing selection to radiobox; Reset key meeting reset all option and textbox, return to the state just opening software.
S4. according to described .msk file generated LVDS signal eye diagram.
The generating apparatus of a kind of LVDS signal eye diagram provided by the invention, comprising:
Acquisition module, for obtaining the clock period of LVDS signal;
Computing module, for the clock period according to described LVDS signal, calculates the required variable generating described eye pattern;
Generation module, the described variable for basis generates .msk file, then according to described .msk file generated LVDS signal eye diagram.
The generating apparatus of described LVDS signal eye diagram:
1) adopt Windows XP operating system, use .Net Framework development platform;
2) for the input frame obtaining LVDS signal clock cycle (CLK), the button beyond forbidden digit and radix point;
Wherein, for the input frame of the clock period (CLK) of acquisition LVDS signal, whether the clock period (CLK) of the LVDS signal obtained is correct to adopt following steps to judge:
(1) whenever having text event detection, judge whether the first character inputted is ". ", if so, then at ". " Plus "0" before, and cursor is moved to the last of input frame;
(2) convert the character string of input to double type, if convert failed, then judge a more than radix point in the character string inputted, by the place that cursor dwell inputs at radix point, and point out input error.The character string being about to input converts double type to, if transforming mistakes, it is a more than radix point in character string, therefore the character string before and after the radix point of clock cycle (CLK) value of the user newly keyed in is intercepted and splices, delete the new radix point keyed in, and by the place of cursor dwell in radix point input just now, produce bubble prompting input error.
Particularly, the generating apparatus of described LVDS signal eye diagram can be oscillograph.
The above is only the preferred embodiment of the present invention; it should be pointed out that for those skilled in the art, under the premise without departing from the principles of the invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.
Claims (8)
1. a LVDS signal eye map generalization method, is characterized in that, comprise the following steps:
S1. the clock period of LVDS signal is obtained;
S2. according to the clock period of described LVDS signal, the required variable for generating described eye pattern is calculated;
S3. .msk file is generated according to described variable;
S4. according to described .msk file generated LVDS signal eye diagram.
2. LVDS signal eye map generalization method according to claim 1, is characterized in that: the required variable calculated in step S2 for generating described eye pattern comprises: temp1, seg1, seg20, seg21, and the specific formula for calculation of above-mentioned 4 variablees is as follows:
temp1=CLK*1000/7;
seg1=temp1/2;
seg20=-(temp1*0.3-seg1);
seg21=-(temp1*0.35-seg1)。
3. LVDS signal eye map generalization method according to claim 1, is characterized in that: also comprise the steps: between step S1 and step S2
Judge that whether the clock period (CLK) of the LVDS signal obtained is correct, if so, then enter step S3, if not, then return step S2.
4. a generating apparatus for LVDS signal eye diagram, is characterized in that, comprising:
Acquisition module, for obtaining the clock period of LVDS signal;
Computing module, for the clock period according to described LVDS signal, calculates the required variable generating described eye pattern;
Generation module, the described variable for basis generates .msk file, then according to described .msk file generated LVDS signal eye diagram.
5. the generating apparatus of LVDS signal eye diagram according to claim 4, is characterized in that: the generating apparatus of described LVDS signal eye diagram adopts Windows XP operating system, uses .Net Framework development platform.
6. the generating apparatus of LVDS signal eye diagram according to claim 4, is characterized in that: for the input frame obtaining LVDS signal clock cycle (CLK), the button beyond forbidden digit and radix point.
7. the generating apparatus of LVDS signal eye diagram according to claim 5, is characterized in that: for the input frame of the clock period (CLK) of acquisition LVDS signal, whether the clock period of the LVDS signal obtained is correct to adopt following steps to judge:
S21. judge whether the first character inputted is ". ", if so, then at ". " Plus "0" before, and cursor is moved to the last of input frame;
S22. convert the character string of input to double type, if convert failed, then judge a more than radix point in the character string inputted, by the place that cursor dwell inputs at radix point, and point out input error.
8. the generating apparatus of the LVDS signal eye diagram according to any one of claim 4-7, is characterized in that, the generating apparatus of described LVDS signal eye diagram is oscillograph.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310658504.8A CN104699930A (en) | 2013-12-05 | 2013-12-05 | Method and device for generating LVDS signal eyespattern |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310658504.8A CN104699930A (en) | 2013-12-05 | 2013-12-05 | Method and device for generating LVDS signal eyespattern |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104699930A true CN104699930A (en) | 2015-06-10 |
Family
ID=53347046
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310658504.8A Pending CN104699930A (en) | 2013-12-05 | 2013-12-05 | Method and device for generating LVDS signal eyespattern |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104699930A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105572499A (en) * | 2015-12-14 | 2016-05-11 | 中国电子科技集团公司第四十一研究所 | Eye graph generating method based on vector network analyzer |
CN106128406A (en) * | 2016-09-08 | 2016-11-16 | 京东方科技集团股份有限公司 | Eye pattern amplitude control method, data transmission method, circuit and display device |
CN107515806A (en) * | 2017-08-29 | 2017-12-26 | 郑州云海信息技术有限公司 | A kind of method and apparatus of SAS signal parameters on-line debugging |
-
2013
- 2013-12-05 CN CN201310658504.8A patent/CN104699930A/en active Pending
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105572499A (en) * | 2015-12-14 | 2016-05-11 | 中国电子科技集团公司第四十一研究所 | Eye graph generating method based on vector network analyzer |
CN105572499B (en) * | 2015-12-14 | 2018-02-06 | 中国电子科技集团公司第四十一研究所 | A kind of eye pattern generation method based on vector network analyzer |
CN106128406A (en) * | 2016-09-08 | 2016-11-16 | 京东方科技集团股份有限公司 | Eye pattern amplitude control method, data transmission method, circuit and display device |
CN106128406B (en) * | 2016-09-08 | 2019-01-22 | 京东方科技集团股份有限公司 | Eye map sheet value adjusting method, data transmission method, circuit and display device |
US10600375B2 (en) | 2016-09-08 | 2020-03-24 | Boe Technology Group Co., Ltd. | Method and circuit for modulating eye diagram amplitude, method and circuitry for data transmission, and display device |
CN107515806A (en) * | 2017-08-29 | 2017-12-26 | 郑州云海信息技术有限公司 | A kind of method and apparatus of SAS signal parameters on-line debugging |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Ibrahim | Formalization of the data flow diagram rules for consistency check | |
CN106133537B (en) | A kind of FPGA function module emulation verification method and its system | |
CN104407976B (en) | A kind of interface robustness testing case generation method and device | |
CN104407980B (en) | Mobile solution automatic test device and method | |
Castro et al. | Solvers for the high-order Riemann problem for hyperbolic balance laws | |
CN102402430B (en) | One utilizes script to generate random test example method and system | |
CN112270149B (en) | Verification platform automatic integration method and system, electronic equipment and storage medium | |
CN102567165B (en) | System and method for verifying register transfer level (RTL) hardware | |
CN102662833A (en) | Method for managing test cases | |
US20140214396A1 (en) | Specification properties creation for a visual model of a system | |
US11144434B2 (en) | Refining coverage analyses using context information | |
CN106021118B (en) | Test code generating method and device, test frame code execution method and device | |
CN109598074B (en) | Paste filling simulation analysis method and platform | |
Al-Zawawi et al. | Using streamline and reservoir simulation to improve waterflood management | |
CN109933770A (en) | A kind of test report generation method, system and electronic equipment and storage medium | |
Li et al. | Comparison of three methods of hydrogeological parameter estimation in leaky aquifers using transient flow pumping tests | |
CN104699930A (en) | Method and device for generating LVDS signal eyespattern | |
CN107451064A (en) | Automatic test approach, device, computer equipment and readable storage medium storing program for executing | |
US8140315B2 (en) | Test bench, method, and computer program product for performing a test case on an integrated circuit | |
CN103853863A (en) | Implementation method for PDK (process design kit) automatic test interface | |
US10169217B2 (en) | System and method for test generation from software specification models that contain nonlinear arithmetic constraints over real number ranges | |
US8903698B2 (en) | Generating behavioral models for analog circuits | |
CN103970967A (en) | Electromagnetic transient simulation analysis system of electric power system | |
CN103885341A (en) | Performance analysis system and method based on automobile performance simulator | |
CN103150445B (en) | The method for decomposing of a kind of MATLAB model variable and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20150610 |