JPH05216701A - Recovery time adjusting circuit for input/output instruction - Google Patents

Recovery time adjusting circuit for input/output instruction

Info

Publication number
JPH05216701A
JPH05216701A JP4056360A JP5636092A JPH05216701A JP H05216701 A JPH05216701 A JP H05216701A JP 4056360 A JP4056360 A JP 4056360A JP 5636092 A JP5636092 A JP 5636092A JP H05216701 A JPH05216701 A JP H05216701A
Authority
JP
Japan
Prior art keywords
signal
cpu
circuit
recovery time
counter
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
JP4056360A
Other languages
Japanese (ja)
Inventor
Shinobu Sato
佐藤  忍
Yasutomo Konishi
康友 小西
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
Niigata Fuji Xerox Manufacturing Co Ltd
Original Assignee
NEC Corp
Niigata Fuji Xerox Manufacturing Co 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 Corp, Niigata Fuji Xerox Manufacturing Co Ltd filed Critical NEC Corp
Priority to JP4056360A priority Critical patent/JPH05216701A/en
Publication of JPH05216701A publication Critical patent/JPH05216701A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To simplify the insurance of recovery time of an input/output instruction and to eliminate the reconsidering of software at every device. CONSTITUTION:A matrix circuit 1 outputs count preset values 111 set in accordance with a CPU specification signal 100, a CPU operating frequency signal 101, and a bus operating frequency signal 102 to a counter circuit 2. The counter circuit 2 subtracts the count preset value 111 from the matrix circuit 1 from a counter start-up signal 151 representing the detection of an I/O instruction provided with a specific I/O address from a CPU 4 by a decoder circuit 5 when it is inputted. A wait control circuit 3 requests waiting to the CPU 4 by activating a ready signal 131 when the counter startup signal 151 from the decoder circuit 5 is inputted, and cancels such wait request for the CPU 4 by activating the ready signal 131 when a count-out signal 121 is inputted from the counter circuit 2.

Description

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

【0001】[0001]

【技術分野】本発明は入出力命令のリカバリタイム調整
回路に関し、特にI/O(入出力)命令の実行時間の調
整方法に関する。
TECHNICAL FIELD The present invention relates to a recovery time adjusting circuit for an input / output instruction, and more particularly to a method for adjusting an execution time of an I / O (input / output) instruction.

【0002】[0002]

【従来技術】従来、情報処理装置においては、CPU
(中央処理装置)から周辺LSIに対して連続したアク
セスを行う場合、最初のアクセスに対して周辺LSI側
の動作が完了していない状態でCPUから次のアクセス
が行われると誤動作が発生する。そのため、周辺LSI
の正常な動作を保証するためのリカバリタイムを確保す
るのに必要な時間をCPUのクロック数に換算し、ソフ
トウェアにおいて最初のI/O命令実行直後に換算した
クロック数のNOP(no operation)命令またはJMP
(jump)命令などを挿入している。これによって、CP
UではNOP命令またはJMP命令などによって周辺L
SIの動作完了まで待たされ、その後に次のI/O命令
を実行する。
2. Description of the Related Art Conventionally, in an information processing device, a CPU
When the (central processing unit) continuously accesses the peripheral LSI, a malfunction occurs when the CPU makes the next access in a state where the operation on the peripheral LSI side is not completed with respect to the first access. Therefore, peripheral LSI
The time required to secure the recovery time for guaranteeing the normal operation of the CPU is converted into the number of clocks of the CPU, and the NOP (no operation) instruction with the number of clocks converted immediately after the execution of the first I / O instruction in the software is executed. Or JMP
(Jump) instructions are inserted. By this, CP
Peripheral L in U by NOP instruction or JMP instruction
It is kept waiting until the operation of SI is completed, and then the next I / O instruction is executed.

【0003】CPUが周辺LSIに対して連続したアク
セスを行うとき、遅延させるべきクロック数はCPUの
種別やCPUの動作周波数、およびCPUと周辺LSI
とを接続するバスの動作周波数の3つのパラメータによ
って基本サイクルタイムが異なる。したがって、CPU
を周辺LSIの動作完了まで待たせるために挿入するN
OP命令またはJMP命令などの数は装置各々で異なっ
てくる。そのため、ソフトウェアが直接周辺LSIをア
クセスする場合、新しい装置が開発される毎にソフトウ
ェアの見直しや変更が必要となっている。
When the CPU continuously accesses the peripheral LSI, the number of clocks to be delayed depends on the type of the CPU, the operating frequency of the CPU, and the CPU and the peripheral LSI.
The basic cycle time differs depending on the three parameters of the operating frequency of the bus connecting the and. Therefore, the CPU
To wait until the operation of the peripheral LSI is completed N
The number of OP instructions or JMP instructions varies depending on each device. Therefore, when the software directly accesses the peripheral LSI, it is necessary to review or change the software each time a new device is developed.

【0004】このような従来の情報処理装置では、周辺
LSIに対するI/O命令のリカバリタイムを確保する
ために、装置で使用されているCPUの種別やCPUの
動作周波数、およびバスの動作周波数の3つのパラメー
タを判別して遅延させるべきクロック数を決定する必要
があり、周辺LSIの動作完了まで待たせるために挿入
するNOP命令またはJMP命令などの数を装置毎に見
直さなければならないという問題がある。
In such a conventional information processing apparatus, in order to secure the recovery time of the I / O instruction to the peripheral LSI, the type of CPU used in the apparatus, the operating frequency of the CPU, and the operating frequency of the bus are used. It is necessary to determine the number of clocks to be delayed by discriminating the three parameters, and the number of NOP instructions or JMP instructions to be inserted in order to wait until the operation of the peripheral LSI is completed must be reviewed for each device. is there.

【0005】[0005]

【発明の目的】本発明は上記のような従来のものの問題
点を除去すべくなされたもので、入出力命令のリカバリ
タイムの確保を簡単化することができ、装置毎のソフト
ウェアの見直しをなくすことができる入出力命令のリカ
バリタイム調整回路の提供を目的とする。
SUMMARY OF THE INVENTION The present invention has been made in order to eliminate the above-mentioned problems of the conventional one, and it is possible to simplify the recovery time of input / output instructions and eliminate the need to review the software for each device. It is an object of the present invention to provide a recovery time adjustment circuit for an input / output command that can be performed.

【0006】[0006]

【発明の構成】本発明によるリカバリタイム調整回路
は、中央処理装置から周辺装置へ連続して入出力命令が
出力されるときに前記周辺装置の動作を保証するための
リカバリタイムを確保する入出力命令のリカバリタイム
調整回路であって、前記中央処理装置から予め設定され
た特定命令が出力されたことを検出する検出手段と、予
め設定された所定時間を計時するための設定値を前記中
央処理装置の種別および動作周波数と前記中央処理装置
および前記周辺装置間のバスの動作周波数とに応じて設
定する設定手段と、前記検出手段によって前記特定命令
の出力が検出されたときに前記設定手段によって設定さ
れた設定値が計数される間前記中央処理装置の動作を抑
止する抑止手段とを設けたことを特徴とする。
The recovery time adjusting circuit according to the present invention is an input / output for ensuring a recovery time for guaranteeing the operation of the peripheral device when the input / output commands are continuously output from the central processing unit to the peripheral device. A recovery time adjusting circuit for an instruction, the detecting means for detecting that a preset specific instruction is output from the central processing unit, and the central processing of a set value for measuring a preset predetermined time. Setting means for setting according to the type and operating frequency of the device and operating frequency of the bus between the central processing unit and the peripheral device; and the setting means when the output of the specific command is detected by the detecting means. The present invention is characterized in that a suppression means is provided for suppressing the operation of the central processing unit while the set value set is counted.

【0007】[0007]

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

【0008】図1は本発明の一実施例の構成を示すブロ
ック図である。図において、マトリックス回路1はカウ
ンタ回路2が起動されてからタイムアウト信号121 を出
力するまでの時間が常に一定となるように、CPU種別
信号100 とCPU動作周波数信号101 とバス動作周波数
信号102 とに応じて設定したカウント設定値111 をカウ
ンタ回路2に出力する。ここで、CPU種別信号100 は
CPU4の種別を示し、CPU動作周波数信号101 はC
PU4の動作周波数を示し、バス動作周波数信号102 は
図示せぬバスの動作周波数を示している。
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention. In the figure, the matrix circuit 1 has a CPU type signal 100, a CPU operating frequency signal 101, and a bus operating frequency signal 102 so that the time from when the counter circuit 2 is activated until the time-out signal 121 is output is always constant. The count set value 111 set accordingly is output to the counter circuit 2. Here, the CPU type signal 100 indicates the type of the CPU 4, and the CPU operating frequency signal 101 is C
The operating frequency of PU4 is shown, and the bus operating frequency signal 102 shows the operating frequency of a bus (not shown).

【0009】カウンタ回路2はデコード回路5からカウ
ンタ起動信号151 が入力されると、マトリックス回路1
から送られてきたカウント設定値111 をバスクロック信
号103 に同期して減算する。カウンタ回路2はカウント
値が0になるとカウントアウト信号121 をウェイト制御
回路3に出力する。
When the counter activation signal 151 is input from the decoding circuit 5, the counter circuit 2 receives the matrix circuit 1
The count set value 111 sent from is subtracted in synchronization with the bus clock signal 103. When the count value becomes 0, the counter circuit 2 outputs the count-out signal 121 to the wait control circuit 3.

【0010】ウェイト制御回路3はデコード回路5から
カウンタ起動信号151 が入力されると、CPU4に対し
てウェイトを要求するためにレディ信号131 をインアク
ティブにする。また、ウェイト制御回路3はカウンタ回
路2からカウントアウト信号121 が入力されると、レデ
ィ信号131 をアクティブにしてCPU4に対するウェイ
ト要求を解除する。
When the counter activation signal 151 is input from the decoding circuit 5, the wait control circuit 3 inactivates the ready signal 131 to request the CPU 4 to wait. When the count-out signal 121 is input from the counter circuit 2, the wait control circuit 3 activates the ready signal 131 to cancel the wait request to the CPU 4.

【0011】CPU4は図示せぬ周辺LSIに対して連
続してアクセスする場合、I/O制御信号141 およびア
ドレス信号142 によって特定のI/Oアドレスを持つI
/O命令をデコード回路5に出力する。また、CPU4
はウェイト制御回路3からのレディ信号131 がインアク
ティブになると動作を停止し、ウェイト制御回路3から
のレディ信号131 がアクティブになると動作を開始す
る。
When the CPU 4 continuously accesses a peripheral LSI (not shown), the I / O control signal 141 and the address signal 142 cause an I / O having a specific I / O address.
The / O instruction is output to the decoding circuit 5. Also, CPU4
Stops its operation when the ready signal 131 from the wait control circuit 3 becomes inactive, and starts the operation when the ready signal 131 from the wait control circuit 3 becomes active.

【0012】デコード回路5はCPU4からのI/O制
御信号141 およびアドレス信号142によって特定のI/
Oアドレスを持つI/O命令を検出すると、カウンタ回
路2およびウェイト制御回路3にカウンタ起動信号151
を出力する。
The decode circuit 5 receives a specific I / O signal according to the I / O control signal 141 and the address signal 142 from the CPU 4.
When the I / O instruction having the O address is detected, the counter activation signal 151 is sent to the counter circuit 2 and the wait control circuit 3.
Is output.

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

【0014】周辺LSIのI/O命令のリカバリタイム
は通常0.5〜10μs位必要であるため、カウンタ回
路2に設定するカウント設定値111 はカウントアウト信
号121 がカウンタ起動信号151 が入力されてから約0.
5μs後に出力されるような値に設定される。このカウ
ント設定値111 はマトリックス回路1でハードウェア的
に決定するため、CPU4で動作するソフトウェアはC
PU4の種別や動作周波数、およびバスの動作周波数を
意識する必要がなくなる。ソフトウェアは各周辺LSI
が必要とするI/O命令のリカバリタイムが0.5μs
の何倍必要かを考慮し、周辺LSIへのI/O命令の連
続アクセスの間に特定のI/Oアドレスを持つI/O命
令を必要な回数だけ挿入することで、必要なリカバリタ
イムを確保することができる。
Since the recovery time of the I / O instruction of the peripheral LSI is usually required to be about 0.5 to 10 μs, the count set value 111 set in the counter circuit 2 is the count out signal 121 and the counter start signal 151 is input. To about 0.
The value is set so that it will be output after 5 μs. Since the count setting value 111 is determined by the matrix circuit 1 in terms of hardware, the software operating in the CPU 4 is C
It is no longer necessary to be aware of the type and operating frequency of the PU 4, and the operating frequency of the bus. Software is each peripheral LSI
Required I / O instruction recovery time is 0.5 μs
The required recovery time can be increased by inserting I / O instructions with a specific I / O address as many times as necessary during continuous access of I / O instructions to the peripheral LSI, considering how many times Can be secured.

【0015】すなわち、CPU4から周辺LSIへのア
クセスが連続する場合(図2ステップ11)、CPU4
からデコード回路5に特定のI/Oアドレスを持つI/
O命令のI/O制御信号141 およびアドレス信号142 が
出力される(図2ステップ12)。
That is, when the CPU 4 continuously accesses the peripheral LSI (step 11 in FIG. 2), the CPU 4
From the I / O having a specific I / O address to the decoding circuit 5
The I / O control signal 141 and the address signal 142 of the O instruction are output (step 12 in FIG. 2).

【0016】デコード回路5はCPU4からのI/O制
御信号141 およびアドレス信号142によって特定のI/
Oアドレスを持つI/O命令を検出すると、カウンタ回
路2およびウェイト制御回路3にカウンタ起動信号151
を出力する。
The decode circuit 5 receives a specific I / O signal according to the I / O control signal 141 and the address signal 142 from the CPU 4.
When the I / O instruction having the O address is detected, the counter activation signal 151 is sent to the counter circuit 2 and the wait control circuit 3.
Is output.

【0017】カウンタ回路2はデコード回路5からカウ
ンタ起動信号151 が入力されると、マトリックス回路1
から送られてきたカウント設定値111 をバスクロック信
号103 に同期して減算する。また、ウェイト制御回路3
はデコード回路5からカウンタ起動信号151 が入力され
ると、CPU4へのレディ信号131 をインアクティブに
する。これによって、CPU4は動作を停止する。
When the counter activation signal 151 is input from the decoding circuit 5, the counter circuit 2 receives the matrix circuit 1
The count set value 111 sent from is subtracted in synchronization with the bus clock signal 103. In addition, the weight control circuit 3
When the counter activation signal 151 is input from the decoding circuit 5, the signal inactivates the ready signal 131 to the CPU 4. As a result, the CPU 4 stops operating.

【0018】カウンタ回路2はバスクロック信号103 に
同期した減算によってカウント値が0になると、カウン
トアウト信号121 をウェイト制御回路3に出力する。ウ
ェイト制御回路3はカウンタ回路2からカウントアウト
信号121 が入力されると、レディ信号131 をアクティブ
にしてCPU4に対するウェイト要求を解除する。これ
によって、CPU4は動作を開始する。
The counter circuit 2 outputs a count-out signal 121 to the wait control circuit 3 when the count value becomes 0 by subtraction in synchronization with the bus clock signal 103. When the count-out signal 121 is input from the counter circuit 2, the wait control circuit 3 activates the ready signal 131 to cancel the wait request to the CPU 4. This causes the CPU 4 to start operating.

【0019】このとき、CPU4はI/O命令のリカバ
リタイムがまだ経過していなければ(図2ステップ1
3)、再度デコード回路5に特定のI/Oアドレスを持
つI/O命令のI/O制御信号141 およびアドレス信号
142 を出力する(図2ステップ12)。一方、CPU4
はI/O命令のリカバリタイムが経過していれば(図2
ステップ13)、周辺LSIへの次のアクセスを実行す
る。
At this time, the CPU 4 has not recovered the recovery time of the I / O instruction (step 1 in FIG. 2).
3), the I / O control signal 141 and the address signal of the I / O instruction having the specific I / O address again in the decoding circuit 5
142 is output (step 12 in FIG. 2). On the other hand, CPU4
If the recovery time of the I / O instruction has passed (Fig. 2
Step 13), the next access to the peripheral LSI is executed.

【0020】上述した処理動作ではマトリックス回路1
によってカウント設定値111 を設定しているが、このカ
ウント設定値111 をソフトウェアによって設定すること
も可能である。その場合、ハードウェアの初期設定を行
うプログラムによってカウント設定値111 を一度設定す
ればよく、上述した処理動作と同様に、ソフトウェアに
よって特定のI/Oアドレスを持つI/O命令を出力し
て必要なリカバリタイムを確保すればよい。
In the processing operation described above, the matrix circuit 1
Although the count set value 111 is set by, the count set value 111 can also be set by software. In that case, the count setting value 111 may be set once by the program for initializing the hardware, and it is necessary to output the I / O instruction having the specific I / O address by the software as in the processing operation described above. It is enough to secure a good recovery time.

【0021】このように、マトリックス回路1でカウン
タ回路2が起動されてからタイムアウト信号121 を出力
するまでの時間が常に一定となるようにCPU種別信号
100とCPU動作周波数信号101 とバス動作周波数信号1
02 とに応じてカウント設定値111 を設定し、デコード
回路5が特定のI/Oアドレスを持つCPU4からのI
/O命令を検出したときにカウンタ回路2がマトリック
ス回路1からのカウント設定値111 を減算してカウント
アウト信号121 を出力するまでウェイト制御回路3から
のレディ信号131 をインアクティブにしてCPU4に対
するウェイト要求を出力することによって、I/O命令
のリカバリタイムの確保を簡単化することができ、装置
毎のソフトウェアの見直しをなくすことができる。
As described above, the CPU type signal is set so that the time from the activation of the counter circuit 2 in the matrix circuit 1 to the output of the time-out signal 121 is always constant.
100 and CPU operating frequency signal 101 and bus operating frequency signal 1
The count setting value 111 is set in accordance with 02 and the decoding circuit 5 has an I / O from the CPU 4 having a specific I / O address.
When the / O command is detected, the ready signal 131 from the wait control circuit 3 is made inactive until the counter circuit 2 subtracts the count set value 111 from the matrix circuit 1 and outputs the count-out signal 121. By outputting the request, it is possible to simplify the recovery time of the I / O instruction and eliminate the need to review the software for each device.

【0022】尚、本発明の一実施例ではカウント回路2
でマトリックス回路1からのカウント設定値111 を減算
しているが、マトリックス回路1からのカウント設定値
111となるまで加算するようにしてもよく、これに限定
されない。
In the embodiment of the present invention, the counting circuit 2
Is subtracting the count set value 111 from the matrix circuit 1, but the count set value from the matrix circuit 1 is
You may make it add until it becomes 111, but it is not limited to this.

【0023】[0023]

【発明の効果】以上説明したように本発明によれば、予
め設定された所定時間を計時するための設定値を中央処
理装置の種別および動作周波数と中央処理装置および周
辺装置間のバスの動作周波数とに応じて設定し、中央処
理装置から予め設定された特定命令が出力されたことが
検出されたときに該設定値が計数されるまで中央処理装
置の動作を抑止することによって、入出力命令のリカバ
リタイムの確保を簡単化することができ、装置毎のソフ
トウェアの見直しをなくすことができるという効果があ
る。
As described above, according to the present invention, the type and operating frequency of the central processing unit and the operation of the bus between the central processing unit and the peripheral device are set to set values for measuring a preset predetermined time. Input / output by setting according to the frequency and suppressing the operation of the central processing unit until the set value is counted when it is detected that a predetermined specific command is output from the central processing unit. It is possible to simplify the recovery time of instructions and eliminate the need to review software for each device.

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

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

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

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

1 マトリックス回路 2 カウンタ回路 3 ウェイト制御回路 4 CPU 5 デコード回路 1 matrix circuit 2 counter circuit 3 weight control circuit 4 CPU 5 decode circuit

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 中央処理装置から周辺装置へ連続して入
出力命令が出力されるときに前記周辺装置の動作を保証
するためのリカバリタイムを確保する入出力命令のリカ
バリタイム調整回路であって、前記中央処理装置から予
め設定された特定命令が出力されたことを検出する検出
手段と、予め設定された所定時間を計時するための設定
値を前記中央処理装置の種別および動作周波数と前記中
央処理装置および前記周辺装置間のバスの動作周波数と
に応じて設定する設定手段と、前記検出手段によって前
記特定命令の出力が検出されたときに前記設定手段によ
って設定された設定値が計数される間前記中央処理装置
の動作を抑止する抑止手段とを設けたことを特徴とする
リカバリタイム調整回路。
1. A recovery time adjusting circuit for an input / output instruction, which secures a recovery time for guaranteeing the operation of the peripheral device when the input / output command is continuously output from the central processing unit to the peripheral device. Detecting means for detecting output of a preset specific command from the central processing unit, and setting values for timing a preset predetermined time, the type and operating frequency of the central processing unit, and the center. Setting means for setting according to the operating frequency of the bus between the processing device and the peripheral device, and the set value set by the setting means when the output of the specific command is detected by the detecting means A recovery time adjusting circuit, characterized by further comprising a suppressing means for suppressing the operation of the central processing unit.
JP4056360A 1992-02-06 1992-02-06 Recovery time adjusting circuit for input/output instruction Pending JPH05216701A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4056360A JPH05216701A (en) 1992-02-06 1992-02-06 Recovery time adjusting circuit for input/output instruction

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4056360A JPH05216701A (en) 1992-02-06 1992-02-06 Recovery time adjusting circuit for input/output instruction

Publications (1)

Publication Number Publication Date
JPH05216701A true JPH05216701A (en) 1993-08-27

Family

ID=13025082

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4056360A Pending JPH05216701A (en) 1992-02-06 1992-02-06 Recovery time adjusting circuit for input/output instruction

Country Status (1)

Country Link
JP (1) JPH05216701A (en)

Similar Documents

Publication Publication Date Title
JPH0454255B2 (en)
JPH05216701A (en) Recovery time adjusting circuit for input/output instruction
JPH08171504A (en) Emulation device
JPH0573296A (en) Microcomputer
JP2978820B2 (en) Information processing device activation method
JPH06324861A (en) System and method for controlling cpu
JPS60124746A (en) Data processing unit
JPS6118045A (en) Detecting system of program runaway
JPH05134868A (en) Soft timer control method
JPS6148181B2 (en)
JPS62130427A (en) Memory read/write system
JPH0581041A (en) Information processor
JPS6259818B2 (en)
JPS6330649B2 (en)
JPH05108384A (en) Microprocessor
JPH07295834A (en) Debug monitor processing method/device
JPH05346876A (en) Cpu controller
JPH0635757A (en) Abnormality detector of cpu
JPH1091431A (en) Data processor
JPH036758A (en) Microprocessor
JPS63282528A (en) Detection system for execution of instruction of central control unit
JPH10161887A (en) Method and device for interruption signal synchronization
JPS5922145A (en) Interruption control system
JPH01240941A (en) Information processor
JPH0132539B2 (en)