JPH02304664A - Data output device - Google Patents

Data output device

Info

Publication number
JPH02304664A
JPH02304664A JP1127205A JP12720589A JPH02304664A JP H02304664 A JPH02304664 A JP H02304664A JP 1127205 A JP1127205 A JP 1127205A JP 12720589 A JP12720589 A JP 12720589A JP H02304664 A JPH02304664 A JP H02304664A
Authority
JP
Japan
Prior art keywords
data
circuit
internal data
read
processor
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP1127205A
Other languages
Japanese (ja)
Inventor
Kazuo Aoki
一夫 青木
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 JP1127205A priority Critical patent/JPH02304664A/en
Publication of JPH02304664A publication Critical patent/JPH02304664A/en
Pending legal-status Critical Current

Links

Landscapes

  • Multi Processors (AREA)
  • Information Transfer Systems (AREA)

Abstract

PURPOSE:To always hold the utilization efficiency of an external device in a prescribed level or above by constituting this device so that an internal data output means outputs internal data to the outside in accordance with a first read-out instruction, and also, the internal data concerned is stored in an internal data storage means, as well. CONSTITUTION:An interface circuit 31 transfers control information obtained from a control signal S1 and an address signal S2 to a control circuit 32, and fetches internal data D0 outputted from a data latching circuit 34. The circuit 32 sends an operation result output instruction to a data arithmetic circuit 33, and sends an internal data output instruction to the circuit 34 in accordance with control information obtained through the circuit 31. When the operation result output instruction is given from the circuit 32, the circuit 33 outputs the data D0 being a result of operation obtained by performing a prescribed arithmetic processing to the circuit 34 and the circuit 31. The circuit 34 stores in advance the data D0 outputted from the circuit 33, and when the internal data output instruction is given from the circuit 32, the data D0 is outputted to the circuit 31.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明はマイクロプロセッサなどの外部からの制御の
もとにデータの演算、処理、格納等を行う半導体集積回
路に用いられ、外部からの指示により内部データを外部
に出力するデータ出力装置に関する。
[Detailed Description of the Invention] [Industrial Application Field] The present invention is used for semiconductor integrated circuits that perform data calculation, processing, storage, etc. under control from an external device such as a microprocessor. The present invention relates to a data output device that outputs internal data to the outside.

〔従来の技術〕[Conventional technology]

第4図は、外部からの指示により内部データを外部に出
力する、集積化された従来のデータ出力装置を示すブロ
ック図である。
FIG. 4 is a block diagram showing a conventional integrated data output device that outputs internal data to the outside according to instructions from the outside.

同図に示すように、データ出力装置1はインタフェース
回路11、制御回路12及びデータ演算回路13から構
成されている。インタフェース回路11は制御信号線L
1、アドレス信号線L2及びデータ信号線L3を介して
外部のプロセッサ10に接続されている。そして、制御
信号線L1、アドレス信号線、L 2を介してそれぞれ
制御信号S1、アドレス信号S2を人力し、データ信号
線L3を介してデータ信号S3の人出力を行っている。
As shown in the figure, the data output device 1 includes an interface circuit 11, a control circuit 12, and a data calculation circuit 13. The interface circuit 11 is connected to the control signal line L
1. It is connected to an external processor 10 via an address signal line L2 and a data signal line L3. Then, a control signal S1 and an address signal S2 are outputted via a control signal line L1, an address signal line L2, respectively, and a data signal S3 is outputted via a data signal line L3.

インタフェース回路11は制御信号S1及びアドレス信
号S2より得られる制御情報を制御回路12に伝達した
り、データ演算回路13より出力される演算結果である
、内部データDOを取り込んだりしている。
The interface circuit 11 transmits control information obtained from the control signal S1 and address signal S2 to the control circuit 12, and takes in internal data DO, which is a calculation result output from the data calculation circuit 13.

制御回路12はインタフェース回路11より得られる制
御情報に従い、データ演算回路13に演算結果出力命令
を送っている。
The control circuit 12 sends a calculation result output command to the data calculation circuit 13 in accordance with control information obtained from the interface circuit 11.

データ演算回路13は制御回路12より演算結果用゛力
命令が与えられると、所定の演算処理を施し演算結果で
ある内部データDOをインタフェース回路11に出力し
ている。
When the data calculation circuit 13 is given an operation result command from the control circuit 12, it performs predetermined calculation processing and outputs internal data DO, which is the calculation result, to the interface circuit 11.

第5図は、プロセッサ10による、第4図で示したデー
タ出力装置1内のデータ演算回路13の演算結果の読出
し動作を示すタイミング図である。
FIG. 5 is a timing diagram showing the operation of the processor 10 to read out the calculation results of the data calculation circuit 13 in the data output device 1 shown in FIG.

以下、同図を参照しつつ読出し動作の説明をする。The read operation will be explained below with reference to the same figure.

制御信号S1の立上がりをトリガとして、インタフェー
ス回路11はアドレス信号S2の内容を解読し、制御情
報として読出し命令を制御回路12に与える。これを受
けた制御回路12はデータ演算回路13に演算結果出力
命令を送る。
Using the rise of the control signal S1 as a trigger, the interface circuit 11 decodes the contents of the address signal S2 and provides a read command to the control circuit 12 as control information. Upon receiving this, the control circuit 12 sends a calculation result output command to the data calculation circuit 13.

演算結果出力命令を受けたデータ演算回路13は所定の
演算処理を行った後、演算結果である内部データDOを
インタフェース回路11に出力する。そして、インタフ
ェース回路11は内部データDOをデータ信号S3とし
てデータ信号線L3に出力する。さらに、図示しない信
号線を介して、要求された内部データDOがデータ信号
線L3に出力されたことを示すデータレディ信号をプロ
セッサ10に出力する。
The data arithmetic circuit 13 that has received the arithmetic result output command performs predetermined arithmetic processing, and then outputs the internal data DO, which is the arithmetic result, to the interface circuit 11. Then, the interface circuit 11 outputs the internal data DO to the data signal line L3 as a data signal S3. Furthermore, a data ready signal indicating that the requested internal data DO has been output to the data signal line L3 is output to the processor 10 via a signal line (not shown).

データレディ信号を受は取ったプロセッサ10は、デー
タ信号線L3のデータ信号S3から、データ演算回路1
3の演算結果である内部データDOを読み取る。
After receiving the data ready signal, the processor 10 receives the data signal S3 from the data signal line L3 from the data calculation circuit 1.
Read the internal data DO which is the result of operation 3.

このように、プロセッサ10によるデータ出力装置1内
のデータ演算回路13の演算結果の読出し処理において
は、プロセッサ10が制御信号S1を立上げた後は、イ
ンタフェース回路11からデータレディ信号が出力され
るまでプロセッサ10は待機状態を続け、データレディ
信号が出力されると、プロセッサ10はデータ信号線L
3のデータ信号S3から、データ演算回路13の演算結
果である内部データDOを読み取っている。
In this manner, in the process of reading out the calculation result of the data calculation circuit 13 in the data output device 1 by the processor 10, after the processor 10 raises the control signal S1, the data ready signal is output from the interface circuit 11. The processor 10 continues in the standby state until the data ready signal is output, and the processor 10 connects the data signal line L.
Internal data DO, which is the calculation result of the data calculation circuit 13, is read from the data signal S3 of No. 3.

上記した読出し処理は、プロセッサ10からの読出し命
令に対するデータ出力装置1の応答速度(主に演算処理
速度)が速い場合、前述したプロセッサ10の待機時間
も短いため、有効な処理といえる。
The above-described read processing can be said to be effective if the response speed (mainly arithmetic processing speed) of the data output device 1 to a read command from the processor 10 is fast, since the standby time of the processor 10 described above is short.

第6図は従来のデータ出力装置の別の例を示す示すブロ
ック図である。
FIG. 6 is a block diagram showing another example of a conventional data output device.

同図に示すように、データ出力装置2はインタフェース
回路21、制御回路22、データ演算回路23及びデー
タラッチ回路24から構成されている。インタフェース
回路21は制御信号線L1、読出しモード選択線L4及
びデータ信号線L3を介して外部のプロセッサ1oに接
続されている。
As shown in the figure, the data output device 2 includes an interface circuit 21, a control circuit 22, a data calculation circuit 23, and a data latch circuit 24. The interface circuit 21 is connected to an external processor 1o via a control signal line L1, a read mode selection line L4, and a data signal line L3.

そして、制御信号線L1、読出しモード選択線L4を介
してそれぞれ制御信号S1、読出しモード選択信号S4
を人力し、データ信号線L3を介してデータ信号S3の
入出力を行っている。
Then, a control signal S1 and a read mode selection signal S4 are transmitted via a control signal line L1 and a read mode selection line L4, respectively.
The input/output of the data signal S3 is performed manually via the data signal line L3.

インタフェース回路21は制御信号S1、読出しモード
選択信号84及びデータ信号S3より得られる制御情報
を制御回路22に伝達したり、データラッチ回路24よ
り出力される内部データDOを取り込んだりしている。
The interface circuit 21 transmits control information obtained from the control signal S1, read mode selection signal 84, and data signal S3 to the control circuit 22, and takes in internal data DO output from the data latch circuit 24.

制御回路22はインタフェース回路21を介して得られ
る制御情報に従い、データ演算回路23に演算結果出力
命令を送ったり、データラッチ回路24に内部データ出
力命令を送ったりしている。
The control circuit 22 sends a calculation result output command to the data calculation circuit 23 and an internal data output command to the data latch circuit 24 in accordance with control information obtained via the interface circuit 21 .

データ演算回路23は制御回路22より演算結果出力命
令が与えられると、所定の演算処理を施した後、演算結
果である内部データDOをデータラッチ回路24に出力
している。
When the data calculation circuit 23 receives a calculation result output command from the control circuit 22, it performs predetermined calculation processing and then outputs the internal data DO, which is the calculation result, to the data latch circuit 24.

データラッチ回路24はデータ演算回路23から出力さ
れる内部データDOを格納しており、制御回路22より
内部データ出力命令が与えられると、格納している内部
データDOをインタフェース回路21に出力している。
The data latch circuit 24 stores internal data DO output from the data calculation circuit 23, and when an internal data output command is given from the control circuit 22, outputs the stored internal data DO to the interface circuit 21. There is.

第7図はプロセッサ10による、データ出力袋Wt2内
のデータ演算回路23の演算結果の読出し動作を示すタ
イミング図である。以下、同図を参照しつつ読出し動作
の説明をする。
FIG. 7 is a timing diagram showing the operation of the processor 10 to read out the calculation results of the data calculation circuit 23 in the data output bag Wt2. The read operation will be explained below with reference to the same figure.

読出しモード選択信号S4をHレベルにして第1の読出
しモードに設定した後、制御信号s1を立上げると、制
御信号S1の立上がりをトリガとして、インタフェース
回路21はデータ信号s3の内容を解読し、制御情報と
してラッチ転送命令を制御回路22に与える。これを受
けた制御回路22はデータ演算回路23に演算結果出力
命令を送る。
After setting the read mode selection signal S4 to H level and setting the first read mode, when the control signal s1 is raised, the interface circuit 21 decodes the contents of the data signal s3 using the rise of the control signal S1 as a trigger. A latch transfer command is given to the control circuit 22 as control information. Upon receiving this, the control circuit 22 sends a calculation result output command to the data calculation circuit 23.

演算結果出力命令を受けたデータ演算回路23は所定の
演算処理を行った後、演算結果である内部データDOを
データラッチ回路24に出力する。
The data calculation circuit 23 that has received the calculation result output command performs predetermined calculation processing and then outputs the internal data DO, which is the calculation result, to the data latch circuit 24.

その結果、内部データDOがデータラッチ回路24に格
納される。
As a result, internal data DO is stored in data latch circuit 24.

そして、データ演算回路23が内部データDOをデータ
ラッチ回路24に出力するのに十分な時間が経過した後
、読出しモード選択信号S4をLレベルにして第2の読
出しモードに表定した後、制御信号S1を立上げると、
制御信号S1の立上がりをトリガとして、インタフェー
ス回路21は制御情報としてラッチ内容読出し命令を制
御回路22に与える。これを受けた制御回路22はデー
タラッチ回路24に内部データ出力命令を与える。
After sufficient time has elapsed for the data calculation circuit 23 to output the internal data DO to the data latch circuit 24, the read mode selection signal S4 is set to L level to indicate the second read mode, and then the control When signal S1 is raised,
Using the rise of the control signal S1 as a trigger, the interface circuit 21 provides a latch content read command to the control circuit 22 as control information. Upon receiving this, the control circuit 22 gives an internal data output command to the data latch circuit 24.

内部データ出力命令を受けたデータラッチ回路24は内
部データDOをインタフェース回路21に出力する。そ
して、インタフェース回路21は内部データDOを取り
込み、内部データDOをデータ信号S3としてデータ信
号線L3に出力する。
The data latch circuit 24 that has received the internal data output command outputs the internal data DO to the interface circuit 21. Then, the interface circuit 21 takes in the internal data DO and outputs the internal data DO as a data signal S3 to the data signal line L3.

その後、プロセッサ10は、データ信号線L3のデータ
信号S3から、データ演算回路23の演算結果である、
データラッチ回路34に格納された内部データDOを読
み取る。
Thereafter, the processor 10 calculates the calculation result of the data calculation circuit 23 from the data signal S3 of the data signal line L3.
The internal data DO stored in the data latch circuit 34 is read.

このように、この従来例における、プロセッサ10によ
る、データ出力装置2内のデータ演算回路23の演算結
果の読出し処理は、2回命令を実行することにより行わ
れている。従って、プロセッサ10の待機時間はデータ
ラッチ回路24から出力される内部データDOが、イン
タフェース回路21を介[、てデータ信号S3としてデ
ータ信号線L3に出力されるまでの時間となり、十分短
い時間となる。
In this way, in this conventional example, the processor 10 reads out the calculation results of the data calculation circuit 23 in the data output device 2 by executing an instruction twice. Therefore, the standby time of the processor 10 is the time it takes for the internal data DO output from the data latch circuit 24 to be output as the data signal S3 to the data signal line L3 via the interface circuit 21, which is a sufficiently short time. Become.

なお、第2の読出しモードにおいては、データ演算回路
23が内部データDOをデータラッチ回路24に出力し
たことを知らせるデータレディ信号をプロセッサ10に
送信する構成にし、このデータレディ信号を受は取ると
、読出しモード信号S4を立下げた後、制御信号S1を
立上げるようにすることも考えられる。
In the second read mode, the data calculation circuit 23 is configured to transmit a data ready signal to the processor 10 to notify that it has outputted the internal data DO to the data latch circuit 24, and when this data ready signal is received or received, the data ready signal is sent to the processor 10. It is also conceivable that the control signal S1 is raised after the read mode signal S4 is lowered.

上記した読出し処理は、プロセッサ10の動作速度に対
しデータ出力装置2の応答(演算処理)速度が遅い場合
、第1の読出しモードの読出し命令の実行後、第2の読
出しモードの読出し命令の実行を行うまでの間に、プロ
セッサ10は他の命令を実行することができるため、有
効な処理であるといえる。
If the response (arithmetic processing) speed of the data output device 2 is slow relative to the operating speed of the processor 10, the read processing described above is performed after the read command in the first read mode is executed, and then the read command in the second read mode is executed. This can be said to be an effective process because the processor 10 can execute other instructions until the process is executed.

〔発明が解決しようとする課題〕 しかしながら、上記した2つのデータ出力装置は以下に
示す問題点がある。
[Problems to be Solved by the Invention] However, the two data output devices described above have the following problems.

第4図で示したデータ出力装置1では、プロセッサ10
が制御信号S1を立上げた後は、インタフェース回路1
1からデータレディ信号が出力されるまで待機状態を続
ける必要がある。
In the data output device 1 shown in FIG.
After the control signal S1 is raised, the interface circuit 1
It is necessary to continue the standby state until the data ready signal is output from 1.

従って、プロセッサ10の動作速度に対し、データ出力
装置1の応答速度が遅い場合、上記した待機時間はプロ
セッサ10の動作にとって無視できない時間となり、最
悪の場合、プロセッサ10を含んだシステム自体を停止
させてしまうことにもつながり、プロセッサ10の利用
効率を著しく低下させてしまうという問題点があった。
Therefore, if the response speed of the data output device 1 is slow compared to the operating speed of the processor 10, the above-described waiting time becomes a time that cannot be ignored for the operation of the processor 10, and in the worst case, the system itself including the processor 10 may be stopped. There was a problem in that the usage efficiency of the processor 10 was significantly lowered.

また、第6図で示したデータ出力装置2では、プロセッ
サ10の読出し動作を、2回の命令により行うことによ
り、プロセッサ10の待機時間を、データラッチ回路2
4から出力される内部データDOがデータ信号線L3に
出力されるまでの期間に抑えているため、上記した問題
点は回避できる。
Further, in the data output device 2 shown in FIG. 6, the read operation of the processor 10 is performed by two instructions, thereby reducing the standby time of the processor 10 by the data latch circuit 2.
Since the period is limited to the period until the internal data DO outputted from 4 is outputted to the data signal line L3, the above-mentioned problem can be avoided.

しかしながら、プロセッサ10の動作速度に対し、デー
タ出力装置1の応答速度がほぼ同等あるいは速い場合、
1回の読出し命令により許容範囲に収まる待機時間で読
出し動作を行えるにもかかわらず、2回の命令により読
出し動作を行うことになっそしまい、プロセッサ10の
利用効率を低下させてしまうという問題点があった。
However, if the response speed of the data output device 1 is approximately equal to or faster than the operating speed of the processor 10,
Although the read operation can be performed with a waiting time within an allowable range by one read command, the read operation is not performed by two commands, which reduces the utilization efficiency of the processor 10. was there.

この発明は上記のような問題点を解決するためになされ
たもので、読出し動作を行うプロセッサ等の外部装置の
動作速度にかかわらず、常に一定レベル以上の外部装置
の利用効率が確保できるデータ出力装置を得ることを目
的とする。
This invention was made in order to solve the above-mentioned problems, and it provides data output that can always ensure a certain level of utilization efficiency of the external device, regardless of the operating speed of the external device such as a processor that performs the read operation. The purpose is to obtain equipment.

〔課題を解決するための手段〕[Means to solve the problem]

この発明にかかるデータ出力装置は、第1の読出し命令
に従い、内部データを外部に出力する内部データ出力手
段と、前記内部データ出力手段より出力された前記内部
データを記憶し、第2の読出し命令に従い、該記憶した
内部データを外部に出力する内部データ記憶手段とを備
えて構成されている。
The data output device according to the present invention includes an internal data output means for outputting internal data to the outside according to a first read command, and a data output device for storing the internal data output from the internal data output means, and a second read command. Accordingly, the apparatus is configured to include internal data storage means for outputting the stored internal data to the outside.

〔作用〕[Effect]

この発明における内部データ出力手段は、第1の読出し
命令に従い内部データを外部に出力すると共に、該内部
データを内部データ記憶手段にも記憶させるため、この
データ出力装置より内部データを読出す外部装置は、第
1の読出し命令実行後、内部データが外部に出力される
まで待機して該内部データを読出してもよく、あるいは
待機せずに他の命令等を実行し、しかる後に第2の読出
し命令を実行し内部データ記憶手段に格納された内部デ
ータを読出してもよく、2通りの方法で内部データを読
出すことができる。
The internal data output means in this invention outputs the internal data to the outside according to the first read command, and also stores the internal data in the internal data storage means, so that the external device reads the internal data from the data output device. After executing the first read command, the internal data may be read by waiting until the internal data is output to the outside, or it may execute another command, etc. without waiting, and then perform the second read command. The internal data stored in the internal data storage means may be read by executing the command, and the internal data can be read in two ways.

〔実施例〕〔Example〕

第1図はこの発明の一実施例であるデータ出力装置を示
すブロック図である。
FIG. 1 is a block diagram showing a data output device which is an embodiment of the present invention.

同図に示すように、データ出力装置3はインタフェース
回路31、制御回路32、データ演算回路33及びデー
タラッチ回路34から構成されている。インタフェース
回路31は制御信号線L1、アドレス信号線L2及びデ
ータ信号線L3を介して外部のプロセッサ10に接続さ
れている。そして、制御信号線L1、アドレス信号線L
2を介してそれぞれ制御信号S1、アドレス信号S2を
人力し、データ信号線L3を介してデータ信号s3の人
出力を行っている。
As shown in the figure, the data output device 3 includes an interface circuit 31, a control circuit 32, a data calculation circuit 33, and a data latch circuit 34. The interface circuit 31 is connected to the external processor 10 via a control signal line L1, an address signal line L2, and a data signal line L3. Then, a control signal line L1, an address signal line L
2, a control signal S1 and an address signal S2 are input manually, respectively, and a data signal s3 is outputted via a data signal line L3.

インタフェース回路31は制御信号S1及びアドレス信
号S2より得られる制御情報を制御回路32に伝達した
り、データラッチ回路34より出力される内部データD
Oを取り込んだりしている。
The interface circuit 31 transmits control information obtained from the control signal S1 and address signal S2 to the control circuit 32, and transmits internal data D output from the data latch circuit 34.
It also incorporates O.

制御回路32はインタフェース回路31を介して得られ
る制御情報に従い、データ演算回路33に演算結果出力
命令を送ったり、データラッチ回路34に内部データ出
力命令を送ったりしている。
The control circuit 32 sends a calculation result output command to the data calculation circuit 33 and an internal data output command to the data latch circuit 34 in accordance with control information obtained via the interface circuit 31.

データ演算回路33は制御回路32より演算結果出力命
令が与えられると、所定の演算処理を施して得られた演
算結果である、内部データDOをデータラッチ回路34
及びインタフェース回路31に出力している。
When the data calculation circuit 33 receives a calculation result output command from the control circuit 32, the data latch circuit 33 transfers the internal data DO, which is the calculation result obtained by performing predetermined calculation processing, to the data latch circuit 33.
and is output to the interface circuit 31.

データラッチ回路34はデータ演算回路33から出力さ
れる内部データDOを格納しており、制御回路32より
内部データ出力命令が与えられると、内部データDOを
インタフェース回路31・に出力している。
The data latch circuit 34 stores the internal data DO output from the data calculation circuit 33, and outputs the internal data DO to the interface circuit 31 when an internal data output command is given from the control circuit 32.

第2図はプロセッサ10の動作速度に対し、データ出力
装置3の応答速度がほぼ同等あるいは速い場合における
、プロセッサ10による、データ出力装置3内のデータ
演算回路13の演算結果の読出し動作を示すタイミング
図である。以下、同図を参照しつつ、この場合の読出し
動作の説明をする。
FIG. 2 shows the timing of the read operation of the calculation result of the data calculation circuit 13 in the data output device 3 by the processor 10 when the response speed of the data output device 3 is almost equal to or faster than the operation speed of the processor 10. It is a diagram. The read operation in this case will be described below with reference to the same figure.

制御信号S1の立上がりをトリガとして、インタフェー
ス回路31はアドレス信号S2の内容を解読し、制御情
報として演算結果読出し命令を制御回路32に与える。
Using the rising edge of the control signal S1 as a trigger, the interface circuit 31 decodes the contents of the address signal S2 and provides an operation result read command to the control circuit 32 as control information.

これを受けた制御回路32はデータ演算回路33に演算
結果出力命令を送る。
Upon receiving this, the control circuit 32 sends a calculation result output command to the data calculation circuit 33.

演算結果出力命令を受けたデータ演算回路33は所定の
演算処理を行った後、演算結果である内部データDOを
インタフェース回路31に出力するとともに、データラ
ッチ回路34に出力する。
The data calculation circuit 33 that has received the calculation result output command performs predetermined calculation processing, and then outputs the internal data DO, which is the calculation result, to the interface circuit 31 and to the data latch circuit 34.

そして、インタフェース回路31は内部データDOをデ
ータ信号S色としてデータ信号線L3に出力する。この
とき、図示しない信号線を介して、要求された内部デー
タDOがデータ信号線L3に出力されたことを示すデー
タレディ信号がプロセッサ10に出力される。
Then, the interface circuit 31 outputs the internal data DO to the data signal line L3 as a data signal S color. At this time, a data ready signal indicating that the requested internal data DO has been output to the data signal line L3 is output to the processor 10 via a signal line (not shown).

データレディ信号を受は取ったプロセッサ10は、デー
タ信号線L3のデータ信号S3から、データ演算回路3
3の演算結果である内部データDOを読み取る。
After receiving the data ready signal, the processor 10 receives the data signal S3 from the data signal line L3 from the data calculation circuit 3.
Read the internal data DO which is the result of operation 3.

この場合のデータ出力装置3内のデータ演算回路33の
演算結果の読出し処理においては、プロセッサ10が制
御信号S1を立上げた後は、インタフェース回路31か
らデータレディ信号が出力されるまでプロセッサ10は
待機状態を続け、デ−タレディ信号が出力されると、プ
ロセッサ10はデータ信号線L3のデータ信号S3をか
ら、データ演算回路33の演算結果である内部データD
Oを読み取っている。
In the process of reading out the calculation results of the data calculation circuit 33 in the data output device 3 in this case, after the processor 10 raises the control signal S1, the processor 10 continues to operate until the data ready signal is output from the interface circuit 31. When the standby state continues and the data ready signal is output, the processor 10 converts the data signal S3 of the data signal line L3 into internal data D, which is the calculation result of the data calculation circuit 33.
Reading O.

この待機時間はプロセッサ10の動作速度に対し、デー
タ出力装置3の演算処理速度がほぼ同等あるいは速い場
合は、許容範囲に収まり、プロセッサlOの利用効率を
低下させることはない。
If the arithmetic processing speed of the data output device 3 is approximately equal to or faster than the operating speed of the processor 10, this waiting time falls within an allowable range and does not reduce the utilization efficiency of the processor IO.

第3図は、プロセッサ10の動作速度に対し、データ出
力装置3の応答速度が遅い場合における、プロセッサ1
0による、データ出力装置3内のデータ演算回路13の
演算結果の読出し動作を示すタイミング図である。以下
、同図を参照しつつ、この場合の読出し動作の説明をす
る。
FIG. 3 shows a case where the response speed of the data output device 3 is slow compared to the operating speed of the processor 10.
2 is a timing chart showing a read operation of the calculation result of the data calculation circuit 13 in the data output device 3 according to the data output device 3. FIG. The read operation in this case will be described below with reference to the same figure.

制御信号S1を立上げると、制御信号S1の立上がりを
トリがとして、インタフェース回路31はアドレス信号
S2の内容を解読し、制御情報として演算結果読出し命
令をWi制御回路32に与える。
When the control signal S1 rises, the interface circuit 31 decodes the content of the address signal S2, and provides the Wi control circuit 32 with an operation result read command as control information.

これを受けた制御回路32はデータ演算回路33に演算
結果出力命令を送る。
Upon receiving this, the control circuit 32 sends a calculation result output command to the data calculation circuit 33.

演算結果自刃命令を受けたデータ演算回路33は所定の
演算処理を行った後、演算結果である内部データDOを
インタフェース回路31に出力するとともにデータラッ
チ回路34に出力する。その結果、内部データDOがデ
ータラッチ回路34に格納される。
The data calculation circuit 33 that has received the calculation result self-blade command performs predetermined calculation processing, and then outputs the calculation result, internal data DO, to the interface circuit 31 and to the data latch circuit 34. As a result, internal data DO is stored in data latch circuit 34.

そして、データ演算回路33が内部データDOをデータ
ラッチ回路34に出力するのに十分な時間が経過した後
、制御信号S1を再び立上げると、制御信号S1の立上
がりをトリガとして、インタフェース回路31はアドレ
ス信号S2の内容を解読し、制御情報としてラッチ内容
読出し6令を制御回路32に与える。これを受けた制御
回路32はデータラッチ回路34に内部データ出力命令
を与える。
Then, when the control signal S1 is raised again after sufficient time has elapsed for the data calculation circuit 33 to output the internal data DO to the data latch circuit 34, the interface circuit 31 is triggered by the rise of the control signal S1. The content of the address signal S2 is decoded and a latch content read command 6 is given to the control circuit 32 as control information. Upon receiving this, the control circuit 32 gives an internal data output command to the data latch circuit 34.

内部データ出力命令を受けたデータラッチ回路34は内
部データDOをインタフェース回路31に出力する。そ
して、インタフェース回路31は内部データDOを取り
込み、内部データDoをデータ信号S3としてデータ信
号線L3に出力する。
The data latch circuit 34 that has received the internal data output command outputs the internal data DO to the interface circuit 31. Then, the interface circuit 31 takes in the internal data DO and outputs the internal data Do as a data signal S3 to the data signal line L3.

その後、プロセッサ10は、データ信号線L3のデータ
信号S3から、演算結果読出し命令によりデータラッチ
回路34に格納された、データ演算回路33の演算結果
である内部データDOを読み取る。
Thereafter, the processor 10 reads the internal data DO, which is the calculation result of the data calculation circuit 33, stored in the data latch circuit 34 by the calculation result read command from the data signal S3 of the data signal line L3.

この場合の、データ出力装置3内のデータ演算回路33
の演算結果の読出し処理においては、プロセッサ10に
よる読出し動作を2回の命令により行い、演算結果読出
し命令出力後、データ演算回路33が演算結果をデータ
ラッチ回路34に出力するまでの期間中に、プロセッサ
10は他の命令等を実行する。その後、ラッチ内容読出
し命令を出力し、データラッチ回路34に格納された内
部データDOを読出すことにより、データ演算回路33
の演算結果を読み出している。従って、プロセッサ10
の待機時間はデータラッチ回路3゛4の内部データDO
がデータ信号S3としてデータ信号線L3に出力されま
での時間となり、十分短い時間となる。
In this case, the data calculation circuit 33 in the data output device 3
In the process of reading out the calculation result, the processor 10 performs the read operation twice using two commands, and during the period after the calculation result read command is output until the data calculation circuit 33 outputs the calculation result to the data latch circuit 34, Processor 10 executes other instructions and the like. Thereafter, by outputting a latch content read command and reading the internal data DO stored in the data latch circuit 34, the data calculation circuit 33
The calculation result is being read. Therefore, processor 10
The waiting time is the internal data DO of data latch circuit 3-4.
This is the time it takes for the signal to be output as the data signal S3 to the data signal line L3, which is a sufficiently short time.

しかも、この場合のように、プロセッサ10の動作速度
に対し、データ出力装置3の演算処理速度が遅い場合に
は、読出し動作を2回の読出し命令により行っても、2
回の読出し命令間に他の命令を実行できるメリットがあ
るため、プロセッサ10の利用効率は向上する。
Moreover, as in this case, when the arithmetic processing speed of the data output device 3 is slower than the operating speed of the processor 10, even if the read operation is performed by two read commands, two
Since there is an advantage that other instructions can be executed between the read instructions, the utilization efficiency of the processor 10 is improved.

なお、この場合のラッチ内容読出し命令の動作において
は、データ演算回路33が内部データDOをデータラッ
チ回路34に出力したことを知らせるデータレディ信号
をプロセッサ10に送信する構成にし、このデータレデ
ィ信号を受は取ると制御信号S1を立ち上げるようにす
ることも考えられる。
In addition, in the operation of the latch contents read command in this case, the data calculation circuit 33 is configured to transmit a data ready signal to the processor 10 notifying that the internal data DO has been output to the data latch circuit 34, and this data ready signal is transmitted to the processor 10. It is also conceivable to raise the control signal S1 when the signal is received.

このように、この実施例のデータ出力装置3は、外部よ
り演算結果読出し命令が与えられると、データ演算回路
33より得られる演算結果をインタフェース回路31に
出力するとともに、データラッチ回路34にも出力して
いる。
In this way, when the data output device 3 of this embodiment is given an operation result read command from the outside, it outputs the operation result obtained from the data operation circuit 33 to the interface circuit 31 and also outputs it to the data latch circuit 34. are doing.

このため、プロセッサlo側は演算結果読出し命令を与
えた後の処理を、以下に示す2つのうち任意に選択でき
る。
Therefore, the processor lo side can arbitrarily select the processing after giving the operation result read instruction from among the two shown below.

■ 演算結果がインタフェース回路3】を介してデータ
信号線L3のデータ信号S3として現れるまで待機した
後、演算結果を読出す(第2図の動作)。
(2) After waiting until the calculation result appears as the data signal S3 on the data signal line L3 via the interface circuit 3, the calculation result is read out (operation shown in FIG. 2).

■ ■のように待機せず、他の装置への命令等を与え他
の処理を行い、しかる後、う・ソチ内容読出し命令を実
行しデータラッチ回路34に格納された内部データDO
から演算結果を読出す(第3図の動作)。
■ Instead of waiting as in (■), give commands to other devices and perform other processing, and then execute the U-Sochi content read command to retrieve the internal data DO stored in the data latch circuit 34.
The calculation result is read from (operation shown in FIG. 3).

上記した■、■の処理をプロセッサ10側は、プロセッ
サ10の動作速度とデータ出力装置3の応答速度とを対
比してプロセッサ10の利用効率が高くなるように適宜
選択することができる。
The processor 10 side can appropriately select the processes (1) and (2) described above so as to increase the usage efficiency of the processor 10 by comparing the operating speed of the processor 10 and the response speed of the data output device 3.

したがって、データ出力装置3の演算結果の読出しに際
し、その動作速度にかかわらず、プロセッサ10は常に
一定レベル以上の利用効率を確保することができる。
Therefore, when reading the calculation results of the data output device 3, the processor 10 can always ensure a certain level of utilization efficiency or higher, regardless of its operating speed.

なお、この実施例ではデータ出力装置の内部データ出力
手段として、所定の演算結果を出力するデータ演算回路
34を示したが、他に、予め格納された内部データを出
力するRAM等の記憶手段であってもよい・また、外部
に設けられた記憶手段の出力を取込み、読出し命令に従
い取り込んだデータを出力する手段でもよい。
In this embodiment, the data calculation circuit 34 that outputs a predetermined calculation result is shown as the internal data output means of the data output device, but it is also possible to use a storage means such as a RAM that outputs pre-stored internal data. Alternatively, it may be a means for capturing the output of an externally provided storage means and outputting the captured data in accordance with a read command.

また、プロセッサ10を含んだシステムの構成あるいは
プロセッサ10の命令を制御するソフトウェアの都合に
より、データ出力装置からのデータの読出し処理(上記
の■、■)を命令毎あるいは状況に応じて切り替えて用
いることも考えられる。
Also, depending on the configuration of the system including the processor 10 or the software that controls the instructions of the processor 10, the data read processing from the data output device (■, ■ above) may be switched for each instruction or depending on the situation. It is also possible.

〔発明の効果〕〔Effect of the invention〕

以上説明したように、この発明によれば、内部データ出
力手段は第1の読出し命令に従い内部データを外部に出
力すると共に、該内部データを内部データ記憶手段にも
記憶させるため、このデータ出力装置より内部データを
読出す外部装置は、第1の読出し命令実行後、内部デー
タが外部に出力されるまで待機して該内部データを読出
してもよく、あるいは待機せずに他の命令を実行し、し
かる後に第2の読出し命令を実行し内部データ記憶手段
に格納された内部データを読出してもよく、2通りの方
法で内部データを読出すことができる。
As explained above, according to the present invention, the internal data output means outputs the internal data to the outside according to the first read command, and also stores the internal data in the internal data storage means, so that the data output device After executing the first read command, the external device that reads the internal data may wait until the internal data is output to the outside and then read the internal data, or it may execute another command without waiting. Then, the second read command may be executed to read the internal data stored in the internal data storage means, and the internal data can be read in two ways.

したがって、このデータ出力装置より内部データを読出
す外部装置は、その動作速度に応じて、内部データの読
出しを第1の読出し命令の実行のみで行うか、第1の読
出し命令実行後、他の処理を行った後、第2の読出し命
令を実行して行うかを選択することができるため、外部
装置の利用効率を常に一定レベル以上に保つことができ
る効果がある。
Therefore, depending on its operating speed, an external device that reads internal data from this data output device may read internal data only by executing the first read command, or may read internal data by executing another read command after executing the first read command. Since it is possible to select whether to execute the second read command after the processing is performed, there is an effect that the utilization efficiency of the external device can always be maintained at a certain level or higher.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図はこの発明の一実施例であるデータ出力装置を示
すブロック図、第2図及び第3図はそのデータ出力装置
の読出し動作を示すタイミング図、第4図及び第6図は
従来のデータ出力装置を示すブロック図、第5図は第4
図で示したデータ出力装置の読出し動作を示すタイミン
グ図、第7図は第6図で示したデータ出力装置の読出し
動作を示すタイミング図である。 図において、10はプロセッサ、31はインク−フェー
ス回路、32は制御回路、33はデータ演算回路、34
はデータラッチ回路である。 なお、各図中同一符号は同一または相当部分を示す。
FIG. 1 is a block diagram showing a data output device which is an embodiment of the present invention, FIGS. 2 and 3 are timing diagrams showing the read operation of the data output device, and FIGS. 4 and 6 are diagrams showing a conventional data output device. A block diagram showing the data output device, FIG.
7 is a timing diagram showing the read operation of the data output device shown in FIG. 6. FIG. 7 is a timing chart showing the read operation of the data output device shown in FIG. In the figure, 10 is a processor, 31 is an ink-face circuit, 32 is a control circuit, 33 is a data calculation circuit, and 34
is a data latch circuit. Note that the same reference numerals in each figure indicate the same or corresponding parts.

Claims (1)

【特許請求の範囲】[Claims] (1)第1の読出し命令に従い、内部データを外部に出
力する内部データ出力手段と、 前記内部データ出力手段より出力された前記内部データ
を記憶し、第2の読出し命令に従い、該記憶した内部デ
ータを外部に出力する内部データ記憶手段とを備えたデ
ータ出力装置。
(1) Internal data output means for outputting internal data to the outside in accordance with a first read command; and internal data output means for storing the internal data output from the internal data output means, and storing the stored internal data in accordance with a second read command. A data output device comprising an internal data storage means for outputting data to the outside.
JP1127205A 1989-05-18 1989-05-18 Data output device Pending JPH02304664A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1127205A JPH02304664A (en) 1989-05-18 1989-05-18 Data output device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1127205A JPH02304664A (en) 1989-05-18 1989-05-18 Data output device

Publications (1)

Publication Number Publication Date
JPH02304664A true JPH02304664A (en) 1990-12-18

Family

ID=14954321

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1127205A Pending JPH02304664A (en) 1989-05-18 1989-05-18 Data output device

Country Status (1)

Country Link
JP (1) JPH02304664A (en)

Similar Documents

Publication Publication Date Title
JPS62227243A (en) Transmission control system
US4729090A (en) DMA system employing plural bus request and grant signals for improving bus data transfer speed
US5432914A (en) Scanner interface system for transferring data to main and secondary processing units
JPH02304664A (en) Data output device
JPH09305524A (en) Multifunctional peripheral device
JPH0398188A (en) Ic card
JP3298018B2 (en) Programmable controller
JPH0145657B2 (en)
JP2722908B2 (en) Single chip microcomputer
JPS61223965A (en) Data transfer circuit
JPS59170933A (en) Input data control device of printer
JPH03158924A (en) Printer controller
JPH1083384A (en) Microcomputer
JPH058660U (en) CPU operation control system
JPS61223968A (en) Data controller for multi-microprocessor
JPS62190544A (en) Higher link unit for programmable controller
JPH05120201A (en) Data processor
JPH11110334A (en) Data processing circuit and image forming device provided with the circuit
JPS5850037A (en) Communication controller
JPS59201153A (en) Host connection system for stand-alone type picture processing system
JPS61123923A (en) Controller for transferring data between cpu and disk memory
JPH0816490A (en) Computer device
JPH05298239A (en) Direct memory access control circuit
JP2000040074A (en) Timing setting system
JPH031265A (en) Interface circuit