JPH0588930A - Simulating circuit - Google Patents

Simulating circuit

Info

Publication number
JPH0588930A
JPH0588930A JP3273081A JP27308191A JPH0588930A JP H0588930 A JPH0588930 A JP H0588930A JP 3273081 A JP3273081 A JP 3273081A JP 27308191 A JP27308191 A JP 27308191A JP H0588930 A JPH0588930 A JP H0588930A
Authority
JP
Japan
Prior art keywords
data
package
packages
memory
serial
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
JP3273081A
Other languages
Japanese (ja)
Other versions
JP2754982B2 (en
Inventor
Shinsaku Komai
晋作 駒井
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.)
NEC Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP3273081A priority Critical patent/JP2754982B2/en
Publication of JPH0588930A publication Critical patent/JPH0588930A/en
Application granted granted Critical
Publication of JP2754982B2 publication Critical patent/JP2754982B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

PURPOSE:To realize the high-quality software evaluating device which secures the real time property without complicating the hardware configuration by generating a response in accordance with the analysis result of contents of a transmission buffer and the contents of a memory area and writing it in a reception buffer. CONSTITUTION:A CPU 1 is connected to an analysis part 4 through a serial interface transmission buffer part 2 which holds control data of packages 1 to N from an evaluation object software and a serial interface reception buffer part 3 which holds the response data from the analysis part 4. The analysis part 4 analyzes the control data from the evaluation object software held in the transmission buffer part 2 and uses a memory 5 to perform the processing corresponding to a command number. The analysis part 4 writes the response data as the processing result, namely, each frame of a packet for serial transmission of the reception data format in the reception buffer part 3.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【技術分野】本発明はシミュレート回路に関し、特に装
置を構成する複数のパッケージ各々との間の外部インタ
フェースとしてマルチポイントシリアルインタフェース
を用い、各パッケージのリアルタイム制御を行うソフト
ウェアの評価を行うシミュレート回路に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a simulation circuit, and more particularly to a simulation circuit which uses a multipoint serial interface as an external interface with each of a plurality of packages constituting an apparatus and evaluates software for real-time control of each package. Regarding

【0002】[0002]

【従来技術】ソフトウェアの新規開発において、制御時
にリアルタイム性が要求され、外部インタフェースがマ
ルチポイントシリアルインタフェースである装置の新規
ソフトウェアを評価する場合、実際の装置に近い環境で
該ソフトウェアの評価を行う必要がある。
2. Description of the Related Art In new software development, real-time performance is required during control, and when evaluating new software for a device whose external interface is a multipoint serial interface, it is necessary to evaluate the software in an environment close to the actual device. There is.

【0003】従来、この種のソフトウェアの評価を行う
シミュレート回路においては、図4に示すように、CP
U1にシリアルインタフェース送信バッファ部(以下送
信バッファ部とする)2およびシリアルインタフェース
受信バッファ部(以下受信バッファ部とする)3を介し
て接続されたCPU1側のシリアルインタフェース終端
部(以下終端部とする)8が接続されたマルチポイント
シリアルインタフェース(以下シリアルインタフェース
とする)9のパッケージ1〜N(図示せず)側の終端部
にシミュレート回路10-1〜10-Nを設置することによ
って対応している。このシミュレート回路10-1〜10
-Nはマルチポイントシリアルインタフェース終端部(以
下終端部とする)10a-1〜10a-Nと、シリアル伝送
用パケットの解析部10b-1〜10b-Nと、メモリ部1
0c-1〜10c-Nとからなっている。
Conventionally, in a simulation circuit for evaluating this kind of software, as shown in FIG.
A serial interface termination unit (hereinafter referred to as a termination unit) on the CPU 1 side connected to U1 via a serial interface transmission buffer unit (hereinafter referred to as a transmission buffer unit) 2 and a serial interface reception buffer unit (hereinafter referred to as a reception buffer unit) 3. ) 8 is connected to the multipoint serial interface (hereinafter referred to as a serial interface) 9 by arranging the simulation circuits 10-1 to 10-N at the end portions of the packages 1 to N (not shown) side. ing. This simulation circuit 10-1 to 10
-N is a multipoint serial interface termination unit (hereinafter referred to as termination unit) 10a-1 to 10a-N, a serial transmission packet analysis unit 10b-1 to 10b-N, and a memory unit 1.
It consists of 0c-1 to 10c-N.

【0004】メモリ部10c-1〜10c-Nは制御対象と
なるレジスタやセレクタの代りにそのデータを保持して
おり、シリアル伝送用パケットを使用してその内容の参
照や変更が可能となっている。また、メモリ部10c-1
〜10c-Nへの外部入力や外部入力生成部12からの入
力もオア回路11-1〜11-Nを介して可能となってお
り、メモリ部10c-1〜10c-Nの内容を直接変更する
ことができ、自律変化にも対応できる構成となってい
る。
The memory units 10c-1 to 10c-N hold the data in place of the registers or selectors to be controlled, and the contents thereof can be referred to or changed by using the packet for serial transmission. There is. In addition, the memory unit 10c-1
External inputs to -10c-N and inputs from the external input generation unit 12 are also possible via the OR circuits 11-1 to 11-N, and the contents of the memory units 10c-1 to 10c-N are directly changed. It is possible to do so, and it has a configuration that can respond to autonomous changes.

【0005】新規ソフトウェアの評価を行う場合、図5
に示すように、評価対象ソフトウェアがパッケージ1〜
Nの制御データを出力すると(図5ステップ30)、C
PU1は送信バッファ部2に評価対象ソフトウェアから
の制御データを書込む(図5ステップ31)。
When evaluating new software, FIG.
As shown in, the evaluation target software is package 1
When N control data is output (step 30 in FIG. 5), C
PU1 writes the control data from the evaluation target software in the transmission buffer unit 2 (step 31 in FIG. 5).

【0006】送信バッファ部2に書込まれた制御データ
は終端部8からシリアルインタフェース9を介してパッ
ケージ1〜Nに対応する各シミュレート回路10-1〜1
0-Nに送信される(図5ステップ32)。
The control data written in the transmission buffer unit 2 is transmitted from the terminating unit 8 through the serial interface 9 to the respective simulation circuits 10-1 to 10-1 corresponding to the packages 1 to N.
0-N (step 32 in FIG. 5).

【0007】各シミュレート回路10-1〜10-Nでは終
端部10a-1〜10a-Nが受信した制御データを解析部
10b-1〜10b-Nで解析する。すなわち、解析部10
b-1〜10b-Nは図6(a)に示す送信データフォーマ
ットのシリアル伝送用パケットにおける各フレーム内の
アドレスフィールドのパッケージNo.およびコマンド
No.を解析し、パッケージNo.が自パッケージのN
o.であればそのフレームを取込んでコマンドNo.に
応じた処理を行う(図5ステップ33)。
In each of the simulation circuits 10-1 to 10-N, the control data received by the terminal units 10a-1 to 10a-N is analyzed by the analysis unit 10b-1 to 10b-N. That is, the analysis unit 10
b-1 to 10b-N are the package number of the address field in each frame in the serial transmission packet of the transmission data format shown in FIG. And the command No. Package No. Is N of own package
o. If so, capture that frame and enter the command No. Is performed (step 33 in FIG. 5).

【0008】このとき、解析部10b-1〜10b-Nはコ
マンドNo.が設定要求を示すものであれば、該フレー
ムのデータフィールドの値(設定結果データ)をメモリ
部10c-1〜10c-Nに書込み、その後にメモリ部10
c-1〜10c-Nに書込んだ設定結果データを設定応答デ
ータとして図6(b)に示す受信データフォーマットの
シリアル伝送用パケットにおける各フレーム内のデータ
フィールドに書込み、該フレームを終端部10a-1〜1
0a-Nからシリアルインタフェース9を介して終端部8
に出力する(図5ステップ34)。
At this time, the analysis units 10b-1 to 10b-N send the command No. Is a request for setting, the value of the data field of the frame (setting result data) is written in the memory units 10c-1 to 10c-N, and then the memory unit 10
The setting result data written in c-1 to 10c-N is written as the setting response data in the data field in each frame in the serial transmission packet of the reception data format shown in FIG. 6B, and the frame is terminated. -1 ~ 1
0a-N through the serial interface 9 to the terminal 8
(Step 34 in FIG. 5).

【0009】また、解析部10b-1〜10b-Nはコマン
ドNo.が読出し要求を示すものであれば、メモリ部1
0c-1〜10c-Nの内容を読出し、その読出した値を読
出し応答としてシリアル伝送用パケットの各フレーム内
のデータフィールドに書込み、該フレームを終端部10
a-1〜10a-Nからシリアルインタフェース9を介して
終端部8に出力する(図5ステップ35)。
Further, the analysis units 10b-1 to 10b-N use the command No. Is a read request, the memory unit 1
The contents of 0c-1 to 10c-N are read, the read value is written as a read response in the data field in each frame of the serial transmission packet, and the frame is terminated.
Output from a-1 to 10a-N to the terminal unit 8 through the serial interface 9 (step 35 in FIG. 5).

【0010】各シミュレート回路10-1〜10-Nの終端
部10a-1〜10a-Nからシリアルインタフェース9を
介して出力されたシリアル伝送用パケットの各フレーム
は終端部8で受信され、受信バッファ部3に書込まれる
(図5ステップ36)。CPU1は受信バッファ部3に
各シミュレート回路10-1〜10-Nからの応答データが
書込まれると、その応答データを受信バッファ部3から
読込み(図5ステップ37)、評価対象ソフトウェアが
CPU1に読込まれたパッケージ1〜Nの応答データを
入力して動作する(図2ステップ38)。
Each frame of the serial transmission packet output from the terminating units 10a-1 to 10a-N of each of the simulation circuits 10-1 to 10-N via the serial interface 9 is received by the terminating unit 8 and received. It is written in the buffer unit 3 (step 36 in FIG. 5). When the response data from each of the simulation circuits 10-1 to 10-N is written in the reception buffer unit 3, the CPU 1 reads the response data from the reception buffer unit 3 (step 37 in FIG. 5), and the evaluation target software is the CPU 1 It operates by inputting the response data of the packages 1 to N read in (step 38 in FIG. 2).

【0011】このような従来のシミュレート回路では、
シリアルインタフェース9のパッケージ1〜N側の終端
部にシミュレート回路10-1〜10-Nを設置しているの
で、シリアルインタフェース9の終端部にパッケージ1
〜Nと同様な回路が必要となり、メモリ部10c-1〜1
0c-Nも各終端部単位に必要となるため、パッケージ1
〜Nの種別によってデータ量が異なる場合にそのメモリ
部10c-1〜10c-Nの使用効率が悪くなるという問題
がある。
In such a conventional simulation circuit,
Since the simulation circuits 10-1 to 10-N are installed at the end portions of the serial interface 9 on the side of the packages 1 to N, the package 1 is installed at the end portion of the serial interface 9.
A circuit similar to that for N is required, and the memory units 10c-1 to 1
0c-N is also required for each terminal unit, so package 1
There is a problem that the use efficiency of the memory units 10c-1 to 10c-N deteriorates when the data amount differs depending on the types of.

【0012】また、制御対象であるパッケージ1〜Nが
複数個で構成される装置では全パッケージ実装状態の評
価をする必要がある場合、すべての終端部に終端部10
a-1〜10a-Nと解析部10b-1〜10b-Nとメモリ部
10c-1〜10c-Nとを一組としたシミュレート回路1
0-1〜10-Nを配置しなければならないという問題があ
る。
Further, in a device including a plurality of packages 1 to N to be controlled, if it is necessary to evaluate the mounting state of all packages, all the termination parts 10 are connected.
a-1 to 10a-N, analysis units 10b-1 to 10b-N, and memory units 10c-1 to 10c-N as a set.
There is a problem that 0-1 to 10-N must be arranged.

【0013】さらに、あるパッケージのメモリに設定コ
マンドでデータが設定されることによって、該パッケー
ジとは別の他のパッケージのメモリの内容が変更される
場合、該設定コマンドに同期してそのメモリの内容を変
更するためには、パッケージ間を接続するインタフェー
スを設けて他のパッケージのメモリの内容を変更可能と
するか、あるいは設定コマンドによって設定されたある
パッケージの状態を制作者が確認後、改めて他のパッケ
ージのメモリの内容を外部入力によって変更する必要が
ある。前者の場合にはパッケージ間にインタフェースを
設けなければならないので、ハードウェア構成が複雑に
なるという問題があり、後者の場合には制作者を介する
ためにリアルタイム性が損われるという問題がある。
Further, when data is set in a memory of a certain package by a setting command to change the contents of the memory of another package different from the package, the contents of the memory of that package are synchronized with the setting command. To change the contents, provide an interface to connect the packages so that the contents of the memory of other packages can be changed, or after the creator confirms the state of a package set by the setting command, The contents of the memory of other packages need to be changed by external input. In the former case, an interface must be provided between the packages, so there is a problem that the hardware configuration becomes complicated, and in the latter case, there is a problem that the real-time property is impaired due to the intervention of the creator.

【0014】[0014]

【発明の目的】本発明は上記のような従来のものの問題
点を除去すべくなされたもので、ハードウェア構成を複
雑とすることなく、リアルタイム性を保証した高品質ソ
フトウェア評価環境を実現することができるシミュレー
ト回路の提供を目的とする。
SUMMARY OF THE INVENTION The present invention has been made to eliminate the above-mentioned problems of the conventional one, and to realize a high-quality software evaluation environment that guarantees real-time property without complicating the hardware configuration. The purpose is to provide a simulation circuit capable of

【0015】[0015]

【発明の構成】本発明によるシミュレート回路は、装置
を構成する複数のパッケージ各々をシリアルインタフェ
ースを介してリアルタイム制御を行うソフトウェアの評
価を行うためのシミュレート回路であって、前記ソフト
ウェアによって動作する中央処理装置と、前記中央処理
装置から前記複数のパッケージに送信されるシリアル伝
送用パケットを保持する送信バッファ手段と、前記複数
のパッケージから前記中央処理装置に送信されるシリア
ル伝送用パケットを保持する受信バッファ手段と、前記
複数のパッケージ各々に対応し、かつ前記シリアル伝送
用パケットのデータフィールドに対応する領域を有する
記憶手段と、前記領域の内容を他の領域に保持された内
容および外部入力の内容のうち少なくとも一方の内容に
基づいて変更する変更手段と、前記送信バッファ手段に
保持されたシリアル伝送用パケットを解析し、その解析
結果および該シリアル伝送用パケットの伝送先のパッケ
ージに対応する前記記憶手段の領域の内容にしたがって
該シリアル伝送用パケットに対する応答を生成して前記
受信バッファ手段に書込む解析手段とを設けたことを特
徴とする。
The simulation circuit according to the present invention is a simulation circuit for evaluating software for performing real-time control of each of a plurality of packages constituting an apparatus through a serial interface, and is operated by the software. Central processing unit, transmission buffer means for holding serial transmission packets transmitted from the central processing unit to the plurality of packages, and holding serial transmission packets transmitted from the plurality of packages to the central processing unit Reception buffer means, storage means having an area corresponding to each of the plurality of packages and corresponding to a data field of the serial transmission packet, and contents of the area stored in other areas and external input Change based on at least one of the content The serial transmission packet held in the transmission buffer means, and the serial transmission packet is analyzed according to the analysis result and the contents of the area of the storage means corresponding to the destination package of the serial transmission packet. And an analyzing means for generating a response to the packet and writing the response in the reception buffer means.

【0016】[0016]

【実施例】次に、本発明の一実施例について図面を参照
して説明する。
An embodiment of the present invention will be described with reference to the drawings.

【0017】図1は本発明の一実施例の構成を示すブロ
ック図である。図において、CPU1は評価対象ソフト
ウェアからのパッケージ1〜N(図示せず)の制御デー
タを保持するシリアルインタフェース送信バッファ部
(以下送信バッファ部とする)2と、解析部4からの応
答データを保持するシリアルインタフェース受信バッフ
ァ部(以下受信バッファ部とする)3とを介して解析部
4に接続されている。
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention. In the figure, a CPU 1 holds a serial interface transmission buffer unit (hereinafter referred to as a transmission buffer unit) 2 that holds control data of packages 1 to N (not shown) from the evaluation target software, and response data from an analysis unit 4. It is connected to the analysis unit 4 via a serial interface reception buffer unit (hereinafter referred to as a reception buffer unit) 3.

【0018】解析部4は送信バッファ部2に保持された
評価対象ソフトウェアからの制御データ、すなわち図6
(a)に示すような送信データフォーマットのシリアル
伝送用パケットの各フレームのアドレスフィールドのパ
ッケージNo.およびコマンドNo.を解析し、メモリ
5を用いてコマンドNo.に応じた処理を行う。解析部
4はこの処理の結果である応答データ、すなわち図6
(b)に示すような受信データフォーマットのシリアル
伝送用パケットの各フレームを受信バッファ部3に書込
む。
The analysis unit 4 controls the control data from the evaluation target software held in the transmission buffer unit 2, that is, FIG.
The package number of the address field of each frame of the serial transmission packet having the transmission data format as shown in (a). And the command No. Is analyzed and the command No. Perform processing according to. The analysis unit 4 receives response data as a result of this processing, that is, FIG.
Each frame of the serial transmission packet having the reception data format as shown in (b) is written in the reception buffer unit 3.

【0019】メモリ5は各パッケージ1〜Nに対応する
領域(パッケージ1用メモリ、パッケージ2用メモリ、
……、パッケージN用メモリ)を有し、オア回路7を介
して入力される外部入力や外部入力生成部6で生成され
た外部入力によってその内容の変更が可能となってい
る。
The memory 5 is an area corresponding to each package 1-N (memory for package 1, memory for package 2,
.. (package N memory), and its contents can be changed by an external input input via the OR circuit 7 or an external input generated by the external input generation unit 6.

【0020】図2は本発明の一実施例の動作シーケンス
を示すフローチャートである。これら図1および図2を
用いて本発明の一実施例の動作について説明する。
FIG. 2 is a flow chart showing the operation sequence of one embodiment of the present invention. The operation of the embodiment of the present invention will be described with reference to FIGS.

【0021】新規ソフトウェアの評価を行う場合、評価
対象ソフトウェアがパッケージ1〜Nの制御データを出
力すると(図2ステップ20)、CPU1は送信バッフ
ァ部2に評価対象ソフトウェアからの制御データを書込
む(図2ステップ21)。
When evaluating new software, when the evaluation target software outputs the control data of the packages 1 to N (step 20 in FIG. 2), the CPU 1 writes the control data from the evaluation target software in the transmission buffer section 2 ( 2 step 21).

【0022】送信バッファ部2に制御データが書込まれ
ると、解析部4は送信バッファ部2の内容を直接参照
し、パッケージ1〜Nの制御データを順次解析する(図
2ステップ22)。この場合、送信バッファ部2には図
6(a)に示すような送信データフォーマットのシリア
ル伝送用パケットの各フレームが書込まれているので、
解析部4は各フレーム内のアドレスフィールドのパッケ
ージNo.およびコマンドNo.を解析し、コマンドN
o.に応じた処理を行う。解析部4はその処理の結果を
該フレーム内のパッケージNo.に対応するメモリ5の
領域に書込む(図2ステップ23)。
When the control data is written in the transmission buffer unit 2, the analysis unit 4 directly refers to the contents of the transmission buffer unit 2 and sequentially analyzes the control data of the packages 1 to N (step 22 in FIG. 2). In this case, since each frame of the serial transmission packet having the transmission data format as shown in FIG. 6A is written in the transmission buffer unit 2,
The analysis unit 4 determines the package number of the address field in each frame. And the command No. Parse the command N
o. Perform processing according to. The analysis unit 4 displays the result of the processing as the package number in the frame. Is written in the area of the memory 5 corresponding to (step 23 in FIG. 2).

【0023】このとき、解析部4はコマンドNo.が設
定要求を示すものであれば、該フレームのデータフィー
ルドの値(設定結果データ)をメモリ5のパッケージN
o.に対応する領域に書込み、その後にメモリ5に書込
んだ設定結果データを設定応答データとして受信バッフ
ァ部3に書込む。この場合、受信バッファ部3には図6
(b)に示すような受信データフォーマットのシリアル
伝送用パケットの各フレームが設定応答データとして書
込まれる(図2ステップ24)。
At this time, the analysis unit 4 sends the command No. Is a request for setting, the value of the data field of the frame (setting result data) is set in the package N of the memory 5.
o. Then, the setting result data written in the memory 5 is written in the receiving buffer unit 3 as setting response data. In this case, FIG.
Each frame of the serial transmission packet having the reception data format as shown in (b) is written as setting response data (step 24 in FIG. 2).

【0024】また、解析部4はコマンドNo.が読出し
要求を示すものであれば、パッケージNo.に対応する
メモリ5の領域の内容を読出し、その読出した値を読出
し応答として受信バッファ部3に書込む。この場合、受
信バッファ部3には図6(b)に示すような受信データ
フォーマットのシリアル伝送用パケットの各フレームが
読出し応答として書込まれる(図2ステップ25)。
Further, the analysis unit 4 uses the command No. Is a read request, the package number. The content of the area of the memory 5 corresponding to is read and the read value is written in the reception buffer unit 3 as a read response. In this case, each frame of the serial transmission packet having the reception data format as shown in FIG. 6B is written in the reception buffer unit 3 as a read response (step 25 in FIG. 2).

【0025】受信バッファ部3に応答データが書込まれ
ると、CPU1は受信バッファ部3からその応答データ
を読込み(図2ステップ26)、評価対象ソフトウェア
がCPU1に読込まれたパッケージ1〜Nの応答データ
を入力して動作する(図2ステップ27)。
When the response data is written in the reception buffer unit 3, the CPU 1 reads the response data from the reception buffer unit 3 (step 26 in FIG. 2), and the evaluation target software is read by the CPU 1 and the responses of the packages 1 to N are read. It operates by inputting data (step 27 in FIG. 2).

【0026】図3は図1のメモリ5における状態遷移を
示す図である。図においては、パッケージ1のメモリに
設定コマンドでデータaが設定されることによって、パ
ッケージNのメモリの内容がデータ2aに変更される場
合を示している。
FIG. 3 is a diagram showing state transitions in the memory 5 of FIG. The figure shows a case where the data of the memory of the package N is changed to the data 2a by setting the data a in the memory of the package 1 by the setting command.

【0027】この場合、メモリ5のパッケージ1に対応
する領域にデータaがセットされると、外部入力生成部
6で生成されたデータ2aがオア回路7を介してメモリ
5のパッケージNに対応する領域に書込まれる。すなわ
ち、外部入力生成部6はメモリ5の各領域を監視し、パ
ッケージ1に対応する領域にデータaがセットされたこ
とを検出すると、予め設定された動作シーケンスにした
がってデータ2aを生成し、このデータ2aをパッケー
ジNに対応する領域を指定して出力する。
In this case, when the data a is set in the area corresponding to the package 1 of the memory 5, the data 2a generated by the external input generation unit 6 corresponds to the package N of the memory 5 via the OR circuit 7. Written in the area. That is, the external input generation unit 6 monitors each area of the memory 5, and when detecting that the data a is set in the area corresponding to the package 1, generates the data 2a according to a preset operation sequence. The data 2a is output by designating an area corresponding to the package N.

【0028】よって、パッケージ1に対応する領域にデ
ータaをセットする設定コマンドに同期してパッケージ
Nに対応する領域の内容をデータ2aに変更するとき、
従来のようにパッケージ間を接続するインタフェースを
設ける必要がなく、パッケージ1の状態を制作者が確認
後、改めてパッケージNのメモリの内容を外部入力によ
って変更する必要もなくなる。これによって、ハードウ
ェア構成を複雑とすることなく、またリアルタイム性が
損われることなく、高品質ソフトウェア評価環境を実現
することができる。
Therefore, when the content of the area corresponding to the package N is changed to the data 2a in synchronization with the setting command for setting the data a in the area corresponding to the package 1,
It is not necessary to provide an interface for connecting the packages as in the conventional case, and it is not necessary to change the contents of the memory of the package N by external input again after the producer confirms the state of the package 1. This makes it possible to realize a high-quality software evaluation environment without complicating the hardware configuration and without impairing the real-time property.

【0029】本発明の一実施例では装置組込みソフトウ
ェアにおいて、マルチポイントインタフェースを介して
複数のパッケージ1〜Nの制御を行う場合、装置組込み
ソフトウェア側からの切り口にはシリアルインタフェー
スの送信バッファおよび受信バッファのみである。ま
た、送信バッファおよび受信バッファ上であれば、複数
のパッケージ1〜Nのデータが同一メモリ上にあるた
め、複数のパッケージのデータを同時にアクセスするこ
とが可能である。これに着目し、装置組込みソフトウェ
アからの制御データの解析を送信バッファ部2上のデー
タで行い、その解析結果の応答を直接受信バッファ部3
に書込むことによって、装置組込みソフトウェアのシミ
ュレートを実現している。
In one embodiment of the present invention, when a plurality of packages 1 to N are controlled in the device-embedded software via the multipoint interface, the cut-off from the device-embedded software side is the transmission buffer and the reception buffer of the serial interface. Only. Further, on the transmission buffer and the reception buffer, since the data of the plurality of packages 1 to N are on the same memory, it is possible to access the data of the plurality of packages at the same time. Focusing on this, the control data from the device-embedded software is analyzed by the data on the transmission buffer unit 2, and the response of the analysis result is directly received by the reception buffer unit 3.
By writing in, the simulation of the software embedded in the device is realized.

【0030】上記のような構成とすることによって、C
PU1側から見た場合、送信バッファ部2および受信バ
ッファ部3上で従来のシミュレート回路と同じ動作とな
るため、装置部のレジスタおよびセレクタの動作と同じ
環境で疑似的な装置環境を実現することができる。ま
た、制御対象の実装数に影響しない評価が可能となり、
しかもリアルタイム性も実現することができ、装置組込
みソフトウェアの評価を実現することができる。
With the above structure, C
When viewed from the PU1 side, the same operation as the conventional simulation circuit is performed on the transmission buffer unit 2 and the reception buffer unit 3, so that a pseudo device environment is realized in the same environment as the operation of the register and selector of the device unit. be able to. Also, it is possible to evaluate without affecting the number of controlled objects to be mounted.
Moreover, real-time performance can be realized, and evaluation of the software embedded in the device can be realized.

【0031】このように、CPU1から送信バッファ部
2に書込まれた評価対象ソフトウェアからの制御データ
を解析部4によって解析してその解析結果をメモリ5の
パッケージ1〜N各々に対応する領域に書込み、その解
析結果による応答データを受信バッファ部3を介してC
PU1に送出するようにすることによって、従来マルチ
ポイントシリアルインタフェースの各終端部に配置して
いるシミュレート回路が不要になるとともに、評価対象
ソフトウェアの実機環境での評価で制御対象の実装数に
影響されることなく、評価対象ソフトウェアの評価を行
うことができる。すなわち、全パッケージが実装状態の
評価においてもハードウェア構成が大きくなることはな
く、制御対象に応じて必要な数だけ用意することができ
る。
As described above, the control data from the evaluation target software written in the transmission buffer unit 2 from the CPU 1 is analyzed by the analysis unit 4 and the analysis result is stored in the areas corresponding to the packages 1 to N of the memory 5. Write the response data according to the analysis result via the reception buffer unit 3 to C
By sending to PU1, the simulation circuit conventionally arranged at each terminal of the multipoint serial interface becomes unnecessary, and the number of control target implementations is affected by the evaluation of the evaluation target software in the actual environment. It is possible to evaluate the evaluation target software without any trouble. In other words, the hardware configuration does not become large even in the evaluation of the mounting states of all packages, and the required number can be prepared according to the control target.

【0032】また、図3に示すように、パッケージ1の
メモリに設定コマンドでデータaが設定されることによ
って、パッケージNのメモリの内容がデータ2aに変更
されるような場合でも、外部入力生成部6に予め動作シ
ーケンスを設定しておくことによって、該設定コマンド
に同期してパッケージNのメモリの内容をデータ2aに
変更することができ、従来のようにハードウェア構成が
複雑となったり、リアルタイム性が損われるということ
はない。よって、ハードウェア構成を複雑とすることな
く、リアルタイム性を保証した高品質ソフトウェア評価
環境を実現することができる。
Further, as shown in FIG. 3, even when the data in the memory of the package N is changed to the data 2a by setting the data a in the memory of the package 1 by the setting command, the external input generation is performed. By setting the operation sequence in the unit 6 in advance, the contents of the memory of the package N can be changed to the data 2a in synchronization with the setting command, and the hardware configuration becomes complicated as in the conventional case, There is no loss of real-time performance. Therefore, it is possible to realize a high-quality software evaluation environment that guarantees real-time performance without complicating the hardware configuration.

【0033】[0033]

【発明の効果】以上説明したように本発明によれば、中
央処理装置から複数のパッケージに送信されるシリアル
伝送用パケットを保持する送信バッファの内容を解析
し、その解析結果および該シリアル伝送用パケットの伝
送先のパッケージに対応するメモリの領域の内容にした
がって該シリアル伝送用パケットに対する応答を生成し
て受信バッファに書込むようにすることによって、ハー
ドウェア構成を複雑とすることなく、リアルタイム性を
保証した高品質ソフトウェア評価環境を実現することが
できるという効果がある。
As described above, according to the present invention, the contents of the transmission buffer that holds the serial transmission packets transmitted from the central processing unit to the plurality of packages are analyzed, and the analysis result and the serial transmission packets are analyzed. By generating a response to the packet for serial transmission according to the contents of the memory area corresponding to the package of the packet transmission destination and writing the response in the reception buffer, real-time operation is realized without complicating the hardware configuration. There is an effect that it is possible to realize a high-quality software evaluation environment that guarantees.

【図面の簡単な説明】[Brief description of drawings]

【図1】本発明の一実施例の構成を示すブロック図であ
る。
FIG. 1 is a block diagram showing a configuration of an exemplary embodiment of the present invention.

【図2】本発明の一実施例の動作シーケンスを示すフロ
ーチャートである。
FIG. 2 is a flowchart showing an operation sequence of an embodiment of the present invention.

【図3】図1のメモリにおける状態遷移を示す図であ
る。
FIG. 3 is a diagram showing state transitions in the memory of FIG.

【図4】従来例の構成を示すブロック図である。FIG. 4 is a block diagram showing a configuration of a conventional example.

【図5】従来例の動作シーケンスを示すフローチャート
である。
FIG. 5 is a flowchart showing an operation sequence of a conventional example.

【図6】シリアルインタフェースのデータフォーマット
例を示す図である。
FIG. 6 is a diagram showing an example of a data format of a serial interface.

【符号の説明】[Explanation of symbols]

1 CPU 2 シリアルインタフェース送信バッファ部 3 シリアルインタフェース受信バッファ部 4 解析部 5 メモリ 6 外部入力生成部 1 CPU 2 Serial interface transmission buffer unit 3 Serial interface reception buffer unit 4 Analysis unit 5 Memory 6 External input generation unit

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 装置を構成する複数のパッケージ各々を
シリアルインタフェースを介してリアルタイム制御を行
うソフトウェアの評価を行うためのシミュレート回路で
あって、前記ソフトウェアによって動作する中央処理装
置と、前記中央処理装置から前記複数のパッケージに送
信されるシリアル伝送用パケットを保持する送信バッフ
ァ手段と、前記複数のパッケージから前記中央処理装置
に送信されるシリアル伝送用パケットを保持する受信バ
ッファ手段と、前記複数のパッケージ各々に対応し、か
つ前記シリアル伝送用パケットのデータフィールドに対
応する領域を有する記憶手段と、前記領域の内容を他の
領域に保持された内容および外部入力の内容のうち少な
くとも一方の内容に基づいて変更する変更手段と、前記
送信バッファ手段に保持されたシリアル伝送用パケット
を解析し、その解析結果および該シリアル伝送用パケッ
トの伝送先のパッケージに対応する前記記憶手段の領域
の内容にしたがって該シリアル伝送用パケットに対する
応答を生成して前記受信バッファ手段に書込む解析手段
とを設けたことを特徴とするシミュレート回路。
1. A simulation circuit for evaluating software for performing real-time control of each of a plurality of packages constituting the apparatus through a serial interface, the central processing unit operating by the software, and the central processing unit. Transmission buffer means for holding serial transmission packets transmitted from the device to the plurality of packages; reception buffer means for holding serial transmission packets transmitted from the plurality of packages to the central processing unit; Storage means corresponding to each package and having an area corresponding to the data field of the serial transmission packet, and the content of the area to at least one of the content held in another area and the content of external input Change means for changing based on the transmission buffer means The held serial transmission packet is analyzed, a response to the serial transmission packet is generated and received in accordance with the analysis result and the contents of the area of the storage means corresponding to the package of the transmission destination of the serial transmission packet. A simulation circuit comprising: an analysis means for writing in a buffer means.
JP3273081A 1991-09-25 1991-09-25 Simulated circuit Expired - Lifetime JP2754982B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3273081A JP2754982B2 (en) 1991-09-25 1991-09-25 Simulated circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3273081A JP2754982B2 (en) 1991-09-25 1991-09-25 Simulated circuit

Publications (2)

Publication Number Publication Date
JPH0588930A true JPH0588930A (en) 1993-04-09
JP2754982B2 JP2754982B2 (en) 1998-05-20

Family

ID=17522883

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3273081A Expired - Lifetime JP2754982B2 (en) 1991-09-25 1991-09-25 Simulated circuit

Country Status (1)

Country Link
JP (1) JP2754982B2 (en)

Also Published As

Publication number Publication date
JP2754982B2 (en) 1998-05-20

Similar Documents

Publication Publication Date Title
US5440697A (en) Method and apparatus for simulating I/O devices
US20070064694A1 (en) System and method for connecting a logic circuit simulation to a network
JPH07114456A (en) Automatic operation device of computer operation terminal equipment
US9942120B2 (en) Technique for monitoring component processing
Hines et al. Optimizing communication in embedded system co-simulation
JPH0588930A (en) Simulating circuit
US6816924B2 (en) System and method for tracing ATM cells and deriving trigger signals
Stiliadis et al. FAST: An FPGA-based simulation testbed for ATM networks
JPH088571B2 (en) Network control method
KR920702117A (en) Communication systems
JPH0784901A (en) Terminal operation reproducing device
JP3941660B2 (en) Packet routing apparatus, packet routing method, and packet routing program
JP2563082Y2 (en) Pseudo communication control device
JP2752921B2 (en) Parallel computer system
US6510482B1 (en) Multiplexed bus data transmission control system
JP3114111B2 (en) Logic emulation method and system
JP2000242523A (en) Microprocessor and debugging device
JPH11338728A (en) Emulation system, interface circuit emulator, and information recording medium
Tripp A ring traffic monitor
JPH0683705A (en) Microcomputer lsi
JPH05298144A (en) Data trace system
JPH0766346B2 (en) Event recording method
JPS63263949A (en) Synchronous terminal station test instrument
JPS6227846A (en) Input and output channel
JPH0736739A (en) Data processor