JP2005122497A - Test circuit creation method using analog function description - Google Patents
Test circuit creation method using analog function description Download PDFInfo
- Publication number
- JP2005122497A JP2005122497A JP2003357125A JP2003357125A JP2005122497A JP 2005122497 A JP2005122497 A JP 2005122497A JP 2003357125 A JP2003357125 A JP 2003357125A JP 2003357125 A JP2003357125 A JP 2003357125A JP 2005122497 A JP2005122497 A JP 2005122497A
- Authority
- JP
- Japan
- Prior art keywords
- circuit
- test
- function description
- analog function
- analog
- 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
- Design And Manufacture Of Integrated Circuits (AREA)
- Tests Of Electronic Circuits (AREA)
Abstract
Description
本発明は、電子回路の動作をコンピュータ上でシミュレーションする際の解析方法に関するものである。 The present invention relates to an analysis method for simulating the operation of an electronic circuit on a computer.
シミュレータを用いてアナログ回路検証を行う場合、従来は検査対象となる回路とは別に、入力信号に相当する信号源,負荷素子などを回路図として作成し、検査対象となる回路に接続したテスト回路を作成しなければならなかった。 In the case of performing analog circuit verification using a simulator, a test circuit in which a signal source corresponding to an input signal, a load element, etc. is created as a circuit diagram separately from the circuit to be inspected and connected to the circuit to be inspected. Had to create.
アナログ回路の検証は、AC特性,DC特性,過渡特性など、様々な特性や回路の機能について検証する必要があるが、それぞれの特性や機能ごとに電源電圧や付加する回路が異なるため複数のテスト回路を作成する必要がある。 For the verification of analog circuits, it is necessary to verify various characteristics and circuit functions such as AC characteristics, DC characteristics, transient characteristics, etc. However, since the power supply voltage and the circuit to be added differ for each characteristic and function, multiple tests are required. It is necessary to create a circuit.
そこで通常は、まず検査規格表と呼ばれる表を作成し、これの項目に対応するテスト回路を項目数分だけ手作業で作成していた。また、シミュレーションの実行は検証したい項目の数だけ実行する必要があり、この場合、テスト回路を置き換えてシミュレーションを行うという作業を、検証したい項目の数だけ繰り返している。 Therefore, normally, a table called an inspection standard table is first created, and test circuits corresponding to these items are manually created for the number of items. Further, it is necessary to execute the simulation for the number of items to be verified. In this case, the operation of replacing the test circuit and performing the simulation is repeated for the number of items to be verified.
従来の回路シミュレーションにおけるテスト回路について説明する。
図4は検査規格表の例である。
表の1行目のP1〜P5は、検査対象の回路のピン名を表している。
A test circuit in a conventional circuit simulation will be described.
FIG. 4 is an example of an inspection standard table.
P1 to P5 in the first row of the table represent the pin names of the circuit to be inspected.
表の2行目からの各1行のtest1〜test3,test5〜test7は一つの検査内容を示しており、列は1行目に書かれたブロックのピンに接続する素子を表している。たとえば、“ピンP1”のところに“2.5V”と記載されていれば、“ピンP1”に“2.5V”の電圧源を接続するという意味であり、“R1.0KΩ”と記載されていれば“1.0KΩの抵抗を接続する”という意味であり、“SP5”と記載されていれば“ピンP5とショートする”という意味である。 Test 1 to test 3 and test 5 to test 7 in each one row from the second row of the table indicate one inspection content, and a column represents an element connected to a pin of a block written in the first row. For example, if “2.5V” is written at “Pin P1,” it means that a voltage source of “2.5V” is connected to “Pin P1,” and “R1.0KΩ” is written. If it is, it means “connect a resistance of 1.0 KΩ”, and if “SP5” is written, it means “short-circuit with pin P5”.
図5は図4の検査規格表に対応するテスト回路を示す。
図5(a)は図4の項目test1に対応するテスト回路であり、回路のDC特性を確認するためのものである。
FIG. 5 shows a test circuit corresponding to the inspection standard table of FIG.
FIG. 5A is a test circuit corresponding to the item test1 in FIG. 4, and is for confirming the DC characteristics of the circuit.
図5(b)は図4の項目test5に対応しており回路の過渡特性を確認するための回路である。
図5において501はオペアンプやコンパレータなどの検査対象となる回路である。502〜504は電圧源であり、検査対象となる回路の電源や入力信号である。505は負荷抵抗である。
FIG. 5B corresponds to the item test 5 in FIG. 4 and is a circuit for confirming the transient characteristics of the circuit.
In FIG. 5,
これらのテスト回路を用いて動作検証を行う場合、まずDC特性を測定する場合、図5(a)の回路図を用いてシミュレーションを行う。次に過渡特性を測定する場合、図5(b)に回路図を置き換えてシミュレーションを行う。 When performing operation verification using these test circuits, first, when measuring DC characteristics, simulation is performed using the circuit diagram of FIG. Next, when measuring transient characteristics, simulation is performed by replacing the circuit diagram in FIG.
このように測定したい項目に合わせてテスト回路を置き換えながら様々な動作検証を行っている。
しかしながら、大規模なアナログ回路の場合は測定する項目が非常に多く、数千素子の回路の場合、検証項目が数百個ある場合もあるため、複数のテスト回路を作成することや、テスト回路を切り替えながらシミュレーションを繰り返し行い、動作検証を行うことは非常に時間のかかるという課題がある。 However, in the case of a large-scale analog circuit, there are very many items to be measured, and in the case of a circuit with several thousand elements, there may be hundreds of verification items, so it is possible to create multiple test circuits or test circuits. There is a problem that it takes a very long time to perform the operation verification by repeatedly performing the simulation while switching.
本発明は上記従来の問題を解決するもので、一度のシミュレーションで複数の動作検証を行い、シミュレーション実行に関わる作業を減らすことができるテスト回路作成方法を提供することを目的とする。 The present invention solves the above-described conventional problems, and an object thereof is to provide a test circuit creation method capable of performing a plurality of operation verifications in one simulation and reducing the work related to the simulation execution.
本発明のテスト回路作成方法は、回路シミュレーションによりアナログ回路の動作検証を行うに際し、動作検証の対象となる回路のピンに接続する素子を素子レベルの回路図として作成する代わりにアナログ機能記述を用いて作成されたアナログ機能記述ブロックとして接続し、このアナログ機能記述ブロックには複数のテスト回路に相当する機能を持たせておき、アナログ機能記述ブロックの機能を切り替えて複数の動作検証を実行することを特徴とする。 The test circuit creation method of the present invention uses an analog function description instead of creating an element level circuit diagram of an element connected to a pin of a circuit to be verified for operation verification of an analog circuit by circuit simulation. Connected as an analog function description block created in this way, this analog function description block has functions equivalent to multiple test circuits, and switches the functions of the analog function description block to execute multiple operation verifications It is characterized by.
また、シミュレーション途中に、前記アナログ機能記述ブロックのパラメータの変更または外部からの制御信号の変更により、アナログ機能記述で作成されたブロックの機能を切り替えることを特徴とする。 In addition, during the simulation, the function of the block created by the analog function description is switched by changing the parameter of the analog function description block or changing the control signal from the outside.
また、複数の検査項目に対応する複数のテスト回路を検査項目の番号および検査対象となる回路のピンに接続する素子値の表形式により表現しておき、この表をテスト回路に相当するアナログ機能記述にコンピュータによって自動変換することを特徴とする。 In addition, a plurality of test circuits corresponding to a plurality of inspection items are expressed in a table format of element values connected to the inspection item numbers and circuit pins to be inspected, and this table is an analog function corresponding to the test circuit. The description is automatically converted into a description by a computer.
また、パラメータや制御信号によりアナログ機能記述の機能を切り替える際には、電源や入力信号の電圧を瞬間的に切り替えるのではなく、時間的に緩やかに変化させてシミュレーションの収束性を向上させることを特徴とする。 In addition, when switching the function of analog function description by parameter or control signal, the voltage of the power supply or input signal is not switched instantaneously, but it is changed gradually over time to improve the convergence of the simulation. Features.
本発明は、テスト回路作成に関する作業を簡単化し、またシミュレーションの実行に関わる作業を減らすことが可能になり、従来行われていた複数のテスト回路を素子レベルの回路図として作成する作業が不要となり、機能記述ブロックを用いたテスト回路を1つだけ作成すればよいため、回路図作成の作業にかかる時間を大幅に短縮することができ、また、従来は1回のシミュレーションでは一つの項目しか動作検証できなかったが、制御ピンの電圧をシミュレーション中に変化させることにより一度のシミュレーションで複数の項目をまとめて動作検証することが可能になり、シミュレーションの実行に関して回路図の置き換えや、起動の操作が不要になるため、作業時間も大幅に短縮できるテスト回路作成方法である。 The present invention simplifies the work related to the test circuit creation and can reduce the work related to the execution of the simulation, eliminating the need to create a plurality of test circuits that have been conventionally performed as an element level circuit diagram. Because only one test circuit using the function description block needs to be created, the time required for creating the circuit diagram can be greatly shortened, and conventionally only one item can be operated in one simulation. Although it could not be verified, it is possible to verify the operation of multiple items in one simulation by changing the voltage of the control pin during the simulation, replacing the circuit diagram and starting the simulation This eliminates the need for a test circuit, and thus the test time can be greatly reduced.
以下、本発明のテスト回路作成方法を図1〜図3に示す具体的な実施の形態に基づいて説明する。
図1は本発明の実施に使用するテスト回路を示す。
Hereinafter, a test circuit creation method of the present invention will be described based on specific embodiments shown in FIGS.
FIG. 1 shows a test circuit used in the practice of the present invention.
図においてテスト回路にはオペアンプやコンパレータなど検査対象となる回路101があり、これに電源、入力信号源、負荷素子などが接続されるが、これらを素子レベルの回路図ではなくVerilog−Aなどのアナログ機能記述言語を用いて作成されたアナログ機能記述ブロック102として接続している。
In the figure, the test circuit includes a
アナログ機能記述ブロック102は検査対象となる回路101と同じ名前のピンP1からP5を持っており、それぞれのピンは検査対象の回路のピンと直接に接続するようになっている。アナログ機能記述ブロック102には、この他にアナログ機能記述ブロック102の機能を切り替えるためにピンPMがあり、このピンPMは電圧源103に接続されている。
The analog
アナログ機能記述ブロック102の中身は、前記のように電源、入力信号源、負荷抵抗といったものがVerilog−Aなどのアナログ機能記述言語により記述されており、素子レベルのテスト回路と同じ動作をするように作成されている。アナログ機能記述は回路シミュレータで素子レベルのテスト回路と同等の回路を表現することができ、シミュレーション時の動作における精度や速度も抵抗や電圧源などの素子を用いて作成された回路図と同じである。
As described above, the contents of the analog
通常の異なる機能や特性の動作検証には、テスト回路が複数必要になるが、本方式ではアナログ機能記述を用いることにより複数のテスト回路の機能を一つの回路ブロックとして実現している。この場合、動作検証の項目によりアナログ機能記述の機能を切り替えることが必要になるため、機能記述ブロックに制御ピンとしてのピンPMを追加し、この制御ピンに加わる電圧により機能記述の動作を切り替えられるようにしているが、回路のパラメータを用いて切り替えることも可能である。 Usually, a plurality of test circuits are required for operation verification of different functions and characteristics. In this method, the functions of a plurality of test circuits are realized as one circuit block by using an analog function description. In this case, since it is necessary to switch the function of the analog function description depending on the operation verification item, a pin PM as a control pin is added to the function description block, and the operation of the function description can be switched by the voltage applied to the control pin. However, it is also possible to switch using circuit parameters.
図2はピンPMに印加する制御電圧を変化させたときのアナログ機能記述ブロック102の動作を示す。
図2(a)に示すようにシミュレーションの途中でピンPMの電圧を変化されるとシミュレーションの途中で回路の動作を切り替えることができる。
FIG. 2 shows the operation of the analog
As shown in FIG. 2A, when the voltage at the pin PM is changed during the simulation, the operation of the circuit can be switched during the simulation.
この例では、項目1001のシミュレーションを行う場合には、ピンPMに1001mVの電圧を加えれば、アナログ機能記述ブロック102が項目1001のテスト回路として動作し、1002mVの電圧を加えれば、アナログ機能記述ブロック102が項目1002のテスト回路として動作する仕組みとなっている。
In this example, when the simulation of the
ただし、ピンPMの電圧を変化させてテスト回路を切り替える際に、検査対象の回路のピンの電圧をシミュレーションでの1単位時間で急激に変化させてしまうと回路の状態が急激に変化し、シミュレータが回路の変化に追従できず収束不能などのエラーになる場合が多い。そこで、本方式では電圧の切り替えの際に電圧の変化に傾きを与え、回路の状態が緩やかに変化することができるようにしている。 However, when switching the test circuit by changing the voltage of the pin PM, if the voltage of the pin of the circuit to be inspected is changed abruptly in one unit time in the simulation, the circuit state changes abruptly, and the simulator Often fail to follow circuit changes, resulting in errors such as inability to converge. Therefore, in this system, a gradient is given to the voltage change when the voltage is switched, so that the circuit state can be gradually changed.
図2(b)および(c)は出力信号の変化例である。この場合は時間t1秒で検査項目を切り替えることにより、ピンP2の電圧を0Vから5Vに変化させている。図2(b)は何も対策が行われていない場合のピン電圧のグラフであり、たとえばシミュレータの計算上の単位時間が1p秒であれば電圧はt1+1p秒には5Vになり、急激に上昇する。 2B and 2C are examples of changes in the output signal. In this case, the voltage of the pin P2 is changed from 0V to 5V by switching the inspection item at time t1 seconds. FIG. 2B is a graph of the pin voltage when no countermeasure is taken. For example, if the unit time for calculation of the simulator is 1 psec, the voltage will be 5 V in t1 + 1p sec, and will rise rapidly. To do.
図2(c)は本方式の電圧の変化であり、立ち上がりの時間をたとえば1n秒に指定しておけば、電圧は緩やかに変化しt1+1n秒に5Vに到達する。これにより、テスト回路を切り替える際にも安定したシミュレーションを行うことが可能になる。 FIG. 2 (c) shows the voltage change of this method. If the rise time is specified as 1 n seconds, for example, the voltage changes gradually and reaches 5 V in t1 + 1 n seconds. This makes it possible to perform a stable simulation even when the test circuit is switched.
次に、機能記述の生成方法について図3を用いて説明する。
動作検証に必要なテスト回路を作成する際には、まず図3(a)のような検査規格表を作成する。検査規格表の左端の列は動作検証の項目に相当するが、この値は電圧で表現できるように整数にしている。
Next, a function description generation method will be described with reference to FIG.
When creating a test circuit necessary for operation verification, first, an inspection standard table as shown in FIG. The leftmost column of the inspection standard table corresponds to the item of operation verification, but this value is an integer so that it can be expressed by voltage.
次に、この検査規格表からテスト回路に対応する機能記述を変換プログラムによりコンピュータによって自動変換して生成する。
図3(b)はVerilog−Aを用いて機能記述を生成した例である。検査規格表は行ごとにピンの電圧や付加する素子が記述されているので、変換プログラムは、図3(b)に示すように検査規格表の行ごとに対応する機能記述に変換していく。また、ピンPMから与えられる電圧に対応して動作が切り替わるように、ピンPMの電圧に対応した条件分岐を行う仕組みを組み込み、テスト回路の動作が切り替えられるようにしている。また、アナログ機能記述ブロック102の切り替えの際に電圧が急激に変化することを防ぐために図の301のようなtransitonフィルタを用いて波形をなめらかにする仕組みを組み込んでいる。
Next, a function description corresponding to the test circuit is automatically converted from the inspection standard table by a computer using a conversion program.
FIG. 3B shows an example in which a function description is generated using Verilog-A. Since the inspection standard table describes the pin voltage and the element to be added for each row, the conversion program converts it into a function description corresponding to each row of the inspection standard table as shown in FIG. . Further, a mechanism for performing conditional branching corresponding to the voltage at the pin PM is incorporated so that the operation is switched according to the voltage applied from the pin PM, so that the operation of the test circuit can be switched. In addition, in order to prevent the voltage from changing suddenly when the analog
本発明は電子回路をシミュレーション解析して動作確認する工程を従来に比べて大幅に改善して、集積化して製作される各種の電子回路の生産工期の短縮に寄与できる。 The present invention can greatly improve the process of confirming the operation by performing simulation analysis of the electronic circuit, and can contribute to shortening the production period of various electronic circuits manufactured by integration.
101 検査対象回路ブロック
102 アナログ機能記述ブロック
103 検査内容制御用電圧源
501 検査対象回路ブロック
502 第1の電圧源
503 第2の電圧源
504 第3の電圧源
505 負荷抵抗
101 inspection
Claims (4)
動作検証の対象となる回路のピンに接続する素子を素子レベルの回路図として作成する代わりにアナログ機能記述を用いて作成されたアナログ機能記述ブロックとして接続し、
このアナログ機能記述ブロックには複数のテスト回路に相当する機能を持たせておき、アナログ機能記述ブロックの機能を切り替えて複数の動作検証を実行する
テスト回路作成方法。 When verifying the operation of an analog circuit by circuit simulation,
Instead of creating an element-level circuit diagram for the elements connected to the pins of the circuit to be verified, connect them as analog function description blocks created using analog function descriptions.
This analog function description block has a function corresponding to a plurality of test circuits, and a test circuit creation method for executing a plurality of operation verifications by switching the functions of the analog function description block.
請求項1に記載のテスト回路作成方法。 The test circuit creation method according to claim 1, wherein during the simulation, the function of the block created by the analog function description is switched by changing a parameter of the analog function description block or changing a control signal from the outside.
この表をテスト回路に相当するアナログ機能記述にコンピュータによって自動変換することを特徴とする
請求項1または請求項2に記載のテスト回路作成方法。 Express multiple test circuits corresponding to multiple test items in a tabular form of element values connected to test item numbers and circuit pins to be tested,
3. The test circuit creation method according to claim 1, wherein the table is automatically converted into an analog function description corresponding to the test circuit by a computer.
請求項1または請求項2に記載のテスト回路作成方法。 2. When the function of the analog function description is switched by a parameter or a control signal, the voltage of the power supply or the input signal is not switched instantaneously but is gradually changed with time to improve the convergence of the simulation. The test circuit creation method according to claim 2.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2003357125A JP2005122497A (en) | 2003-10-17 | 2003-10-17 | Test circuit creation method using analog function description |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2003357125A JP2005122497A (en) | 2003-10-17 | 2003-10-17 | Test circuit creation method using analog function description |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JP2005122497A true JP2005122497A (en) | 2005-05-12 |
Family
ID=34614107
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2003357125A Pending JP2005122497A (en) | 2003-10-17 | 2003-10-17 | Test circuit creation method using analog function description |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2005122497A (en) |
Cited By (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2007058586A (en) * | 2005-08-24 | 2007-03-08 | Seiko Epson Corp | Verification simulator and verification simulation method |
| JP2007058592A (en) * | 2005-08-24 | 2007-03-08 | Seiko Epson Corp | Verification simulator and verification simulation method |
| JP2011043978A (en) * | 2009-08-20 | 2011-03-03 | Ricoh Co Ltd | Method and device for creating test bench |
| US20170262562A1 (en) * | 2016-03-08 | 2017-09-14 | Kabushiki Kaisha Toshiba | Analog-function description creation apparatus, analog-function description creation method and storage medium |
| WO2024034244A1 (en) * | 2022-08-10 | 2024-02-15 | ローム株式会社 | Macro model for semiconductor integrated circuit device, circuit design simulation program, and circuit design simulator |
-
2003
- 2003-10-17 JP JP2003357125A patent/JP2005122497A/en active Pending
Cited By (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2007058586A (en) * | 2005-08-24 | 2007-03-08 | Seiko Epson Corp | Verification simulator and verification simulation method |
| JP2007058592A (en) * | 2005-08-24 | 2007-03-08 | Seiko Epson Corp | Verification simulator and verification simulation method |
| JP2011043978A (en) * | 2009-08-20 | 2011-03-03 | Ricoh Co Ltd | Method and device for creating test bench |
| US20170262562A1 (en) * | 2016-03-08 | 2017-09-14 | Kabushiki Kaisha Toshiba | Analog-function description creation apparatus, analog-function description creation method and storage medium |
| WO2024034244A1 (en) * | 2022-08-10 | 2024-02-15 | ローム株式会社 | Macro model for semiconductor integrated circuit device, circuit design simulation program, and circuit design simulator |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| Wang et al. | A LabVIEW based automatic test system for sieving chips | |
| CN108802511B (en) | Test method and system for battery management unit | |
| JP2010139442A (en) | Testing apparatus and diagnosis method | |
| EP2267561A1 (en) | Programmable and reconfigurable hardware for real power system emulation | |
| US20050022086A1 (en) | Method for generating tester controls | |
| JP2005122497A (en) | Test circuit creation method using analog function description | |
| CN109190210B (en) | Circuit performance reliability analysis method based on Saber platform modeling simulation | |
| US7451049B2 (en) | Automatic delays for alignment of signals | |
| Shruthi et al. | Using VT system for automated testing of ECU | |
| JP4417084B2 (en) | Fault detection simulation system for analog circuits | |
| JP2010009475A (en) | Electronic circuit analysis apparatus | |
| JPH09319777A (en) | Failure analysis method for electric circuits | |
| JP2016042326A (en) | Information processing device, simulation method, and control program | |
| JP4559930B2 (en) | Failure analysis system, failure analysis information processing apparatus, and failure analysis method | |
| JPH1185251A (en) | Digital control device and digital input / output board testing device | |
| JP2007078536A (en) | Failure detection simulation system, failure detection simulation method and program | |
| JP6798834B2 (en) | Inspection equipment, inspection system, inspection method, and inspection program | |
| Tarraf et al. | Automatic modeling of transistor level circuits by hybrid systems with parameter variable matrices | |
| JP2004348596A (en) | Device, method and program for debugging ic tester program | |
| US8996348B1 (en) | System and method for fault sensitivity analysis of digitally-calibrated-circuit designs | |
| Cheung | Hardware-in-the-loop test automation setup for power converter system development | |
| CN119986308A (en) | A PCBA functional testing system and method | |
| WO2025016549A1 (en) | Measurement application device control unit, measurement application device, and method | |
| Dekov et al. | Software Environment for Automated Experiments with DC/DC Converters | |
| Busser et al. | Automatic Test Sequences Generation from Models |