JPH04205425A - Data processor and its data processing method - Google Patents
Data processor and its data processing methodInfo
- Publication number
- JPH04205425A JPH04205425A JP2337046A JP33704690A JPH04205425A JP H04205425 A JPH04205425 A JP H04205425A JP 2337046 A JP2337046 A JP 2337046A JP 33704690 A JP33704690 A JP 33704690A JP H04205425 A JPH04205425 A JP H04205425A
- Authority
- JP
- Japan
- Prior art keywords
- instruction
- wait
- processing device
- time
- timer
- 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
Links
- 238000003672 processing method Methods 0.000 title claims description 3
- 230000015654 memory Effects 0.000 abstract description 4
- 238000010586 diagram Methods 0.000 description 5
- 230000000694 effects Effects 0.000 description 2
- 206010013554 Diverticulum Diseases 0.000 description 1
- 238000000034 method Methods 0.000 description 1
- 230000000644 propagated effect Effects 0.000 description 1
Landscapes
- Executing Machine-Instructions (AREA)
Abstract
Description
【発明の詳細な説明】
[産業上の利用分野コ
本発明はデータ処理装置の命令に関し、特に、ある一定
時間の確保をするためのウェイト(WAIT)命令に関
するものである。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to instructions for a data processing device, and particularly relates to a WAIT instruction for securing a certain period of time.
[従来の技術]
従来、データ処理装置においては、ある事象が発生する
までは何の動作も期待しないウェイト命令が存在する。[Prior Art] Conventionally, in a data processing device, there is a wait instruction that does not expect any operation until a certain event occurs.
第3図の命令シーケンス図に示すように、A、B、C,
Dは一般命令であり、ウェイト命令は5回発行されてい
る。これらのウエイト命令は主に他の命令にて行われる
処理を待つため、ある一定時間を確保するために使用さ
れる。As shown in the instruction sequence diagram in Figure 3, A, B, C,
D is a general instruction, and the wait instruction has been issued five times. These wait instructions are mainly used to wait for processing performed by other instructions and to secure a certain amount of time.
これらのウェイト命令の実行時間を基準にして、ある一
定時間を確保するため、その時間分だけウェイト命令を
発行する必要があった。In order to secure a certain amount of time based on the execution time of these wait instructions, it was necessary to issue wait instructions for that amount of time.
したがって、ウェイト命令の命令実行時間で所要するウ
ェイト時間を割った商(整数)の分だけのウェイト命令
か必要となる。Therefore, the number of wait instructions required is the quotient (integer) of the required wait time divided by the instruction execution time of the wait instructions.
[発明が解決しようとする課題]
しかしながら、命令数の増加、メモリ増加の要因となり
、さらに処理装置のクロック周波数が変更された場合、
それに伴って前述のウェイト命令実行時間が変化するた
めウェイト命令数も変えなければならず、プログラムの
変更が発生するという問題がある。[Problems to be Solved by the Invention] However, when the number of instructions and memory increases, and the clock frequency of the processing device is changed,
As a result, the above-mentioned wait instruction execution time changes, so the number of wait instructions also has to be changed, resulting in a problem that the program must be changed.
それ故に、本発明の課題は命令数の削減、メモリの削減
、さらにはデータ処理装置のクロック周波数が変更にな
ってもプログラムの変更が不要としたデータ処理装置を
提供することにある。Therefore, it is an object of the present invention to provide a data processing device that reduces the number of instructions, reduces the amount of memory, and eliminates the need to change the program even if the clock frequency of the data processing device changes.
[課題を解決するための手段]
本発明によれば、処理装置のクロックを発生するクロッ
ク発生器と、ウェイトさせる所望のウェイト時間を直接
指定可能なウェイト命令をセットする命令セット手段と
、該ウェイト命令と解読されたときに、前記ウェイト時
間をセットし前記ウェイト命令の発行時から指定した所
望の時間が経過するまで信号を発生するタイマと、前記
クロック発生器の出力を前記タイマの出力信号により制
御する制御回路とを含むことを特徴とするデータ処理装
置が得られる。[Means for Solving the Problems] According to the present invention, there is provided a clock generator that generates a clock for a processing device, an instruction setting unit that sets a wait instruction that can directly specify a desired wait time to wait, and a clock generator that generates a clock for a processing device. a timer that, when decoded as a command, sets the wait time and generates a signal until a specified desired time elapses from the time when the wait command is issued; and an output of the clock generator based on the output signal of the timer. A data processing device characterized in that it includes a control circuit for controlling the data processing device is obtained.
また、本発明によれば、前記制御回路は処理装置の命令
を読み込む命令レジスタと、該命令レジスタの命令を解
読する命令解読部とを含むデータ処理装置が得られる。Further, according to the present invention, there is obtained a data processing device in which the control circuit includes an instruction register that reads instructions of the processing device, and an instruction decoder that decodes the instructions in the instruction register.
また、本発明によれば、クロック発生器により処理装置
のクロックを発生すること、所望のウェイト時間を直接
指定可能なウェイト命令によりウェイトさせること、ウ
ェイト命令と解読されたときに、タイマにより前記ウェ
イト時間をセットしウェイト命令発行時から指定した所
望の時間が経過するまで信号を発生すること、前記クロ
ック発生器の出力を前記タイマの出力信号により制御す
ることとを含むデータ処理装置のデータ処理方法が得ら
れる。Further, according to the present invention, a clock for a processing device is generated by a clock generator, a wait instruction that can directly specify a desired wait time is used to wait, and when the wait instruction is decoded, a timer is used to generate a clock for the processing device. A data processing method for a data processing device, comprising: setting a time and generating a signal until a specified desired time elapses from when a wait command is issued; and controlling the output of the clock generator by the output signal of the timer. is obtained.
[実施例]
第1図は本発明の一実施例によるデータ処理装置を示す
。[Embodiment] FIG. 1 shows a data processing device according to an embodiment of the present invention.
第1図を参照して、A、B、C,Dは一般命令でウェイ
ト命令は5回発行されている。このウェイト命令自体の
命令実行時間を処理装置のクロック数で4クロツク数と
すると、この場合B命令とC命令の間に5x4−20ク
ロツクの時間が経過することになる。Referring to FIG. 1, A, B, C, and D are general instructions, and the wait instruction has been issued five times. Assuming that the instruction execution time of this wait instruction itself is 4 clocks in terms of the number of clocks of the processing device, in this case, a time of 5.times.4-20 clocks will elapse between the B instruction and the C instruction.
今、データ処理装置の1クロツクを20ナノ秒(ns)
とすると、20X20−400n sであり、B命令と
C命令との間に17〜20クロツク(320〜400n
s)が必要な場合、このような命令シーケンスとなる
。Now, one clock of the data processing device is 20 nanoseconds (ns).
Then, it is 20X20-400ns, and there are 17-20 clocks (320-400ns) between the B and C instructions.
If s) is required, the instruction sequence will be like this.
第2図は本発明の実施例である。FIG. 2 shows an embodiment of the invention.
データ処理装置は、制御手段として処理装置のクロック
を発生するクロック発生器8と、ウェイトさせる所望の
ウェイト時間を直接指定可能なウェイト命令をセットす
る命令セット手段と、タイマ5とを有している。タイマ
5はウェイト命令と解読されたときに、ウェイト時間を
セットしウェイト命令の発行時から指定した所望の時間
が経過するまで信号を発生する。The data processing device includes a clock generator 8 that generates a clock for the processing device as a control means, an instruction setting device that sets a wait command that can directly specify a desired wait time, and a timer 5. . When the timer 5 is decoded as a wait command, it sets a wait time and generates a signal until a specified desired time elapses from the time the wait command is issued.
まず、処理装置の命令は命令レジスタ1に読み出され命
令解読部2にて解読され各々の処理を行うが、命令レジ
スタ1にウェイト命令がセットされた場合、この命令の
オペランド部には所要するウェイト時間がセットされて
いる。First, the instruction of the processing device is read into the instruction register 1, decoded by the instruction decoding unit 2, and executed for each process. However, when a wait instruction is set in the instruction register 1, the operand part of this instruction contains the required information. Wait time is set.
したがって、命令解読部2でウェイト命令であることが
解読されると、信号3が駆動されウェイト時間4がタイ
マ5ヘセツトされる。このタイマ5は基準クロック6で
カウントダウンされセットされた値が「0」になるまで
実行される。また、このタイマ5の出力信号7はカウン
タ値がrOJの場合「1」に駆動され、「0」以外の値
がセットされている場合「1」が駆動される。Therefore, when the instruction decoder 2 decodes the instruction as a wait instruction, the signal 3 is driven and the wait time 4 is set in the timer 5. This timer 5 is counted down by the reference clock 6 and is executed until the set value reaches "0". Further, the output signal 7 of the timer 5 is driven to "1" when the counter value is rOJ, and is driven to "1" when a value other than "0" is set.
さらに、基準ブロックを例えば10nsと設定しである
と400nsウエイトさせる場合、このタイマには40
なる値が設定され、そのカウントダウン中(400ns
中)駆動信号7はrO」である。Furthermore, if the reference block is set to, for example, 10 ns and the reference block is set to wait 400 ns, this timer is set to 40 ns.
During the countdown (400ns
middle) The drive signal 7 is rO.
したがって、ウェイト命令によるウェイト時間セットに
より信号7は「0」となり、処理装置のクロック発生器
8からのクロック9はゲート回路10により処理装置内
へは伝搬されない。また、ウェイト時間が経過すると信
号7は「1」となりゲート回路10よりクロック発生器
8からのクロック9は他処理部へ送られる。Therefore, the wait time set by the wait command causes the signal 7 to become "0", and the clock 9 from the clock generator 8 of the processing device is not propagated into the processing device by the gate circuit 10. Furthermore, when the wait time has elapsed, the signal 7 becomes "1" and the gate circuit 10 sends the clock 9 from the clock generator 8 to another processing section.
[発明の効果]
以上実施例により説明したように、本発明のデータ処理
装置によると、ウェイト命令は1個でオペランド部にウ
ェイト時間を直接指定することにより命令数の削減、さ
らには処理装置のクロック周波数が変更になってもプロ
グラムの変更は不要となる効果がある。[Effects of the Invention] As described above in the embodiments, according to the data processing device of the present invention, the number of instructions can be reduced by directly specifying the wait time in the operand section using one wait instruction, and furthermore, the processing device can be This has the effect that even if the clock frequency changes, there is no need to change the program.
以下憩臼Below diverticulum
第1図は本発明の一実施例を示すデータ処理装置におけ
る命令シーケンス図、第2図は本発明の一実施例を示す
データ処理装置における命令フォーマット及びブロック
図、第3図は従来のデータ処理装置における命令シーケ
ンス図である。
1:命令レジスタ、2;命令解読部、5;タイマ、6:
基準クロック、8;クロック発生器、10;ゲート回路
。FIG. 1 is an instruction sequence diagram in a data processing device showing an embodiment of the present invention, FIG. 2 is an instruction format and block diagram in a data processing device showing an embodiment of the present invention, and FIG. 3 is a conventional data processing diagram. FIG. 3 is an instruction sequence diagram in the device. 1: Instruction register, 2: Instruction decoder, 5: Timer, 6:
Reference clock, 8; clock generator, 10; gate circuit.
Claims (1)
ウェイトさせる所望のウェイト時間を直接指定可能なウ
ェイト命令をセットする命令セット手段と、該ウェイト
命令と解読されたときに、前記ウェイト時間をセットし
前記ウェイト命令の発行時から指定した所望の時間が経
過するまで信号を発生するタイマと、前記クロック発生
器の出力を前記タイマの出力信号により制御する制御回
路とを含むことを特徴とするデータ処理装置。 2、前記制御回路は処理装置の命令を読み込む命令レジ
スタと、該命令レジスタの命令を解読する命令解読部と
を含む請求項1記載のデータ処理装置。 3、クロック発生器により処理装置のクロックを発生す
ること、所望のウェイト時間を直接指定可能なウェイト
命令によりウェイトさせること、ウェイト命令と解読さ
れたときに、タイマにより前記ウェイト時間をセットし
ウェイト命令発行時から指定した所望の時間が経過する
まで信号を発生すること、前記クロック発生器の出力を
前記タイマの出力信号により制御することとを含むデー
タ処理装置のデータ処理方法。[Claims] 1. A clock generator that generates a clock for a processing device;
an instruction setting means for setting a wait instruction that can directly specify a desired wait time to be waited; and an instruction set means for setting the wait time when the wait instruction is decoded, and a desired time specified from the time of issuance of the wait instruction. A data processing device comprising: a timer that generates a signal until a clock elapses; and a control circuit that controls the output of the clock generator using the output signal of the timer. 2. The data processing device according to claim 1, wherein the control circuit includes an instruction register that reads instructions of the processing device, and an instruction decoder that decodes the instructions in the instruction register. 3. Generating a clock for the processing device using a clock generator; Waiting using a wait instruction that can directly specify a desired wait time; and when the wait instruction is decoded, setting the wait time using a timer and executing the wait instruction. A data processing method for a data processing device, comprising: generating a signal until a specified desired time elapses from the time of issuance; and controlling the output of the clock generator by the output signal of the timer.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2337046A JPH04205425A (en) | 1990-11-30 | 1990-11-30 | Data processor and its data processing method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2337046A JPH04205425A (en) | 1990-11-30 | 1990-11-30 | Data processor and its data processing method |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH04205425A true JPH04205425A (en) | 1992-07-27 |
Family
ID=18304920
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2337046A Pending JPH04205425A (en) | 1990-11-30 | 1990-11-30 | Data processor and its data processing method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH04205425A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP0633522A1 (en) * | 1993-07-05 | 1995-01-11 | Nec Corporation | Pipelined data processing system capable of stalling and resuming a pipeline operation without using an interrupt processing |
-
1990
- 1990-11-30 JP JP2337046A patent/JPH04205425A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP0633522A1 (en) * | 1993-07-05 | 1995-01-11 | Nec Corporation | Pipelined data processing system capable of stalling and resuming a pipeline operation without using an interrupt processing |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JPH0721021A (en) | Information processor | |
JPS6232504B2 (en) | ||
JPH04205425A (en) | Data processor and its data processing method | |
JPH04241025A (en) | Data processor | |
JPS59739A (en) | Time assurance system in microprogram processor | |
JPS63245523A (en) | Microprogram processor | |
JPS5916029A (en) | Starting circuit of electronic device | |
JPS62174832A (en) | Information processor | |
JPH0756774A (en) | Watching timer | |
JPH047739A (en) | Controlling system for instruction executing time | |
JPS6070550A (en) | Disc device | |
JP2869205B2 (en) | Repeater circuit for data processing device | |
JPH04275603A (en) | Programmable controller | |
JP2675226B2 (en) | Timing adjustment method | |
JPH0559449B2 (en) | ||
JP2532072Y2 (en) | Pattern generator | |
JP2508979B2 (en) | Bus controller | |
JPS6230452B2 (en) | ||
JPH04349515A (en) | Data processor | |
JPS61136115A (en) | Basic clock generating circuit of microcomputer system | |
JPS6214235A (en) | Information processor | |
JPS60196849A (en) | Method for detecting runaway of microprocessor | |
JPH02183844A (en) | Control method for decoding signal | |
JPS60105048A (en) | Microprogram control system | |
JPH0452972B2 (en) |