JP2013097580A - Dynamic analysis device, dynamic analysis system, dynamic analysis method and program - Google Patents

Dynamic analysis device, dynamic analysis system, dynamic analysis method and program Download PDF

Info

Publication number
JP2013097580A
JP2013097580A JP2011239823A JP2011239823A JP2013097580A JP 2013097580 A JP2013097580 A JP 2013097580A JP 2011239823 A JP2011239823 A JP 2011239823A JP 2011239823 A JP2011239823 A JP 2011239823A JP 2013097580 A JP2013097580 A JP 2013097580A
Authority
JP
Japan
Prior art keywords
data
bus
history
variable
dynamic analysis
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
JP2011239823A
Other languages
Japanese (ja)
Other versions
JP5441983B2 (en
Inventor
Taichi Ishizaka
太一 石阪
Shigeki Suzuki
繁樹 鈴木
Yamahiko Ito
山彦 伊藤
Noriyuki Komiya
紀之 小宮
Takeru Kuroiwa
丈瑠 黒岩
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP2011239823A priority Critical patent/JP5441983B2/en
Publication of JP2013097580A publication Critical patent/JP2013097580A/en
Application granted granted Critical
Publication of JP5441983B2 publication Critical patent/JP5441983B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

PROBLEM TO BE SOLVED: To easily and accurately analyze the operation of a control device or the like.SOLUTION: A dynamic analysis device 6 is connected to an address bus 11, a data bus 12, and a control signal line 13 to which a CPU 3 to be analyzed is connected. The dynamic analysis device 6 includes: a data analysis part for specifying processing content, for example, functions or variables under execution from the value of an address on the address bus 11, and for specifying processing data, for example, values of variables from data on the data bus 12; a storage part for storing history information including the history of the processing content and the processing data analyzed by the data analysis part; and a history information providing means for providing the history information stored in the storage part in response to an access from a dynamic analysis tool 7.

Description

この発明は、制御装置等の動作を動的に解析する動的解析装置、動作解析システム、動作解析方法、コンピュータに動的解析を実行させるコンピュータプログラムに関する。   The present invention relates to a dynamic analysis apparatus, an operation analysis system, an operation analysis method, and a computer program that causes a computer to execute dynamic analysis.

プログラムの動作試験や不具合解析において、特定のメモリへのアクセスや、関数遷移の解析を行う場合、一般には専用のICE(In Circuit Emulator)をコンピュータに接続して解析する。もしくは、プログラムのソースコード内にデバッグプリント文を埋め込み、データ内容を出力して解析している。   In a program operation test or failure analysis, when a specific memory is accessed or a function transition is analyzed, a dedicated ICE (In Circuit Emulator) is generally connected to the computer for analysis. Alternatively, a debug print statement is embedded in the source code of the program, and the data contents are output and analyzed.

ICEはCPUの動作を専用の機器で模擬するもので、一行単位でプログラムを実行するステップ実行機能、実行途中での一時停止機能(Break)、指定メモリ内容の表示機能などが備わっている。ICEには、基板のCPU部分をICソケットに変更してCPU機能を完全にICEに置換えるフルICEタイプ、JTAG通信でCPUとアクセスして実行状態を制御するJTAG ICEタイプがある。
いずれのタイプのICEも、利用時には、基板上に専用のICソケットやJTAGコネクタに接続する必要がある。ICEはプログラム作成時に用いられることがほとんどであるため、最終的な量産品の基板からICソケットやJTAGコネクタは削除されることがほとんどである。
The ICE simulates the operation of the CPU with a dedicated device, and includes a step execution function for executing a program in units of one line, a pause function (Break) during execution, a display function of designated memory contents, and the like. ICE includes the full ICE type in which the CPU function of the board is changed to an IC socket and the CPU function is completely replaced with ICE, and the JTAG ICE type in which the CPU is accessed by JTAG communication to control the execution state.
When using any type of ICE, it is necessary to connect a dedicated IC socket or JTAG connector on the board. Since ICE is mostly used at the time of program creation, IC sockets and JTAG connectors are often deleted from final mass-produced boards.

デバッグプリントはプログラム上に試験用のコードを埋め込み、特定データの値などを外部に出力する手法であり、ICEのように外付けの機器は不要である。しかしながら、デバッグプリントを入れる位置や量などによって実動作時の性能や、実行タイミングなどが実際の量産品とは異なることとなる。   Debug printing is a technique for embedding a test code in a program and outputting the value of specific data to the outside, and does not require an external device such as ICE. However, the actual operation performance, execution timing, and the like differ from actual mass-produced products depending on the position and amount of the debug print.

試験時と運用時とで動作タイミングに差が発生しない方式が特許文献1に開示されている。この方式は、バス上のアドレス信号と制御信号とを観測し、予め設定されたデータ記憶回路の特定アドレスをアクセスしたことを検出したときに起動要求信号を出力するアクセス判定回路と、起動要求信号に応答して、特定アドレスのデータをトレースデータセーブエリアに記憶し常に最新のデータから一定回数以前までのデータを記憶するよう制御する回路とを備え、運用時に使用する通常プログラムを使用してデバッグする方式が提案されている。この方式によれば、中央制御回路の処理能力が生かされ、デバッグ時と運用時とで動作タイミングに差が発生しない。   Patent Document 1 discloses a method in which there is no difference in operation timing between a test and an operation. This method observes an address signal and a control signal on a bus and outputs an activation request signal when detecting that a specific address of a preset data storage circuit is accessed, and an activation request signal In response to the above, it is equipped with a circuit that stores the data at a specific address in the trace data save area and controls to store the data from the latest data up to a certain number of times before, and debug using the normal program used during operation A method has been proposed. According to this method, the processing capability of the central control circuit is utilized, and there is no difference in operation timing between debugging and operation.

特開平3−211634号公報(第1図)Japanese Patent Laid-Open No. 3-211634 (FIG. 1)

上記特許文献1の技術では、CPUが特定のメモリアドレスにアクセスした場合にメモリ値を保存しておく方式であるため、メモリ値の推移は解析できるが、実行された処理内容の推移、例えば、どの処理関数が特定メモリにアクセスしたのかは解析できないという課題が生じていた。   In the technique of the above-mentioned patent document 1, since the memory value is stored when the CPU accesses a specific memory address, the transition of the memory value can be analyzed, but the transition of the executed processing content, for example, There was a problem that it was impossible to analyze which processing function accessed a specific memory.

また、特許文献1の技術では、メモリ値しか保存できないため、例外エラーなどの発生推移を調査したい場合などは、調査する手段が無かった。   In the technique of Patent Document 1, since only a memory value can be stored, there is no means for investigating when it is desired to investigate the occurrence transition of an exception error or the like.

本発明は、上記課題を解決するためになされたもので、より簡便に制御装置等の動作を解析可能とすることを目的とする。
また、本発明は、より正確に制御装置等の処理動作を解析可能とすることを目的とする。
The present invention has been made to solve the above-described problems, and an object of the present invention is to make it possible to more easily analyze the operation of a control device and the like.
Another object of the present invention is to make it possible to analyze the processing operation of the control device and the like more accurately.

上記目的を達成するため、この発明の動的解析装置は、
アドレスバス上のアドレスの値から処理内容を特定し、データバス上のデータから処理データを特定するバスデータ解析部と、
前記バスデータ解析部により解析された処理内容と処理データの履歴の少なくとも一部を含む履歴情報を記憶する記憶部と、
外部からのアクセスに応答して、前記記憶部に記憶した履歴情報を提供する履歴情報提供手段と、
を備えるものである。
In order to achieve the above object, the dynamic analysis apparatus of the present invention is
A bus data analysis unit that identifies the processing contents from the address value on the address bus and identifies the processing data from the data on the data bus;
A storage unit for storing history information including at least a part of a history of processing data and processing data analyzed by the bus data analysis unit;
In response to an external access, history information providing means for providing history information stored in the storage unit;
Is provided.

この発明によれば、簡易に動作解析が可能となる。   According to the present invention, operation analysis can be easily performed.

本発明の実施の形態1に係る動的解析システムの構成図である。It is a block diagram of the dynamic analysis system which concerns on Embodiment 1 of this invention. 図1に示す動的解析装置の物理構成を示すブロック図である。It is a block diagram which shows the physical structure of the dynamic analyzer shown in FIG. 実施の形態1に係る動的解析装置の機能的構成を示す構成図である。1 is a configuration diagram showing a functional configuration of a dynamic analysis device according to a first embodiment. (a)と(b)とは、図3に示すデータ管理部に格納される関数アドレス範囲と変数アドレス値とを示す図である。(A) And (b) is a figure which shows the function address range and variable address value which are stored in the data management part shown in FIG. (a)〜(c)は、図3に示すデータ管理部に格納される関数遷移履歴と、変数遷移履歴と、変数定時履歴の例を示す図である。(A)-(c) is a figure which shows the example of the function transition log | history stored in the data management part shown in FIG. 3, a variable transition log | history, and a variable fixed time log | history. (a)〜(c)は、図3に示すデータ管理部に格納される関数遷移履歴条件と、変数遷移履歴条件と、定時履歴条件の例を示す図である。(A)-(c) is a figure which shows the example of the function transition history condition stored in the data management part shown in FIG. 3, the variable transition history condition, and a fixed time history condition. 実施の形態1に係る動的解析ツールの構成図である。2 is a configuration diagram of a dynamic analysis tool according to Embodiment 1. FIG. 動的解析システムの使用場面(環境)を説明するための図である。It is a figure for demonstrating the use scene (environment) of a dynamic analysis system. メモリアクセスタイミングチャートである。It is a memory access timing chart. 実施の形態1に係るバスデータ監視部の処理を示すフローチャートである。4 is a flowchart illustrating processing of a bus data monitoring unit according to the first embodiment. 実施の形態1に係るバスデータ解析部の処理を示すフローチャートである。3 is a flowchart showing processing of a bus data analysis unit according to the first embodiment. 実施の形態1に係る定時データ処理部の処理をフローチャートで示した図である。It is the figure which showed the process of the regular data processing part which concerns on Embodiment 1 with the flowchart. 本発明の実施の形態2に係る動的解析装置の機能構成図である。It is a function block diagram of the dynamic analyzer which concerns on Embodiment 2 of this invention. タスク遷移タイミングを説明するための図である。It is a figure for demonstrating task transition timing. 実施の形態2に係るタスク解析部の処理のフローチャートである。10 is a flowchart of processing of a task analysis unit according to the second embodiment. タスクの変化とタスク変化のタイミングとの履歴を示す図である。It is a figure which shows the log | history of the change of a task, and the timing of a task change. 本発明の実施の形態3に係る動的解析装置の構成図である。It is a block diagram of the dynamic analyzer which concerns on Embodiment 3 of this invention. バス占有時間を説明するためのタイミングチャートである。It is a timing chart for demonstrating bus occupation time. 実施の形態3に係るバス占有率解析部の処理のフローチャートである。10 is a flowchart of processing of a bus occupancy rate analysis unit according to the third embodiment.

実施の形態1.
以下、この発明の実施の形態1に係る動的解析システムを備える設備制御システムについて説明する。
Embodiment 1 FIG.
Hereinafter, the equipment control system provided with the dynamic analysis system which concerns on Embodiment 1 of this invention is demonstrated.

図1に示すように、この実施の形態に係る設備制御システム1は、設備制御装置2と動的解析ツール7とを備える。   As shown in FIG. 1, the facility control system 1 according to this embodiment includes a facility control device 2 and a dynamic analysis tool 7.

設備制御装置2は、空調機、電力制御装置等の任意の設備機器の制御装置として機能するものであり、ハードウエア的には、プログラムを実行する中央演算処理装置であるCPU3(Central Processing Unit)、プログラムを格納するための不揮発性のメモリであるROM4(Read Only Memory)、変数などを格納する揮発性のメモリであるRAM5(Random Access Memory)、バス上を流れるデータの動的解析を実施する動的解析装置6を備える。CPU3、ROM4、RAM5、動的解析装置6は、それぞれアドレスバス11、データバス12、制御信号線13により相互に接続されている。   The equipment control device 2 functions as a control device for any equipment such as an air conditioner and a power control device. In terms of hardware, a CPU 3 (Central Processing Unit) is a central processing unit that executes a program. , ROM4 (Read Only Memory), which is a non-volatile memory for storing programs, RAM5 (Random Access Memory), which is a volatile memory for storing variables, and the like, and dynamic analysis of data flowing on the bus A dynamic analysis device 6 is provided. The CPU 3, the ROM 4, the RAM 5, and the dynamic analysis device 6 are connected to each other by an address bus 11, a data bus 12, and a control signal line 13.

設備制御装置2は、動的解析内容の指示、動的解析結果の表示などを行う動的解析ツール7と、互いに通信が可能であるように通信線14で接続されている。   The equipment control device 2 is connected to a dynamic analysis tool 7 for instructing dynamic analysis contents, displaying a dynamic analysis result, and the like through a communication line 14 so that they can communicate with each other.

CPU3,ROM4,RAM5は、任意の設備装置の制御に使用される。
一方、動的解析装置6は、CPU3の動作を動的に解析するために使用されるものであり、ハードウエア的には、図2に示すように、プロセッサ161と、受信回路162と、記憶部163と、通信制御装置164から構成される。
プロセッサ161は、CPUまたはFPGA(Field−Programmable Gate Array)などの中央演算処理部から構成され、記憶部163に記憶された動作プログラムを実行することにより、図3を参照して後述する各種機能を実現する。
受信回路162は、一方向性バッファなどから構成され、データバス11、データバス12、制御信号線13上の信号をプロセッサ161に伝達し、一方、プロセッサ161が信号を仮に出力しても、データバス11、データバス12、制御信号線13上には出力しない回路である。
記憶部163は、ROM、フラッシュメモリ、RAM、ハードディスク等から構成され、プロセッサ161の動作プログラムを記憶し、プロセッサのワークメモリとして機能し、さらに、種々のデータを記憶する。
通信制御装置164は、この動的解析装置6と動的解析ツール7との間の相互の通信を制御する。
動的解析装置6は、上記構成により、制御信号線13上にCPU3により出力され、読み込み、書き込みのトリガーとなる制御信号と、アドレスバス11上で出力されるアドレス値と、データバス12上に出力されるデータとを監視することにより、通信データ内容を解析する。動的解析装置6は、メモリ内蔵型のワンチップマイコンとしても良いし、CPU等が配置された基板とは別基板上にマルチチップ又はディスクリートで構成し、バス11、12、制御信号線13に接続することも可能である。
CPU3, ROM4, RAM5 is used for control of arbitrary equipment.
On the other hand, the dynamic analysis device 6 is used to dynamically analyze the operation of the CPU 3, and in terms of hardware, as shown in FIG. 2, a processor 161, a receiving circuit 162, and a storage 163 and a communication control device 164.
The processor 161 is composed of a central processing unit such as a CPU or a field-programmable gate array (FPGA), and executes various operation functions stored later in the storage unit 163 to execute various functions described later with reference to FIG. Realize.
The receiving circuit 162 is composed of a unidirectional buffer and the like, and transmits signals on the data bus 11, the data bus 12, and the control signal line 13 to the processor 161. On the other hand, even if the processor 161 outputs a signal temporarily, This circuit does not output on the bus 11, the data bus 12, and the control signal line 13.
The storage unit 163 includes a ROM, a flash memory, a RAM, a hard disk, and the like, stores an operation program for the processor 161, functions as a work memory for the processor, and stores various data.
The communication control device 164 controls mutual communication between the dynamic analysis device 6 and the dynamic analysis tool 7.
With the above-described configuration, the dynamic analysis device 6 is output by the CPU 3 on the control signal line 13, the control signal that triggers reading and writing, the address value output on the address bus 11, and the data bus 12 The communication data content is analyzed by monitoring the output data. The dynamic analysis device 6 may be a one-chip microcomputer with a built-in memory, or may be configured as a multi-chip or a discrete circuit on a board different from the board on which the CPU or the like is arranged. It is also possible to connect.

動的解析装置6は、機能的には、図3に示すように、バスデータ監視部20と、バスデータ解析部30と、データ管理部40と、通信制御部60と、通信インタフェース70とを備える。   Functionally, the dynamic analysis device 6 includes a bus data monitoring unit 20, a bus data analysis unit 30, a data management unit 40, a communication control unit 60, and a communication interface 70 as shown in FIG. Prepare.

バスデータ監視部20は、アドレスバス11、データバス12、制御信号線13に接続され、アドレスバス監視部21、データバス監視部22、制御信号監視部23を備える。
アドレスバス監視部21は、アドレスバス11上を伝送されるアドレスデータを監視する。データバス監視部22は、データバス12上を伝送されるデータを監視する。制御信号監視部23は、制御信号線13上を伝送される制御信号を監視する。
The bus data monitoring unit 20 is connected to the address bus 11, the data bus 12, and the control signal line 13, and includes an address bus monitoring unit 21, a data bus monitoring unit 22, and a control signal monitoring unit 23.
The address bus monitoring unit 21 monitors address data transmitted on the address bus 11. The data bus monitoring unit 22 monitors data transmitted on the data bus 12. The control signal monitoring unit 23 monitors a control signal transmitted on the control signal line 13.

データバス監視部20は、制御信号監視部23でバスデータ(アドレスデータとデータ)の確定タイミングを制御信号から判断し、バスデータ確定時にアドレスバス監視部21で取得したアドレス値と、データバス監視部22で取得したデータ値と、制御信号監視部23で取得した書込み/読込み区分とを、データバス解析部21に通知する。   The data bus monitoring unit 20 determines the determination timing of the bus data (address data and data) from the control signal by the control signal monitoring unit 23, the address value acquired by the address bus monitoring unit 21 when the bus data is determined, and the data bus monitoring The data value acquired by the unit 22 and the write / read classification acquired by the control signal monitoring unit 23 are notified to the data bus analyzing unit 21.

バスデータ解析部30は、バスデータ監視部20とデータ管理部40に接続され、実行関数解析部31、変数データ保管部32、監視データ保管部33を備える。
実行関数解析部31は、バスデータ監視部20から通知されたアドレス値を元に、CPU3が現在実行している関数を解析(特定)する。即ち、CPU3がアドレスを出力して読み込んだ位置に格納されている関数を特定する。
変数データ解析部32は、CPU3によってアクセスされた変数を解析(特定)する。即ち、CPU3がアドレスを出力して読み込んだ位置に格納されている変数を特定する。
監視データ保管部33は、解析したデータを、監視データ42として管理データ保管部40に保管する。
定時データ処理部34は、定期的に、各変数の値を解析(特定)し、監視データ42として管理データ保管部40に保管する。
The bus data analysis unit 30 is connected to the bus data monitoring unit 20 and the data management unit 40, and includes an execution function analysis unit 31, a variable data storage unit 32, and a monitoring data storage unit 33.
The execution function analysis unit 31 analyzes (specifies) the function currently executed by the CPU 3 based on the address value notified from the bus data monitoring unit 20. That is, the function stored in the position where the CPU 3 outputs and reads the address is specified.
The variable data analysis unit 32 analyzes (specifies) the variable accessed by the CPU 3. That is, the variable stored in the position where the CPU 3 outputs the address and reads it is specified.
The monitoring data storage unit 33 stores the analyzed data in the management data storage unit 40 as monitoring data 42.
The scheduled data processing unit 34 periodically analyzes (specifies) the values of the variables and stores them as monitoring data 42 in the management data storage unit 40.

データ管理部40は、バスデータ解析部30と通信制御部60に接続され、アドレスマップ41、監視データ42、制御データ43を備え、各種データの保管を行う。
アドレスマップ41は、ROM4とRAM5のアドレス空間のうち、関数が格納されている領域範囲を示すアドレス値である関数アドレス範囲44と、変数が格納されている領域の範囲を示すアドレス値である変数アドレス値45とを含む。
具体的には、図4に示すように、関数アドレス範囲44は、アドレス範囲とそのアドレス領域に格納されている関数F1、F2...とを対応付るデータを記憶し、変数アドレス値45は、アドレスとそこに格納されている変数A、B...とを対応付けるデータを記憶している。
アドレスマップ41としては、CPU3が実行するプログラムをコンパイルする際に自動生成されるアドレスマップを利用することが可能である。
The data management unit 40 is connected to the bus data analysis unit 30 and the communication control unit 60, and includes an address map 41, monitoring data 42, and control data 43, and stores various data.
The address map 41 includes a function address range 44 that is an address value indicating an area range in which functions are stored in an address space of the ROM 4 and the RAM 5, and a variable that is an address value indicating an area range in which variables are stored. Address value 45.
Specifically, as shown in FIG. 4, the function address range 44 includes an address range and functions F1, F2,. . . And the variable address value 45 includes an address and the variables A, B. . . Is stored.
As the address map 41, an address map automatically generated when compiling a program executed by the CPU 3 can be used.

図3に示す監視データ42には各変数の現在の値である変数現在値46、CPU3により実行された関数の遷移履歴が記録された関数遷移履歴47、CPU3によりアクセスされた変数と値の遷移履歴と変数変化時の呼び出し元関数を示す情報を含む変数遷移履歴48、定時的な変数値と収集時刻が記録された変数定時履歴49が含まれる。
より具体的には、関数遷移履歴47には、図5(a)に示すように、CPU3が実行している一連の関数のうち、後述する関数遷移履歴条件50に合致した関数と、予め定められた深さ(個数)の前方(先行して実行された)関数と、後方(後続して実行された)関数とを含む。
変数遷移履歴48には、図5(b)に示すように、CPU3が処理した一連の変数のうち、後述する変数遷移履歴条件51に合致した変数と、予め定められた深さ(個数)の前方(先行して処理された)変数について、変数、その値、処理日時、アクセス元関数の組を記憶する。例えば、変数遷移履歴48には、各変数の値の変化及びどの関数から変数を書き換えられたかを、履歴するデータを格納する。なお、変数がどのような順番で書き換えられたかを示すようなデータを保存してもよい。
変数定時履歴49は、図5(c)に示すように、各変数の値と収集時刻とを含む。
The monitoring data 42 shown in FIG. 3 includes a variable current value 46 that is a current value of each variable, a function transition history 47 in which a transition history of a function executed by the CPU 3 is recorded, and a transition of variables and values accessed by the CPU 3. A variable transition history 48 including information indicating a history and a caller function at the time of variable change, and a variable fixed history 49 in which a fixed variable value and a collection time are recorded are included.
More specifically, in the function transition history 47, as shown in FIG. 5A, a function that matches a function transition history condition 50 described later, among a series of functions executed by the CPU 3, is determined in advance. A forward (previously executed) function and a backward (subsequently executed) function of a given depth (number).
As shown in FIG. 5B, the variable transition history 48 includes a variable that matches a variable transition history condition 51 to be described later and a predetermined depth (number) of a series of variables processed by the CPU 3. For the forward (previously processed) variable, a set of the variable, its value, processing date and time, and access source function is stored. For example, the variable transition history 48 stores data that records changes in the value of each variable and from which function the variable has been rewritten. Note that data indicating the order in which variables are rewritten may be stored.
As shown in FIG. 5C, the variable scheduled history 49 includes the value of each variable and the collection time.

図3に示す制御データ43には、関数遷移の履歴の記憶を開始する条件を記載した関数遷移履歴条件50、変数遷移の履歴の記録を開始する条件を記載した変数遷移履歴条件51、変数定時履歴の記録を開始する条件を記載した定時履歴条件52が含まれる。   The control data 43 shown in FIG. 3 includes a function transition history condition 50 that describes a condition for starting storage of a function transition history, a variable transition history condition 51 that describes a condition for starting recording of a variable transition history, and a variable schedule. A scheduled history condition 52 describing conditions for starting history recording is included.

具体的には、関数遷移履歴条件50は、図6(a)に示すように、1)関数遷移の履歴の記録を開始する条件、例えば、特定の関数を検出したこと、ある関数から特定の関数への変化を検出したこと、等の任意の条件と、2)条件に合致した関数の前方(先に実行された)の関数のうち履歴として抽出する個数(前方深度)と条件に合致する関数に後続する(後に実行された)関数のうち履歴として抽出する個数(後方深度)とを対応付けるデータを記憶している。
また、変数遷移履歴条件52は、図6(b)に示すように、1)変数遷移の履歴の記録を開始する条件、例えば、変数を検出したこと、ある変数が特定の条件を満たす状態になったこと、等の任意の条件と、2)条件に合致した変数の前方にアクセスされた変数のうち履歴として抽出する個数(前方深度)を対応付けるデータを記憶している。
また、定時履歴条件52は、図6(c)に示すように、変数を記録するための一定の周期を記憶する。
Specifically, as shown in FIG. 6A, the function transition history condition 50 includes: 1) a condition for starting recording of a function transition history, for example, that a specific function is detected, Arbitrary conditions such as detecting changes to the function, etc. 2) The number (forward depth) to be extracted as a history of the functions in front of the function that matched the conditions (executed first) (forward depth) and the conditions Data that correlates the number (rear depth) extracted as a history among the functions that follow (executed later) the function is stored.
In addition, as shown in FIG. 6 (b), the variable transition history condition 52 is 1) a condition for starting recording of a variable transition history, for example, that a variable is detected, and that a certain variable satisfies a specific condition. 2) It stores data associating an arbitrary condition such as having become, and 2) the number (forward depth) to be extracted as a history out of variables accessed in front of variables that meet the condition.
Moreover, as shown in FIG.6 (c), the regular history condition 52 memorize | stores the fixed period for recording a variable.

図3に示す通信制御部60は、データ管理部40と通信インタフェース70に接続され、指定されたアドレスマップをデータ管理部40に保管するアドレスマップ保管部61と、監視データをデータ管理部40から読み出す監視データ読出し部62と、指定された制御データをデータ管理部40に保管する制御データ保管部63とを備え、動的解析ツール7との各種データの送受信を行う。   The communication control unit 60 shown in FIG. 3 is connected to the data management unit 40 and the communication interface 70, and stores an address map storage unit 61 that stores a specified address map in the data management unit 40, and monitoring data from the data management unit 40. A monitoring data reading unit 62 that reads data and a control data storage unit 63 that stores designated control data in the data management unit 40 are provided to transmit and receive various data to and from the dynamic analysis tool 7.

通信インタフェース70は、通信線14のインタフェースである。この通信インタフェース70を介して動的解析ツール7とのデータの送受信が行われる。   The communication interface 70 is an interface for the communication line 14. Data is transmitted to and received from the dynamic analysis tool 7 via the communication interface 70.

図1に示す動的解析ツール7は、動的解析装置6と通信を行って解析結果を表示する装置である。動的解析ツール7は、図7に示すように、液晶表示装置、EL表示装置等の表示装置81と、キーボード、マウスなどの入力装置、表示内容や入力内容を制御する制御部83と、通信を制御する通信制御部84と、動的解析装置6から取得したデータ、および加工したデータを保管するデータ管理部85と、動的解析装置6とのインタフェースである通信インタフェース86を備えている。動的解析ツールには汎用のパソコンを用いても良いし、専用のハードウエアを用いても良い。   The dynamic analysis tool 7 shown in FIG. 1 is a device that communicates with the dynamic analysis device 6 and displays an analysis result. As shown in FIG. 7, the dynamic analysis tool 7 includes a display device 81 such as a liquid crystal display device and an EL display device, an input device such as a keyboard and a mouse, a control unit 83 that controls display contents and input contents, and communication. A communication control unit 84 that controls the data, a data management unit 85 that stores data acquired from the dynamic analysis device 6 and processed data, and a communication interface 86 that is an interface with the dynamic analysis device 6. A general-purpose personal computer may be used as the dynamic analysis tool, or dedicated hardware may be used.

上記構成のうち、設備制御装置2は、例えば、図8(a)に示すように、任意の稼働状態の設備機器100に収容される。この場合、CPU3、ROM4、RAM5は、その設備機器100の通常時の制御装置(コントローラ)として機能する。動的解析装置6は、CPU3の処理を解析する。動的解析ツール7は、例えば、故障時やメンテナンス時に、適宜、動的解析装置6に、通信線14を介して適宜接続される。動的解析ツール7の設置位置は、現場でもリモートでもよい。リモートの場合、通信線14は、専用線でも、一般回線でも、インターネット等の通信ネットワークを含んでもよい。同様の構成を、設備装置100の開発段階で構成してもよい。   Of the above configuration, the facility control device 2 is accommodated in the facility device 100 in any operating state, for example, as shown in FIG. In this case, the CPU 3, the ROM 4, and the RAM 5 function as a normal control device (controller) of the equipment device 100. The dynamic analysis device 6 analyzes the processing of the CPU 3. The dynamic analysis tool 7 is appropriately connected to the dynamic analysis device 6 through the communication line 14 as appropriate at the time of failure or maintenance, for example. The installation position of the dynamic analysis tool 7 may be on-site or remote. When remote, the communication line 14 may be a dedicated line, a general line, or a communication network such as the Internet. A similar configuration may be configured at the development stage of the facility device 100.

また、開発段階等で、設備制御装置2を、例えば、図8(b)に示すように、設備機器100に接続して使用することも可能である。この場合、設備制御装置2と動的解析ツール7の設置位置は、現場でもリモートでもよい。   Further, in the development stage or the like, the equipment control device 2 can be used by being connected to the equipment 100 as shown in FIG. 8B, for example. In this case, the installation position of the equipment control device 2 and the dynamic analysis tool 7 may be on-site or remote.

次に、上記構成を有する設備制御システム1の動作を説明する。
設備制御装置2のCPU3は、ROM4に格納されたプログラムを実行することにより、設備機器100を制御するための動作を実行する。
CPU3は、ROM4に格納されている制御プログラムを実行し、設備機器100内の各部を制御することにより、設備機器100を運転する。
動的解析装置6は、CPU3の動作と並行して、各種解析動作を動的に行う。
以下、動的解析装置6の動作を、機能部分毎に説明する。
まず、バス上を流れるデータを確定するバスデータ監視部20が行う処理について説明する。
Next, operation | movement of the equipment control system 1 which has the said structure is demonstrated.
The CPU 3 of the equipment control device 2 executes an operation for controlling the equipment 100 by executing a program stored in the ROM 4.
The CPU 3 operates the equipment 100 by executing a control program stored in the ROM 4 and controlling each part in the equipment 100.
The dynamic analysis device 6 dynamically performs various analysis operations in parallel with the operation of the CPU 3.
Hereinafter, the operation of the dynamic analysis device 6 will be described for each functional part.
First, a process performed by the bus data monitoring unit 20 for determining data flowing on the bus will be described.

一般に、CPUがメモリにアクセスする際は、複数の制御信号の組み合わせによって読み込み/書き込みの区分、アドレスバス、データバスのデータ確定タイミングが判別可能である。
例えば、図9に例示するように、アドレスバス11上にアクセス位置のアドレスが出力され、続いて、制御信号線13上の制御信号AとB(例えば、行ストローブ信号と列ストローブ信号)が読み出し又は書き込みを示す状態に順次切り替えられ、その後、データバス12上のデータが確定する。従って、例えば、制御信号Aが出力されてからバスデータが確定するまでの所定の遅延時間D1又は制御信号Bが出力されてからバスデータが確定するまでの所定の遅延時間D2を予め測定しておき、制御信号A又はBが出力されてからの経過時間を測定し、制御信号Aが出力されてから時間D1又は制御信号Bが出力されてから時間D2を測定したタイミングをデータの確定時間として特定することが可能である。
バス監視部20は、例えば、このようにしてバスデータを監視する。
In general, when the CPU accesses the memory, the read / write classification, the address bus, and the data bus data determination timing can be determined by a combination of a plurality of control signals.
For example, as illustrated in FIG. 9, the address of the access position is output on the address bus 11, and subsequently, the control signals A and B (for example, the row strobe signal and the column strobe signal) on the control signal line 13 are read out. Alternatively, the state is sequentially switched to a state indicating writing, and then data on the data bus 12 is determined. Therefore, for example, a predetermined delay time D1 from when the control signal A is output until the bus data is determined or a predetermined delay time D2 from when the control signal B is output until the bus data is determined is measured in advance. In addition, the elapsed time after the control signal A or B is output is measured, and the timing at which the time D1 or the control signal B is output after the control signal A is output and the time D2 is measured is defined as the data determination time. It is possible to specify.
For example, the bus monitoring unit 20 monitors bus data in this way.

次に、動的解析装置6のうち、バスデータ監視部20の処理動作を図10のフローチャートを参照して説明する。
バスデータ監視部20は、主電源がオンされると、図10に示す動作を開始する。
制御信号監視部23は、設備装置100の操作パネルのオン・オフスイッチの操作によるオン・オフがオンであるか、オフであるかを判別し(ステップS0)、オフでないと判別した場合(ステップS0;No)、CPU3がアクセス対象メモリ(図1では、ROM4又はRAM5)に制御線13を介して出力する制御信号を監視する。制御信号監視部23は、対象メモリへの制御信号を監視し(ステップS1a)、制御信号線13上の制御信号が読み出しまたは書き込みの状態に変化したか否かを判別する(ステップS1b)。
制御信号に変化が無い或いは読み出し又は書き込み状態以外の状態への変化であると判別した場合(ステップS1b:No)、ステップS0にリターンする。
Next, the processing operation of the bus data monitoring unit 20 in the dynamic analysis device 6 will be described with reference to the flowchart of FIG.
When the main power supply is turned on, the bus data monitoring unit 20 starts the operation shown in FIG.
The control signal monitoring unit 23 determines whether the on / off by the operation of the on / off switch of the operation panel of the equipment device 100 is on or off (step S0), and when it is not off (step S0) S0; No), the CPU 3 monitors a control signal output via the control line 13 to the access target memory (ROM 4 or RAM 5 in FIG. 1). The control signal monitoring unit 23 monitors the control signal to the target memory (step S1a), and determines whether or not the control signal on the control signal line 13 has changed to a read or write state (step S1b).
If it is determined that there is no change in the control signal or a change to a state other than the read or write state (step S1b: No), the process returns to step S0.

制御信号が読み出しまたは書き込みの状態に変化したと検出した場合、アドレスバス監視部21は、アドレスバス11上に出されているアドレス信号により指定されているアドレス値を保持する(ステップS1c)。   When it is detected that the control signal has changed to the read or write state, the address bus monitoring unit 21 holds the address value specified by the address signal output on the address bus 11 (step S1c).

続いてデータバス12上のデータが確定するまで待機し(ステップS1d)、確定したらデータバス上のデータ信号により表されるデータ値を保持する(ステップS1e)。   Subsequently, the process waits until the data on the data bus 12 is confirmed (step S1d). When the data is confirmed, the data value represented by the data signal on the data bus is held (step S1e).

最後に制御信号の値(読み込み/書き込み)およびアドレス値、データ値をバスデータ解析部30に通知する(ステップS1f)。その後、ステップS0にリターンし、信号線の監視状態に戻る。なお、ステップS0で電源がオフであると判別された際(ステップS0;Yes)、今回の処理を終了する。   Finally, the control signal value (read / write), address value, and data value are notified to the bus data analysis unit 30 (step S1f). Thereafter, the process returns to step S0 to return to the signal line monitoring state. When it is determined in step S0 that the power is off (step S0; Yes), the current process is terminated.

次に、バスデータ解析部30において、バスデータ監視部20から通知されたデータを解析する処理について、図11を参照して説明する。
バスデータ解析部30は、主電源が投入されている期間、バスデータ監視部20からデータが供給される度に、図11に示す処理を開始する。
まず、バスデータ解析部30はバスデータ監視部20から通知されたアドレス値と、データ管理部40内のアドレスマップ41内に格納されている関数アドレス範囲44及び変数アドレス値45とを比較し、関数を実行しているか、変数値にアクセスしているか、その他の処理を行っているかを判別する(ステップS2a)。
Next, processing for analyzing data notified from the bus data monitoring unit 20 in the bus data analysis unit 30 will be described with reference to FIG.
The bus data analysis unit 30 starts the process shown in FIG. 11 every time data is supplied from the bus data monitoring unit 20 while the main power is on.
First, the bus data analysis unit 30 compares the address value notified from the bus data monitoring unit 20 with the function address range 44 and the variable address value 45 stored in the address map 41 in the data management unit 40. It is determined whether a function is being executed, a variable value is being accessed, or other processing is being performed (step S2a).

関数アドレス範囲のアドレス値であると判別した場合(ステップS2a:関数アドレス範囲)、実行関数解析部31にて処理が行われる。実行関数解析部31は、アドレスで指定された領域に記憶されていた(解析した)関数を特定し、その関数(アクセスされた位置に格納されている関数)が前回の関数と同一であるか否かを判別し(ステップS2b)、同一の関数であると判別した場合(ステップS2b;Yes)は、関数の遷移は行われていないため、データ解析処理を終了する。   When it is determined that the address value is within the function address range (step S2a: function address range), the execution function analysis unit 31 performs processing. The execution function analysis unit 31 identifies the function stored (analyzed) stored in the area specified by the address, and whether the function (the function stored at the accessed position) is the same as the previous function. If it is determined whether or not they are the same function (step S2b; Yes), the function is not changed, and the data analysis process is terminated.

解析した関数(アクセスされた位置に格納されている関数)が前回の(現在実行中)の関数と異なる、即ち、実行関数が変化していると判別した場合(ステップS2b;No)、関数名に対応付けられた関数IDを、内部に配置されている一時バッファに追加して関数の遷移履歴を保持する(ステップS2c)。   When it is determined that the analyzed function (the function stored at the accessed position) is different from the previous (currently executing) function, that is, the execution function has changed (step S2b; No), the function name The function ID associated with is added to the temporary buffer arranged inside, and the function transition history is held (step S2c).

次に、今回判別した実行関数の変化が、後続するステップS2fの処理により関数遷移履歴条件50と一致する指定された関数の後方(後続)の遷移に該当するかどうかを判断する(ステップS2d)。関数変化が履歴済の関数変化に後続するものであると判別した場合(ステップS2d;Yes)、監視データ保管部33を介してデータ管理部40内の関数遷移履歴47に関数IDを追加して、関数遷移履歴47を更新する(ステップS2e)。   Next, it is determined whether or not the change of the execution function determined this time corresponds to a rearward (subsequent) transition of the specified function that matches the function transition history condition 50 by the subsequent processing of step S2f (step S2d). . When it is determined that the function change is subsequent to the function change that has been completed (step S2d; Yes), the function ID is added to the function transition history 47 in the data management unit 40 via the monitoring data storage unit 33. The function transition history 47 is updated (step S2e).

一方、関数変化が履歴済の関数変化に後続するものではなく、遷移後の新たな関数であると判別した場合(ステップS2d;No)、遷移した関数が関数遷移履歴条件50に一致するか否かを判断する(ステップS2f)。一致すると判別した場合(ステップS2f;Yes)、一時バッファに記憶している一連の関数のうち、関数遷移履歴条件50で指定された深度(個数)分だけ、監視データ保管部33を介してデータ管理部40内の関数遷移履歴47に保存する(ステップS2g)。   On the other hand, when it is determined that the function change does not follow the history of the function change but is a new function after the transition (Step S2d; No), whether the transitioned function matches the function transition history condition 50 or not. Is determined (step S2f). When it is determined that they match (step S2f; Yes), data is transmitted via the monitoring data storage unit 33 by the depth (number) specified by the function transition history condition 50 among the series of functions stored in the temporary buffer. The function is stored in the function transition history 47 in the management unit 40 (step S2g).

例えば、一次バッファに一連の関数の履歴「...F7,F4,F2,F3」が記憶されているとする。図5(a)に示す関数遷移履歴条件52によれば、関数F3が関数履歴条件50が指定する関数に合致する。さらに、指定された深度(前方)は「3」である。この場合、図6(a)に示すように、条件に合致する関数として「F3」、深度(前方)で指定される関数として「F7,F4,F2」のIDが関数遷移履歴47に格納される。なお、その後、実行される関数が変化すると、ステップS2eで、関数変化が履歴済の関数変化に後続するものであると判別され(ステップS2d;Yes)、監視データ保管部33を介してデータ管理部40内の関数遷移履歴47に関数IDが追加される(ステップS2e)。
また、例えば、一次バッファに一連の関数の履歴「...F12,F1,F2,F9,F4,F5」が記憶されているとする。図5(a)に示す関数遷移履歴条件52によれば、関数F4からF5への変化が関数履歴条件50が指定する関数に合致する。さらに、指定された深度(前方)は「4」である。この場合、図6(a)に示すように、条件に合致する関数として「F4,F5」、深度(前方)で指定される関数として「F12,F1,F2、F9」のIDが関数遷移履歴47に格納される。
For example, it is assumed that a history of functions “... F7, F4, F2, F3” is stored in the primary buffer. According to the function transition history condition 52 shown in FIG. 5A, the function F3 matches the function specified by the function history condition 50. Furthermore, the designated depth (front) is “3”. In this case, as shown in FIG. 6A, IDs of “F3” as a function matching the condition and “F7, F4, F2” as functions specified by the depth (forward) are stored in the function transition history 47. The After that, when the function to be executed is changed, it is determined in step S2e that the function change is subsequent to the function change that has been completed (step S2d; Yes), and data management is performed via the monitoring data storage unit 33. The function ID is added to the function transition history 47 in the unit 40 (step S2e).
Further, for example, it is assumed that a history of a series of functions “... F12, F1, F2, F9, F4, F5” is stored in the primary buffer. According to the function transition history condition 52 shown in FIG. 5A, the change from the function F4 to F5 matches the function specified by the function history condition 50. Further, the designated depth (front) is “4”. In this case, as shown in FIG. 6A, IDs of “F4, F5” as functions that meet the conditions and “F12, F1, F2, F9” as functions specified by the depth (forward) are function transition history. 47.

一方、ステップS2fで、関数履歴条件に一致しないと判別した場合(ステップS2f;No)、今回の処理を終了する。   On the other hand, if it is determined in step S2f that the function history condition is not met (step S2f; No), the current process is terminated.

以上の動作を繰り返すことにより、関数遷移履歴条件として指定した関数とその前後に実行された関数の遷移の履歴を保存することが可能となる。   By repeating the above operation, it is possible to save the function transition history history of the function specified as the function transition history condition and the function executed before and after the function.

一方、ステップS2aの判別の結果、アドレスバス11上のアドレスが変数を記憶している領域のアドレス値であると判別された場合は(ステップS2a;変数アドレス)、変数データ解析部32にて処理が行われる。
変数データ解析部32は、まず、変数にアクセスした日時を保持する(ステップS2l)。
On the other hand, if it is determined in step S2a that the address on the address bus 11 is the address value of the area storing the variable (step S2a; variable address), the variable data analysis unit 32 performs processing. Is done.
The variable data analysis unit 32 first holds the date and time when the variable was accessed (step S2l).

次に、バスデータ監視部20から通知された制御信号区分を判別し、書き込み処理か、読み込み処理かを判断し(ステップS2m)、書き込み処理であった場合は、書き込み後の変数値を保持し、監視データ保管部33を介してデータ管理部40内の変数現在値46に保存する(ステップS2n)。   Next, the control signal classification notified from the bus data monitoring unit 20 is discriminated, and it is judged whether it is a writing process or a reading process (step S2m). If it is a writing process, the variable value after writing is held. Then, it is stored in the variable current value 46 in the data management unit 40 via the monitoring data storage unit 33 (step S2n).

一方、書き込み処理ではない、即ち、読み出しアクセスであると判別した場合(ステップS2m;No)、ステップS2nをスキップする。
ステップS2nの実行後又はステップS2mでNoと判別した場合、アクセスされた変数が、変数遷移履歴条件51と一致するかを判断する(ステップS2o)。
一致すると判別した場合(ステップS2o;Yes)、実行関数解析部31に保持されている履歴のうち、変数遷移履歴条件51が指定する深度(個数)分の履歴、即ち、変数と、変数値と、アクセス日時と、アクセス元の関数とを、監視データ保管部33を介してデータ管理部40内の変数遷移履歴48に保存し(ステップS2p)、処理を終了する。
On the other hand, when it is determined that it is not a write process, that is, a read access (step S2m; No), step S2n is skipped.
After step S2n is executed or when it is determined No in step S2m, it is determined whether the accessed variable matches the variable transition history condition 51 (step S2o).
When it is determined that they match (step S2o; Yes), the history corresponding to the depth (number) specified by the variable transition history condition 51 among the history held in the execution function analysis unit 31, that is, the variable, the variable value, The access date and time and the function of the access source are stored in the variable transition history 48 in the data management unit 40 via the monitoring data storage unit 33 (step S2p), and the process ends.

例えば、一次バッファに一連の変数とアクセス元の関数の履歴「..., (変数G,値3,アクセス日時2011/10/24 14:15:50,アクセス元関数F11),..., (変数G,値6,アクセス日時2011/10/24 14:16:59,F12),..., (変数G,値−1,アクセス日時2011/10/24 14:17:11,アクセス元関数F13),..., (変数G,値+1,アクセス日時2011/10/24 14:23:33,アクセス元関数F14)」が記憶されているとする。
図6(b)に示す変数遷移履歴条件51によれば、関数F14による変数Gの負の値(−1)から正の値(+1)への更新は、変数遷移履歴条件51に合致する。この場合には、変数遷移履歴条件51に合致する変数の情報(変数G,値+1,アクセス日時2011/10/24 14:23:33,アクセス元関数F14)」と、記憶されている履歴のうち、注目している変数Gの履歴であって変数前方深度で特定される前方2つの情報(変数G,値6,アクセス日時2011/10/24 14:16:59,アクセス元関数F12),(変数G,値−1,アクセス日時2011/10/24 14:17:11,アクセス元関数F13)が変数遷移履歴48として記録される。
同様に、例えば、変数Dの値が2に変化したとすると、その更新は、変数遷移履歴条件51に合致する。この場合には、変数遷移履歴条件51に合致する変数の情報例えば、(変数D,値+2,アクセス日時2011/10/24 18:19:47,アクセス元関数F5)」と、記憶されている履歴のうち、注目している変数Dの履歴であって変数前方深度で特定される前方1つの情報(変数D,値3,アクセス日時2011/10/24 18:19:36,アクセス元関数F3)が変数遷移履歴48として記録される。
これらの記録により、注目している変数の変化とどの関数が変数を書き換えたかという情報を履歴できる。
For example, a history of a series of variables and access source functions “..., (variable G, value 3, access date / time 2011/10/24 14:15:50, access source function F11),. (Variable G, value 6, access date and time 2011/10/24 14:16:59, F12), ..., (variable G, value -1, access date and time 2011/10/24 14:17:11, access source Function F13), ..., (variable G, value +1, access date and time 2011/10/24 14:23:33, access source function F14) "is stored.
According to the variable transition history condition 51 shown in FIG. 6B, the update of the variable G from the negative value (−1) to the positive value (+1) by the function F14 matches the variable transition history condition 51. In this case, information on variables that match the variable transition history condition 51 (variable G, value + 1, access date / time 2011/10/24 14:23:33, access source function F14) ”and the stored history Among them, the history of the variable G of interest, and two pieces of forward information specified by the variable forward depth (variable G, value 6, access date / time 2011/10/24 14:16:59, access source function F12), (Variable G, value-1, access date and time 2011/10/24 14:17:11, access source function F13) is recorded as the variable transition history 48.
Similarly, for example, if the value of the variable D changes to 2, the update matches the variable transition history condition 51. In this case, information on variables that match the variable transition history condition 51, for example, (variable D, value +2, access date and time 2011/10/24 18:19:47, access source function F5) is stored. Among the histories, the history of the variable D of interest and one piece of information specified by the variable forward depth (variable D, value 3, access date / time 2011/10/24 18:19:36, access source function F3 ) Is recorded as the variable transition history 48.
With these records, it is possible to record information on changes in the variable of interest and which function has rewritten the variable.

一方、変数遷移履歴条件に一致しないと判別した場合(ステップS2m;N)、処理を終了する。   On the other hand, if it is determined that the condition does not match the variable transition history condition (step S2m; N), the process ends.

以上の動作を繰り返すことにより、変数遷移条件として指定した変数へのアクセス時のアクセス元関数の遷移、変数の変更前後の値を、アクセス日時も含めて保存することが可能となる。   By repeating the above operation, it is possible to save the transition of the access source function at the time of accessing the variable designated as the variable transition condition and the value before and after the change of the variable including the access date and time.

また、変数の値が変化するたびに現在値を更新することにより、常に最新の変数値を保持することが可能となる。   Also, by updating the current value every time the value of the variable changes, it is possible to always keep the latest variable value.

一方、定時データ処理部34は、主電源が投入されている間、図12に示す処理を実行し、制御データ43内に格納されている定時履歴条件52で指定された時間間隔に達したかどうかを判断し(ステップS3a)、履歴する時間であれば指定変数値の変数現在値46を読出し(ステップS3b)、監視データ保管部33を介してデータ管理部40内の関数遷移履歴47に保存する(ステップS3c)。   On the other hand, the scheduled data processing unit 34 executes the processing shown in FIG. 12 while the main power is turned on, and has reached the time interval specified by the scheduled history condition 52 stored in the control data 43? Whether or not it is a history time, the variable current value 46 of the designated variable value is read (step S3b) and stored in the function transition history 47 in the data management unit 40 via the monitoring data storage unit 33. (Step S3c).

以上の動作を繰り返すことにより、定時履歴条件として指定した変数の、一定間隔のデータを保存することが可能となる。   By repeating the above operation, it is possible to save data at a constant interval of the variable designated as the scheduled history condition.

こうして、データ管理部40には、予め条件設定されている注目すべき実行関数の変化が起こった際に、その前後の関数変化の履歴が記録され、予め条件設定されている注目すべき変数の変化が起こった際に、それに至る変数の変化の履歴が記録され、蓄積される。さらに、定期的な履歴が蓄積される。   Thus, when a noticeable execution function that has been set in advance is changed, the data management unit 40 records a history of function changes before and after the change. When a change occurs, a history of changes in the variables leading to it is recorded and accumulated. Furthermore, a periodic history is accumulated.

一方、動的解析ツール7は、オペレータにより適宜操作され、データ管理部40に蓄積されている履歴データを読み出し、解析する。
即ち、操作者が、動的解析ツール7の入力装置82から各種データの読出し要求を行うと、制御部83が通信制御部84、通信インタフェース86を介して、データの送信要求を動的解析装置6に送信する。
動的解析装置6は通信制御部60が通信インタフェース70を介して動的解析ツールからの要求を受信し、監視データ読出し部62がデータ管理部40の監視データ42に保管された各種データを読み出し、通信インタフェース70を介して、動的解析ツール7に応答する。
動的解析ツール7は、応答を通信インタフェース86を介して受信すると、通信制御部84は受信したデータをデータ管理部85に保存し、制御部83がデータを取得して表示装置81に表示する。
On the other hand, the dynamic analysis tool 7 is appropriately operated by an operator, and reads and analyzes the history data accumulated in the data management unit 40.
That is, when the operator makes a request for reading various data from the input device 82 of the dynamic analysis tool 7, the control unit 83 sends a data transmission request to the dynamic analysis device via the communication control unit 84 and the communication interface 86. 6 to send.
In the dynamic analysis device 6, the communication control unit 60 receives a request from the dynamic analysis tool via the communication interface 70, and the monitoring data reading unit 62 reads various data stored in the monitoring data 42 of the data management unit 40. And respond to the dynamic analysis tool 7 via the communication interface 70.
When the dynamic analysis tool 7 receives the response via the communication interface 86, the communication control unit 84 stores the received data in the data management unit 85, and the control unit 83 acquires the data and displays it on the display device 81. .

各種履歴条件が格納された制御データ43やアドレスマップ42は、動的解析ツール7から動的解析装置6に対して送信され、通信制御部60によってデータ管理部40に保存される。   The control data 43 and the address map 42 in which various history conditions are stored are transmitted from the dynamic analysis tool 7 to the dynamic analysis device 6 and stored in the data management unit 40 by the communication control unit 60.

なお、制御データ43やアドレスマップ42は、動的解析ツールで送信するのではなく、予め書き込んだ状態で出荷しても良い。   Note that the control data 43 and the address map 42 may be shipped in a pre-written state instead of being transmitted by the dynamic analysis tool.

以上詳細に説明したように、この実施の形態1に係る動的解析装置および動的解析システムによれば、関数や変数が格納されているメモリのアドレス値一覧を保持することにより、CPU3の処理内容の履歴を記録することができ、それにより、処理内容、例えば、どの処理関数がどの変数を変更したか、を解析することが可能となる。   As described in detail above, according to the dynamic analysis device and the dynamic analysis system according to the first embodiment, the processing of the CPU 3 is performed by maintaining a list of memory address values in which functions and variables are stored. A history of contents can be recorded, whereby it is possible to analyze the processing contents, for example, which processing function has changed which variable.

また、この実施の形態1に係る動的解析装置および動的解析システムによれば、CPU3の処理に用いるアドレスバス11、データバス12、制御信号線13に対して、動的解析装置6からデータを出力することは無い。このため、CPU3の処理を一切妨げることなく、動的解析を行うことが可能となる。   Further, according to the dynamic analysis device and the dynamic analysis system according to the first embodiment, the data from the dynamic analysis device 6 to the address bus 11, the data bus 12, and the control signal line 13 used for the processing of the CPU 3 Is not output. For this reason, dynamic analysis can be performed without interfering with the processing of the CPU 3 at all.

また、この実施の形態1に係る動的解析装置および動的解析システムによれば、動的解析を行うためのプログラム変更や、ICE接続用の特殊コネクタなどの必要が無いため、不具合が発生している現地の制御機器をそのまま利用して不具合解析を行うことが可能となる。   Further, according to the dynamic analysis apparatus and the dynamic analysis system according to the first embodiment, there is no need for a program change for performing dynamic analysis or a special connector for ICE connection. It is possible to perform failure analysis using the local control equipment as it is.

また、この実施の形態1に係る動的解析装置6および動的解析システム1によれば、現地で発生している不具合条件を分析し、試験室で不具合の再現環境を構築する必要がないため、不具合解決に要する時間を削減することが可能となる。   In addition, according to the dynamic analysis device 6 and the dynamic analysis system 1 according to the first embodiment, it is not necessary to analyze a failure condition occurring in the field and construct a failure reproduction environment in a test room. It is possible to reduce the time required for solving the problem.

また、この実施の形態1に係る動的解析装置および動的解析システムによれば、プログラムのコンパイル時に自動生成されるメモリマップを利用して関数遷移、変数遷移を解析することができるため、アドレス値との関連付けファイルを手動で作成する必要が無い。   Further, according to the dynamic analysis device and the dynamic analysis system according to the first embodiment, function transitions and variable transitions can be analyzed using a memory map automatically generated at the time of program compilation. There is no need to manually create an association file with values.

なお、本実施の形態では、利用されるメモリに対応した読出しシーケンスを実装することとしたが、メモリが変更されても対応できるよう、デバイスコードをメモリから読み出して自動的にメモリに合わせたデータバス確定処理を実装しても良い。   In this embodiment, the read sequence corresponding to the memory to be used is implemented. However, the device code is read from the memory and automatically matched to the memory so that the memory can be changed. A bus determination process may be implemented.

また、本実施の形態では、同一のアドレスバス11、データバス12にROM4、RAM5を接続するようにしたが、必ずしもこの構成である必要は無く、CPU3に専用のバスを用いて接続されるRAMを用いても良い。この場合は、動的解析装置6がROM用のバス、RAM用のバスの両方を監視する構成となる。   In this embodiment, the ROM 4 and RAM 5 are connected to the same address bus 11 and data bus 12, but this configuration is not necessarily required, and the RAM connected to the CPU 3 using a dedicated bus. May be used. In this case, the dynamic analysis device 6 is configured to monitor both the ROM bus and the RAM bus.

実施の形態2.
上記実施の形態においては、監視の対象の処理内容は関数と変数とそのデータであったが、処理過程で生成される任意の処理内容ものを監視対象とすることが可能である。
以下、一例として、処理内容としてタスクをさらに管理する実施の形態2について説明する。
Embodiment 2. FIG.
In the above embodiment, the processing content to be monitored is a function, a variable, and its data. However, any processing content generated in the process can be monitored.
Hereinafter, as an example, a second embodiment for further managing tasks as processing contents will be described.

図13は、この発明の実施の形態2に係る動的解析装置6の構成を示す。
図13に示すように、この実施の形態に係る動的解析装置6は、実施の形態1の動的解析装置6に加え、タスク解析部35およびタスク遷移履歴53を備える。
FIG. 13 shows the configuration of the dynamic analysis apparatus 6 according to Embodiment 2 of the present invention.
As shown in FIG. 13, the dynamic analysis device 6 according to this embodiment includes a task analysis unit 35 and a task transition history 53 in addition to the dynamic analysis device 6 of the first embodiment.

次に、タスク解析部35において、実行タスクを解析する処理について、図14と図15を参照して説明する。   Next, processing for analyzing an execution task in the task analysis unit 35 will be described with reference to FIGS. 14 and 15.

図14はタスクの切換状態を示した図である。優先度の低い状態のタスクが実行中の場合でも優先度の高いタスクが起動すると、優先度の低いタスクは停止し、優先度の高いタスクが実行されることを示している。本実施形態の動的解析装置6は、特徴的なタスクの切り替えの履歴を取得することが可能である。   FIG. 14 shows a task switching state. Even when a task with a low priority is being executed, if a task with a high priority is activated, the task with a low priority is stopped and a task with a high priority is executed. The dynamic analysis device 6 of the present embodiment can acquire a characteristic task switching history.

図15は、タスク解析部35の処理をフローチャートで示した図であり、タスク解析部35は、電源がオンの間、バスデータ監視部20で監視したバスデータを基に、起動したタスクを保持する(ステップS4a)。   FIG. 15 is a flowchart showing the processing of the task analysis unit 35. The task analysis unit 35 holds the activated task based on the bus data monitored by the bus data monitoring unit 20 while the power is on. (Step S4a).

タスクの切り換えが発生したか否かを判別し(ステップS4b)、切り替えが発生した場合(ステップS4b;Yes)、切り換え後のタスクを、日時等と共にタスク遷移履歴53に保存する(ステップS4c)。なお、タスクの切り換えが発生していないと判別した場合(ステップS4b;No)、ステップS4bにリターンし、処理を繰り返す。   It is determined whether or not task switching has occurred (step S4b). If switching has occurred (step S4b; Yes), the task after switching is stored in the task transition history 53 together with the date and time (step S4c). If it is determined that task switching has not occurred (step S4b; No), the process returns to step S4b and the process is repeated.

ここで保存したタスク遷移履歴53は、実施の形態1と同様、動的解析ツール7によって読み出し、図16のようなタスクの切り換えタイミングの表示が可能である。   The task transition history 53 saved here can be read out by the dynamic analysis tool 7 as in the first embodiment, and the task switching timing as shown in FIG. 16 can be displayed.

なお、タスクの切り換えは、OS(オペレーションシステム)のタスク切り換え関数が実行されたことを検知して切り換えを判断しても良いし、タスクに登録した関数が実行された段階で切り換えを判断しても良い。
また、タスク遷移履歴条件を設定し、条件に合致するタスク遷移が起こったときにのみ、タスク遷移の履歴を取るようにしてもよい。
Note that the task switching may be performed by detecting that the OS (operation system) task switching function has been executed, or by determining the switching when the function registered in the task is executed. Also good.
Alternatively, a task transition history condition may be set, and a task transition history may be taken only when a task transition that matches the condition occurs.

以上詳細に説明したように、この実施の形態2に係る動的解析装置および動的解析システムによれば、タスクの切換遷移の履歴を保持することにより、タスクの占有率、実行タイミングが容易に解析可能となる。   As described above in detail, according to the dynamic analysis device and the dynamic analysis system according to the second embodiment, the task occupancy rate and execution timing can be easily maintained by maintaining the history of task switching transitions. Analysis becomes possible.

実施の形態3.
前述のように、解析対象の処理内容は任意であり、例えば、バス占有率を処理内容に含めることも可能である。バス占有率を解析対象の処理内容の1つとする実施の形態3について、以下、説明する。
Embodiment 3 FIG.
As described above, the processing content to be analyzed is arbitrary. For example, the bus occupancy rate can be included in the processing content. A third embodiment in which the bus occupancy is one of the processing contents to be analyzed will be described below.

図17は、この発明の実施の形態3に係る動的解析装置6の構成が示されている。
図17に示すように、この実施の形態に係る動的解析装置6は、実施の形態1の動的解析装置6に加え、バス占有率解析部36およびバス占有履歴54を備えたものである。
FIG. 17 shows the configuration of a dynamic analysis apparatus 6 according to Embodiment 3 of the present invention.
As shown in FIG. 17, the dynamic analysis apparatus 6 according to this embodiment includes a bus occupancy rate analysis unit 36 and a bus occupancy history 54 in addition to the dynamic analysis apparatus 6 of the first embodiment. .

次に、バス占有率解析部36において、バス占有率を解析する場合の処理について、図18と図19を用いて説明する。   Next, processing when the bus occupancy analysis unit 36 analyzes the bus occupancy will be described with reference to FIGS. 18 and 19.

図18はバスの占有状態を示した図である。CPU3は、メモリ(ROM3,RAM4)にアクセスを開始するとき、アドレスバス11上にアドレスを出力し、制御信号(チップイネーブル信号)を出力した後、データバス12上にデータを出力する。アクセスが終了すると、制御信号を解除する。チップイネーブル信号を出力してからリセットするまでの時間がバス占有時間となる。   FIG. 18 is a diagram showing the occupied state of the bus. When the CPU 3 starts accessing the memory (ROM 3, RAM 4), it outputs an address on the address bus 11, outputs a control signal (chip enable signal), and then outputs data on the data bus 12. When the access is completed, the control signal is released. The time from the output of the chip enable signal to the reset is the bus occupation time.

図19は、バス占有率解析部36の処理をフローチャートで示した図である。バス占有率解析部36は、電源がオンの間、制御信号線の状態を監視しアクセス開始を判別する(ステップS5a)。   FIG. 19 is a flowchart showing the processing of the bus occupancy rate analysis unit 36. While the power is on, the bus occupancy analysis unit 36 monitors the state of the control signal line and determines the start of access (step S5a).

バスの利用が開始されると占有時間のカウントを開始し(ステップS5b)、バスアクセス終了を検出すると(ステップS5c)、バス占有時間のカウントを終了し(ステップS5d)、バス占有履歴54を保存する(ステップS5e)。   When the use of the bus is started, counting of the occupied time is started (step S5b). When the end of bus access is detected (step S5c), the counting of the bus occupied time is ended (step S5d), and the bus occupied history 54 is saved. (Step S5e).

ここで保存したタスク遷移履歴54は、実施の形態1と同様、動的解析ツール7によって読み出し、単位時間当たりのバス占有率の表示が可能である。   The task transition history 54 saved here can be read out by the dynamic analysis tool 7 and the bus occupancy rate per unit time can be displayed as in the first embodiment.

以上詳細に説明したように、この実施の形態3に係る動的解析装置および動的解析システムによれば、バス占有時間を保持することにより、一定時間あたりのバス占有率等が容易に解析可能となる。   As described above in detail, according to the dynamic analysis device and the dynamic analysis system according to the third embodiment, the bus occupancy rate per fixed time can be easily analyzed by maintaining the bus occupancy time. It becomes.

なお、本発明は、上記実施の形態および図面によって限定されるものではない。本発明の要旨を変更しない範囲で実施の形態および図面に変更を加えることができるのはもちろんである。
例えば、監視・解析対象の処理内容は、関数の変化、変数の変化、タスクの変化、バス占有率に限定されず、装置の任意のパラメータを監視の対象とすることができる。また、これらと共に収集するデータ類も上述の例に限定されず、適宜設定可能である。
また、関数の履歴、変数の履歴にどのような情報を含めるか、についても適宜応用・変更可能である。例えば、関数の履歴に実行時刻を記録したり、その関数により処理された変数な、その関数がアクセスしたメモリエリア(アドレス)などの情報を付加してもよい。また、変数履歴に、後方深度を設定し、変数履歴条件51に合致する変数の更新後にどのような変数が処理されたかを解析できるようにしてもよい。
また、上記実施の形態においては、動的解析ツール7を動的解析装置6に接続して、データを表示する等したが、例えば、動的解析ツール装置7で動的解析装置6からのデータを受信して、解析するようにしてもよい。
動的解析装置は、監視対象の装置に常時接続されている必要はなく、必要に応じて設定されてもよい。この場合、例えば、アドレスバス11、データバス12、制御信号線13にこれらの信号線に接続するためのコネクタを予め接続しておき、必要時に、このコネクタと動的解析装置6の受信回路162の入力側コネクタとを接続するようにしてもよい。
また、アドレスバス11、データバス12、制御信号線13の全てを監視することが望ましいが、必ずしも全てを監視する必要はない。一部のバス又は制御信号線を監視するように構成してもよい。監視の対象は、監視の目的に応じて適宜設定される。
設備機器100の制御用プロセッサの動作を監視する例を示したが、設備機器100は任意である。例えば、空調装置、電力制御装置、熱機器、エレベータ、コンピュータ、家電機器、自動車・車両、等、コンピュータ及びソフトウエアにより制御されるものに広く適用可能である。
上述したハードウエア構成、フローチャート、テーブル構成などは一例であり、任意に変更可能である。
また、他装置のバス、制御信号線にアクセス可能なコンピュータを上述の動的解析装置として動作させるためのプログラムを、媒体等に記録して配布し、これをインストールすることにより、該コンピュータを動的解析装置として機能させることも可能である。
In addition, this invention is not limited by the said embodiment and drawing. It goes without saying that the embodiments and the drawings can be modified without changing the gist of the present invention.
For example, the processing contents to be monitored / analyzed are not limited to function changes, variable changes, task changes, and bus occupancy rates, and any device parameters can be monitored. Further, data collected together with these is not limited to the above example, and can be set as appropriate.
Also, what information is included in the function history and variable history can be appropriately applied and changed. For example, the execution time may be recorded in the function history, or information such as a memory area (address) accessed by the function, such as a variable processed by the function, may be added. Further, a rear depth may be set in the variable history, and it may be possible to analyze what variable has been processed after updating the variable that matches the variable history condition 51.
In the above embodiment, the dynamic analysis tool 7 is connected to the dynamic analysis device 6 to display data. For example, the dynamic analysis tool device 7 uses the data from the dynamic analysis device 6 to display data. May be received and analyzed.
The dynamic analysis device need not always be connected to the device to be monitored, and may be set as necessary. In this case, for example, connectors for connecting to these signal lines are connected in advance to the address bus 11, the data bus 12, and the control signal line 13, and when necessary, this connector and the receiving circuit 162 of the dynamic analyzer 6. The input side connector may be connected.
Although it is desirable to monitor all of the address bus 11, the data bus 12, and the control signal line 13, it is not always necessary to monitor all of them. Some buses or control signal lines may be monitored. The monitoring target is appropriately set according to the purpose of monitoring.
Although the example which monitors the operation | movement of the processor for control of the equipment 100 was shown, the equipment 100 is arbitrary. For example, the present invention can be widely applied to devices controlled by a computer and software, such as an air conditioner, a power control device, a thermal device, an elevator, a computer, a household electrical appliance, an automobile and a vehicle.
The above-described hardware configuration, flowchart, table configuration, and the like are examples, and can be arbitrarily changed.
In addition, a program for operating a computer capable of accessing the bus and control signal line of another device as the above-described dynamic analysis device is recorded and distributed on a medium or the like, and installed to operate the computer. It is also possible to function as a dynamic analysis device.

1 動的解析システム
2 設備制御装置
3 CPU
4 ROM
5 RAM
6 動的解析装置
11 アドレスバス
12 データバス
13 制御信号線
14 通信線
20 バスデータ監視部
21 アドレスバス監視部
22 データバス監視部
23 制御信号監視部
30 バスデータ解析部
31 実行関数解析部
32 変数データ解析部
33 監視データ保管部
34 定時データ処理部
35 タスク解析部
36 バス占有率解析部
40 データ管理部
41 アドレスマップ
42 監視データ
43 制御データ
44 関数アドレス範囲
45 変数アドレス値
46 変数現在値
47 関数遷移履歴
48 変数遷移履歴
49 変数定時履歴
50 関数遷移履歴条件
51 変数遷移履歴条件
52 定時履歴条件
53 タスク遷移履歴
54 バス占有履歴
60 通信制御部
61 アドレスマップ保管部
62 監視データ読み出し部
63 制御データ保管部
70 通信インタフェース
161 プロセッサ
162 受信回路
163 記憶部
164 通信制御装置
1 dynamic analysis system 2 equipment control device 3 CPU
4 ROM
5 RAM
6 Dynamic Analysis Device 11 Address Bus 12 Data Bus 13 Control Signal Line 14 Communication Line 20 Bus Data Monitoring Unit 21 Address Bus Monitoring Unit 22 Data Bus Monitoring Unit 23 Control Signal Monitoring Unit 30 Bus Data Analysis Unit 31 Execution Function Analysis Unit 32 Variables Data analysis unit 33 Monitoring data storage unit 34 Scheduled data processing unit 35 Task analysis unit 36 Bus occupancy rate analysis unit 40 Data management unit 41 Address map 42 Monitoring data 43 Control data 44 Function address range 45 Variable address value 46 Variable current value 47 Function Transition history 48 Variable transition history 49 Variable scheduled history 50 Function transition history condition 51 Variable transition history condition 52 Scheduled history condition 53 Task transition history 54 Bus occupancy history 60 Communication control unit 61 Address map storage unit 62 Monitoring data read unit 63 Control data storage Part 70 Communication interface 161 Processor 162 Reception circuit 163 Storage unit 164 Communication control device

Claims (12)

アドレスバス上のアドレスの値から処理内容を特定し、データバス上のデータから処理データを特定するバスデータ解析部と、
前記バスデータ解析部により解析された処理内容と処理データの履歴の少なくとも一部を含む履歴情報を記憶する記憶部と、
外部からのアクセスに応答して、前記記憶部に記憶した履歴情報を提供する履歴情報提供手段と、
を備える動的解析装置。
A bus data analysis unit that identifies the processing contents from the address value on the address bus and identifies the processing data from the data on the data bus;
A storage unit for storing history information including at least a part of a history of processing data and processing data analyzed by the bus data analysis unit;
In response to an external access, history information providing means for providing history information stored in the storage unit;
A dynamic analysis apparatus comprising:
前記バスデータ解析部は、メモリアクセス用のアドレスバス上に出力されたアドレス値から、どの変数へのアクセスかを特定し、制御信号線上の制御信号から読み込みアクセスか書き込みアクセスかを特定し、前記データバス上のデータの値から変数の値を特定する、
ことを特徴とする請求項1に記載の動的解析装置。
The bus data analysis unit specifies which variable is accessed from an address value output on an address bus for memory access, specifies a read access or a write access from a control signal on a control signal line, and Identify variable values from data values on the data bus,
The dynamic analysis apparatus according to claim 1.
前記バスデータ解析部は、前記アドレスバス上に出力されたアドレス値から、どの関数が実行されたかを特定する、
ことを特徴とする請求項1に記載の動的解析装置。
The bus data analysis unit specifies which function is executed from the address value output on the address bus.
The dynamic analysis apparatus according to claim 1.
前記アドレスバス及びデータバス上の信号を受信し、これらのバスへの出力を行わない、
ことを特徴とする請求項1乃至3の何れか1項に記載の動的解析装置。
Receive signals on the address bus and data bus, do not output to these buses,
The dynamic analysis apparatus according to any one of claims 1 to 3, wherein:
前記バスデータ解析部は、
プログラムで実行されている関数を解析する実行関数解析部と、
実行された関数の遷移を保持し、所定の関数遷移履歴条件に合致する関数が実行されると、その関数を含む一定数の関数の遷移履歴を保存する関数遷移履歴保存部と、を備え、
外部装置からのアクセスに応答して、前記関数遷移履歴保存部に記憶されている遷移履歴を外部装置に提供する通信部をさらに備える、
ことを特徴とする請求項1乃至4の何れか1項に記載の動的解析装置。
The bus data analysis unit
An execution function analyzer that analyzes the functions being executed in the program;
A function transition history storage unit that holds the transition of the executed function and stores a transition history of a certain number of functions including the function when a function that satisfies a predetermined function transition history condition is executed;
In response to access from an external device, the communication device further includes a communication unit that provides the external device with the transition history stored in the function transition history storage unit.
The dynamic analysis apparatus according to any one of claims 1 to 4, wherein
前記バスデータ解析部は、
プログラムで利用されている変数を監視する変数データ解析部と、
所定の変数遷移履歴条件に合致する変数にアクセスがあると、その変数と所定情報とを含む変数遷移履歴を保存する変数遷移履歴保存部と、を備え、
外部装置からのアクセスに応答して、変数遷移履歴保存部に保存されている変数遷移履歴を外部装置に提供する通信部をさらに備える、
ことを特徴とする請求項1乃至5の何れか1項に記載の動的解析装置。
The bus data analysis unit
A variable data analyzer that monitors variables used in the program;
A variable transition history storage unit that stores a variable transition history including the variable and the predetermined information when a variable that matches the predetermined variable transition history condition is accessed;
In response to access from the external device, the communication device further includes a communication unit that provides the external device with the variable transition history stored in the variable transition history storage unit.
The dynamic analysis apparatus according to any one of claims 1 to 5, wherein
前記バスデータ解析部は、
プログラムで利用されている変数の現在値を読み込む定時データ処理部と、
前記定時データ処理部により読み込まれた変数値の履歴を保存する定時変数履歴保存部と、を備え、
外部装置からのアクセスに応答して、定時変数履歴保存部に保存されている履歴を外部装置に提供する通信部をさらに備える、
ことを特徴とする請求項1乃至6の何れか1項に記載の動的解析装置。
The bus data analysis unit
A scheduled data processing unit that reads the current values of variables used in the program,
A scheduled variable history storage unit that stores a history of variable values read by the scheduled data processing unit,
In response to access from the external device, the communication device further includes a communication unit that provides the external device with the history stored in the fixed variable history storage unit.
The dynamic analysis apparatus according to any one of claims 1 to 6, wherein:
前記バスデータ解析部は、
プログラムで利用されているタスクの切り換えを検出するタスク解析部と、
前記タスク解析部により検出されたタスクの切り換えに基づいて、タスク遷移履歴を保存するタスク履歴保存部と、を備え、
外部装置からのアクセスに応答して、前記タスク履歴保存部に保存されている履歴を外部装置に提供する手段をさらに備える、
ことを特徴とする請求項1乃至7の何れか1項に記載の動的解析装置。
The bus data analysis unit
A task analysis unit that detects switching of tasks used in the program;
A task history storage unit that stores a task transition history based on switching of tasks detected by the task analysis unit;
In response to access from an external device, further comprising means for providing the history stored in the task history storage unit to the external device;
The dynamic analysis apparatus according to claim 1, wherein
前記バスデータ解析部は、
バスの占有率を解析するバス占有率解析部と、
前記バス占有率解析部が解析したバス占有率の履歴を保存するバス占有率保存部と、を備え、
外部装置からのアクセスに応答して、前記バス占有率保存部に保存されている履歴を外部装置に提供する手段をさらに備える、
ことを特徴とする請求項1乃至8の何れか1項に記載の動的解析装置。
The bus data analysis unit
A bus occupancy analyzer for analyzing the occupancy of the bus;
A bus occupancy storage unit that stores a history of the bus occupancy analyzed by the bus occupancy analysis unit,
In response to an access from an external device, further comprising means for providing the external device with a history stored in the bus occupancy storage unit;
The dynamic analysis apparatus according to any one of claims 1 to 8, wherein
請求項1乃至9の何れか1項に記載の動的解析装置と、
前記動的解析装置に保持されている履歴を読み出し、処理する解析ツールと、
を備えることを特徴とする動的解析システム。
A dynamic analysis device according to any one of claims 1 to 9,
An analysis tool for reading and processing the history held in the dynamic analysis device;
A dynamic analysis system comprising:
アドレスバス上を伝送されるアドレスを解析して処理内容を特定し、
データバス上を伝送されるデータを解析して、処理データを特定し、
特定した処理内容と処理データの履歴の少なくとも一部を含む履歴情報を求め、
求めた履歴情報を提供する、
ことを特徴とする動的解析方法。
Analyzing the address transmitted on the address bus to identify the processing contents,
Analyzing data transmitted on the data bus to identify processing data,
Find history information that includes at least part of the history of the identified process details and process data,
Provide the requested history information,
A dynamic analysis method characterized by that.
コンピュータに、
アドレスバス上を伝送されるアドレスを解析して処理内容を特定し、
データバス上を伝送されるデータを解析して、処理データを特定し、
特定した処理内容と処理データの履歴の少なくとも一部を含む履歴情報を求め、
求めた履歴情報を提供する、
動作を実行させるプログラム。
On the computer,
Analyzing the address transmitted on the address bus to identify the processing contents,
Analyzing data transmitted on the data bus to identify processing data,
Find history information that includes at least part of the history of the identified process details and process data,
Provide the requested history information,
A program that performs an action.
JP2011239823A 2011-10-31 2011-10-31 Dynamic analysis apparatus, dynamic analysis system, dynamic analysis method, and program Active JP5441983B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011239823A JP5441983B2 (en) 2011-10-31 2011-10-31 Dynamic analysis apparatus, dynamic analysis system, dynamic analysis method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011239823A JP5441983B2 (en) 2011-10-31 2011-10-31 Dynamic analysis apparatus, dynamic analysis system, dynamic analysis method, and program

Publications (2)

Publication Number Publication Date
JP2013097580A true JP2013097580A (en) 2013-05-20
JP5441983B2 JP5441983B2 (en) 2014-03-12

Family

ID=48619458

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011239823A Active JP5441983B2 (en) 2011-10-31 2011-10-31 Dynamic analysis apparatus, dynamic analysis system, dynamic analysis method, and program

Country Status (1)

Country Link
JP (1) JP5441983B2 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09319605A (en) * 1996-05-28 1997-12-12 Mitsubishi Electric Corp Emulator system
JPH10275094A (en) * 1997-03-31 1998-10-13 Mitsubishi Electric Corp Program evaluation system
JP2000207245A (en) * 1999-01-12 2000-07-28 Matsushita Electric Ind Co Ltd In-circuit emulator
JP2005070949A (en) * 2003-08-21 2005-03-17 Sanyo Electric Co Ltd Program processing apparatus
JP2007207120A (en) * 2006-02-03 2007-08-16 Canon Inc System verifying apparatus and its verification method
JP2009009201A (en) * 2007-06-26 2009-01-15 Renesas Technology Corp Debugging device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09319605A (en) * 1996-05-28 1997-12-12 Mitsubishi Electric Corp Emulator system
JPH10275094A (en) * 1997-03-31 1998-10-13 Mitsubishi Electric Corp Program evaluation system
JP2000207245A (en) * 1999-01-12 2000-07-28 Matsushita Electric Ind Co Ltd In-circuit emulator
JP2005070949A (en) * 2003-08-21 2005-03-17 Sanyo Electric Co Ltd Program processing apparatus
JP2007207120A (en) * 2006-02-03 2007-08-16 Canon Inc System verifying apparatus and its verification method
JP2009009201A (en) * 2007-06-26 2009-01-15 Renesas Technology Corp Debugging device

Also Published As

Publication number Publication date
JP5441983B2 (en) 2014-03-12

Similar Documents

Publication Publication Date Title
US9747192B2 (en) Automated operating system installation on multiple drives
US9569325B2 (en) Method and system for automated test and result comparison
US20170068229A1 (en) Control system, method, program, and information processing device
US9984244B2 (en) Controller, information processing apparatus, and recording medium
JP6171386B2 (en) Controller, information processing apparatus and program
US9542304B1 (en) Automated operating system installation
US10120702B2 (en) Platform simulation for management controller development projects
CN102810005A (en) Power supply state detecting system and method
US20150058828A1 (en) Plc simulation system, plc simulator, recording medium, and simulation method
US20080306717A1 (en) Cooperative simulation system
CN104239174A (en) BMC (baseboard management controller) remote debugging system and method
CN107364140B (en) Method and system for initial parameter configuration and function detection of multiple 3D printers
JP5441983B2 (en) Dynamic analysis apparatus, dynamic analysis system, dynamic analysis method, and program
JP2014099058A (en) Control system and control unit
CN115599617B (en) Bus detection method and device, server and electronic equipment
EP3751365A1 (en) Control device, monitoring method, and monitoring program
CN114138587B (en) Method, device and equipment for verifying reliability of server power firmware upgrade
CN105765472A (en) Remote control device and control system
CN110728041B (en) Information processing method and electronic equipment
US8930666B1 (en) Virtual disk carousel
CN104636220A (en) Method and system for logging into user diagnostic system by stimulating BIOS function key
KR101323833B1 (en) Apparatus and Method For Scheduling
CN103593272A (en) System and method for controlling motherboard function test
CN116257419A (en) Method, system, device and storage medium for automatically adjusting and optimizing performance of mobile phone application
JP2015109535A (en) Communication apparatus and error response level switching method

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20130821

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20130903

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20131101

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20131105

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20131119

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20131217

R150 Certificate of patent or registration of utility model

Ref document number: 5441983

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250