JPH0659065B2 - Data transmission method - Google Patents

Data transmission method

Info

Publication number
JPH0659065B2
JPH0659065B2 JP61129456A JP12945686A JPH0659065B2 JP H0659065 B2 JPH0659065 B2 JP H0659065B2 JP 61129456 A JP61129456 A JP 61129456A JP 12945686 A JP12945686 A JP 12945686A JP H0659065 B2 JPH0659065 B2 JP H0659065B2
Authority
JP
Japan
Prior art keywords
data transmission
transmission device
program
address
control circuit
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.)
Expired - Lifetime
Application number
JP61129456A
Other languages
Japanese (ja)
Other versions
JPS62285544A (en
Inventor
一男 安江
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 JP61129456A priority Critical patent/JPH0659065B2/en
Publication of JPS62285544A publication Critical patent/JPS62285544A/en
Publication of JPH0659065B2 publication Critical patent/JPH0659065B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Small-Scale Networks (AREA)
  • Communication Control (AREA)
  • Maintenance And Management Of Digital Transmission (AREA)

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、情報を伝送する伝送路と、この伝送路に接続
され情報の授受を行う複数の装置とを有するデータ伝送
システムに関する。特に、システムの状態のモニタリン
グと蓄積(以下、トレースという。)機能のあるプログ
ラムを実行することができるデータ伝送装置に関する。
Description: TECHNICAL FIELD The present invention relates to a data transmission system having a transmission line for transmitting information and a plurality of devices connected to the transmission line for exchanging information. In particular, the present invention relates to a data transmission device capable of executing a program having a system state monitoring and storage (hereinafter, referred to as trace) function.

〔概要〕〔Overview〕

複数個のデータ伝送装置のひとつでトレースプログラム
を実行させる手段において、 ファームウエアをアクセスするアドレスと一致する特定
のアドレスにブランチする機能を外部からのコマンドで
操作することにより、 あらかじめ格納されているプログラムの内容を変えるこ
となく、トレース機能を必要とするときにトレースプロ
グラムを実行することができるようにしたものである。
In the means to execute a trace program in one of a plurality of data transmission devices, the function to branch to a specific address that matches the address to access the firmware is operated by an external command to store the program stored in advance. The trace program can be executed when the trace function is required without changing the contents of.

〔従来の技術〕[Conventional technology]

従来、あらゆる条件のトレース機能をサポートする場合
に、一般には常に使う必要がなくてもあらかじめ装置に
内蔵されるプログラムに格納しておく方法が知られてい
る。
Conventionally, in the case of supporting a trace function for all conditions, it is generally known to store it in a program built in the device in advance, even if it is not always necessary to use it.

また、プログラムを変更する方式として、センタ側から
伝送路を介してプログラムの内容を置き換える方式があ
る。
Further, as a method of changing the program, there is a method of replacing the contents of the program from the center side via the transmission path.

〔発明が解決しようとする問題点〕[Problems to be solved by the invention]

このような従来の方法では、常に使う必要がなくても内
蔵されているプログラムにあらかじめ格納しなければな
らないので、プログラムのステップ数が増大し、また、
通常のプログラム処理の性能が低下するなどの欠点があ
る。また、読出専用記憶装置にプログラムが書き込まれ
ている場合に、ユーザが運用中や保守時に特定のところ
でプログラムのトレースを取りたいときはあらかじめ装
置に内蔵されているプログラムにトレース機能がついて
いないので、まったくトレースが取れない問題点があっ
た。
In such a conventional method, the number of steps of the program is increased because it must be stored in the built-in program in advance even if it is not always necessary to use it.
There is a drawback that the performance of normal program processing decreases. In addition, when the program is written in the read-only storage device and the user wants to trace the program at a specific place during operation or maintenance, the program built in the device does not have a trace function beforehand. There was a problem that traces could not be obtained at all.

近来、システム構築は24時間運転を考え、LANを中心
とした大規模なシステムを構築する方向に進んでいる。
ところがセンタ側から伝送路を介してプログラムの内容
を置き換える方式においては、プログラムの内容を置き
換えるため、システムを中断してプログラムの内容を変
更しなければならない問題がある。
In recent years, considering system operation for 24 hours, we are moving toward building a large-scale system centered on LAN.
However, in the method of replacing the contents of the program from the center side via the transmission line, there is a problem that the contents of the program are replaced and therefore the system must be interrupted to change the contents of the program.

本発明はこのような欠点を除去するもので、あらかじめ
内蔵されたプログラムを変更することなく、システム運
用中でも、トレース機能を必要とするときに通常のデー
タ転送と全く同じ方法でトレース機能のあるプログラム
を実行することができるデータ伝送方式を提供すること
を目的とする。
The present invention eliminates such a drawback, and a program having a trace function is used in exactly the same way as a normal data transfer when the trace function is required even during system operation without changing a program stored in advance. It is an object of the present invention to provide a data transmission method capable of executing.

〔問題点を解決するための手段〕[Means for solving problems]

本発明は、情報を伝送する伝送路と、この伝送路に接続
され情報の授受を行う複数のデータ伝送装置とを備え、
上記データ伝送装置は、第1のデータ伝送装置から上記
伝送路を介して第2のデータ伝送装置にプログラムをロ
ードする手段を備えたデータ伝送方式において、上記第
2のデータ伝送装置は、上記第1のデータ伝送装置から
伝送された複数個の任意の値を設定する設定手段と、上
記第1のデータ伝送装置から伝送され上記設定手段で設
定した値毎に有効であるか否を指示する情報を格納する
有効手段と、プログラムを実行している場合にこのプロ
グラムをアクセスするアドレスと上記設定手段によって
設定した値と一致しかつ上記有効手段が有効な場合に上
記有効手段に対応した特定のアドレスにサブルーチンコ
ールする手段とを備えたことを特徴とする。
The present invention comprises a transmission line for transmitting information, and a plurality of data transmission devices connected to this transmission line for exchanging information,
In the data transmission method, the data transmission device comprises means for loading a program from the first data transmission device to the second data transmission device via the transmission path, wherein the second data transmission device is the second data transmission device. Setting means for setting a plurality of arbitrary values transmitted from one data transmission device, and information indicating whether or not each value set by the setting means transmitted from the first data transmission device is valid And a specific address corresponding to the valid means when the program is being executed and the address for accessing the program and the value set by the setting means are the same and the valid means is valid. And means for making a subroutine call.

また、上記データ伝送装置は他のデータ伝送装置の上記
有効手段を有効または無効にする手段を含んでもよい。
Further, the data transmission device may include means for enabling or disabling the valid means of another data transmission device.

さらに、上記データ伝送装置は他のデータ伝送装置の上
記有効手段の状態を読み取る手段を含んでもよい。
Further, the data transmission device may include means for reading the status of the valid means of another data transmission device.

〔作用〕[Action]

複数のデータ伝送装置のうちの第1の装置から第2の装
置にプログラムをロードする。また、任意の値を複数個
設定し、この設定した値毎に有効かどうかを有効手段で
示す。プログラムを実行している第2の装置がそのプロ
グラムをアクセスするアドレスと設定した値と一致しか
つ有効手段が有効な場合に、有効手段に対応した特定の
アドレスにサブルーチンコールする。これにより、プロ
グラムをアクセスするアドレスと設定した値と一致する
と特定のアドレスにブランチする機能を外部からのコマ
ンドにより操作することができる。また、有効手段を有
効または無効にすることもできる。さらに、有効手段の
状態を複数の装置のいずれかでも読み取れることもでき
る。
The program is loaded from the first device of the plurality of data transmission devices to the second device. Further, a plurality of arbitrary values are set, and the validity means indicates whether or not each set value is valid. When the second device executing the program matches the address for accessing the program and the set value and the valid means is valid, a subroutine call is made to a specific address corresponding to the valid means. As a result, the function of branching to a specific address when the program access address matches the set value can be operated by an external command. Also, the validating means can be enabled or disabled. Further, the status of the effective means can be read by any of the plurality of devices.

〔実施例〕〔Example〕

以下、本発明実施例方式を図面に基づいて説明する。 Hereinafter, a method according to an embodiment of the present invention will be described with reference to the drawings.

第1図は本発明実施例方式の構成を示すブロック構成図
である。このデータ伝送システムは複数のデータ伝送装
置1〜4とループ状の伝送路11〜14とから構成されてい
る。
FIG. 1 is a block diagram showing the configuration of the embodiment system of the present invention. This data transmission system comprises a plurality of data transmission devices 1 to 4 and loop-shaped transmission lines 11 to 14.

第2図は第1図に示すデータ伝送装置の構成を示すブロ
ック構成図である。この第2図で第1図と同一符号のも
のは相当部分を示し、データ伝送装置1〜4は、それぞ
れ伝送路制御回路21と、この伝送路制御回路21を制御し
各種情報の授受を行うプロセッサ22と、データバス23
と、伝送路制御回路21を制御する制御信号を伝送する信
号線群24と、割込信号をプロセッサ22に送出する割込線
25とから構成されている。
FIG. 2 is a block diagram showing the configuration of the data transmission device shown in FIG. In FIG. 2, the same reference numerals as those in FIG. 1 indicate corresponding portions, and the data transmission devices 1 to 4 respectively control the transmission path control circuit 21 and exchange the various information by controlling the transmission path control circuit 21. Processor 22 and data bus 23
, A signal line group 24 for transmitting a control signal for controlling the transmission path control circuit 21, and an interrupt line for sending an interrupt signal to the processor 22.
It consists of 25 and.

第3図はこの第2図に示すプロセッサ22にかかわる部分
の詳細を示すブロック構成図である。この第3図で第2
図と同一符号のものは相当部分を示し、プロセッサ22
は、マイクロ命令アドレスレジスタ31と、比較制御回路
33と、書込みと読出しが可能な記憶装置(以下、RAM
という。)37と、読出専用の記憶装置(以下、ROMと
いう。)38と、ブランチマイクロ命令の内容を示す値で
下二桁は比較制御回路33からDCとDCとを入力と
する定数39と、セレクタ40と、このセレクタ40の出力を
入力とするマイクロ命令レジスタ41と、ブランチを実行
するマイクロ命令は次のサイクルで読出されるマイクロ
命令を実行しない構成であるマイクロプログラム制御回
路42とから構成されている。
FIG. 3 is a block diagram showing the details of the portion related to the processor 22 shown in FIG. The second in this FIG.
Those designated by the same reference numerals as those in the figure indicate corresponding parts,
Is a micro instruction address register 31 and a comparison control circuit
33 and a writable and readable storage device (hereinafter referred to as RAM
Say. ) 37, a read-only storage device (hereinafter referred to as ROM) 38, and a value indicating the contents of the branch microinstruction, and the lower two digits are a constant 39 to which DC 0 and DC 1 are input from the comparison control circuit 33. , A selector 40, a microinstruction register 41 that receives the output of the selector 40, and a microprogram control circuit 42 that does not execute the microinstruction that executes the branch in the next cycle. Has been done.

第3図で、符号SSおよびSSはそれぞれマイクロ
命令アドレスレジスタ31の上位1ビットおよび比較制御
回路33からセレクタ40に供給されるセレクト信号を示
し、符号ODおよびODはそれぞれRAM37および
ROM38からセレクタ40に供給される出力データを示
す。さらに、符号26はマイクロ命令レジスタ41の出力デ
ータ、符号27はマイクロ命令アドレスレジスタ31の出力
データ、符号28はマイクロ命令アドレスレジスタ31の入
力データを示す。なおセレクタ40はSS=0かつSS
=0の場合は出力データODをセレクトし、SS
=1かつSS=0の場合は出力データODをセレク
トし、SS=0かつSS=1またはSS=1かつ
SS=1の場合は定数39をセレクトする。
In FIG. 3, symbols SS 2 and SS 3 indicate the upper 1 bit of the micro instruction address register 31 and a select signal supplied from the comparison control circuit 33 to the selector 40, and symbols OD 1 and OD 2 indicate RAM 37 and ROM 38, respectively. The output data supplied to the selector 40 from is shown. Further, reference numeral 26 indicates output data of the micro instruction register 41, reference numeral 27 indicates output data of the micro instruction address register 31, and reference numeral 28 indicates input data of the micro instruction address register 31. The selector 40 is SS 2 = 0 and SS
When 3 = 0, the output data OD 2 is selected and SS 2
= 1 and SS 3 = 0, the output data OD 1 is selected, and when SS 2 = 0 and SS 3 = 1 or SS 2 = 1 and SS 3 = 1 the constant 39 is selected.

第4図は第3図に示す比較制御回路33にかわる部分の詳
細を示すブロック構成図である。この第4図で、第2図
または第3図と同一符号のものは相当部分を示し、比較
制御回路33は、マイクロ命令アドレスレジスタ31と一致
したい内容を四個分入れることのできるアソシアティブ
メモリ32と、アソシアティブメモリ32をアクセスするア
ドレスレジスタ51(アドレスは0〜3である)と、アド
レスレジスタ51のアドレス0〜3の各々に書込まれたア
ソシアティブメモリ32の内容とマイクロ命令アドレスレ
ジスタ31の内容とが一致したときにそれぞれ個別に発生
する信号CS〜CSを有効にする起動レジスタ34
と、この起動レジスタ34の出力と信号CS〜CS
入力としこれらの両入力の論理積をとるアンド回路35
と、アンド回路35からの信号を入力とし一致信号CS
〜CSを1サイクル間セットするフリップフロップ61
〜64と、フリップフロップ61〜64の出力信号の論理和を
とり信号SSを出力するオア回路36と、フリップフロ
ップ61〜64の出力信号をエンコードした信号DCおよ
びDCを出力するエンコーダ53と、起動レジスタ34を
読取るドライバ71とから構成されている。
FIG. 4 is a block configuration diagram showing details of a portion in place of the comparison control circuit 33 shown in FIG. In FIG. 4, the same reference numerals as those in FIG. 2 or 3 indicate the corresponding portions, and the comparison control circuit 33 is provided with the associative memory 32 capable of storing four contents to be matched with the micro instruction address register 31. And an address register 51 (address is 0 to 3) for accessing the associative memory 32, contents of the associative memory 32 and contents of the microinstruction address register 31 written in each of the addresses 0 to 3 of the address register 51. The activation register 34 that enables the signals CS 0 to CS 3 individually generated when
And an AND circuit 35 which receives the output of the start register 34 and the signals CS 0 to CS 3 as an input and takes a logical product of these two inputs.
And a signal from the AND circuit 35 as an input and a coincidence signal CS 0
~ Flip-flop 61 that sets CS 3 for one cycle
˜64 and the output signals of the flip-flops 61-64 are ORed to output the signal SS 3 and the encoder 53 which outputs signals DC 0 and DC 1 which encode the output signals of the flip-flops 61-64. And a driver 71 that reads the start register 34.

ここで、フリップフロップ61がセットされると (DC、DC)=(0、0) になり、フリップフロップ62がセットされると (DC、DC)=(0、1) になり、フリップフロップ63がセットされると (DC、DC)=(1、0) になり、フリップフロップ64がセットされると (DC、DC)=(1、1) になる。Here, when the flip-flop 61 is set, (DC 0 , DC 1 ) = (0, 0), and when the flip-flop 62 is set, (DC 0 , DC 1 ) = (0, 1) , (DC 0 , DC 1 ) = (1,0) when the flip-flop 63 is set, and (DC 0 , DC 1 ) = (1,1) when the flip-flop 64 is set.

第5図は本発明に適用されるフレームの形式を示す説明
図である。伝送路11〜14(第1図参照)に流れるフレー
ムは、「01111110」を示すフラグパターンF
と、送信先のアドレスを示す送信先アドレスDAと、送
信元のアドレスを示す送信元アドレスSAと、制御情報
Cと、データ情報Iと、フレームチェックシーケンスで
巡回冗長検査を行う検査ビットFCSとから構成されて
いる。なお、データ情報Iはフレームの構成の一部とし
ては省略されることもある。
FIG. 5 is an explanatory diagram showing a frame format applied to the present invention. The frame flowing through the transmission lines 11 to 14 (see FIG. 1) has a flag pattern F indicating “01111110”.
A destination address DA indicating a destination address, a source address SA indicating a source address, control information C, data information I, and a check bit FCS for performing a cyclic redundancy check in a frame check sequence. It is configured. The data information I may be omitted as part of the frame configuration.

次に、第2図に示す実施例の動作を第1図、第3図、第
4図および第5図を参照して説明する。
Next, the operation of the embodiment shown in FIG. 2 will be described with reference to FIGS. 1, 3, 4, and 5.

いま、第1図に示すデータ伝送装置4がデータ伝送装置
1から特定の処理ルーチンに対するトレース情報を取り
たいとする。
Now, it is assumed that the data transmission device 4 shown in FIG. 1 wants to obtain trace information from the data transmission device 1 for a specific processing routine.

まず、データ伝送装置4はトレース情報を取るためのプ
ログラムを含んだ内容を第5図に示すフレームのフォー
マットに従ってデータ伝送装置1宛にコマンドA0とし
て送信する。データ伝送装置1の伝送路制御回路21(第
2図参照)がコマンドA0のフレームを受信すると、伝
送路制御回路21内の図示しないバッファにこのフレーム
を書込み、割込線25の割込信号を発生させてプロセッサ
22に知らせる。
First, the data transmission device 4 transmits a content including a program for obtaining trace information to the data transmission device 1 as a command A0 according to the frame format shown in FIG. When the transmission line control circuit 21 (see FIG. 2) of the data transmission device 1 receives the frame of the command A0, the frame is written in a buffer (not shown) in the transmission line control circuit 21, and the interrupt signal of the interrupt line 25 is sent. Raise processor
Notify 22.

このプロセッサ22内の第3図に示すマイクロプログラム
制御回路42は割込信号により第2図に示す伝送路制御回
路21内のバッファを信号線群24とデータバス23を通じて
第5図に示すフレーム内の制御情報Cを読取ることによ
りコマンドA0と解釈し、さらにフレーム内にあるデー
タ情報Iを信号線群24とデータバス23を介してRAM37
に書込み、コマンドA0の動作を終了する。ここで、こ
のRAM37に書込まれたプログラムを以下ファームウエ
アF0という。
The microprogram control circuit 42 shown in FIG. 3 in the processor 22 causes the buffer in the transmission path control circuit 21 shown in FIG. The control information C is read to interpret it as a command A0, and the data information I in the frame is transferred to the RAM 37 via the signal line group 24 and the data bus 23.
, And the operation of command A0 is completed. Here, the program written in the RAM 37 is hereinafter referred to as firmware F0.

このようにして、データ伝送装置4がデータ伝送装置1
のRAM37にファームウエアF0を書込んだ後に、比較
制御回路33内のアドレスレジスタ51、アソシアティブメ
モリ32および起動レジスタ34にセットしたい情報をコマ
ンドA0を送信したいときと同じ方法でコマンドB0に
よりデータ伝送装置1に送出する。データ伝送装置1の
伝送路制御回路21がコマンドB0のフレームを受信する
と、割込線25の割込信号を発生させてプロセッサ22に知
らせる。プロセッサ22内のマイクロプログラム制御回路
42は割込信号により伝送路制御回路21のバッファをアク
セスし、フレーム内の制御情報Cを読取ることによりコ
マンドB0と解釈し、フレーム内にあるデータ情報Iに
基づいて信号線群24とデータバス23を通じてアドレスレ
ジスタ51に「0」の値をセットし、データ伝送装置4に
より指定された値(以下、「X0」という。)をアソシ
アティブメモリ32にセットし、さらに起動レジスタ34の
ビット0に論理値「1」をセットしてコマンドB0の動
作を終了する。
In this way, the data transmission device 4 becomes the data transmission device 1
After writing the firmware F0 in the RAM 37 of the device, the command B0 is used in the same manner as when the command A0 is transmitted with the information to be set in the address register 51, the associative memory 32 and the activation register 34 in the comparison control circuit 33. Send to 1. When the transmission path control circuit 21 of the data transmission device 1 receives the frame of the command B0, it generates an interrupt signal on the interrupt line 25 and notifies the processor 22 of it. Microprogram control circuit in processor 22
An interrupt signal 42 accesses the buffer of the transmission path control circuit 21, interprets it as a command B0 by reading the control information C in the frame, and based on the data information I in the frame, the signal line group 24 and the data bus. A value of “0” is set in the address register 51 through 23, a value designated by the data transmission device 4 (hereinafter, referred to as “X0”) is set in the associative memory 32, and bit 0 of the start register 34 is logically set. The value "1" is set and the operation of the command B0 ends.

さらに、データ伝送装置4はトレース情報を取るための
ファームウエアを含んだ内容のフレームであるコマンド
A1をコマンドA0と同じ方法でデータ伝送装置1に送
りRAM37に書込む。このときにRAM37に書込まれた
プログラムを以下ファームウエアF1という。
Further, the data transmission device 4 sends the command A1 which is a frame containing the firmware for obtaining the trace information to the data transmission device 1 in the same method as the command A0 and writes it in the RAM 37. The program written in the RAM 37 at this time is hereinafter referred to as firmware F1.

この後に、データ伝送装置4がデータ伝送装置1内のア
ソシアティブメモリ32のアドレス1にセットしたい情報
を書込むためにコマンドB1をデータ伝送装置1に転送
する。コマンドB1の実行で書込まれる値を「X1」と
すると、アソシアティブメモリ32のアドレス「1」の内
容がコマンドB0の実行時と同じ方法で「X1」の値に
セットされ、起動レジスタ34のビット1が論理値「1」
にセットされてコマンドB1の動作を終了する。
After this, the data transmission device 4 transfers the command B1 to the data transmission device 1 in order to write the information to be set in the address 1 of the associative memory 32 in the data transmission device 1. If the value written by the execution of the command B1 is "X1", the contents of the address "1" of the associative memory 32 are set to the value of "X1" in the same way as when the command B0 is executed, and the bit of the start register 34 is set. 1 is the logical value "1"
Is set to end the operation of command B1.

このようにデータ伝送装置1は、起動レジスタ34のビッ
ト0とビット1とにセットされて本来のマイクロ命令実
行処理中にマイクロ命令アドレスレジスタ31の値が「X
0」の値になると、アソシアティブメモリ32の出力信号
線に得られる一致信号CSがオンになり、さらに、ア
ンド回路35の出力信号線に得られる一致信号がオンにな
り、フリップフロップ61が1サイクルの間オンになるの
で、オア回路36によりSS=1になり、このときの下
2ビットはエンコーダ53によりビット単位で「00」に
なる。セレクタ40は定数39を強制的にセレクトし、定数
39がマイクロ命令レジスタ41にセットされる。ただし、
このフリップフロップ61が1サイクル間オンの間はアド
レスのカウントアップは抑止される。さらに、マイクロ
プログラム制御回路42内でそのマイクロ命令(定数39)
を実行すると、現在のマイクロ命令アドレスレジスタ31
の値「X」の次にアクセスするアドレスは図外のマイク
ロプログラム制御回路42内のレジスタにホールドされ、
さらにマイクロ命令アドレスレジスタ31にコマンドA0
によりRAM37に書込まれたファームウエアF0の先頭
のアドレス(以下、M0という。)がセットされてファ
ームウエアF0が実行される。
Thus, in the data transmission device 1, the value of the micro instruction address register 31 is set to "X" during the original micro instruction execution process by setting the bit 0 and the bit 1 of the start register 34.
When the value becomes “0”, the match signal CS 0 obtained at the output signal line of the associative memory 32 is turned on, the match signal obtained at the output signal line of the AND circuit 35 is turned on, and the flip-flop 61 becomes 1 Since it is turned on during the cycle, SS 3 = 1 is set by the OR circuit 36, and the lower 2 bits at this time are set to “00” in bit units by the encoder 53. Selector 40 forcibly selects constant 39,
39 is set in the micro instruction register 41. However,
While the flip-flop 61 is on for one cycle, the count up of the address is suppressed. Further, the micro instruction (constant 39) is set in the micro program control circuit 42.
The current microinstruction address register 31
The address to be accessed next to the value "X" is held in a register in the microprogram control circuit 42 (not shown),
Furthermore, the command A0 is sent to the micro instruction address register 31.
Thus, the head address (hereinafter referred to as M0) of the firmware F0 written in the RAM 37 is set and the firmware F0 is executed.

このようにして一連のプログラムが実行されると、マイ
クロプログラム制御回路42内のレジスタにホールドされ
た値をマイクロ命令アドレスレジスタ31にセットする命
令Eを実行して元のアドレスに戻る。以上の動作を第6
図のタイムチャートに示す。この第6図で(a)はマイ
クロ命令アドレスレジスタ31、(b)はマイクロ命令レ
ジスタ41、(c)はアソシアティブメモリ32の各タイム
シーケンスを示したものであり、(d)はアンド回路35
の出力であるセレクト信号FSを示し、(e)はフリ
ップフロップ61、(f)はセレクタ40、(g)はマイク
ロプログラム制御回路42のレジスタ、(h)はNOP動
作(実行しない動作)の各タイムシーケンスを示す。
When a series of programs are executed in this manner, the instruction E for setting the value held in the register in the micro program control circuit 42 in the micro instruction address register 31 is executed to return to the original address. The above operation is the sixth
It is shown in the time chart of the figure. In FIG. 6, (a) is a microinstruction address register 31, (b) is a microinstruction register 41, (c) is a time sequence of the associative memory 32, and (d) is an AND circuit 35.
Of the select signal FS 0, which is (e) a flip-flop 61, (f) a selector 40, (g) a register of the microprogram control circuit 42, and (h) a NOP operation (operation not executed). Each time sequence is shown.

すなわち、データ伝送装置4がデータ伝送装置1に書込
まれたファームウエアF0をサブルーチンコールとして
実行し、データ伝送装置1の起動フリップフロップ34が
リセットされない限りマイクロ命令アドレスレジスタ31
の値がXになるたびにファームウエアF0が実行され、
目的とするマイクロアドレスレベルのトレースがとれ
る。さらに、あらかじめデータ伝送装置1に格納されて
いるプログラムを変更する必要がないので、運用上の混
乱を起こさない。
That is, unless the data transmission device 4 executes the firmware F0 written in the data transmission device 1 as a subroutine call and the activation flip-flop 34 of the data transmission device 1 is reset, the micro instruction address register 31
Whenever the value of becomes X, the firmware F0 is executed,
The target micro-address level trace can be obtained. Furthermore, since it is not necessary to change the program stored in the data transmission device 1 in advance, operation confusion does not occur.

また、この実施例では、ファームウエアF0の内容はフ
ァームウエアF0が実行されるたびにデータ伝送装置1
内で処理されたコマンドをRAMエリアに順番に格納し
てゆく処理と、ファームウエアF0の処理回数をRAM
エリアに格納する機能を備えている。この格納されたR
AM37の内容をデータ伝送装置4からのコマンドCによ
り読取ることができる。例えば、データ伝送装置4がデ
ータ伝送装置1に対してコマンドCを転送すると、デー
タ伝送装置1の伝送路制御装置21がコマンドCのフレー
ムを受信し、割込線25の割込信号を発生させ、プロセッ
サ22に知らせる。そして、プロセッサ22内のマイクロプ
ログラム制御回路42はこの割込信号に基づきフレーム内
の制御情報Cを読取ることによりコマンドCと解釈し、
RAM37内にあるトレース情報をデータバス23を介して
伝送路制御回路21に送る。さらに、このマイクロプログ
ラム制御回路42が第5図に示すフレームのフォーマット
にしたがって伝送路制御回路21を起動して、フラグパタ
ーンF、送信先アドレスDA、送信元アドレスSA、制
御情報C、データ情報I、検査ビットFCS、フラグパ
ターンFの順にデータ伝送装置1宛に送る。
In addition, in this embodiment, the contents of the firmware F0 are stored in the data transmission device 1 every time the firmware F0 is executed.
The process of sequentially storing the commands processed in the RAM area and the number of times the firmware F0 is processed are stored in the RAM.
It has a function to store in the area. This stored R
The contents of AM37 can be read by the command C from the data transmission device 4. For example, when the data transmission device 4 transfers the command C to the data transmission device 1, the transmission path control device 21 of the data transmission device 1 receives the frame of the command C and generates an interrupt signal on the interrupt line 25. , Inform processor 22. Then, the micro program control circuit 42 in the processor 22 interprets the control information C in the frame as a command C based on the interrupt signal,
The trace information in the RAM 37 is sent to the transmission path control circuit 21 via the data bus 23. Further, the microprogram control circuit 42 activates the transmission path control circuit 21 in accordance with the frame format shown in FIG. 5, and the flag pattern F, the destination address DA, the source address SA, the control information C, and the data information I. , The check bit FCS, and the flag pattern F are sent in this order to the data transmission device 1.

また、起動レジスタ34の内容も読取ることもできる。例
えば、データ伝送装置4がデータ伝送装置1に対してコ
マンドDを転送すると、データ伝送装置1の伝送路制御
回路21がコマンドDのフレームを受信し、割込線25の割
込信号を発生させてプロセッサ22に知らせる。プロセッ
サ22内のマイクロプログラム制御回路42はこの割込信号
によりフレームの内容を読取り、フレーム内の制御情報
Cを読取ることによりコマンドCと解釈し、起動レジス
タ34の内容をドライバ71を通りデータバス23を介して伝
送路制御回路21に送る。さらに、このマイクロプログラ
ム制御回路42が第5図に示すフレームのフォーマットに
したがって伝送路制御回路21を起動して、フラグパター
ンF、送信先アドレスDA、送信元アドレスSA、制御
情報C、データ情報I、検査ビットFCS、フラグパタ
ーンFの順にデータ伝送装置1宛に送る。このように起
動レジスタ34の内容が読取ることができるので、各装置
が他の装置のプログラムの状態を知ることができる。
Also, the contents of the start register 34 can be read. For example, when the data transmission device 4 transfers the command D to the data transmission device 1, the transmission path control circuit 21 of the data transmission device 1 receives the frame of the command D and generates an interrupt signal on the interrupt line 25. To inform the processor 22. The microprogram control circuit 42 in the processor 22 reads the contents of the frame by this interrupt signal, interprets the control information C in the frame as a command C, and passes the contents of the start register 34 through the driver 71 to the data bus 23. To the transmission path control circuit 21 via. Further, the microprogram control circuit 42 activates the transmission path control circuit 21 in accordance with the frame format shown in FIG. 5, and the flag pattern F, the destination address DA, the source address SA, the control information C, and the data information I. , The check bit FCS, and the flag pattern F are sent in this order to the data transmission device 1. Since the contents of the start register 34 can be read in this way, each device can know the state of the program of the other device.

以上ファームウエアF0が実行される場合を説明した
が、マイクロ命令実行中にマイクロ命令アドレスレジス
タ31とアソシアティブメモリ32のアドレス「1」に書込
まれた内容とが一致すると、マイクロ命令アドレスレジ
スタ31とアソシアティブメモリ32のアドレス「0」に書
込まれた内容とが一致したときと同じ動作でファームウ
エアF1が実行される。ところが、定数39の下2ビット
は「0、1」になり、ファームウエアF0実行時にブラ
ンチするアドレスと違うので、ファームウエアF1はフ
ァームウエアF0と別に実行することができる。
The case where the firmware F0 is executed has been described above. However, if the contents written in the address “1” of the associative memory 32 match during the microinstruction execution, the microinstruction address register 31 The firmware F1 is executed by the same operation as when the contents written in the address "0" of the associative memory 32 match. However, since the lower 2 bits of the constant 39 are "0, 1", which is different from the address that branches when the firmware F0 is executed, the firmware F1 can be executed separately from the firmware F0.

また、トレースの機能を行う必要がなくなったときに
は、データ伝送装置4からコマンドEをデータ伝送装置
1に送る。このコマンドEをデータ伝送装置1内の伝送
路制御回路21(第2図参照)が受信すると、割込線25の
割込信号を発生させてプロセッサ22に知らせる。このプ
ロセッサ22内のマイクロプログラム制御回路42はこの割
込信号によりデータバス23を介してフレームの内容を読
取り、フレーム内の制御情報Cを読取ることによりコマ
ンドEと解釈し、起動レジスタ34をビット単位毎にデー
タ情報Iに従ってリセットしてコマンドEの処理を終了
する。したがって、起動レジスタがオール「0」の場合
はマイクロ命令アドレスレジスタ31とアソシアティブメ
モリ32の値が一致したとしてもアンド回路35の信号出力
線の一致信号が発生しなくなり、定数39の値がマイクロ
命令レジスタ41に設定されることがない。このように、
データ伝送装置4からデータ伝送装置1に特定のコマン
ドを送出すると、データ伝送装置1がプログラムをアク
セスするアドレスと任意の値を設定する手段によって設
定した値に一致したとしてもサブルーチンコールしな
い。
When it is no longer necessary to perform the trace function, the data transmission device 4 sends a command E to the data transmission device 1. When this command E is received by the transmission path control circuit 21 (see FIG. 2) in the data transmission device 1, an interrupt signal on the interrupt line 25 is generated to notify the processor 22. The microprogram control circuit 42 in the processor 22 reads the contents of the frame via the data bus 23 by this interrupt signal, interprets the control information C in the frame as a command E, and sets the activation register 34 in bit units. Each time it is reset according to the data information I, the processing of the command E is completed. Therefore, when the start register is all "0", even if the values of the micro instruction address register 31 and the associative memory 32 match, the match signal of the signal output line of the AND circuit 35 does not occur, and the value of the constant 39 is the micro instruction. It is never set in the register 41. in this way,
When a specific command is sent from the data transmission device 4 to the data transmission device 1, the subroutine is not called even if the data transmission device 1 matches the address for accessing the program and the value set by the means for setting an arbitrary value.

以上、ループ状伝送路を介したデータ伝送装置に対する
場合を説明したが、本発明はこれに限定されるものでは
なく、例えば、第7図に示すようにデータ伝送装置151
がデータ伝送装置152に伝送路511を介して情報の伝送を
行う方法と、第8図に示すようにデータ伝送装置161が
データ伝送装置162に伝送路611を介して情報の伝送を行
う方法と、第9図に示すようにデータ伝送装置711がデ
ータ伝送装置712に情報の伝送を行う方法およびデータ
伝送装置711がデータ伝送装置721に情報の伝送を行う方
法(コマンド転送途中にあるデータ伝送装置の処理はコ
マンドを変換する処理があるだけで他は全く上記例と同
じ)などがあるが、これらのいずれの場合でも本発明を
実施することができる。
The case of the data transmission device via the loop-shaped transmission line has been described above, but the present invention is not limited to this, and for example, as shown in FIG.
A method for transmitting information to the data transmitting apparatus 152 via the transmission line 511; and a method for transmitting data to the data transmitting apparatus 162 via the transmission line 611 by the data transmitting apparatus 161 as shown in FIG. , A method in which the data transmission device 711 transmits information to the data transmission device 712 and a method in which the data transmission device 711 transmits information to the data transmission device 721 as shown in FIG. There is a process for converting a command but the other process is exactly the same as the above example), and the present invention can be implemented in any of these processes.

また、第4図の定数M0をマイクロ命令実行により変え
るパスを用いても、本発明を実施することができる。
The present invention can also be implemented by using a path in which the constant M0 in FIG. 4 is changed by executing a microinstruction.

以上、本発明を伝送路上のフレーム転送による方法で説
明したが、本発明はこれに限定されるものではなく、装
置内の内部バスを含めあらゆるインタフェースに当ては
めても本発明を実施することができる。
Although the present invention has been described above by the method of frame transfer on the transmission path, the present invention is not limited to this, and the present invention can be implemented by applying it to any interface including the internal bus in the device. .

〔発明の効果〕〔The invention's effect〕

本発明は以上説明したように、ファームウエアをアクセ
スするアドレスと一致すると特定のアドレスを開始アド
レスとするトレース用プログラムにサブルーチンコール
する機能を外部からのコマンドにより操作できるので、
あらかじめ格納されているプログラムの内容を変えるこ
となく、トレース機能を必要とするときにトレース機能
のあるプログラムを実行することができ、さらに現在ト
レース機能のあるプログラムを実行しているかどうかも
判別することができる効果がある。
As described above, according to the present invention, the function of making a subroutine call to a trace program having a specific address as a start address when it matches an address for accessing firmware can be operated by an external command.
A program with a trace function can be executed when the trace function is required without changing the contents of the program stored in advance, and it can also be determined whether or not a program with a trace function is currently being executed. There is an effect that can be.

さらに、あらかじめ格納されているプログラムの内容を
変えないでロードしたトレース用プログラムの使用の開
始を遠隔制御できる手段を設けているため、システム運
用中にトレース処理を行う効果がある。
Further, since the means for remotely controlling the start of use of the loaded trace program without changing the contents of the program stored in advance is provided, there is an effect of performing the trace processing during system operation.

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

第1図は本発明の実施例方式の構成を示すブロック構成
図。 第2図は本発明実施例装置の全体構成を示すブロック構
成図。 第3図は第2図のプロセッサの構成を示すブロック構成
図。 第4図は第3図の比較制御回路の構成を示すブロック構
成図。 第5図は本発明に適用される伝送フレームの形式を示す
フォーマット図。 第6図は本発明の動作を説明するタイムチャート。 第7図、第8図および第9図は本発明の適用されるデー
タ伝送システムの他の例を示すブロック構成図。 1〜4、151、152、161〜164、171〜178、711〜713、72
1〜723……データ伝送装置、11〜14、511、611……伝送
路、21……伝送路制御回路、22……プロセッサ、31……
マイクロ命令アドレスレジスタ、32……アソシアティブ
メモリ、33……比較制御回路、34……起動レジスタ、35
……アンド回路、36……オア回路、37……記憶装置(R
AM)、38……記憶装置(ROM)、39……定数、40…
…セレクタ、41……マイクロ命令レジスタ、42……マイ
クロプログラム制御回路、51……アドレスレジスタ、53
……エンコーダ、61〜64……フリップフロップ、71……
ドライバ。
FIG. 1 is a block diagram showing a configuration of an embodiment system of the present invention. FIG. 2 is a block diagram showing the overall configuration of the apparatus according to the present invention. FIG. 3 is a block diagram showing the configuration of the processor shown in FIG. FIG. 4 is a block diagram showing the configuration of the comparison control circuit of FIG. FIG. 5 is a format diagram showing a format of a transmission frame applied to the present invention. FIG. 6 is a time chart explaining the operation of the present invention. FIG. 7, FIG. 8 and FIG. 9 are block configuration diagrams showing another example of the data transmission system to which the present invention is applied. 1-4, 151, 152, 161-164, 171-178, 711-713, 72
1 to 723 ... data transmission device, 11 to 14, 511, 611 ... transmission line, 21 ... transmission line control circuit, 22 ... processor, 31 ...
Micro instruction address register, 32 ... Associative memory, 33 ... Comparison control circuit, 34 ... Startup register, 35
... AND circuit, 36 ... OR circuit, 37 ... Storage device (R
AM), 38 ... Storage device (ROM), 39 ... Constant, 40 ...
… Selector, 41 …… Micro instruction register, 42 …… Micro program control circuit, 51 …… Address register, 53
...... Encoder, 61-64 …… Flip-flop, 71 ……
driver.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】情報を伝送する伝送路と、 この伝送路に接続され情報の授受を行う複数のデータ伝
送装置と を備え、 上記データ伝送装置は、 第1のデータ伝送装置から上記伝送路を介して第2のデ
ータ伝送装置にプログラムをロードする手段 を備えたデータ伝送方式において、 上記プログラムには上記第2のデータ伝送装置のトレー
スを行うトレース用プログラムを含み、 上記第2のデータ伝送装置は、 上記第1のデータ伝送装置から伝送された複数個の任意
の値を設定する設定手段と、 上記第1のデータ伝送装置から伝送され上記設定手段で
設定した値毎に有効であるか否を指示する情報を格納す
る有効手段と、 上記プログラムを実行している場合にこのプログラムを
アクセスするアドレスと上記設定手段によって設定した
値と一致しかつ上記有効手段が有効な場合に上記有効手
段に対応した特定のアドレスを開始アドレスとする領域
に格納されている上記トレース用プログラムをサブルー
チンコールする手段と を備えたことを特徴とするデータ伝送方式。
1. A transmission line for transmitting information, and a plurality of data transmission devices connected to the transmission line for exchanging information, wherein the data transmission device connects the transmission line from the first data transmission device. In the data transmission method including means for loading a program into the second data transmission device via the above, the program includes a trace program for tracing the second data transmission device, and the second data transmission device Is a setting means for setting a plurality of arbitrary values transmitted from the first data transmission device, and whether or not each of the values transmitted from the first data transmission device and set by the setting means is valid. The effective means for storing the information for instructing that the program matches the address set by the setting means and the address for accessing this program when the program is running. And a means for making a subroutine call to the trace program stored in an area whose start address is a specific address corresponding to the valid means when the valid means is valid. .
JP61129456A 1986-06-04 1986-06-04 Data transmission method Expired - Lifetime JPH0659065B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61129456A JPH0659065B2 (en) 1986-06-04 1986-06-04 Data transmission method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61129456A JPH0659065B2 (en) 1986-06-04 1986-06-04 Data transmission method

Publications (2)

Publication Number Publication Date
JPS62285544A JPS62285544A (en) 1987-12-11
JPH0659065B2 true JPH0659065B2 (en) 1994-08-03

Family

ID=15009934

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61129456A Expired - Lifetime JPH0659065B2 (en) 1986-06-04 1986-06-04 Data transmission method

Country Status (1)

Country Link
JP (1) JPH0659065B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2751263B2 (en) * 1988-11-22 1998-05-18 日本電気株式会社 Diagnostic information collection method for data transmission equipment

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5318355A (en) * 1976-08-03 1978-02-20 Omron Tateisi Electronics Co Program change system
JPS58115533A (en) * 1981-12-29 1983-07-09 Matsushita Electric Works Ltd Sequencer
JPS60101659A (en) * 1983-11-08 1985-06-05 Mitsubishi Electric Corp Terminal controlling device of electronic computer
JPS60249454A (en) * 1984-05-25 1985-12-10 Canon Inc Communication device
JPS61129457A (en) * 1984-11-27 1986-06-17 Mitsubishi Heavy Ind Ltd Multi-fuel-valve injector

Also Published As

Publication number Publication date
JPS62285544A (en) 1987-12-11

Similar Documents

Publication Publication Date Title
JPH03108042A (en) Multiple virtual space address system and computer system
JPH0776932B2 (en) Data transmission method
JPH0650863B2 (en) Interface for direct data transfer
GB2079502A (en) Digital computers
JPH0659065B2 (en) Data transmission method
JPH0659066B2 (en) Data transmission method
JPS59100959A (en) Composite processor system
JPS6240736B2 (en)
JPH0736153B2 (en) Data transmission system
JP3173807B2 (en) Storage device switching control device
KR950006585B1 (en) Micro program control apparatus and control method thereof
JPS6218932B2 (en)
SU822166A1 (en) Interface matching device
SU491952A1 (en) Device for exchanging information between RAM and processor
JPS6041766B2 (en) microprogram controller
JPH0150936B2 (en)
JPS61150546A (en) Data transmission controlling system
JPH10134013A (en) Multi-cpu system
JPS6238746B2 (en)
JPS6223894B2 (en)
JPH0378845A (en) Man storage key control system
JPH0444290B2 (en)
JPH11305811A (en) Controller, distributed processing system and monitoring method
JPH02133851A (en) Communication controller
JPS59186023A (en) Data processing device