CN103678359A - Method for rapidly displaying waveform images of integrated circuits - Google Patents

Method for rapidly displaying waveform images of integrated circuits Download PDF

Info

Publication number
CN103678359A
CN103678359A CN201210337621.XA CN201210337621A CN103678359A CN 103678359 A CN103678359 A CN 103678359A CN 201210337621 A CN201210337621 A CN 201210337621A CN 103678359 A CN103678359 A CN 103678359A
Authority
CN
China
Prior art keywords
waveform
data
wave
memory
wave data
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.)
Granted
Application number
CN201210337621.XA
Other languages
Chinese (zh)
Other versions
CN103678359B (en
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.)
Fudan University
Original Assignee
Fudan University
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 Fudan University filed Critical Fudan University
Priority to CN201210337621.XA priority Critical patent/CN103678359B/en
Publication of CN103678359A publication Critical patent/CN103678359A/en
Application granted granted Critical
Publication of CN103678359B publication Critical patent/CN103678359B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/40Scaling of whole images or parts thereof, e.g. expanding or contracting
    • G06T3/4007Scaling of whole images or parts thereof, e.g. expanding or contracting based on interpolation, e.g. bilinear interpolation

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The invention belongs to the field of integrated circuits, and particularly relates to a method used for increasing display speed in the aspect of viewing related waveform images, guaranteeing display precision at the same time, and reducing memory consumption. According to the method, waveform data are read into a memory according to display requirements of users, and if the consumed memory exceeds a specified value, the waveform data which are read in and are inactive at present are called out of the memory and written in a hard disk, so that it is guaranteed that storage space required by the waveform data cannot be too large. Meanwhile, according to a waveform range needing to be displayed by the users, original waveform data are obtained; according to display density requirements, interpolation is conducted on the original waveform data; meanwhile, peak points are detected and kept, and high precision of waveform display is kept.

Description

A kind of integrated circuit waveform image fast display method
Technical field:
The invention belongs to integrated circuit fields, relate to a kind of integrated circuit waveform image fast display method, the method can improve display speed aspect waveform correlation image viewing, guarantees display precision simultaneously, saves memory consumption.
Technical background:
In prior art, the wave simulation file in integrated circuit needs corresponding image viewer to carry out the work such as a series of measurement, check, check and correction.Along with integrated circuit scale do not stop expand, each time integrated circuit is carried out to emulation and just need to carry out record to increasing waveform node voltage and current value, step-length and simulation time also need more and more meticulousr and very long, and guaranteeing thus correctness, this makes wave simulation file itself also more and more huger.
Popular wave file form is mostly linear memory at present, comprises file header, and Wave data two large divisions.The information such as the common include file information of file header, signal type, signal name; Wave data part, according to each node voltage of simulation time sequential storage and current value, in order to facilitate the storage of data, generally also comprises the information such as some sync bytes in Wave data.
Existing waveform checks that software exists problems realizing as the Sandworks (http://www.synopsys.com) of open source software GWAVE (http://gwave.sourceforge.net/) and Synopsys company when waveform shows, for example: 1. or read all waveforms in internal memory, cause EMS memory occupation too much, even exhaust, but the actual waveform of checking seldom; 2. or at waveform show and carry out while amplifying reduction operation, all Wave datas are all operated, causing system response time to be crossed slow etc.
Summary of the invention:
The object of the invention is the deficiency existing for overcoming prior art, for linear memory wave file, a kind of integrated circuit waveform image fast display method is provided, the method is buffer memory and display waveform data fast and effectively, accomplish the balance of speed and degree of accuracy and the real-time adjustment of hommization, solve user and check the speed of software and the demand of precision for waveform.Apply the integrality that method of the present invention can guarantee that waveform shows, with very low computation complexity, reach very high display precision.
In order to achieve the above object, the invention provides a kind of fast cache wave file, and accelerate to show and effectively manage the method for associated internal memory scheduling, in the inventive method, according to user, show and need to read Wave data to internal memory, if consume internal memory, exceed setting, the current inactive Wave data having read in is recalled to internal memory, write hard disk, guaranteeing that Wave data is stored required storage space can be not excessive, simultaneously, according to the required display waveform scope of user, obtain original waveform data, according to display density requirement, original waveform data is carried out to interpolation, and detect simultaneously and retain peak point, the high precision that keeps waveform to show.
Particularly, a kind of integrated circuit waveform image fast display method of the present invention, is characterized in that, the method comprises 2 steps, and each step has corresponding sub-step, and detailed process is as follows:
Step 1: according to showing, need to read Wave data, if consume internal memory, exceed setting, the current inactive Wave data having read in is recalled to internal memory, write hard disk, specifically as follows step by step:
Step by step 11: set up memory-mapped;
In the present invention, the file by wave file from hard disk is to memory-mapped.Owing to simply large file directly being carried out to mapping, can cause memory usage low, so the present invention adopts the memory headroom of regular length (as 50MB) to shine upon, file is folded and is mapped in this piece regular length, user's access location exceeds current mapping content, can again the space of corresponding 50MB length be mapped to internal memory from hard disk, therefore obviously improve access rate, and reduced memory consumption.
Step by step 12: file reading head, obtains identification informations such as comprising waveform name, waveform quantity.
In the present invention step by step, process file header content, read the information that comprises fileinfo, signal type, three parts of signal name, wherein processing according to the difference of concrete waveform format, can adjust to some extent.
Step by step 13: the waveform requirement that need to show according to user reads out corresponding waveform from Wave data;
Due to the Wave data part in waveform, according to each node voltage of simulation time sequential storage and current value.According to the waveform sequence number of the required demonstration of user, the present invention can scan whole wave file fast, skips other waveforms, only reads the data of the waveform of required demonstration.
When Wave data reads, adopted memory management dispatching method to dispatch Wave data, the present invention is priority of each wave setting, the priority of Wave data is the highest when starting most, As time goes on, priority can reduce gradually, and the management of priority is managed by the thread of data management.
When the setting value of the memory consumption of wave form analysis compare tool, the minimum data of priority can be recalled.When the data that recall need again, will read from hard disk, reduce thus memory consumption.
Step 2: as required Wave data processed and shown, specifically as follows step by step:
Step by step 21: time range according to actual needs obtains corresponding data section from actual waveform data.
The present invention separates the demonstration data storage of waveform and Wave data storage; When waveform shows, waveform shows that data are according to the time range of the actual required demonstration of user, carries out interpolation acquisition from original waveform data.
The time range of supposing the required demonstration of user is [t1, t2], from actual waveform data, obtain corresponding data section, first from the time shaft of original waveform data, find the some tp of the most close t1, from tp point, progressively read backward Wave data, until during certain data point, till its time coordinate is greater than t2.Obtain thus the Wave data in [t1, t2] time range of the required demonstration of user.
Step by step 22: the waveform display density of setting according to user carries out linear interpolation and demonstration to original waveform data
In the present invention, in order to guarantee the display precision of waveform, when showing, guarantee that user is after zooming in or out, the number of data points showing in unit physical length is a fixed value; Meanwhile, for the precision that guarantees to show, in interpolation process, carry out peak value detection, retain these peak points, do not carry out interpolation, to improve display precision.
In the present invention, the extreme value detection method that the line sampling method of fixedly counting in applying unit length and left and right neighborhood are judged is carried out graphic describing.
In this step, first according to the time span of required demonstration, and according to the number of data points showing in unit physical length, determine the time step step in each interpolation,
Using step as the stepping on time shaft of stepping length, and calculate Wave data respective value Y simultaneously s,
Y s=Y n-1+(X s-X n-1)*(Y n-Y n-1)/(X n-X n-1)
Wherein, Y sthe Wave data of s data point after corresponding interpolation, X ss X-axis coordinate in stepping, X n-1, Y n-1in stepping process, than Xs and the little nearest coordinate position of Ys, X n, Y nin stepping process, than Xs and the no small nearest coordinate position of Ys.
In the present invention, when interpolation operation carries out, carry out peak value detection, if found a coordinate points (X n, Y n) make to meet Y n>Y n-1aMP.AMp.Amp & Y n>Y n+1, or Y n<Y n-1aMP.AMp.Amp & Y n<Y n+1, to record so this peak point Y nand X nvalue.When showing, need to retain the value of this peak point to improve display precision.
Integrated circuit waveform image fast display method tool of the present invention has the following advantages:
1, good reading speed performance, and the response of real-time user interactions,
For reading of several G magnanimity wave files, adopted EMS memory mappings method, on the one hand, for little file, reading speed is accelerated, and for massive data files, caching technology that can Help of System reduces the consumption of internal memory; When massive data files reads, can skip fast and not need the data that read, only read the waveform that need to read, accelerate reading speed.
2, the interpolation of low complex degree and peak value are processed the efficient and high precision that guarantees demonstration,
If Wave data is counted too much, when waveform shows, speed can be very slow, but show for waveform, and too much waveform is counted can not increase the sharpness of waveform, in fact, only needs limited counting can guarantee the sharpness that waveform shows; Required waveform is counted and can be set by the user, and also can according to load, revise in real time, and the waveform of demonstration is counted interpolation the Wave data from actual is obtained; When amplification is dwindled, the range of waveforms of dwindling according to amplification interpolation from actual waveform data is obtained to required Wave data, by the method for interpolation, can guarantee that amplifying the waveform showing on screen while dwindling counts as fixedly counting, and when guaranteeing display resolution, guarantees the efficiency showing; By carrying out peak value detection in interpolation process, retain these peak points, do not carry out interpolation, can further improve display precision; Due to the processing mode complexity approximately linear of interpolation and peak value, can guarantee that speed still can not decline much in the wave file of processing super large data volume, guaranteed the efficient and real-time showing.
3, use segmentation memory-mapped and guarantee that according to the scheduling memory strategy of priority memory consumption maintains a very low level,
Segmentation memory-mapped makes can almost open without limit the wave file of a plurality of exceedance GB sizes in the inventive method practice and does not worry exhausting memory headroom, because each file has only taken the memory headroom of 50MB, shine upon, greatly reduce consumption.
Meanwhile, the present invention also can detect the Expenditure Levels of internal memory, if memory consumption is larger, so by the unnecessary Wave data that there is no access when many directly from internal memory unloading at cache file, can obviously reduce memory consumption.If also need access next time, again read fast from cache file.
Accompanying drawing explanation
Fig. 1 is the process flow diagram of waveform image fast display method of the present invention.
Fig. 2-Fig. 6 is the procedure for displaying of a burr waveform,
What in figure, show is time forward sequence, green frame indicates to amplify picture in display box, Fig. 2-Fig. 6 is from just reading in burr waveform of demonstration to the process of amplifying gradually, can seeing no matter the spike of burr in which step can clearly show exactly.
Embodiment:
In order to make above-mentioned purpose of the present invention, feature and advantage can become apparent more, below by the result of some concrete examples, further illustrate the present invention.
Embodiment 1
Carry out in the steps below fast cache wave file, and accelerate to show and effectively management associated internal memory scheduling,
Step 1: need to read Wave data according to showing, exceed setting if consume internal memory, the current inactive Wave data having read in is recalled to internal memory, write hard disk, be step by step specifically:
Step by step 11: set up memory-mapped;
File by wave file from hard disk is to memory-mapped, adopt the memory headroom of regular length 50MB to shine upon, file is folded and is mapped in this piece regular length, user's access location exceeds current mapping content, can again the space of corresponding 50MB length be mapped to internal memory from hard disk;
Step by step 12: file reading head, obtain identification informations such as comprising waveform name, waveform quantity,
Process file header content, read the information that comprises fileinfo, signal type, three parts of signal name, processing is wherein adjusted according to the difference of concrete waveform format;
Step by step 13: the waveform requirement that need to show according to user reads out corresponding waveform from Wave data;
According to each node voltage of simulation time sequential storage and current value, the waveform sequence number according to the required demonstration of user, scans whole wave file fast, skips other waveforms, only reads the data of the waveform of required demonstration; When Wave data reads, adopt memory management dispatching method to dispatch Wave data, be priority of each wave setting, the priority of Wave data is the highest when starting most, and As time goes on, priority reduces gradually; When the setting value of the memory consumption of wave form analysis compare tool, the data that priority is minimum recall, and when the data that recall need again, will read from hard disk, reduce thus memory consumption;
Step 2: as required Wave data processed and shown:
Step by step 21: time range according to actual needs, from actual waveform data, obtain corresponding data section,
The demonstration data storage of waveform and Wave data storage are separated; When waveform shows, waveform shows the time range of the actual required demonstration of data based user, carries out interpolation acquisition from original waveform data; The time range of supposing the required demonstration of user is [t1, t2], first from the time shaft of original waveform data, finds the some tp of the most close t1, from tp point, progressively reads backward Wave data, until during certain data point, till its time coordinate is greater than t2;
Step by step 22: the waveform display density of setting according to user carries out linear interpolation and demonstration to original waveform data,
First according to the time span of required demonstration, and according to the number of data points showing in unit physical length, determine the time step step in each interpolation,
Using step as the stepping on time shaft of stepping length, and calculate Wave data respective value Y simultaneously s,
Y s=Y n-1+(X s–X n-1)*(Y n–Y n-1)/(X n–X n-1)
Wherein, Y sthe Wave data of s data point after corresponding interpolation, X ss X-axis coordinate in stepping, X n-1, Y n-1in stepping process, than Xs and the little nearest coordinate position of Ys, X n, Y nin stepping process, than Xs and the no small nearest coordinate position of Ys; When interpolation operation carries out, carry out peak value detection, if found a coordinate points (X n, Y n) make to meet Y n>Y n-1aMP.AMp.Amp & Y n>Y n+1, or Y n<Y n-1aMP.AMp.Amp & Y n<Y n+1, record so this peak point Y nand X nvalue, when showing, need to retain the value of this peak point to improve display precision.
Table 1 shown one of method for displaying waveform of the present invention realize IWAVE and increase income waveform software for display GWAVE (http://gwave.sourceforge.net/) and Synopsys company waveform software for display Sandworks ( http:// www.synopsys.com) the comparison experienced of user.
Table 1
Figure BDA00002130651100061
Practice result has shown sharpness and the degree of accuracy (as shown in Fig. 2-Fig. 6) that can guarantee burr waveform when having used the inventive method can guarantee to show real-time and speed.

Claims (6)

1. an integrated circuit waveform image fast display method, is characterized in that, it comprises step:
Step 1: according to showing, need to read Wave data, if consume internal memory, exceed setting, the current inactive Wave data having read in is recalled to internal memory, write hard disk, specifically as follows step by step:
Step by step 11: set up memory-mapped;
Step by step 12: file reading head, obtains waveform name and waveform quantity identification information;
Step by step 13: the waveform requirement that need to show according to user reads out corresponding waveform from Wave data;
Step 2: as required Wave data processed and shown, specifically as follows step by step:
Step by step 21: time range according to actual needs obtains corresponding data section from actual waveform data;
Step by step 22: the waveform display density of setting according to user carries out linear interpolation and demonstration to original waveform data.
2. in accordance with the method for claim 1, it is characterized in that: described step by step in 11, adopt the memory headroom of regular length (as 50MB), file is folded and is mapped in this piece regular length, user's access location exceeds current mapping content, can again the space of corresponding 50MB length be mapped to internal memory from hard disk.
3. in accordance with the method for claim 1, it is characterized in that, described step by step in 13, for priority of each wave setting, the priority of this Wave data is the highest when starting most, passes gradually and reduces in time, this priority is managed by data management thread, when the setting value of the memory consumption of wave form analysis compare tool, the data that described priority is minimum recall, and while again needing, from hard disk, read.
4. in accordance with the method for claim 1, it is characterized in that, described step by step in 21, time range according to actual needs [t1, t2], from actual waveform data, obtain corresponding data section, first from the time shaft of original waveform data, find the some tp of the most close t1, from tp point, progressively read backward Wave data, until during certain data point, till its time coordinate is greater than t2.
5. in accordance with the method for claim 1, it is characterized in that, described step by step in 22, first according to the time span of required demonstration, and according to the number of data points showing in unit physical length, determine the time step step in each interpolation,
Using step as the stepping on time shaft of stepping length, and calculate Wave data respective value Y simultaneously s,
Y s=Y n-1+(X s-X n-1)*(Y n-Y n-1)/(X n-X n-1)
Wherein, Y sthe Wave data of s data point after corresponding interpolation, X ss X-axis coordinate in stepping, X n-1, Y n-1in stepping process, than Xs and the little nearest coordinate position of Ys, X n, Y nin stepping process, than Xs and the no small nearest coordinate position of Ys.
6. in accordance with the method for claim 1, it is characterized in that, described step by step in 22, when interpolation operation carries out, carry out peak value detection, if find a coordinate points (X n, Y n) make to meet Y n>Y n-1aMP.AMp.Amp & Y n>Y n+1, or Y n<Y n-1aMP.AMp.Amp & Y n<Y n+1, record this peak point Y nand X nvalue, when showing, retain the value of this peak point.
CN201210337621.XA 2012-09-12 2012-09-12 A kind of integrated circuit waveforms image fast display method Active CN103678359B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210337621.XA CN103678359B (en) 2012-09-12 2012-09-12 A kind of integrated circuit waveforms image fast display method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210337621.XA CN103678359B (en) 2012-09-12 2012-09-12 A kind of integrated circuit waveforms image fast display method

Publications (2)

Publication Number Publication Date
CN103678359A true CN103678359A (en) 2014-03-26
CN103678359B CN103678359B (en) 2017-06-06

Family

ID=50315951

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210337621.XA Active CN103678359B (en) 2012-09-12 2012-09-12 A kind of integrated circuit waveforms image fast display method

Country Status (1)

Country Link
CN (1) CN103678359B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105928551A (en) * 2016-05-12 2016-09-07 中国电子科技集团公司第四十研究所 View refreshing method and system of microwave millimeter wave comprehensive measuring instrument
CN108984684A (en) * 2018-07-03 2018-12-11 深圳第蓝筹科技有限公司 A kind of complete display methods of realization diagram curve, system and its application
CN113918322A (en) * 2021-09-09 2022-01-11 芯华章科技股份有限公司 Method and equipment for dynamically storing simulation data of logic system design in memory
CN114003456A (en) * 2021-09-26 2022-02-01 芯华章科技股份有限公司 Waveform data display method, device and storage medium
WO2023193547A1 (en) * 2022-04-08 2023-10-12 华为技术有限公司 Method for generating and storing waveform data during circuit simulation, electronic device and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020171408A1 (en) * 2001-04-05 2002-11-21 Hansen Victor L. Method and apparatus for display generation in digital oscilloscope
CN101620242A (en) * 2009-07-21 2010-01-06 深圳市鼎阳科技有限公司 Method for partially enlarging oscilloscope window
CN102542589A (en) * 2010-12-24 2012-07-04 北京普源精电科技有限公司 Waveform editing method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020171408A1 (en) * 2001-04-05 2002-11-21 Hansen Victor L. Method and apparatus for display generation in digital oscilloscope
CN101620242A (en) * 2009-07-21 2010-01-06 深圳市鼎阳科技有限公司 Method for partially enlarging oscilloscope window
CN102542589A (en) * 2010-12-24 2012-07-04 北京普源精电科技有限公司 Waveform editing method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
杨勋等: "VHDL模拟器波形显示的研制", 《北京理工大学学报》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105928551A (en) * 2016-05-12 2016-09-07 中国电子科技集团公司第四十研究所 View refreshing method and system of microwave millimeter wave comprehensive measuring instrument
CN108984684A (en) * 2018-07-03 2018-12-11 深圳第蓝筹科技有限公司 A kind of complete display methods of realization diagram curve, system and its application
CN113918322A (en) * 2021-09-09 2022-01-11 芯华章科技股份有限公司 Method and equipment for dynamically storing simulation data of logic system design in memory
CN114003456A (en) * 2021-09-26 2022-02-01 芯华章科技股份有限公司 Waveform data display method, device and storage medium
WO2023193547A1 (en) * 2022-04-08 2023-10-12 华为技术有限公司 Method for generating and storing waveform data during circuit simulation, electronic device and storage medium

Also Published As

Publication number Publication date
CN103678359B (en) 2017-06-06

Similar Documents

Publication Publication Date Title
CN103678359A (en) Method for rapidly displaying waveform images of integrated circuits
US8996981B2 (en) Managing forms in electronic documents
TWI428871B (en) Method and apparatus for low power refresh of a display device
EP2381261A3 (en) System and method for displaying different values on a digital multimeter
CN104572783A (en) Webpage click condition displaying method and device
US20060250408A1 (en) Texture cache control using an adaptive missing data table in a multiple cache computer graphics environment
US20220122233A1 (en) Method and apparatus for presenting image for virtual reality device, device and non-transitory computer-readable storage medium
JP2011523706A (en) Signal search with 3D bitmap
WO2022033137A1 (en) Method for generating gif file on basis of hand-drawn video
JP2013058147A (en) Image processing device and method, and program
CN111861883A (en) Multi-channel video splicing method based on synchronous integral SURF algorithm
US20190370238A1 (en) Method and device for indexing dirty data in storage system page
CN107038199B (en) Drawing method and device
US20080074437A1 (en) Method, apparatus and computer program product for implementing picture format conversion to x,y plot
CN107197372B (en) Method and device for shearing batch vertical screen videos and electronic equipment
CN102110431B (en) Method and device for zooming digital images
JP2014066707A (en) Methods and systems for displaying triggered waveform record segments
CN106780291B (en) Real-time distortion image processing accelerating device
CN105139341A (en) GIF image editing method and device
Gong et al. Design of high-speed real-time sensor image processing based on FPGA and DDR3
CN111782563B (en) DVP controller system for RISC-V microcontroller
CN103106395A (en) Geometry normalization kernel device of license plate character real-time recognition system
CN104616332A (en) Fast display method
JP2000148126A (en) Image display device and method
CN117788269B (en) FPGA-based spot centroid quick positioning method and related equipment thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant