JPH05324497A - Real-time data processor - Google Patents

Real-time data processor

Info

Publication number
JPH05324497A
JPH05324497A JP4154371A JP15437192A JPH05324497A JP H05324497 A JPH05324497 A JP H05324497A JP 4154371 A JP4154371 A JP 4154371A JP 15437192 A JP15437192 A JP 15437192A JP H05324497 A JPH05324497 A JP H05324497A
Authority
JP
Japan
Prior art keywords
processing
time
request
execution
margin
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
JP4154371A
Other languages
Japanese (ja)
Inventor
Eiji Yokoi
英二 横井
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.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Electric Industry 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 Oki Electric Industry Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP4154371A priority Critical patent/JPH05324497A/en
Publication of JPH05324497A publication Critical patent/JPH05324497A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To guarantee the completion of data processing until the limit of processing completion. CONSTITUTION:A processing content number 10 transmitted from a processing request device 8 through a processing content number input latch 11 is stored in a storage means 2. At that time, processing request generating time is stored as well. The processing content number 10 outputted from the storage means 2 corresponding to an output instruction 71 of an executing means 7 is sent to a control means 6. At the same time, the processing request generating time outputted form the storage means 2 is sent to a subtracting means 3. At the subtracting means 3, the elapse of time after the processing request generating time is calculated by comparing it with the current time of a timer means 1 and compared with the processing margin time of a processing margin time detecting means 4 by a comparing means 5. When the passed time exceeds the processing margin time as this compared result, the data processing of the executing means 7 is stopped by the control means 6.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、外部の処理と関係を持
ちながら、かつ外部の処理によって定められる時間要件
に従って処理を行なう実時間データ処理装置に関するも
のである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a real-time data processing apparatus which is related to an external process and performs a process according to a time requirement determined by the external process.

【0002】[0002]

【従来の技術】コンピュータ等のデータ処理装置は、所
定時間内にデータ処理を完了させなければならない場合
がある。例えば、通信関係のデータ処理装置において
は、パケット通信におけるパケットが所定時間内に処理
されなかった場合、そのパケットは廃棄されるか適当な
ものと置き換えられる。即ち、処理要求発生から所定時
間内に処理結果が得られなかった場合、その処理結果が
無効とされる。また、処理要求のデータが所定時間内に
処理不可能な場合、その処理は必ずしも実行しなくても
よいか又は他の手段で求めてもよいものとして扱われ
る。ここに、他の手段とは、例えば、所定時間内に確実
に処理し得る単純な手段である。
2. Description of the Related Art A data processing device such as a computer may have to complete data processing within a predetermined time. For example, in a communication-related data processing device, if a packet in packet communication is not processed within a predetermined time, the packet is discarded or replaced with an appropriate one. That is, when the processing result is not obtained within the predetermined time from the generation of the processing request, the processing result is invalidated. Further, if the data of the processing request cannot be processed within the predetermined time, the processing is not necessarily executed or is treated as being obtained by other means. Here, the other means is, for example, a simple means that can be surely processed within a predetermined time.

【0003】従来、この種の装置では、処理要求を受信
すると、FIFO(先入れ先出し)、リングバッファ
(巡回待ち行列)等の手段又は装置に処理要求を蓄積す
る。そして、待ち行列を作って保留し、処理装置が処理
実行可能になると、古い処理要求から順に処理を行なっ
ていた。図2は、従来の装置における処理手順を説明す
るタイムチャートである。この図は、(a)処理要求発
生、(b)処理実行、(c)処理完了期限を時間軸上に
示した例である。 (a)処理要求発生については、まず、処理Aの要求が
発生し(時点t1)、その0.25msec後に処理Bの要
求が発生し(時点t2)、以後、1msec間隔で処理C、
D、Eが発生したとする。
Conventionally, in this type of device, when a processing request is received, the processing request is stored in a means or a device such as a FIFO (first in first out) or a ring buffer (cyclic queue). Then, a queue is created and held, and when the processing device becomes ready for processing, processing is performed in order from the oldest processing request. FIG. 2 is a time chart explaining a processing procedure in the conventional apparatus. This figure is an example in which (a) process request generation, (b) process execution, and (c) process completion deadline are shown on the time axis. (A) Regarding the processing request generation, first, the processing A request is generated (time t1), the processing B request is generated 0.25 msec thereafter (time t2), and thereafter, the processing C is performed at 1 msec intervals.
It is assumed that D and E occur.

【0004】(b)処理実行については、各処理A、
B、C、D、Eは、それぞれ1msecを必要とするものと
する。そして、処理Aの要求発生時に処理Aの実行を開
始し(時点t1)、処理Aの実行終了後すぐに処理Bの
実行を開始する(時点t3)。以後、同様に処理C、
D、Eを連続して実行する(時点t6、t9、t1
2)。 (c)処理完了期限については、各処理A、B、C、
D、Eは、いずれも処理要求発生から1.25msec以内
に処理を完了しなければならないものとする(時点t
4、t5、t8、t11、t13)。
(B) Regarding processing execution, each processing A,
Each of B, C, D and E requires 1 msec. Then, when the request for the process A is generated, the execution of the process A is started (time point t1), and immediately after the completion of the execution of the process A, the execution of the process B is started (time point t3). After that, process C,
D and E are continuously executed (time points t6, t9, t1
2). (C) Regarding the processing completion deadline, each processing A, B, C,
Both D and E must complete the processing within 1.25 msec from the generation of the processing request (time t).
4, t5, t8, t11, t13).

【0005】[0005]

【発明が解決しようとする課題】しかしながら、上述し
た従来の技術には、次のような問題があった。即ち、図
2において、処理Aは、処理要求発生と同時に実行開始
され(時点t1)、1msec後に完了する(時点t3)。
従って、処理完了期限(時点t4)に間に合う。ところ
が、処理Bは、処理要求発生から0.75msec経過した
時に実行開始され(時点t3)、1msec後に完了する
(時点t6)。従って、処理完了期限(時点t5)に間
に合わない。この結果、処理Bは、無効とされる。その
後、処理Cも、処理要求発生から0.75msec経過した
時に実行開始され(時点t6)、1msec後に完了する
(時点t9)。従って、処理完了期限(時点t8)に間
に合わない。この結果、処理Cも、無効とされる。同様
に、処理D、Eも処理完了期限(時点t11、t13)
に間に合わず無効とされる。このため、処理A以外は、
すべて無効とされてしまい、実質的な処理能力が著しく
低下してしまうという問題があった。
However, the above-mentioned conventional techniques have the following problems. That is, in FIG. 2, the processing A starts to be executed at the same time as the processing request is generated (time t1), and is completed after 1 msec (time t3).
Therefore, the processing completion deadline (time t4) can be met. However, the processing B is started to be executed when 0.75 msec has elapsed from the generation of the processing request (time point t3) and is completed after 1 msec (time point t6). Therefore, the processing completion deadline (time t5) cannot be met. As a result, the process B is invalidated. After that, the processing C is also started when 0.75 msec has elapsed from the generation of the processing request (time t6), and is completed after 1 msec (time t9). Therefore, the processing completion deadline (time t8) cannot be met. As a result, the process C is also invalidated. Similarly, the processing D and E are also processing completion deadlines (time points t11 and t13).
It will be invalidated in time. Therefore, except for the process A,
There was a problem that all of them were invalidated and the actual processing capacity was significantly reduced.

【0006】本発明は、以上の点に着目してなされたも
ので、処理完了期限に間に合わないような処理は始めか
ら実行開始しないようにして無駄な処理を省くことによ
り、実質的な処理能力の向上を図った実時間データ処理
装置を提供することを目的とするものである。
The present invention has been made by paying attention to the above points. By eliminating unnecessary processing by not starting the processing which does not meet the processing completion deadline from the beginning, the substantial processing capacity is achieved. It is an object of the present invention to provide a real-time data processing device which is improved.

【0007】[0007]

【課題を解決するための手段】本発明の実時間データ処
理装置は、現在時刻を出力する計時手段と、要求された
処理及び要求時に前記計時手段から出力される要求発生
時刻を蓄積する蓄積手段と、前記計時手段の出力する現
在時刻から前記蓄積手段に蓄積された要求発生時刻を減
算して要求時からの経過時間を求める減算手段と、前記
蓄積手段に蓄積される処理についての処理開始までの余
裕時間を検出する処理余裕時間検出手段と、前記減算手
段の出力する経過時間と当該処理余裕時間検出手段によ
り検出された余裕時間とを比較する比較手段と、当該比
較手段による比較の結果、前記経過時間が前記余裕時間
を超えるか否かにより前記蓄積手段に蓄積された処理を
制御する制御手段と、当該制御手段の制御に応じて前記
経過時間が前記余裕時間以内のときに所定のデータ処理
を実行し、前記経過時間が前記余裕時間を超えるときに
前記所定のデータ処理を中止するか当該データ処理以外
の他のデータ処理を実行するかのいずれかを行なう実行
手段とを備えたことを特徴とするものである。
The real-time data processing apparatus of the present invention comprises a clock means for outputting the current time, and a storage means for storing the requested processing and the request generation time output from the clock means at the request time. And subtraction means for subtracting the request generation time accumulated in the accumulating means from the current time output by the time measuring means to obtain the elapsed time from the request time, and the start of the processing for accumulating in the accumulating means. Processing margin time detecting means for detecting the margin time, comparing means for comparing the elapsed time output by the subtracting means and the margin time detected by the processing margin time detecting means, and the result of the comparison by the comparing means, Control means for controlling the processing accumulated in the accumulating means depending on whether or not the elapsed time exceeds the margin time, and the elapsed time is controlled by the control means. A predetermined data processing is executed when the time is within the time, and either the predetermined data processing is stopped or the other data processing other than the data processing is executed when the elapsed time exceeds the margin time. It is characterized by comprising an executing means for performing.

【0008】[0008]

【作用】本発明の実時間データ処理装置においては、処
理要求装置からの処理要求の発生時に、処理内容番号
と、そのときの処理要求発生時刻とが蓄積手段に蓄積さ
れる。当該蓄積手段に蓄積された処理内容番号は、蓄積
された順に取り出され、実行手段により当該処理内容番
号に対応したデータが処理される。その際、減算手段に
より処理要求発生時刻からの経過時間が計算される。こ
の経過時間は、比較手段により、処理余裕時間検出手段
が検出した処理余裕時間と比較される。そして、この経
過時間が処理余裕時間を超過するときは、制御手段によ
り実行手段のデータ処理の実行が中止される。一方、こ
の経過時間が処理余裕時間以内のときは、実行手段のデ
ータ処理の実行が開始される。
In the real-time data processing apparatus of the present invention, when the processing request is issued from the processing requesting apparatus, the processing content number and the processing request generation time at that time are stored in the storage means. The processing content numbers accumulated in the accumulating means are taken out in the order of accumulation, and the data corresponding to the processing content numbers are processed by the executing means. At that time, the subtraction means calculates the elapsed time from the processing request generation time. This elapsed time is compared with the processing margin time detected by the processing margin time detecting means by the comparing means. When the elapsed time exceeds the processing margin time, the control means stops the execution of the data processing by the execution means. On the other hand, when the elapsed time is within the processing allowance time, the execution of the data processing by the executing means is started.

【0009】[0009]

【実施例】以下、本発明の実施例を図面を参照して詳細
に説明する。本発明では、実時間データ処理装置におけ
るデータ処理の制御に際し、「処理余裕時間」という概
念が導入される。まず、この概念について説明する。図
3は、処理余裕時間の概念の説明図である。本実施例で
は、処理要求内容によって処理時間と、処理要求発生か
ら処理完了期限までの時間が決まっているとする。この
場合における処理要求発生時刻から処理完了期限までの
間の時間から処理時間を引いた時間は、処理要求発生か
ら処理実行開始までの余裕時間となる。この余裕時間
を、「処理余裕時間」としてデータ処理の制御の基準に
用いることにする。
Embodiments of the present invention will now be described in detail with reference to the drawings. In the present invention, the concept of "processing margin time" is introduced in controlling the data processing in the real-time data processing device. First, this concept will be described. FIG. 3 is an explanatory diagram of the concept of the processing margin time. In this embodiment, it is assumed that the processing time and the time from the processing request generation to the processing completion deadline are determined depending on the processing request content. In this case, a time obtained by subtracting the processing time from the processing request generation time to the processing completion deadline is a margin time from the processing request generation to the processing execution start. This margin time will be used as a reference for data processing control as “processing margin time”.

【0010】例えば、図3において、処理要求発生時刻
T0から処理余裕時間以内の処理実行可能時刻T1で処
理実行可能になったとすると、その時点から処理時間を
消費しても処理完了期限T4に間に合う。一方、処理要
求発生時刻T0から処理余裕時間を超えた処理実行可能
時刻T2で処理実行可能になったとすると、その時点か
ら処理時間を消費したのでは処理完了期限T4には間に
合わない。より具体的には、図2において、処理A、
B、C、D、Eのすべてについて処理要求発生から処理
完了までの時間が1.25msecと決められている。ま
た、処理時間は、いずれの処理も1.0msecであること
がわかっている。従って、図2の場合の処理余裕時間
は、0.25msecである。
For example, in FIG. 3, if it becomes possible to execute the process at the process executable time T1 within the process allowance time from the process request generation time T0, the process completion deadline T4 will be in time even if the process time is consumed from that time. .. On the other hand, if it becomes possible to execute the process at the process executable time T2 that has exceeded the process allowance time from the process request generation time T0, the processing completion time T4 cannot be met if the processing time is consumed from that point. More specifically, in FIG. 2, processing A,
For all of B, C, D and E, the time from the generation of a processing request to the completion of processing is set to 1.25 msec. Further, it is known that the processing time is 1.0 msec in each processing. Therefore, the processing margin time in the case of FIG. 2 is 0.25 msec.

【0011】図2において、処理Aは、処理要求発生時
刻がt1であり、この処理要求発生時刻t1で処理実行
も可能となる。従って、その時点から処理時間1msecを
消費しても処理完了期限t4に間に合う。一方、処理B
は、処理要求発生時刻がt2であるが、その時点では処
理Aが実行中であるので、処理実行は可能とならない。
処理Bの処理余裕時間は0.25msecであるが、処理A
の実行は処理Bの処理要求発生時刻t2から0.75ms
ec経過しなければ完了しない。従って、処理Bは処理要
求発生時刻t2から0.25msecを超えた時点でそれ以
後に処理実行を開始しても処理完了期限t5には間に合
わないことが予測される。図4は、本発明の装置におけ
る処理手順を説明するタイムチャートである。この図に
おいて、時間軸上の各時点を示す符号t1、t2等は、
図2に対応する時点については同一符号を用いている。
In FIG. 2, the process request generation time is t1 and the process A can be executed at the process request generation time t1. Therefore, even if the processing time of 1 msec is consumed from that point, the processing completion deadline t4 can be met. On the other hand, process B
The processing request generation time is t2, but since the processing A is being executed at that time, the processing cannot be executed.
Although the processing margin time of the processing B is 0.25 msec, the processing A
Is executed for 0.75 ms from the processing request generation time t2 of processing B
It will not be completed unless ec has passed. Therefore, it is predicted that the processing B will not be in time for the processing completion deadline t5 even if the processing execution is started after 0.25 msec from the processing request generation time t2. FIG. 4 is a time chart explaining a processing procedure in the apparatus of the present invention. In this figure, the symbols t1, t2, etc. indicating the respective time points on the time axis are
The same reference numerals are used for the time points corresponding to FIG.

【0012】図4において、処理Aについては図2と同
様に実行するが、処理Bについてはその処理要求発生時
刻t2から0.25msec経過した時刻t15で処理しな
いことを決定する。これにより、処理Aの実行が完了し
た時点t3には実行中の処理は存在しなくなる。従っ
て、処理Cの処理要求発生時刻t4において、処理Cは
実行可能となる。即ち、処理Cは処理余裕時間0.25
msec以内に実行可能となり、実行開始される。そして、
1msecの処理時間を経過した後、処理が完了する。この
結果、処理Dの処理要求発生時刻t7において、処理D
は実行可能となる。即ち、処理Dは処理余裕時間0.2
5msec以内に実行可能となり、実行開始される。そし
て、1msecの処理時間を経過した後の時点t10で、処
理が完了する。
In FIG. 4, process A is executed in the same manner as in FIG. 2, but process B is determined not to be processed at time t15 when 0.25 msec has elapsed from the process request generation time t2. As a result, there is no process being executed at the time t3 when the process A is completed. Therefore, the process C can be executed at the process request generation time t4 of the process C. That is, the processing C has a processing margin time of 0.25.
Execution becomes possible within msec and execution starts. And
The processing is completed after the processing time of 1 msec has elapsed. As a result, at the processing request generation time t7 of the processing D, the processing D
Becomes feasible. That is, the processing D has a processing margin time of 0.2.
Execution becomes possible within 5 msec, and execution is started. Then, the processing is completed at time t10 after the processing time of 1 msec has elapsed.

【0013】従って、処理Eの処理要求発生時刻t10
において、処理Eは実行可能となる。即ち、処理Eも処
理余裕時間0.25msec以内に実行可能となり、実行開
始される。そして、1msecの処理時間を経過した後の時
点t16で、処理が完了する。このようにして、処理
A、C、D、Eは、いずれも処理完了期限内に完了す
る。
Therefore, the processing request generation time t10 of the processing E
In, the process E becomes executable. That is, the processing E can also be executed within the processing margin time of 0.25 msec, and the execution is started. Then, at time t16 after the processing time of 1 msec has elapsed, the processing is completed. In this way, the processes A, C, D, and E are all completed within the process completion deadline.

【0014】図1は、本発明の実時間データ処理装置の
一実施例のブロック図である。図示の装置は、計時手段
1と、蓄積手段2と、減算手段3と、処理余裕時間検出
手段4と、比較手段5と、制御手段6と、実行手段7と
を備えている。計時手段1は、クロック信号を分周し、
所定時間間隔で現在時刻20を出力する。この現在時刻
20は、蓄積手段2と減算手段3とに入力される。蓄積
手段2は、RAM(ランダム・アクセス・メモリ)から
成り、処理内容番号入力ラッチ11にラッチされている
処理内容番号10を入力し、蓄積する。この処理内容番
号10は、処理A、B、C、D、E等に対応したもので
ある。例えば、番号“1”、“2”、“3”、“4”、
“5”を各処理A、B、C、D、Eに対応させる。実行
手段7は、処理内容番号10を蓄積順に取り出してその
処理内容番号10に対応した処理を実行する。このよう
にして、実行手段7によるデータの実行を処理内容番号
10により制御する。尚、このような処理内容番号10
によらなくても、実行するデータ自体を蓄積手段2に蓄
積するようにしてもよいことはもちろんである。
FIG. 1 is a block diagram of an embodiment of the real-time data processing apparatus of the present invention. The illustrated apparatus includes a clocking means 1, an accumulating means 2, a subtracting means 3, a processing margin time detecting means 4, a comparing means 5, a controlling means 6, and an executing means 7. The clock means 1 divides the clock signal,
The current time 20 is output at a predetermined time interval. This current time 20 is input to the storage means 2 and the subtraction means 3. The storage unit 2 is composed of a RAM (random access memory), and inputs the processing content number 10 latched in the processing content number input latch 11 and stores it. The processing content number 10 corresponds to the processing A, B, C, D, E and the like. For example, the numbers “1”, “2”, “3”, “4”,
“5” is associated with each process A, B, C, D, E. The executing means 7 extracts the processing content number 10 in the order of accumulation and executes the processing corresponding to the processing content number 10. In this way, the execution of data by the execution means 7 is controlled by the processing content number 10. In addition, such a processing content number 10
Needless to say, the data to be executed may be stored in the storage means 2 as a matter of course.

【0015】また、蓄積手段2は、この処理内容番号1
0の入力時の現在時刻20を当該処理内容番号10に対
応して蓄積する。例えば、図4の例では、処理A、B、
C、D、Eに対応して時刻t1、t2、t4、t7、t
10をそれぞれ蓄積する。そして、蓄積手段2は、処理
内容番号10を処理余裕時間検出手段4及び制御手段6
に出力する際に減算手段3に出力する。減算手段3は、
減算回路等の演算回路から成り、実行手段7から蓄積手
段2に出力指示71が出力されたとき、計時手段20か
ら入力される現在時刻20と、蓄積手段2から入力され
る要求発生時刻21との差を計算する。これにより、処
理要求が発生してからの経過時間30を求める。
Further, the accumulating means 2 uses the processing content number 1
The current time 20 at the time of inputting 0 is accumulated corresponding to the processing content number 10. For example, in the example of FIG. 4, the processes A, B,
Times t1, t2, t4, t7, t corresponding to C, D, E
10 is accumulated respectively. Then, the storage means 2 stores the processing content number 10 in the processing margin time detection means 4 and the control means 6.
To the subtraction means 3 when outputting to. The subtraction means 3
When the output means 71 is output from the execution means 7 to the storage means 2, the present time 20 input from the timekeeping means 20 and the request generation time 21 input from the storage means 2 are formed. Calculate the difference between. As a result, the elapsed time 30 after the processing request is generated is obtained.

【0016】処理余裕時間検出手段4は、RAM又はR
OM(リード・オンリ・メモリ)から成り、処理A、
B、C、D、Eに対応して図3の処理余裕時間を格納し
ている。図4の例では、処理余裕時間は、いずれも1ms
ecである。比較手段5は、比較回路又は減算回路等の演
算回路から成り、減算手段3から入力される経過時間3
0と、処理余裕時間検出手段4から入力される処理余裕
時間40とを比較する。これにより、経過時間30が処
理余裕時間40を超えているか否かを判別する。この比
較結果50は、制御手段6に出力される。制御手段6
は、比較手段5から入力される比較結果50に応じて蓄
積手段2から入力された処理内容番号10を実行手段7
に出力するか、又は蓄積手段2への出力指示71を出力
する。即ち、制御手段6は、処理要求発生からの経過時
間が処理余裕時間を超えているときは、次の処理内容番
号の出力指示71を蓄積手段2に出力する。これによ
り、蓄積手段2から出力された処理内容番号10は無視
され、減算手段3、処理余裕時間検出手段4及び比較手
段5は、次の処理に関する実行制御を開始する。一方、
処理要求発生からの経過時間が処理余裕時間内のとき
は、蓄積手段2から出力された処理内容番号をそのまま
実行手段7に出力する。
The processing margin time detecting means 4 is a RAM or an R.
Process A consists of OM (Read Only Memory)
The processing margin time of FIG. 3 is stored corresponding to B, C, D, and E. In the example of FIG. 4, the processing allowance time is 1 ms in each case.
ec. The comparison means 5 comprises an arithmetic circuit such as a comparison circuit or a subtraction circuit, and the elapsed time 3 input from the subtraction means 3
0 is compared with the processing margin time 40 input from the processing margin time detection means 4. As a result, it is determined whether the elapsed time 30 exceeds the processing margin time 40. The comparison result 50 is output to the control means 6. Control means 6
Executes the processing content number 10 input from the storage means 2 in accordance with the comparison result 50 input from the comparison means 5.
Or the output instruction 71 to the storage means 2 is output. That is, the control means 6 outputs the output instruction 71 of the next processing content number to the storage means 2 when the elapsed time from the generation of the processing request exceeds the processing margin time. As a result, the processing content number 10 output from the accumulating means 2 is ignored, and the subtracting means 3, the processing margin time detecting means 4 and the comparing means 5 start execution control for the next processing. on the other hand,
When the elapsed time from the generation of the processing request is within the processing margin time, the processing content number output from the accumulating means 2 is directly output to the executing means 7.

【0017】実行手段7は、制御手段6から入力される
処理内容番号10に対応したデータを、処理要求装置8
からバス9を介して取り出して実行する。この場合のデ
ータは、実行手段7の実行により常に処理完了期限に間
に合うものとされる。尚、これに限らず、処理要求発生
からの経過時間が処理余裕時間を超える場合に制御手段
6から実行手段7にその旨及びその処理内容番号が送ら
れるようにし、実行手段7が実行時間の短い別の処理を
実行するようにしても差し支えない。次に、上述した装
置の動作を説明する。図5は、図1の装置の動作を説明
するタイムチャートである。処理要求装置8は、処理す
べきデータが発生すると、そのデータに対応した処理内
容番号10を出力する。この処理内容番号10は、処理
内容番号入力ラッチにラッチされる。
The execution means 7 receives the data corresponding to the processing content number 10 input from the control means 6 and sends the data to the processing request device 8.
To be executed via the bus 9. The data in this case is always in time for the processing completion deadline by the execution of the execution means 7. Not limited to this, when the elapsed time from the generation of the processing request exceeds the processing margin time, the control means 6 sends the fact and the processing content number to the execution means 7, and the execution means 7 determines the execution time. There is no problem even if another short process is executed. Next, the operation of the above-mentioned device will be described. FIG. 5 is a time chart explaining the operation of the apparatus of FIG. When the data to be processed occurs, the processing requesting device 8 outputs the processing content number 10 corresponding to the data. The processing content number 10 is latched in the processing content number input latch.

【0018】実行手段7から所定時間間隔で出力される
入力指示70が入力されると、蓄積手段2に処理内容番
号入力ラッチ11内の処理内容番号10が蓄積される。
そして、このときの現在時刻、即ち処理要求発生時刻が
蓄積される。これにより、処理Aの処理内容番号が蓄積
され、これらに対応した処理要求発生時刻t1が蓄積さ
れる。
When the input instruction 70 output at a predetermined time interval is input from the execution means 7, the processing content number 10 in the processing content number input latch 11 is stored in the storage means 2.
Then, the current time at this time, that is, the processing request generation time is accumulated. As a result, the process content numbers of the process A are accumulated, and the process request occurrence times t1 corresponding to these are accumulated.

【0019】実行手段7から出力指示71が入力される
と、蓄積手段2から処理Aの処理内容番号10及び処理
要求発生時刻t1が出力される。減算手段3は、現在時
刻から処理要求発生時刻t1を減算する。処理Aについ
ては処理要求発生と同時に実行手段7が実行可能となる
ので、処理要求発生時刻t1において出力指示71が出
力される。また、比較手段5は、減算手段3の結果と、
処理Aの処理余裕時間とを比較する。ここに、比較手段
5の動作タイミングは、図5に示すように、減算手段3
及び処理余裕時間検出手段4の確定する時点に設定され
る。この場合、減算手段3の結果である経過時間は、ほ
ぼ0msecであるので、制御手段6は、処理Aの処理内容
番号を実行手段7に送る。これにより、実行手段7は、
処理Aのデータを処理要求装置8からバス9を介して取
り出し、実行する。この結果、処理Aは、所定時間内に
実行される。実行手段7が処理Aを実行している途中で
処理Bの処理要求が発生する。この処理Bの処理内容番
号及び処理要求発生時刻t2は処理Aの場合と同様に蓄
積手段2に蓄積される。実行手段7は、処理Aの実行を
完了すると、次の出力指示71を出力する。
When the output instruction 71 is input from the execution means 7, the processing content number 10 of the processing A and the processing request generation time t1 are output from the storage means 2. The subtraction means 3 subtracts the processing request generation time t1 from the current time. As for the process A, the execution means 7 can be executed at the same time when the process request is generated, and therefore the output instruction 71 is output at the process request generation time t1. Further, the comparison means 5 compares the result of the subtraction means 3 with
The processing margin time of the processing A is compared. Here, the operation timing of the comparison means 5 is as shown in FIG.
And the processing margin time detection means 4 is set at the time of determination. In this case, since the elapsed time as a result of the subtraction means 3 is almost 0 msec, the control means 6 sends the processing content number of the processing A to the execution means 7. As a result, the executing means 7
The data of the process A is taken out from the process requesting device 8 via the bus 9 and executed. As a result, the process A is executed within the predetermined time. A processing request for processing B occurs while the execution means 7 is executing processing A. The processing content number of the processing B and the processing request generation time t2 are stored in the storage means 2 as in the case of the processing A. When the execution means 7 completes the execution of the process A, the execution means 7 outputs the next output instruction 71.

【0020】実行手段7から次の出力指示71が入力さ
れると、蓄積手段2から処理Bの処理内容番号10及び
処理要求発生時刻t2が出力される。減算手段3は、現
在時刻から処理要求発生時刻t2を減算する。処理Bに
ついては処理Aの実行完了時に実行手段7が実行可能と
なるので、処理要求発生時刻t2から相当の時間が経過
した後に出力指示71が出力される。また、比較手段5
は、減算手段3の結果と、処理Aの処理余裕時間とを比
較する。この場合、減算手段3の結果である経過時間
は、ほぼ1msecであり、処理余裕時間0.25msecを超
える。従って、制御手段6は、次の出力指示71を実行
手段7に送る。これにより、実行手段7は、処理Bを無
視する。
When the next output instruction 71 is input from the execution means 7, the processing content number 10 of the processing B and the processing request generation time t2 are output from the storage means 2. The subtraction unit 3 subtracts the processing request generation time t2 from the current time. As for the process B, the execution means 7 can be executed at the completion of the execution of the process A. Therefore, the output instruction 71 is output after a considerable time has elapsed from the process request generation time t2. Also, the comparison means 5
Compares the result of the subtraction means 3 with the processing margin time of the processing A. In this case, the elapsed time resulting from the subtraction means 3 is approximately 1 msec, which exceeds the processing margin time of 0.25 msec. Therefore, the control means 6 sends the next output instruction 71 to the execution means 7. As a result, the execution unit 7 ignores the process B.

【0021】次の出力指示71が入力されると、蓄積手
段2は空であるので、何も出力されない。そして、約
0.25msec経過後、処理Cの処理要求が発生する。こ
の処理Cの処理内容番号及び処理要求発生時刻t4は、
処理A、Bの場合と同様に蓄積手段2に蓄積される。こ
のとき、実行手段7は、実行可能であるので、所定時間
毎に出力信号71を出力しており、この出力信号71の
入力により、蓄積手段2から処理Cの処理内容番号10
及び処理要求発生時刻t4が出力される。減算手段3
は、現在時刻から処理要求発生時刻t4を減算する。処
理Cについては処理要求発生より前に実行手段7が実行
可能となっているので、処理要求発生時刻t4において
出力指示71が出力される。また、比較手段5は、減算
手段3の結果と、処理Cの処理余裕時間とを比較する。
この場合、減算手段3の結果である経過時間は、ほぼ0
msecであるので、制御手段6は、処理Cの処理内容番号
を実行手段7に送る。これにより、実行手段7は、処理
Cのデータを処理要求装置8からバス9を介して取り出
し、実行する。この結果、処理Cは、所定時間内に実行
される。実行手段7が処理Cの実行をほぼ完了する頃、
処理Dの処理要求が発生する。この処理Dの処理内容番
号及び処理要求発生時刻t7は、処理A、B、Cの場合
と同様に蓄積手段2に蓄積される。実行手段7は、処理
Cの実行を完了すると、次の出力指示71を出力する。
When the next output instruction 71 is input, since the storage means 2 is empty, nothing is output. Then, after about 0.25 msec has elapsed, a processing request for processing C is generated. The processing content number of this processing C and the processing request occurrence time t4 are
It is stored in the storage means 2 as in the case of the processes A and B. At this time, since the execution means 7 is executable, it outputs the output signal 71 at every predetermined time. By inputting this output signal 71, the processing content number 10 of the processing C from the storage means 2 is input.
And the processing request occurrence time t4 are output. Subtraction means 3
Subtracts the processing request generation time t4 from the current time. Since the execution means 7 can execute the process C before the process request is generated, the output instruction 71 is output at the process request generation time t4. Further, the comparison means 5 compares the result of the subtraction means 3 with the processing margin time of the processing C.
In this case, the elapsed time resulting from the subtraction means 3 is almost 0.
Since it is msec, the control means 6 sends the processing content number of the processing C to the execution means 7. As a result, the execution means 7 extracts the data of the process C from the process requesting device 8 via the bus 9 and executes it. As a result, the process C is executed within the predetermined time. When the execution means 7 almost completes the execution of the process C,
A processing request for processing D occurs. The processing content number of the processing D and the processing request occurrence time t7 are accumulated in the accumulating unit 2 as in the case of the processing A, B, and C. When the execution means 7 completes the execution of the process C, it outputs the next output instruction 71.

【0022】次の出力指示71が入力されると、蓄積手
段2から処理Dの処理内容番号10及び処理要求発生時
刻t7が出力される。減算手段3は、現在時刻から処理
要求発生時刻t7を減算する。処理Dについては、処理
要求発生とほぼ同時に実行手段7が実行可能となってい
るので、処理要求発生時刻t7において出力指示71が
出力される。また、比較手段5は、減算手段3の結果
と、処理Dの処理余裕時間とを比較する。この場合、減
算手段3の結果である経過時間は、ほぼ0msecであるの
で、制御手段6は、処理Dの処理内容番号を実行手段7
に送る。これにより、実行手段7は、処理Dのデータを
処理要求装置8からバス9を介して取り出し、実行す
る。この結果、処理Dは、所定時間内に実行される。実
行手段7が処理Dの実行をほぼ完了する頃、処理Eの処
理要求が発生する。この処理Eの処理内容番号及び処理
要求発生時刻t10は、処理A、B、C、Dの場合と同
様に蓄積手段2に蓄積される。実行手段7は、処理Dの
実行を完了すると、次の出力指示71を出力する。次の
出力信号71により、処理Dの場合と全く同様に処理E
が実行される。
When the next output instruction 71 is input, the processing content number 10 of the processing D and the processing request generation time t7 are output from the storage means 2. The subtraction means 3 subtracts the processing request generation time t7 from the current time. As for the process D, the execution means 7 can execute the process request at substantially the same time as the process request is generated, and therefore the output instruction 71 is output at the process request generation time t7. Further, the comparison means 5 compares the result of the subtraction means 3 with the processing margin time of the processing D. In this case, since the elapsed time as a result of the subtraction means 3 is almost 0 msec, the control means 6 determines the processing content number of the processing D by the execution means 7.
Send to. As a result, the execution means 7 extracts the data of the process D from the process requesting device 8 via the bus 9 and executes it. As a result, the process D is executed within the predetermined time. When the execution means 7 almost completes the execution of the processing D, a processing request for the processing E is generated. The processing content number of the processing E and the processing request generation time t10 are stored in the storage unit 2 as in the case of the processing A, B, C, and D. When the execution means 7 completes the execution of the process D, the execution means 7 outputs the next output instruction 71. With the next output signal 71, processing E is performed in exactly the same manner as processing D.
Is executed.

【0023】図6は、本発明の実時間データ処理装置を
ディジタルプロセッサで実現する場合の制御プログラム
の処理手順を説明するフローチャートである。図示の制
御プログラムを実行するディジタルプロセッサととも
に、図1の計時手段1、蓄積手段2、処理余裕時間検出
手段4を用意する。一方、図1の減算手段3、比較手段
5、制御手段6の機能は、図6のプログラムで実現され
る。図6のプログラムは、計時手段1が所定周期で発生
する信号によるタイマ割込みにより所定時間間隔で実行
される。まず、処理要求装置から処理要求があったか否
かを判別する(ステップS1)。処理要求があったとき
は、蓄積手段に、処理あるいは処理内容番号、及び処理
要求発生時刻を蓄積する(ステップS2)。
FIG. 6 is a flowchart for explaining the processing procedure of the control program when the real-time data processing device of the present invention is realized by a digital processor. A timer means 1, an accumulating means 2, and a processing margin time detecting means 4 shown in FIG. 1 are prepared together with a digital processor for executing the control program shown in the figure. On the other hand, the functions of the subtraction unit 3, the comparison unit 5, and the control unit 6 of FIG. 1 are realized by the program of FIG. The program of FIG. 6 is executed at a predetermined time interval by a timer interrupt by a signal generated by the time measuring means 1 at a predetermined cycle. First, it is determined whether or not there is a processing request from the processing request device (step S1). When there is a processing request, the processing or processing content number and the processing request generation time are stored in the storage means (step S2).

【0024】次に、処理手段が実行可能か否かを判別す
る(ステップS3)。実行可能でなければ、処理要求の
蓄積のみを行なう(ステップS1、S2)。処理手段が
実行可能であれば、要求発生からの経過時間を算出する
(ステップS4)。そして、経過時間が処理余裕時間を
超えているか否かを判別する(ステップS5)。経過時
間が処理余裕時間を超えているときは、蓄積手段から取
り出した処理の実行を中止する(ステップS6)。経過
時間が処理余裕時間以内のときは、蓄積手段から取り出
した処理の実行を開始する(ステップS7)。
Next, it is determined whether or not the processing means can be executed (step S3). If it is not executable, only processing requests are accumulated (steps S1 and S2). If the processing means can be executed, the elapsed time from the request generation is calculated (step S4). Then, it is determined whether or not the elapsed time exceeds the processing margin time (step S5). When the elapsed time exceeds the processing margin time, the execution of the processing extracted from the accumulating unit is stopped (step S6). When the elapsed time is within the processing allowance time, the execution of the processing extracted from the storage means is started (step S7).

【0025】[0025]

【発明の効果】以上説明したように、本発明の実時間デ
ータ処理装置によれば、処理余裕時間の概念を導入し、
処理要求発生からの経過時間が処理余裕時間を超えると
きはデータ処理を中止するか又は別の処理を行なうよう
にしたので、処理完了期限に間に合わない処理は実行し
ないようにすることができ、無駄な処理の実行を省くこ
とができる。この結果、次の処理要求のデータの実行開
始時刻を早めることができ、処理完了期限に間に合わせ
るようにすることができる。従って、有効に処理される
データについての処理能力を向上させることができる。
As described above, according to the real-time data processing apparatus of the present invention, the concept of processing margin time is introduced,
When the elapsed time from the generation of the processing request exceeds the processing margin time, the data processing is stopped or another processing is performed, so that it is possible to avoid executing the processing that is not in time for the processing completion deadline. It is possible to omit the execution of various processes. As a result, the execution start time of the data of the next processing request can be advanced, and the processing completion deadline can be made in time. Therefore, it is possible to improve the processing capacity for data that is effectively processed.

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

【図1】本発明の実時間データ処理装置の一実施例のブ
ロック図である。
FIG. 1 is a block diagram of an embodiment of a real-time data processing device of the present invention.

【図2】従来の装置における処理手順を説明するタイム
チャートである。
FIG. 2 is a time chart illustrating a processing procedure in a conventional device.

【図3】処理余裕時間の概念の説明図である。FIG. 3 is an explanatory diagram of a concept of processing margin time.

【図4】本発明の装置における処理手順を説明するタイ
ムチャートである。
FIG. 4 is a time chart explaining a processing procedure in the apparatus of the present invention.

【図5】図1の装置の動作を説明するタイムチャートで
ある。
5 is a time chart explaining the operation of the apparatus of FIG. 1. FIG.

【図6】本発明の実時間データ処理装置をディジタルプ
ロセッサで実現する場合の制御プログラムの処理手順を
説明するフローチャートである。
FIG. 6 is a flowchart illustrating a processing procedure of a control program when the real-time data processing device of the present invention is realized by a digital processor.

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

1 計時手段 2 蓄積手段 3 減算手段 4 処理余裕時間検出手段 5 比較手段 6 制御手段 7 実行手段 8 処理要求装置 1 Timekeeping Means 2 Accumulating Means 3 Subtracting Means 4 Processing Allowance Time Detecting Means 5 Comparing Means 6 Control Means 7 Executing Means 8 Processing Requesting Devices

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 現在時刻を出力する計時手段と、 要求された処理及び要求時に前記計時手段から出力され
る要求発生時刻を蓄積する蓄積手段と、 前記計時手段の出力する現在時刻から前記蓄積手段に蓄
積された要求発生時刻を減算して要求時からの経過時間
を求める減算手段と、 前記蓄積手段に蓄積される処理についての処理開始まで
の余裕時間を検出する処理余裕時間検出手段と、 前記減算手段の出力する経過時間と当該処理余裕時間検
出手段により検出された余裕時間とを比較する比較手段
と、 当該比較手段による比較の結果、前記経過時間が前記余
裕時間を超えるか否かにより前記蓄積手段に蓄積された
処理を制御する制御手段と、 当該制御手段の制御に応じて前記経過時間が前記余裕時
間以内のときに所定のデータ処理を実行し、前記経過時
間が前記余裕時間を超えるときに前記所定のデータ処理
を中止するか当該データ処理以外の他のデータ処理を実
行するかのいずれかを行なう実行手段とを備えたことを
特徴とする実時間データ処理装置。
1. A clocking means for outputting a current time, a storage means for storing a requested process and a request generation time output from the clocking means at the time of request, and a storage means based on a current time output by the clocking means. Subtraction means for obtaining the elapsed time from the request time by subtracting the request generation time accumulated in, a processing margin time detecting means for detecting a margin time until the start of the processing accumulated in the accumulating means, The comparison means for comparing the elapsed time output by the subtraction means with the allowance time detected by the processing allowance time detecting means, and the result of the comparison by the comparing means, depending on whether or not the elapsed time exceeds the allowance time, Controlling means for controlling the processing accumulated in the accumulating means, and executing predetermined data processing when the elapsed time is within the margin time according to the control of the controlling means, When the elapsed time exceeds the margin time, the predetermined data processing is stopped, or an execution unit for executing other data processing other than the data processing is provided. Time data processing device.
JP4154371A 1992-05-21 1992-05-21 Real-time data processor Pending JPH05324497A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4154371A JPH05324497A (en) 1992-05-21 1992-05-21 Real-time data processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4154371A JPH05324497A (en) 1992-05-21 1992-05-21 Real-time data processor

Publications (1)

Publication Number Publication Date
JPH05324497A true JPH05324497A (en) 1993-12-07

Family

ID=15582700

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4154371A Pending JPH05324497A (en) 1992-05-21 1992-05-21 Real-time data processor

Country Status (1)

Country Link
JP (1) JPH05324497A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09185532A (en) * 1995-12-28 1997-07-15 Fujitsu Ltd Method for estimating and monitoring software performance
JP2003067262A (en) * 2001-08-23 2003-03-07 Mitsubishi Electric Corp Data processing system
US6697775B2 (en) 1998-06-15 2004-02-24 Matsushita Electric Industrial Co., Ltd. Audio coding method, audio coding apparatus, and data storage medium
WO2016181665A1 (en) * 2015-05-14 2016-11-17 住友電気工業株式会社 Station-side device, method for registering home-side device, and optical communication system

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09185532A (en) * 1995-12-28 1997-07-15 Fujitsu Ltd Method for estimating and monitoring software performance
US6697775B2 (en) 1998-06-15 2004-02-24 Matsushita Electric Industrial Co., Ltd. Audio coding method, audio coding apparatus, and data storage medium
JP2003067262A (en) * 2001-08-23 2003-03-07 Mitsubishi Electric Corp Data processing system
WO2016181665A1 (en) * 2015-05-14 2016-11-17 住友電気工業株式会社 Station-side device, method for registering home-side device, and optical communication system
JP2016219878A (en) * 2015-05-14 2016-12-22 住友電気工業株式会社 Station side device, method for registering customer side device, and optical communication system

Similar Documents

Publication Publication Date Title
US5708814A (en) Method and apparatus for reducing the rate of interrupts by generating a single interrupt for a group of events
JPH0268632A (en) Interruption controller
JPH0454255B2 (en)
KR0147509B1 (en) Timeout process circuit and receiver including this timeout process circuit
US5659760A (en) Microprocessor having interrupt vector generation unit and vector fetching command unit to initiate interrupt processing prior to returning interrupt acknowledge information
JPH05324497A (en) Real-time data processor
JP2653412B2 (en) How to set breakpoints
JPH0573296A (en) Microcomputer
JPH03223949A (en) Bus mediation circuit
JP2557785Y2 (en) Single chip microcomputer
JPH04299742A (en) Interruption controller
JPH0683652A (en) Microcomputer system
JPH08249177A (en) Digital controller
JPH04213727A (en) Information processor
JPS6285349A (en) Timer control system
JPS59200356A (en) Program tracing system
JPS6114548B2 (en)
JPH04311225A (en) System for executing microprocessor instruction
JPH04195638A (en) Semiconductor integrated circuit
JPH0120455B2 (en)
JPS6362773B2 (en)
JPH09113556A (en) Pulse measuring circuit and measuring method thereof
JPH01133174A (en) Program synchronizing circuit
JPS58205258A (en) Data processor
JPS59114644A (en) Program start controlling system