CN103473382A - Calculator solution in waveform display in integrated circuit simulation - Google Patents
Calculator solution in waveform display in integrated circuit simulation Download PDFInfo
- Publication number
- CN103473382A CN103473382A CN2012101865442A CN201210186544A CN103473382A CN 103473382 A CN103473382 A CN 103473382A CN 2012101865442 A CN2012101865442 A CN 2012101865442A CN 201210186544 A CN201210186544 A CN 201210186544A CN 103473382 A CN103473382 A CN 103473382A
- Authority
- CN
- China
- Prior art keywords
- integrated circuit
- function
- analysis
- waveform
- simulation
- 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
Images
Landscapes
- Tests Of Electronic Circuits (AREA)
Abstract
The invention discloses a calculator solution suitable for waveform display in an integrated circuit simulation tool, belongs to the technical field of computer aided design of an integrated circuit and particularly relates to the field of integrated circuit digital simulation, analog simulation and digital-analog hybrid simulation. Aiming at a function of carrying out calculator analysis on an output result of the large-scale integrated circuit simulation tool, the invention discloses a waveform calculation expression construction method on the basis of lex lexical analysis and yacc lexical analysis and defines four groups of waveform calculation functions. In the practical engineering application, the solution can well meet the requirement of an integrated circuit design engineer on simulation result analysis and greatly improve the design efficiency.
Description
Technical field
The present invention is a kind of waveform display calculator solution be applicable in the integrated circuit simulating instrument; affiliated technical field is the integrated circuit CAD field, especially relates to integrated circuit Digital Simulation, analog simulation and digital-to-analogue hybrid simulation field.
Background technology
Along with the sustainable development of integrated circuit technology, realize that on one single chip whole Complex Electronic Systems Based has become possibility.Such system generally includes digital signal, simulating signal and digital-to-analogue mixed signal and processes.In the early stage emulation of design, such IC designs to find that mistake has seemed very necessary.So-called circuit simulation, set up the propagation model of signal in circuit exactly, simulates thus the function of side circuit.Early stage at the seventies, emulation technology has been widely used for the behavior of validation integrated circuit before manufacturing.It is by setting up the behavior that electric current and voltage quantities are carried out artificial circuit around transistor.This usually is called analog simulation or circuit is grade simulated.Early stage emulator can only be simulated a hundreds of transistorized circuit.Along with the development of mathematical method, emulator can be processed more massive circuit.
In special-purpose Integrated design (IC), waveform oscilloscope is used to show and analyze the Output rusults of emulation tool.The duty that waveform oscilloscope can help IC design engineer to check that device is offset in time and the mutual relationship between device.Waveform oscilloscope is the tools production matched with emulation tool.The emulation tool of current main-stream mostly has special-purpose waveform oscilloscope, as the CosmosScope of Hspice, and the FineVision of FineSim etc.A complete waveform oscilloscope need to possess following several basic function:
1. wave file resolver.The function of resolver is that the Output rusults of emulator is changed into to the waveform oscilloscope internal data format.
2. browser.Need to support that waveform shows, zoom in/out, translation, the operations such as grouping/fractionation.
3. counter.Counter is the instrument that assisted user carries out wave form analysis.It can be converted waveform by the mode of expression formula, and then the different qualities of analytic signal, and for example FFT can analyze the frequency domain characteristic of a time-domain signal.
4. survey instrument.Survey instrument is another important tool that assisted user carries out wave form analysis.The survey instrument that is parallel to Y direction can the Y value of measured waveform under specific X coordinate, and Difference measures the distance that can calculate between two data points and slope etc.
5. other Premium Features.As waveform compares, A-D/D-A and Eye-diagram etc.
Expression formula building method in the present invention is based on lex (lexical analysis) and yacc (grammatical analysis) instrument.The Lex instrument is a kind of lexical analyzer maker, and it can generate according to the requirement of morphological rule instructions the word identification program, by this procedure identification, goes out each word in input text.The yacc instrument is a kind of syntactic analyser maker, and it can convert the grammer instructions of relevant certain language to corresponding syntactic analyser, by this program, completes the grammatical analysis work to statement in corresponding language.In compilation process, lexical analysis and grammatical analysis are two important stages.Lex and yacc can generate the C code that completes respectively lexical analysis and grammatical analysis function.
Summary of the invention
The present invention is directed to the counter analytic function of large scale integrated circuit emulation tool Output rusults, proposed a kind of waveshape expression formula building method based on lex lexical analysis and yacc grammatical analysis, and defined 4 groups of waveshape functions.In practical engineering application, this scheme can meet the demand of integrated circuit (IC) design slip-stick artist to analysis of simulation result well, has greatly improved design efficiency.
Main technical schemes of the present invention comprises following two parts:
1.Lex and yacc expression formula building method
(1) Lex constant and variable-definition
(2) Lex morphological rule definition
(3) yacc semantic rules definition
2. computing function definition commonly used
Function can be divided into following 4 classes:
(1) basic function or operational symbol.This Certain function summary can be used signal name and real number value to do parameter.
(2) trigonometric function.This Certain function summary is the expansion to basic function.These functions also can be used signal name and real number value to do parameter, and Output rusults is real number value (input parameter is real number) or waveform (being input as signal name).
Operational character/function | Retouch art |
sin(x) | Sine function |
cos(x) | Cosine function |
tan(x) | Tan |
cot(x) | The cotangent function |
asin(x) | Arcsin function |
acos(x) | Inverse cosine function |
atan(x) | Arctan function |
acot(x) | The arc cotangent function |
sinh(x) | Hyperbolic sine function |
cosh(x) | Hyperbolic cosine function |
tanh(x) | Hyperbolic tangent function |
coth(x) | The coth function |
(3) wave function.This Certain function summary to input to a rare parameter be waveform signal, Output rusults is a waveform.
Operational character/function | Describe |
avg(s) | The average product score value of return signal s |
db(s) | 20*log10(s) |
clip(s,x1,x2) | Return to waveform s one section (x is from x1 to x2) |
deriv(s) | The derivative waveform of return signal s |
fft(s) | The Fast Fourier Transform (FFT) waveform of return signal s |
imag(s) | The imaginary part waveform of return frequency signal s |
integ(s) | The integrated value of return signal s |
mag(s) | The amplitude of return frequency signal s |
phase(s) | The phase value of return frequency signal s |
phasedif(s1,s2) | The phase place value difference of return signal s1 and s2 |
real(s) | The real part waveform of return frequency signal s |
(4) measurement functions.It is waveform signal that this Certain function summary inputs to a rare parameter, and Output rusults is a measured value.
The accompanying drawing explanation
Fig. 1 waveform oscilloscope one-piece construction figure;
Fig. 2 counter operational flow diagram;
Embodiment
Suppose that the input expression formula is: phase (fft (clip (" f<0 >:: s<v (n1)>[0] ", 0.1u, 0.5u))).
1.Lex resolving analysis
(1) read in key word " phase ", calling rule: " function_name_wave " { return FUNC; , resolving " phase " is a function name (being output as waveform).
(2) read in " (", calling rule: [() { }+*/^ ,] { return*yytext; , resolve " (".
(3) read in key word " fft ", calling rule: " function_name_wave " { return FUNC; , resolving " fft " is a function name (being output as waveform).
(4) read in " (", calling rule: [() { }+*/^ ,] { return*yytext; , resolve " (".
(5) read in key word " clip ", calling rule: " function_name_wave " { return FUNC; , resolving " clip " is a function name (being output as waveform).
(6) read in " (", calling rule: [() { }+*/^ ,] { return*yytext; , resolve " (".
(7) read in " " ", calling rule: " " " { BEGIN_SIGNAL; .Signal resolution starts.
(8) read in " f<", calling rule:<_ SIGNAL_ > " f<" { BEGIN_FILE_; .The wave file index value is resolved and is started.
(9) read in " 0 ", calling rule:<_ FILE_ > INTEGER}{ //save the file index value}.
Preserve the file index value.
(10) read in ">:: s<", calling rule:<_ FILE_ > and ">:: s<" { BEGIN_SIGNAL; .Signal name is resolved and is started.
(11) read in " v (n1) ", calling rule:<_ NODE_ > NODENAME}{ //save node name}.Preserve signal name.
(12) read in ">[", calling rule:<_ NODE_ > " > [" { BEGIN TABLE; .The wave file table index is resolved and is started.
(13) read in " 0 ", calling rule:<_ TABLE_ > INTEGER}{ //save table index value}.Preserve table index value.
(14) read in "] " ", calling rule:<_ TABLE_ "] " " { BEGIN INITIAL; Return VAR; .Signal name is parsed.
(15) read in ", 0.1u, 0.5u ", successively calling rule: [() { }+*/^ ,] { return*yytext; ,
{DECIMAL}[afpnumKMGT]{return CONST;},[-(){}+*/^,]{return*yytext;},
DECIMAL}[afpnumKMGT] { return CONST; , complete the parsing of input constant.
(16) read in "))) ", three calling rules [() { }+*/^ ,] { return*yytext; .The bracket pairing of whole expression formula left and right is correct, and whole morphology resolving is complete.
2.Yacc resolving analysis
(1) expression formula " v (1) " is called to semanteme: VAR{=1; , first input signal name of analytical function clip.
(2) expression formula " 0.1u " and " 0.5u " are called to semanteme twice: CONST{=1; .The 2nd of analytical function clip, 3 input parameter values.
(3) expression formula " clip (" f<0 >:: s<v (n1)>[0] ", 0.1u, 0.5u) " is called to semanteme: | FUNC ' (' VAR ', ' const_expr ', ' const_expr ') ' { return FUNC (VAR, const_expr, const_expr); .Return to the result of calculation of clip function.
(4) expression formula " fft (clip (" f<0 >:: s<v (n1)>[0] ", 0.1u, 0.5u)) " is called to semanteme: | FUNC ' (' expr ') ' { return FUNC (expr); .Return to the result of calculation of fft function.
(5) expression formula " phase (fft (clip (" f<0 >:: s<v (n1)>[0] ", 0.1u, 0.5u))) " is called to semanteme: | FUNC ' (' expr ') ' { return FUNC (expr); .Return to net result.Whole computation process finishes.
Claims (3)
1. the waveform display calculator solution be applicable in the integrated circuit simulating instrument, its technical characterictic is following two aspects: 1. calculation expression is resolved based on lex lexical analysis and yacc grammatical analysis.2. the present invention has defined 4 class basic calculating functions: basic function exclusive disjunction symbol, trigonometric function, wave function and measurement functions.
2. counter solution according to claim 1, is characterized in that: 1. creatively proposed the calculation expression analytic method based on lex and yacc.2. 4 class basic calculating functions in the waveform oscilloscope product have creatively been proposed to be applied to.3. expression parsing is the process of an infinite recursion, and the result of calculation of an expression can be used as the input of another expression formula.
3. counter solution according to claim 1, its technical characterictic comprises following 4 aspects: 1. 8 constants and 5 variable-definitions in the 1ex lexical analysis.2. 17 morphological rule definition in the lex lexical analysis.3. 6 parts in the yacc semantic analysis, totally 48 semantic rules definition.4. 4 class basic functions, the definition of totally 60 functions or operational symbol.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2012101865442A CN103473382A (en) | 2012-06-07 | 2012-06-07 | Calculator solution in waveform display in integrated circuit simulation |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2012101865442A CN103473382A (en) | 2012-06-07 | 2012-06-07 | Calculator solution in waveform display in integrated circuit simulation |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103473382A true CN103473382A (en) | 2013-12-25 |
Family
ID=49798230
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2012101865442A Pending CN103473382A (en) | 2012-06-07 | 2012-06-07 | Calculator solution in waveform display in integrated circuit simulation |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103473382A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110058098A (en) * | 2019-04-29 | 2019-07-26 | 南方电网科学研究院有限责任公司 | State monitoring method, device, equipment and the medium of DC control and protection system |
CN112417799A (en) * | 2020-12-04 | 2021-02-26 | 北京华大九天软件有限公司 | Multi-signal selection and response method |
CN113392610A (en) * | 2021-08-18 | 2021-09-14 | 苏州贝克微电子有限公司 | Simulation optimization method and device for transient analysis of large-scale integrated circuit |
-
2012
- 2012-06-07 CN CN2012101865442A patent/CN103473382A/en active Pending
Non-Patent Citations (3)
Title |
---|
CADENCE DESIGN SYSTEMS: "Waveform Calculator User Guide", 《HTTP://WEB.EECS.UTK.EDU/~ECE433/ECE433_533/CALC.PDF》 * |
祝睿: "针对GSTE的电路模型抽取", 《中国优秀硕士学位论文全文数据库-信息科技辑》 * |
陈林: "复杂数学系统级芯片技术—设计工具应用与扩展", 《中国优秀硕士学位论文全文数据库-信息科技辑》 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110058098A (en) * | 2019-04-29 | 2019-07-26 | 南方电网科学研究院有限责任公司 | State monitoring method, device, equipment and the medium of DC control and protection system |
CN112417799A (en) * | 2020-12-04 | 2021-02-26 | 北京华大九天软件有限公司 | Multi-signal selection and response method |
CN113392610A (en) * | 2021-08-18 | 2021-09-14 | 苏州贝克微电子有限公司 | Simulation optimization method and device for transient analysis of large-scale integrated circuit |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105302685A (en) | Collaborative simulation testing method and device for software and hardware | |
CN113392610B (en) | Simulation optimization method and device for transient analysis of large-scale integrated circuit | |
US7295961B2 (en) | Method for generating a circuit model | |
CN104091092A (en) | Feature value analysis system for small-interference stability of large-scale power system | |
CN108959779A (en) | Decoupling network design method based on power supply noise time domain analytical analysis | |
CN101706831B (en) | Circuit tolerance measure method in field of semiconductor design simulation | |
CN103473382A (en) | Calculator solution in waveform display in integrated circuit simulation | |
CN110716537B (en) | Simulation test method and device | |
CN104615808B (en) | A kind of test method and reference model device of hardware computation component to be tested | |
CN106405388A (en) | Digital chip function test method and system | |
US11501050B1 (en) | Analog mixed-signal assertion-based checker system | |
Oliveira et al. | Efficient RF circuit simulation using an innovative mixed time-frequency method | |
Gläser et al. | Knowing Your AMS System’s Limits: System Acceptance Region Exploration by Using Automated Model Refinement and Accelerated Simulation | |
Lutovac-Banduka et al. | Graphical User Interface for Design, Analysis, Validation, and Reporting of Continuous-Time Systems Using Wolfram Language | |
Troyanovsky et al. | Large signal frequency domain device analysis via the harmonic balance technique | |
Mustafa et al. | Real-Time FPGA Simulation of Electric Ship Power System Using High-Level Synthesis | |
Su et al. | A parallel implementation of electromagnetic electromechanical hybrid simulation protocol | |
CN102508984B (en) | Method, equipment and system for simulation acceleration based on circuit fine tuning | |
CN105912380A (en) | Method for converting EDIF netlist file to Protel netlist file | |
CN103853857A (en) | Method for achieving measuring tools in integrated circuit simulation waveform display | |
CN112131811B (en) | FPGA time sequence parameter extraction method | |
Krampl et al. | Test setup simulation-a high-performance VHDL-based virtual test solution meeting industrial requirements | |
US9009636B2 (en) | Analog circuit simulator and analog circuit verification method | |
US11544435B1 (en) | On-the-fly computation of analog mixed-signal (AMS) measurements | |
CN203773040U (en) | Virtual instrument calibration electric transformer-based device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20131225 |