[go: up one dir, main page]

JPH07319809A - Processor - Google Patents

Processor

Info

Publication number
JPH07319809A
JPH07319809A JP6116407A JP11640794A JPH07319809A JP H07319809 A JPH07319809 A JP H07319809A JP 6116407 A JP6116407 A JP 6116407A JP 11640794 A JP11640794 A JP 11640794A JP H07319809 A JPH07319809 A JP H07319809A
Authority
JP
Japan
Prior art keywords
input
idle cycle
address
output device
instruction
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.)
Withdrawn
Application number
JP6116407A
Other languages
Japanese (ja)
Inventor
Mikio Ouchi
幹夫 大内
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 Engineering Ltd
Original Assignee
NEC Engineering Ltd
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 Engineering Ltd filed Critical NEC Engineering Ltd
Priority to JP6116407A priority Critical patent/JPH07319809A/en
Publication of JPH07319809A publication Critical patent/JPH07319809A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Microcomputers (AREA)
  • Information Transfer Systems (AREA)

Abstract

PURPOSE:To prevent the insertion of an unnecessary idle cycle and to reduce the reduction of processing capacity. CONSTITUTION:Respective I/O address spaces are previously set up in respective registers in a register group 12 in accordance with an internal I/O writing instruction outputted from a processor, Idle cycle time corresponding to each I/O address space in the register group 12 is previously set up in a register group 13 based upon the internal I/O writing instruction. Each comparator in a comparator group 15 compares an address (I/O instruction address) on an address bus 100 with the set value of the I/O address space of its corresponding register in the register group 12. A selector 16 selects the idle cycle time set up in a register group 13 in accordance with a compared result signal from the comparator group 15 and sends the selected time to a bus interface unit.

Description

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

【0001】[0001]

【産業上の利用分野】本発明はプロセッサに関し、特に
I/O(入出力)命令の発行間隔を制御する機能を有す
るプロセッサに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a processor, and more particularly to a processor having a function of controlling an issue interval of I / O (input / output) instructions.

【0002】[0002]

【従来の技術】従来、この種のプロセッサにおいては、
周辺のI/Oデバイスに対して命令を発行する際、I/
Oデバイスで規定されている連続アクセスの時間的な制
限(以下、リカバリ時間とする)を満足させるために、
I/O命令発行後、自動的に一定のアイドルサイクルを
挿入している。
2. Description of the Related Art Conventionally, in this type of processor,
When issuing commands to peripheral I / O devices, I / O
In order to satisfy the time limit of continuous access (hereinafter referred to as recovery time) specified by the O device,
After issuing the I / O command, a certain idle cycle is automatically inserted.

【0003】すなわち、図4に示すように、ポート(P
ort)A(図示せず)にI/O命令を発行し(図4ス
テップS1)、その他の処理を行ってから(図4ステッ
プS2)、ポートB,C(図示せず)にI/O命令を発
行する(図4ステップS3,S4)という処理を実行す
る場合を考える。
That is, as shown in FIG. 4, the port (P
ort) A (not shown) A / O command is issued (step S1 in FIG. 4), other processing is performed (step S2 in FIG. 4), and then I / O is issued to ports B and C (not shown). Consider a case where a process of issuing an instruction (steps S3 and S4 in FIG. 4) is executed.

【0004】この場合、図5に示すように、ポートAへ
のI/O命令の発行(11)を行った後に、一定時間に固定
されたアイドルサイクル(12)を挿入し、ポートAで規定
されているリカバリ時間(13)を確保している。
In this case, as shown in FIG. 5, after issuing an I / O instruction to the port A (11), an idle cycle (12) fixed for a fixed time is inserted to define the port A. The recovery time (13) has been secured.

【0005】また、その他の処理(14)を行ってからも、
上記の処理と同様にして、ポートB,CへのI/O命令
の発行(15),(19)を行った後に、アイドルサイクル(1
6),(20)を挿入し、ポートB,Cで規定されているリカ
バリ時間(17),(21)を確保している。このとき、アイド
ルサイクル(16),(20)がポートB,Cのリカバリ時間(1
7),(21)よりも大きいので、不要なアイドルサイクル(1
8),(22)が生じる。
Further, even after performing other processing (14),
After issuing I / O commands (15) and (19) to ports B and C in the same manner as the above processing, the idle cycle (1
6) and (20) are inserted to secure the recovery times (17) and (21) specified by the ports B and C. At this time, the idle cycle (16), (20) is the recovery time (1
7) and (21), so unnecessary idle cycles (1
8) and (22) occur.

【0006】[0006]

【発明が解決しようとする課題】上記のような従来のプ
ロセッサでは、I/O命令の発行後に自動的に一定のア
イドルサイクルを挿入しているので、そのアイドルサイ
クルがI/Oデバイスで規定されているリカバリ時間よ
りも非常に大きい場合、不要なアイドルサイクルを挿入
することとなり、これが処理能力を低下させる原因にな
る。
In the conventional processor as described above, a certain idle cycle is automatically inserted after the I / O instruction is issued, so that the idle cycle is defined by the I / O device. If it is much longer than the recovery time, the idle cycle will be inserted unnecessarily, and this will reduce the processing capacity.

【0007】また、アイドルサイクルがI/Oデバイス
のリカバリ時間よりも小さい場合にはソフトウェアによ
る時間稼ぎのための処理(例えば、複数のNOP命令か
らなるルーチン)を行い、I/Oデバイスのリカバリ時
間を保証する必要がある。
Further, when the idle cycle is shorter than the recovery time of the I / O device, a process for gaining time by software (for example, a routine composed of a plurality of NOP instructions) is executed to recover the I / O device. Need to guarantee.

【0008】そこで、本発明の目的は上記の問題点を解
消し、不要なアイドルサイクルの挿入を防止することが
でき、処理能力の低下を軽減することができるプロセッ
サを提供することにある。
Therefore, an object of the present invention is to solve the above problems, to provide a processor capable of preventing the insertion of an unnecessary idle cycle and reducing the deterioration of the processing capacity.

【0009】[0009]

【課題を解決するための手段】本発明によるプロセッサ
は、入出力デバイスに対する入出力命令の発行後にその
入出力デバイスのリカバリ時間を保証するためのアイド
ルサイクルを挿入するプロセッサであって、前記入出力
命令がどの入出力デバイスに対するものかを検出する検
出手段と、前記検出結果で検出された入出力デバイスに
対応して予め設定されたアイドルサイクル時間を選択し
て出力する出力手段とを備えている。
A processor according to the present invention is a processor for inserting an idle cycle for guaranteeing a recovery time of an input / output device after issuing an input / output instruction to the input / output device. Detecting means for detecting to which input / output device the instruction is directed, and output means for selecting and outputting a preset idle cycle time corresponding to the input / output device detected by the detection result. .

【0010】本発明による他のプロセッサは、入出力デ
バイスに対する入出力命令の発行後にその入出力デバイ
スのリカバリ時間を保証するためのアイドルサイクルを
挿入するプロセッサであって、前記入出力デバイスのア
ドレスを予め保持する保持手段と、前記入出力デバイス
に対応して予め設定されたアイドルサイクル時間を格納
する格納手段と、前記入出力命令のアドレスと前記保持
手段の内容とを比較する比較手段と、前記格納手段に格
納されたアイドルサイクル時間の中から前記比較手段で
一致が検出された入出力デバイスに対応するアイドルサ
イクル時間を選択して出力する選択手段とを備えてい
る。
Another processor according to the present invention is a processor which inserts an idle cycle for guaranteeing a recovery time of the input / output device after issuing an input / output instruction to the input / output device, and which is configured to set an address of the input / output device. Holding means for holding in advance, storing means for storing an idle cycle time preset corresponding to the input / output device, comparing means for comparing the address of the input / output instruction with the contents of the holding means, Selecting means for selecting and outputting the idle cycle time corresponding to the input / output device for which a match is detected by the comparing means from the idle cycle times stored in the storing means.

【0011】本発明による別のプロセッサは、入出力デ
バイスに対する入出力命令の発行後にその入出力デバイ
スのリカバリ時間を保証するためのアイドルサイクルを
挿入するプロセッサであって、前記アイドルサイクルが
同一の入出力デバイス各々のアドレスからなる複数のア
ドレス空間を予め保持する保持手段と、前記複数のアド
レス空間毎に予め設定されたアイドルサイクル時間を格
納する格納手段と、前記入出力命令のアドレスが前記複
数のアドレス空間のうちいずれに属するかを検出する検
出手段と、前記格納手段に格納されたアイドルサイクル
時間の中から前記検出手段で検出されたアドレス空間に
対応するアイドルサイクル時間を選択して出力する選択
手段とを備えている。
Another processor according to the present invention is a processor for inserting an idle cycle for guaranteeing a recovery time of the input / output device after the input / output instruction is issued to the input / output device, and the idle cycle is the same. Holding means for holding a plurality of address spaces each of which includes an address of each output device, storage means for storing a preset idle cycle time for each of the plurality of address spaces, and addresses for the input / output instructions are Detection means for detecting which one of the address spaces it belongs to, and selection for selecting and outputting the idle cycle time corresponding to the address space detected by the detection means from the idle cycle times stored in the storage means. And means.

【0012】[0012]

【作用】I/OデバイスのアドレスからなるI/Oアド
レス空間を予めレジスタ群に保持しておき、このレジス
タ群に保持されたI/Oアドレス空間に対応させて各I
/Oデバイスのリカバリ時間を保証するためのアイドル
サイクル時間を他のレジスタ群に予め格納しておく。
The I / O address space consisting of the addresses of I / O devices is held in the register group in advance, and each I / O address space is made to correspond to the I / O address space held in this register group.
The idle cycle time for guaranteeing the recovery time of the / O device is stored in advance in another register group.

【0013】レジスタ群に保持されたI/Oアドレス空
間とI/O命令のアドレスとを比較器群で比較し、その
比較器群で一致が検出されたI/Oアドレス空間に対応
する他のレジスタ群のアイドルサイクル時間を選択器で
選択し、アイドルサイクルの挿入を行うバスインタフェ
ースユニットに選択器で選択されたアイドルサイクル時
間を出力する。
The I / O address space held in the register group is compared with the address of the I / O instruction by the comparator group, and another I / O address space corresponding to the I / O address space in which the match is detected by the comparator group is compared. The idle cycle time of the register group is selected by the selector, and the idle cycle time selected by the selector is output to the bus interface unit which inserts the idle cycle.

【0014】これによって、I/O命令発行後に挿入す
るアイドルサイクルを任意のI/Oアドレス空間毎に選
択可能となる。よって、不要なアイドルサイクルの挿入
の防止が可能となり、プロセッサの処理能力の低下の軽
減が可能となる。
As a result, the idle cycle inserted after the I / O instruction is issued can be selected for each arbitrary I / O address space. Therefore, it becomes possible to prevent the insertion of unnecessary idle cycles, and it is possible to mitigate the decrease in the processing capability of the processor.

【0015】[0015]

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

【0016】図1は本発明の一実施例の構成を示すブロ
ック図である。図において、本発明の一実施例によるプ
ロセッサはアイドルサイクル制御信号生成回路(以下、
アイドルサイクル生成回路とする)1と、命令デコーダ
2と、バスインタフェースユニット(BIU)3と、汎
用レジスタプログラムカウンタ4と、アキュムレータ5
と、一時保持レジスタ6と、演算回路(ALU)7と、
命令レジスタ8とから構成されている。
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention. In the figure, a processor according to an exemplary embodiment of the present invention includes an idle cycle control signal generation circuit (hereinafter,
Idle cycle generation circuit) 1, instruction decoder 2, bus interface unit (BIU) 3, general-purpose register program counter 4, and accumulator 5
A temporary holding register 6, an arithmetic circuit (ALU) 7,
It is composed of an instruction register 8.

【0017】ここで、プロセッサ内においては、アイド
ルサイクル生成回路1と汎用レジスタプログラムカウン
タ4とアキュムレータ5と一時保持レジスタ6と演算回
路7と命令レジスタ8とが夫々データバス100に接続
され、アイドルサイクル生成回路1と汎用レジスタプロ
グラムカウンタ4とがアドレスバス101に接続されて
いる。
Here, in the processor, the idle cycle generation circuit 1, the general-purpose register program counter 4, the accumulator 5, the temporary holding register 6, the arithmetic circuit 7, and the instruction register 8 are connected to the data bus 100, respectively, and the idle cycle is generated. The generation circuit 1 and the general-purpose register program counter 4 are connected to the address bus 101.

【0018】アイドルサイクル生成回路1は命令デコー
ダ2からM/IO信号102とライト(Write)信
号103とを受け、アイドルサイクル制御信号104を
バスインタフェースユニット3に出力する。
The idle cycle generation circuit 1 receives the M / IO signal 102 and the write signal 103 from the instruction decoder 2 and outputs an idle cycle control signal 104 to the bus interface unit 3.

【0019】ここで、M/IO信号102はマイクロプ
ロセッサにおける実行中のサイクルがメモリアクセス
(M)か、I/Oサイクル(I/O)かを示している。
また、ライト信号103はアイドルサイクル生成回路1
または外部に対するライトサイクルを示している。
Here, the M / IO signal 102 indicates whether the cycle being executed in the microprocessor is a memory access (M) or an I / O cycle (I / O).
Further, the write signal 103 is the idle cycle generation circuit 1
Or, it indicates a write cycle to the outside.

【0020】バスインタフェースユニット3は命令デコ
ーダ2の出力とM/IO信号102とライト信号103
とアイドルサイクル制御信号104とを受け、アイドル
サイクル制御信号104にしたがってアイドルサイクル
の挿入を行う。
The bus interface unit 3 outputs the output of the instruction decoder 2, the M / IO signal 102 and the write signal 103.
In response to the idle cycle control signal 104, the idle cycle is inserted according to the idle cycle control signal 104.

【0021】図2は図1のアイドルサイクル生成回路1
の詳細な構成を示すブロック図である。図において、ア
イドルサイクル生成回路1はアドレスデコーダ10,1
1と、レジスタ群12,13と、ナンド(NAND)回
路14−1〜14−nと、比較器群15と、選択器16
とから構成されている。
FIG. 2 shows the idle cycle generation circuit 1 of FIG.
3 is a block diagram showing a detailed configuration of FIG. In the figure, the idle cycle generation circuit 1 includes an address decoder 10, 1
1, register groups 12 and 13, NAND circuits 14-1 to 14-n, a comparator group 15, and a selector 16
It consists of and.

【0022】アドレスデコーダ10はアドレスバス10
1とM/IO信号102とライト信号103とを受け、
レジスタ群12にI/Oアドレス空間を設定するときの
ストローブ信号111〜11nを出力する。
The address decoder 10 is an address bus 10.
1, the M / IO signal 102 and the write signal 103,
The strobe signals 111 to 11n for setting the I / O address space in the register group 12 are output.

【0023】アドレスデコーダ11はアドレスバス10
1とM/IO信号102とライト信号103とを受け、
レジスタ群12に設定したI/Oアドレス空間に対応す
るアイドルサイクル時間を設定する内部I/Oライト命
令をデコードするためのものであり、レジスタ群13に
アイドルサイクル時間を設定するときのストローブ信号
121〜12nを出力する。
The address decoder 11 is the address bus 10.
1, the M / IO signal 102 and the write signal 103,
It is for decoding an internal I / O write instruction that sets an idle cycle time corresponding to the I / O address space set in the register group 12, and is a strobe signal 121 when the idle cycle time is set in the register group 13. Output ~ 12n.

【0024】レジスタ群12はn個のレジスタ12−1
〜12−nで構成されており、内部I/Oライト命令に
よってレジスタ12−1〜12−nにI/Oアドレス空
間のうち下位のアドレス空間から順に設定する。
The register group 12 includes n registers 12-1.
To 12-n, the registers 12-1 to 12-n are sequentially set in the registers 12-1 to 12-n from the lower address space of the I / O address space by an internal I / O write instruction.

【0025】すなわち、レジスタ12−1には第1のI
/Oアドレス空間を設定し、レジスタ12−2には第2
のI/Oアドレス空間を設定し、レジスタ12−3には
第3のI/Oアドレス空間を設定し、n個目のレジスタ
12−nには第nのI/Oアドレス空間を設定する。こ
こで、I/Oアドレス空間は1以上のI/Oデバイスの
アドレスからなっている。
That is, the register 12-1 has the first I
/ O address space is set, and the second register is set in the register 12-2.
I / O address space is set, the third I / O address space is set in the register 12-3, and the nth I / O address space is set in the nth register 12-n. Here, the I / O address space consists of addresses of one or more I / O devices.

【0026】レジスタ群13はn個のレジスタ13−1
〜13−nで構成されており、内部I/Oライト命令に
よって夫々I/Oアドレス空間に対応するアイドルサイ
クル時間を設定する。
The register group 13 has n registers 13-1.
13-n, the idle cycle time corresponding to the I / O address space is set by the internal I / O write command.

【0027】すなわち、レジスタ13−1には第1のI
/Oアドレス空間に対応するアイドルサイクル時間を設
定し、レジスタ13−2には第2のI/Oアドレス空間
に対応するアイドルサイクル時間を設定し、レジスタ1
3−3には第3のI/Oアドレス空間に対応するアイド
ルサイクル時間を設定し、n個目のレジスタ13−nに
は第nのI/Oアドレス空間に対応するアイドルサイク
ル時間を設定する。
That is, the register 13-1 has the first I
The idle cycle time corresponding to the I / O address space is set, the idle cycle time corresponding to the second I / O address space is set to the register 13-2, and the register 1
An idle cycle time corresponding to the third I / O address space is set in 3-3, and an idle cycle time corresponding to the nth I / O address space is set in the nth register 13-n. .

【0028】ナンド回路14−1〜14−nはI/O命
令実行時に“H”となるM/IO信号102と比較器群
15からの比較結果信号151〜15nとのナンドをと
り、その演算結果を比較器群15に出力する。
The NAND circuits 14-1 to 14-n take the NAND of the M / IO signal 102 which becomes "H" at the time of executing the I / O instruction and the comparison result signals 151 to 15n from the comparator group 15 and perform the operation. The result is output to the comparator group 15.

【0029】比較器群15はn個の比較器15−1〜1
5−nによって構成されており、各比較器15−1〜1
5−nはアドレスバス100上のアドレスの上位部分と
対応するレジスタ12−1〜12−nからのI/Oアド
レス空間の設定値131〜13nとを比較する。
The comparator group 15 includes n comparators 15-1 to 15-1.
5-n, each of the comparators 15-1 to 15-1.
5-n compares the upper part of the address on the address bus 100 with the set values 131 to 13n of the I / O address space from the corresponding registers 12-1 to 12-n.

【0030】このとき、各比較器15−1〜15−nは
I/O命令実行時のアドレスの上位部分がI/Oアドレ
ス空間の設定値131〜13nよりも小さく、イネーブ
ル(E)端子にナンド回路14−1〜14−nから入力
される信号(ナンド回路14−1〜14−nの演算結
果)が“L”の場合、比較結果信号151〜15nに
“L”を出力する。
At this time, in each of the comparators 15-1 to 15-n, the upper part of the address at the time of executing the I / O instruction is smaller than the set values 131 to 13n of the I / O address space, and the comparator is connected to the enable (E) terminal. When the signals input from the NAND circuits 14-1 to 14-n (calculation results of the NAND circuits 14-1 to 14-n) are "L", "L" is output to the comparison result signals 151 to 15n.

【0031】よって、I/O命令実行時のアドレスが第
1のアドレスの範囲の場合には比較器15−1の比較結
果信号151のみが“L”となり、第2のアドレスの範
囲の場合には比較器15−2の比較結果信号152のみ
が“L”となり、第3のアドレスの範囲の場合には比較
器15−3の比較結果信号153のみが“L”となり、
第nのアドレスの範囲の場合には比較器15−nの比較
結果信号15nのみが“L”となる。
Therefore, when the address at the time of executing the I / O instruction is in the range of the first address, only the comparison result signal 151 of the comparator 15-1 becomes "L", and in the case of the range of the second address. Shows that only the comparison result signal 152 of the comparator 15-2 becomes "L", and only the comparison result signal 153 of the comparator 15-3 becomes "L" in the case of the third address range.
In the case of the nth address range, only the comparison result signal 15n of the comparator 15-n becomes "L".

【0032】選択器16は比較器15−1からセレクト
端子S1に“L”が入力された場合にはレジスタ13−
1から入力端子I1への入力を選択し、比較器15−2
からセレクト端子S2に“L”が入力された場合にはレ
ジスタ13−2から入力端子I2への入力を選択し、比
較器15−3からセレクト端子S3に“L”が入力され
た場合にはレジスタ13−3から入力端子I3への入力
を選択し、比較器15−nからセレクト端子Snに
“L”が入力された場合にはレジスタ13−nから入力
端子Inへの入力を選択する。
When "L" is input from the comparator 15-1 to the select terminal S1, the selector 16 stores in the register 13-
1 to the input terminal I1 is selected, and the comparator 15-2
From the register 13-2 to the input terminal I2 when "L" is input to the select terminal S2 from the register 13-2, and when "L" is input from the comparator 15-3 to the select terminal S3. When the input from the register 13-3 to the input terminal I3 is selected and "L" is input from the comparator 15-n to the select terminal Sn, the input from the register 13-n to the input terminal In is selected.

【0033】したがって、比較器15−1の比較結果信
号151が“L”の場合にはレジスタ13−1に設定さ
れたアドレルサイクル時間が選択され、アイドルサイク
ル制御信号104としてバスインタフェースユニット3
に送られる。
Therefore, when the comparison result signal 151 of the comparator 15-1 is "L", the adrel cycle time set in the register 13-1 is selected, and the bus interface unit 3 as the idle cycle control signal 104 is selected.
Sent to.

【0034】また、比較器15−2の比較結果信号15
2が“L”の場合にはレジスタ13−2に設定されたア
ドレルサイクル時間が選択され、アイドルサイクル制御
信号104としてバスインタフェースユニット3に送ら
れる。
Further, the comparison result signal 15 of the comparator 15-2
When 2 is "L", the adrel cycle time set in the register 13-2 is selected and sent to the bus interface unit 3 as the idle cycle control signal 104.

【0035】さらに、比較器15−3の比較結果信号1
53が“L”の場合にはレジスタ13−3に設定された
アドレルサイクル時間が選択され、アイドルサイクル制
御信号104としてバスインタフェースユニット3に送
られる。
Further, the comparison result signal 1 of the comparator 15-3
When 53 is "L", the adrel cycle time set in the register 13-3 is selected and sent to the bus interface unit 3 as the idle cycle control signal 104.

【0036】さらにまた、比較器15−nの比較結果信
号15nが“L”の場合にはレジスタ13−nに設定さ
れたアドレルサイクル時間が選択され、アイドルサイク
ル制御信号104としてバスインタフェースユニット3
に送られる。
Furthermore, when the comparison result signal 15n of the comparator 15-n is "L", the adrel cycle time set in the register 13-n is selected and the bus interface unit 3 is used as the idle cycle control signal 104.
Sent to.

【0037】図3は本発明の一実施例によるプロセッサ
の動作を示すタイムチャートである。図においては、図
1に示すプロセッサが図4に示す処理動作を行ったとき
の動作を示している。
FIG. 3 is a time chart showing the operation of the processor according to the embodiment of the present invention. The figure shows the operation when the processor shown in FIG. 1 performs the processing operation shown in FIG.

【0038】プロセッサが図4に示すような処理動作を
行った場合、ポートAへのI/O命令の発行(図4ステ
ップS1)、その他の処理の実行(図4ステップS
2)、ポートBへのI/O命令の発行(図4ステップS
3)、ポートCへのI/O命令の発行(図4ステップS
4)という順序で処理が実行される。
When the processor performs the processing operation as shown in FIG. 4, the I / O instruction is issued to the port A (step S1 in FIG. 4) and the other processing is executed (step S in FIG. 4).
2), issuance of I / O instruction to port B (step S in FIG. 4)
3), issuance of I / O instruction to port C (step S in FIG. 4)
The processing is executed in the order of 4).

【0039】このとき、ポートAへのI/O命令の発行
(1) を行った後に、ポートAで規定されているリカバリ
時間(3) と同等のアイドルサイクル(2) が挿入されるこ
ととなる。
At this time, an I / O instruction is issued to port A
After performing (1), an idle cycle (2) equivalent to the recovery time (3) specified in port A will be inserted.

【0040】また、その他の処理(4) が行われてから、
上記の処理と同様に、ポートB,CへのI/O命令の発
行(5) ,(8) を行った後に、ポートB,Cで規定されて
いるリカバリ時間(7) ,(10)と同等のアイドルサイクル
(6) ,(9) が挿入されることとなる。
After the other processing (4) is performed,
Similar to the above processing, after issuing I / O commands to ports B and C (5) and (8), the recovery times (7) and (10) specified by ports B and C Equivalent idle cycle
(6) and (9) will be inserted.

【0041】これによって、従来の技術においてアイド
ルサイクルがポートB,Cのリカバリ時間よりも大きい
値に固定的に設定されている場合に生じていた不要なア
イドルサイクルの挿入を防止することができる。
As a result, it is possible to prevent the insertion of an unnecessary idle cycle that occurs when the idle cycle is fixedly set to a value larger than the recovery time of the ports B and C in the prior art.

【0042】尚、各ポートA,B,CへのI/O命令の
発行(1) ,(5) ,(8) を行った後に挿入されるアイドル
サイクル(2) ,(6) ,(9) は、上述したプロセッサの内
部I/O命令によるレジスタ群13に対する処理によっ
て予め設定されている。
The idle cycles (2), (6), (9) inserted after the I / O instructions are issued (1), (5), (8) to the ports A, B, C respectively. ) Is preset by the processing for the register group 13 by the internal I / O instruction of the processor described above.

【0043】このように、レジスタ群12に保持された
I/Oアドレス空間に対応させて各I/Oデバイスのリ
カバリ時間を保証するためのアイドルサイクル時間をレ
ジスタ群13に格納しておき、比較器群14でI/O命
令のアドレスとの一致が検出されたI/Oアドレス空間
に対応するレジスタ群13のアイドルサイクル時間を選
択器16で選択し、そのアイドルサイクル時間をアイド
ルサイクルの挿入を行うバスインタフェースユニット3
に出力することによって、I/O命令発行後に挿入する
アイドルサイクルを任意のI/Oアドレス空間毎に選択
可能とすることができる。
As described above, the idle cycle time for guaranteeing the recovery time of each I / O device corresponding to the I / O address space held in the register group 12 is stored in the register group 13 for comparison. The selector group 16 selects the idle cycle time of the register group 13 corresponding to the I / O address space in which the match with the address of the I / O instruction is detected by the selector group 14, and the idle cycle time is set to the idle cycle insertion. Bus interface unit 3
By outputting the I / O command, the idle cycle inserted after the I / O instruction is issued can be selected for each arbitrary I / O address space.

【0044】よって、プロセッサ周辺のI/Oデバイス
で規定されるリカバリ時間を大幅に越えるような不要な
アイドルサイクルの挿入を防止することができ、プロセ
ッサの処理能力の低下を軽減することができる。
Therefore, it is possible to prevent the insertion of an unnecessary idle cycle that greatly exceeds the recovery time defined by the I / O device around the processor, and it is possible to reduce the deterioration of the processing capability of the processor.

【0045】[0045]

【発明の効果】以上説明したように本発明によれば、入
出力命令がどの入出力デバイスに対するものかを検出
し、その検出結果で検出された入出力デバイスに対応し
て予め設定されたアイドルサイクル時間を出力すること
によって、不要なアイドルサイクルの挿入を防止するこ
とができ、処理能力の低下を軽減することができるとい
う効果がある。
As described above, according to the present invention, it is detected to which input / output device the input / output instruction is directed, and an idle set in advance corresponding to the input / output device detected by the detection result is detected. By outputting the cycle time, it is possible to prevent an unnecessary idle cycle from being inserted, and it is possible to mitigate a decrease in processing capability.

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

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

【図2】図1のアイドルサイクル制御信号生成回路の詳
細な構成を示すブロック図である。
FIG. 2 is a block diagram showing a detailed configuration of an idle cycle control signal generation circuit in FIG.

【図3】本発明の一実施例の動作を示すタイムチャート
である。
FIG. 3 is a time chart showing the operation of the embodiment of the present invention.

【図4】プロセッサによる処理例を示す図である。FIG. 4 is a diagram illustrating an example of processing by a processor.

【図5】従来例の動作を示すタイムチャートである。FIG. 5 is a time chart showing an operation of a conventional example.

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

1 アイドルサイクル制御信号生成回路 2 命令デコーダ 3 バスインタフェース 10,11 アドレスデコーダ 12,13 レジスタ群 12−1〜12−3,12−n,13−1〜13−3,
13−n レジスタ 14−1,14−2,14−n ナンド回路 15 比較器群 15−1〜15−3,15−n 比較器 16 選択器
1 Idle cycle control signal generation circuit 2 Instruction decoder 3 Bus interface 10, 11 Address decoder 12, 13 Register group 12-1 to 12-3, 12-n, 13-1 to 13-3,
13-n register 14-1, 14-2, 14-n NAND circuit 15 comparator group 15-1 to 15-3, 15-n comparator 16 selector

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 入出力デバイスに対する入出力命令の発
行後にその入出力デバイスのリカバリ時間を保証するた
めのアイドルサイクルを挿入するプロセッサであって、
前記入出力命令がどの入出力デバイスに対するものかを
検出する検出手段と、前記検出結果で検出された入出力
デバイスに対応して予め設定されたアイドルサイクル時
間を選択して出力する出力手段とを有することを特徴と
するプロセッサ。
1. A processor for inserting an idle cycle for guaranteeing a recovery time of an input / output device after issuing an input / output instruction to the input / output device,
A detection means for detecting which input / output device the input / output instruction is directed to, and an output means for selecting and outputting a preset idle cycle time corresponding to the input / output device detected by the detection result. A processor having.
【請求項2】 入出力デバイスに対する入出力命令の発
行後にその入出力デバイスのリカバリ時間を保証するた
めのアイドルサイクルを挿入するプロセッサであって、
前記入出力デバイスのアドレスを予め保持する保持手段
と、前記入出力デバイスに対応して予め設定されたアイ
ドルサイクル時間を格納する格納手段と、前記入出力命
令のアドレスと前記保持手段の内容とを比較する比較手
段と、前記格納手段に格納されたアイドルサイクル時間
の中から前記比較手段で一致が検出された入出力デバイ
スに対応するアイドルサイクル時間を選択して出力する
選択手段とを有することを特徴とするプロセッサ。
2. A processor for inserting an idle cycle for guaranteeing a recovery time of an input / output device after issuing an input / output instruction to the input / output device,
Holding means for holding the address of the input / output device in advance; storing means for storing an idle cycle time preset corresponding to the input / output device; address of the input / output instruction and contents of the holding means. Comprising: comparing means for comparing; and selecting means for selecting and outputting an idle cycle time corresponding to an input / output device for which a match is detected by the comparing means from among the idle cycle times stored in the storing means. Featured processor.
【請求項3】 入出力デバイスに対する入出力命令の発
行後にその入出力デバイスのリカバリ時間を保証するた
めのアイドルサイクルを挿入するプロセッサであって、
前記アイドルサイクルが同一の入出力デバイス各々のア
ドレスからなる複数のアドレス空間を予め保持する保持
手段と、前記複数のアドレス空間毎に予め設定されたア
イドルサイクル時間を格納する格納手段と、前記入出力
命令のアドレスが前記複数のアドレス空間のうちいずれ
に属するかを検出する検出手段と、前記格納手段に格納
されたアイドルサイクル時間の中から前記検出手段で検
出されたアドレス空間に対応するアイドルサイクル時間
を選択して出力する選択手段とを有することを特徴とす
るプロセッサ。
3. A processor for inserting an idle cycle for guaranteeing a recovery time of an input / output device after issuing an input / output instruction to the input / output device,
Holding means for holding in advance a plurality of address spaces each consisting of an address of each input / output device having the same idle cycle; storage means for storing a preset idle cycle time for each of the plurality of address spaces; Detecting means for detecting which one of the plurality of address spaces the address of the instruction belongs to; and idle cycle time corresponding to the address space detected by the detecting means from among idle cycle times stored in the storing means. And a selecting means for selecting and outputting the processor.
JP6116407A 1994-05-30 1994-05-30 Processor Withdrawn JPH07319809A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6116407A JPH07319809A (en) 1994-05-30 1994-05-30 Processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6116407A JPH07319809A (en) 1994-05-30 1994-05-30 Processor

Publications (1)

Publication Number Publication Date
JPH07319809A true JPH07319809A (en) 1995-12-08

Family

ID=14686299

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6116407A Withdrawn JPH07319809A (en) 1994-05-30 1994-05-30 Processor

Country Status (1)

Country Link
JP (1) JPH07319809A (en)

Similar Documents

Publication Publication Date Title
EP0208870B1 (en) Vector data processor
US6272583B1 (en) Microprocessor having built-in DRAM and internal data transfer paths wider and faster than independent external transfer paths
EP1560123B1 (en) Information processing apparatus and method of accessing memory
JP2003316571A (en) Parallel processor
JPH07319809A (en) Processor
JP3695078B2 (en) Programmable controller with pulse output instructions
JP2812610B2 (en) Pipeline control method
JP3169878B2 (en) Memory control circuit
JP2770743B2 (en) Weight control method
JP2721611B2 (en) Programmable controller
JP2687476B2 (en) Vector data processing device
JP2721610B2 (en) Programmable controller
JP3168845B2 (en) Digital signal processor
JP3366235B2 (en) Data read control device
JP2926975B2 (en) Program control unit
JPH0850567A (en) Data transfer device
JP4062478B2 (en) Device access method
JPH10171654A (en) High-speed data processing unit
JPH04245333A (en) information processing equipment
JPH02217924A (en) Store processing method of data processing device
JPH0721117A (en) Dma controller
JPH07319753A (en) Multiplex system for bus cycle
JPH05100848A (en) Instruction pre-fetch device
JPH0512097A (en) Method and circuit for memory access
JP2000276438A (en) Dma data transfer method

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20010731