JPH02143364A - Processing priority control method and processor system - Google Patents
Processing priority control method and processor systemInfo
- Publication number
- JPH02143364A JPH02143364A JP29755288A JP29755288A JPH02143364A JP H02143364 A JPH02143364 A JP H02143364A JP 29755288 A JP29755288 A JP 29755288A JP 29755288 A JP29755288 A JP 29755288A JP H02143364 A JPH02143364 A JP H02143364A
- Authority
- JP
- Japan
- Prior art keywords
- processor
- priority
- processing
- data
- control
- 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
Landscapes
- Multi Processors (AREA)
Abstract
(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.
Description
【発明の詳細な説明】
[産業上の利用分野コ
本発明は、コンピュータシステムにおけるプロセッサの
制御方法に係り、特に、入力データ量と出力データ量に
大きなひらきがある場合にプロセッサの処理速度を向上
させるのに好適な処理の優先制御方法およびプロセッサ
システムに関する。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a method of controlling a processor in a computer system, and particularly to improving the processing speed of a processor when there is a large difference between the amount of input data and the amount of output data. The present invention relates to a processing priority control method and processor system suitable for processing.
[従来の技術]
一般に、イメージデータの符号化処理および復号化処理
を行うイメージプロセッサのように特定のデータ処理を
行う処理プロセッサにおいては、入力バッファを介して
受けた入力データに対して当該特定の処理を施して生成
した出力データを出カバソファを介して出力する。この
ようなプロセッサは、処理の進行に伴い、入力バッファ
と出カバソファの状態に応じて、制御プロセッサ等の制
御側にリード要求またはライト要求を発する。制御側は
この要求に盲目的に応答してリードあるいはライ1−の
指令を出力する。データリード要求とデータライト要求
とが同時に出力された場合には、−律に、一方の要求(
例えば、リード要求)を礎先する方式どなっている。[Prior Art] Generally, in a processing processor that performs specific data processing such as an image processor that performs encoding processing and decoding processing of image data, input data received via an input buffer is The output data generated through processing is output via the output sofa. As processing progresses, such a processor issues a read request or a write request to a control side such as a control processor, depending on the states of the input buffer and output buffer. The control side blindly responds to this request and outputs a read or write 1- command. If a data read request and a data write request are output at the same time, one of the requests (
For example, the method is based on a lead request).
なお、この種の方式として関連するものには、特開昭5
8−88971号公報、同58−71768号公報等に
開示されたものがある。In addition, related methods of this type include Japanese Patent Application Laid-open No. 5
There are those disclosed in JP 8-88971, JP 58-71768, and the like.
[(a明が解決しようとする課題]
上記処理プロセッサにおいては、人カバソファおよび出
力バッファの状態により、内部のデータ処理ブロックの
動作を中断あるいは再開する。例えば、入力バッファが
空になったときは、処理すべき入力データがないのでデ
ータ処理が中断され、また、出力バッファが満杯になっ
たときは、後続の出力データにより出カバソファ内の出
力データを破壊しないために、データ処理が中断され、
いずれも待ち状態となる。待ち状態となったデータ処理
は、入力バッファに入力データを読み込んだ(リード)
後、あるいは出力バッファから出力データを出力した(
ライト)後、再開される6ところで、特定のプロセッサ
では、入力データと出力データの量が著しく異なり、し
かも、両データ量の大小関係は、処理内容によって変わ
る。[(Problem that A Ming is trying to solve) In the above processing processor, the operation of the internal data processing block is interrupted or resumed depending on the state of the human cover sofa and the output buffer.For example, when the input buffer becomes empty, , data processing is interrupted because there is no input data to process, and when the output buffer is full, data processing is interrupted to prevent the output data in the output buffer from being destroyed by subsequent output data,
Both are in a waiting state. Data processing in the waiting state reads input data into the input buffer (read)
or after outputting the output data from the output buffer (
6. In a particular processor, the amount of input data and the amount of output data are significantly different, and the magnitude relationship between the two amounts of data changes depending on the processing content.
例えば、上記イメージプロセッサでは、イメージデータ
量の方がコードデータ量より多いので、符号化処理では
、入力データが出力データより多く、逆に、復号処理で
は、出力データが入力データより多い。このため、復号
処理においては、出力バッファが満杯になる可能性が高
く、他方、符号化処理においては、入力バッファが空に
なる可能性が高い。For example, in the image processor described above, the amount of image data is greater than the amount of code data, so in encoding processing, input data is greater than output data, and conversely, in decoding processing, output data is greater than input data. Therefore, in the decoding process, there is a high possibility that the output buffer will be full, and on the other hand, in the encoding process, the input buffer is likely to be empty.
しかしながら、上記従来技術では、処理プロセッサから
リード要求およびライト要求が同時に発生した場合に、
常に、その一方、例えばリード要求を優先するようにな
っていたので、符号化処理には好都合であったが、復号
処理には適当でなかった。すなわち、従来は、処理プロ
セッサの有する処理速度を最大限に引き出せないという
問題があった。However, in the above conventional technology, when a read request and a write request are generated from the processor at the same time,
On the other hand, for example, read requests were always prioritized, which was convenient for encoding processing, but not suitable for decoding processing. That is, conventionally, there has been a problem that the processing speed of a processing processor cannot be maximized.
本発明の目的は、処理の内容によって、リード、ライト
等の動作要求の優先順位を変更することにより、処理中
断による待ち時間を短縮し、処理速度を向上させること
ができる処理の優先制御方法、並びにこの方法を実施す
るプロセッサシステムおよび制御プロセッサを提供する
ことにある。An object of the present invention is to provide a process priority control method that can reduce waiting time due to process interruption and improve processing speed by changing the priority order of operation requests such as read and write depending on the content of the process; Another object of the present invention is to provide a processor system and a control processor for implementing this method.
[課題を解決するための手段]
上記目的を達成するために、本発明による処理の優先制
御方法は、複数の処理を実行可能な処理プロセッサによ
る処理の際に、同時に実行できない複数の動作要求が同
時に生じた場合、上記複数の動作要求のうちいずれを優
先するかを、当該処理の内容によって、変更するように
したものである。[Means for Solving the Problems] In order to achieve the above object, a processing priority control method according to the present invention provides a method for controlling processing priority, in which a plurality of operation requests that cannot be executed simultaneously are processed by a processing processor capable of executing a plurality of processings. If these requests occur simultaneously, which one of the plurality of operation requests is given priority is changed depending on the content of the process.
本発明を適用して好適な処理プロセッサは、入力データ
と出力データの量に著しいひらきがあり、しかも、処理
内容によってその大小関係が逆転するようなプロセッサ
である。例えば、イメージデータの符号化処理および復
号処理を実行するイメージプロセッサであり、上記同時
に実行できない複数の動作は、上記イメージプロセッサ
によるメモリのリード動作およびライト動作である6本
発明による処理の優先制御方法は、複数の処理プロセッ
サと、該複数の処理プロセッサからの動作要求に応じて
当該処理プロセッサの動作を制御する制御プロセッサと
を備えたシステムにも適用でき、その場合には、同時に
複数の処理プロセッサから上記制御プロセッサに対して
動作要求が発生した場合の優先順位を、当該動作要求発
生時点の各処理プロセッサの処理の内容に応じて、決定
するようにする。A suitable processor to which the present invention is applied is one in which there is a significant difference in the amount of input data and output data, and the magnitude relationship is reversed depending on the processing content. For example, the image processor executes encoding and decoding of image data, and the plurality of operations that cannot be executed simultaneously are memory read and write operations by the image processor. 6. Processing priority control method according to the present invention can also be applied to a system equipped with a plurality of processing processors and a control processor that controls the operation of the processing processors in response to operation requests from the plurality of processing processors. The priority order when an operation request is issued to the control processor is determined according to the content of processing of each processing processor at the time when the operation request is issued.
また、本発明によるプロセッサシステムは、複数の処理
を実行可能な処理プロセッサと、該処理プロセッサから
の動作要求に応じて当該処理プロセッサの動作を制御す
る制御プロセッサとを備えたシステムにおいて、上記処
理プロセッサから同時に複数の動作要求が発生した場合
に、各動作要求の優先順位を定めた優先順位決定手段と
、当該動作要求発生時点の上記処理プロセッサの処理内
容に応じて、上記優先順位決定の優先順位を変更する優
先順位変更手段とを設けたことを特徴とするものである
。Further, a processor system according to the present invention includes a processor capable of executing a plurality of processes, and a control processor that controls the operation of the processor in response to an operation request from the processor. When multiple operation requests occur at the same time, priority determination means determines the priority of each operation request, and the priority determination means determines the priority of the priority determination according to the processing content of the processor at the time when the operation request is generated. The present invention is characterized in that it is provided with priority order changing means for changing the priority order.
上記優先順位決定手段および優先順位変更手段は上記制
御プロセッサに設けることができる。The priority determining means and the priority changing means may be provided in the control processor.
上記優先順位変更手段は5例えば、上記プロセッサの処
理の内容に応じて異なる値が設定されるレジスタであり
、上記優先順位決定手段は上記レジスタの設定値により
優先順位が制御されるプライオリティコンバータである
。The priority order changing means is, for example, a register in which a different value is set depending on the content of processing of the processor, and the priority order determining means is a priority converter whose priority order is controlled by the set value of the register. .
また、本発明による制御プロセッサは、複数の処理を実
行可能な処理プロセッサとともに用いられ、該処理プロ
セッサからの動作要求に応じて当該処理プロセッサの動
作を制御する制御プロセッサであって、上記処理プロセ
ッサから同時に複数の動作要求が発生した場合に、各動
作要求の優先順位を定めた優先順位決定手段と、当該動
作要求発生時点の上記処理プロセッサの処理内容に応じ
て、上記優先順位決定手段の優先順位を変更する優先順
位変更手段とを設けたことを特徴とするものである。Further, the control processor according to the present invention is a control processor that is used together with a processing processor capable of executing a plurality of processes, and controls the operation of the processing processor in response to an operation request from the processing processor. When multiple operation requests occur at the same time, priority determination means determines the priority of each operation request, and the priority determination means determines the priority order of the priority determination means according to the processing content of the processor at the time when the operation request occurs. The present invention is characterized in that it is provided with priority order changing means for changing the priority order.
本発明による制御プロセッサは、他の見地によれば、複
数の処理を実行可能な処理プロセッサとともに用いられ
る制御プロセッサであって、上記処理プロセッサからの
動作要求フラグを〜時保持するラッチを有し、該ラッチ
の内容に従って上記処理プロセッサに動作指令を出力す
る制御プロセッサにおいて、上記処理プロセッサの処理
内容に応じた値を保持するレジスタと、上記処理プロセ
ッサから複数の異なる動作要求フラグが同時に発生した
とき優先的に」1記ラッチへ出力する動作要求フラグを
、上記レジスタの値に応じて変更するプライオリティコ
ンバータとを設けたことを特徴とするものである。According to another aspect, the control processor according to the present invention is a control processor used with a processing processor capable of executing a plurality of processes, and has a latch that holds an operation request flag from the processing processor for a period of time, In a control processor that outputs an operation command to the processor according to the contents of the latch, a register that holds a value according to the processing content of the processor and a register that takes priority when multiple different operation request flags are generated simultaneously from the processor. The present invention is characterized in that it is provided with a priority converter that changes the operation request flag outputted to the first latch in accordance with the value of the register.
[作用] 以下、本発明の代表的な作用を説明する。[Effect] Hereinafter, typical effects of the present invention will be explained.
本発明では、処理プロセッサの処理の内容に応じて、処
理プロセッサからの動作要求に対する制御プロセッサの
応答の優先順位を変更する。例えば、イメージプロセッ
サにおいて5復号処理ではライト要求をリード要求に優
先させ、逆に、符号化処理では、リード要求をライト要
求に優先させる。In the present invention, the priority order of the control processor's response to the operation request from the processor is changed depending on the content of the processing by the processor. For example, in an image processor, write requests are given priority over read requests in 5 decoding processing, and conversely, read requests are given priority over write requests in encoding processing.
そのために、復号処理の実行に際しては、優先順位変更
手段にライト要求優先の設定を行い、符号化処理の実行
に際しては同手段にリード要求優先の設定を行う。これ
に応じて、優先順位決定手段は、イメージプロセッサに
よるデータ処理中に、リード要求およびライト要求が競
合した場合に、優先順位変更手段の設定内容にしたがっ
て、優先順位を決定する。To this end, when executing the decoding process, the priority changing means is set to give priority to write requests, and when executing the encoding process, the same means is set to give priority to read requests. Accordingly, the priority determining means determines the priority according to the settings of the priority changing means when a read request and a write request conflict during data processing by the image processor.
その結果、例えば、復号処理で開動作要求が競合した場
合、ライト要求を優先させてデータライト指令をイメー
ジプロセッサに午え、これにより、データ量の多い出力
データが出力バッファに満杯となる状態を優先的に回避
する。逆に、符号化処理で開動作要求が競合した場合に
は、リード要求を優先させてデータライト指令をイメー
ジプロセッサに与え、これにより、処J量の多い入力デ
ータが入力バッファから空になる状態を優先的に回避す
る。As a result, for example, when open operation requests conflict during decoding processing, the write request is prioritized and the data write command is sent to the image processor, thereby preventing the output buffer from becoming full with a large amount of output data. Prioritize avoidance. Conversely, if open operation requests conflict during encoding processing, a read request is given priority and a data write command is given to the image processor, thereby emptying the input buffer of input data that requires a large amount of processing. Avoid on a priority basis.
このようにして、処理プロセッサの有する処理速度を最
大限に発揮させ、プロセッサシステムの処理速度を向上
させることができる。In this way, the processing speed of the processor can be maximized and the processing speed of the processor system can be improved.
[実施例]
以下、本発明の一実施例を第1図により説明する。第1
図は本発明に係る複数プロセッサシステムの基本構成を
示すブロック図である。[Example] Hereinafter, an example of the present invention will be described with reference to FIG. 1st
The figure is a block diagram showing the basic configuration of a multiple processor system according to the present invention.
第1図において、マイクロプロセッサ(M、PU)1は
、バスに対して制御信号、アドレスを出力し、メモリ2
、イメージプロセッサ3および制御プロセッサ4との間
でデータを転送できる。メモリ2は、ワークメモリ21
と表示メモリ22から構成され、表示メモリ22は主と
してCRT5に出力するイメージデータを格納し、ワー
クメモリ2】2は処理の過程で生成されるイメージおよ
びイメージ以外のデータの−・時保存用としてイメージ
プロセッサ3.制御プロセッサ4に利用される3イメー
ジプロセツサ3は、コードデータをイメージデータに変
換する復号処理と、イメージデータをコートデータに変
換する符号化処理とを実行する。そのための構成として
、イメージプロセッサ3は、グロックジェネレータ31
、データ人出カバンファ32、入力データカウンタ33
.出力データカウンタ34、出力バッファ35.入力バ
ッファ36、データ処理ブロック37、および制御ブロ
ック38からなる。In FIG. 1, a microprocessor (M, PU) 1 outputs control signals and addresses to the bus, and a memory 2
, the image processor 3 and the control processor 4. Memory 2 is work memory 21
The display memory 22 mainly stores image data to be output to the CRT 5, and the work memory 2]2 stores images generated during processing and data other than images. Processor 3. The three image processors 3 used in the control processor 4 execute decoding processing for converting code data into image data and encoding processing for converting image data into code data. As a configuration for that purpose, the image processor 3 includes a Glock generator 31
, data output bag 32, input data counter 33
.. Output data counter 34, output buffer 35. It consists of an input buffer 36, a data processing block 37, and a control block 38.
制御プロセッサ4はイメージプロセッサ3からのデータ
リード要求フラグあるいはデータライト要求フラグを受
は取り、フラグがデータリードであれば、メモリ2に2
・すしてアドレスと制御信号を出力することによりデー
タをバスにのせ、かつ、データリード指令をイメージプ
ロセッサ3にり、えてデータをリートさせる。また、フ
ラグがデータライトであれば、イメージプロセッサ3に
データライト指令を与えてバスにデータを出力させ、メ
モリ2にそのデータを転送する。そのための構成として
、制御プロセッサ4は、クロックジェネレータ41.制
御ブロック42、ラッチ442人出力バッファ46.プ
ライオリテイコンバータ制御レジスタ(優先順位変更手
段)47、およびプライオリティコンバータ(優先順位
決定手段)48からなる。The control processor 4 receives the data read request flag or the data write request flag from the image processor 3, and if the flag is data read, writes 2 to the memory 2.
- Then, by outputting an address and a control signal, data is placed on the bus, and a data read command is sent to the image processor 3 to read the data. Further, if the flag is data write, a data write command is given to the image processor 3 to output data to the bus, and the data is transferred to the memory 2. As a configuration for this purpose, the control processor 4 includes a clock generator 41 . Control block 42, latch 442 output buffer 46. It consists of a priority converter control register (priority changing means) 47 and a priority converter (priority determining means) 48.
イメージプロセッサ3を利用して復号処理あるいは符号
化処理を実行する場合のフローチャートを第2図に示す
6
復号処理を行う場合、MPU1は制御プロセッサ4のプ
ライオリティコンバータ制御レジスタ47に人出カバッ
ファ46を介してLL I IIをライトする。このI
I I IIをライトすることで、プライオリティコン
バータ48は、イメージプロセッサ3の制御ブロック3
8から受けるデータリード要求フラグとデータライト要
求フラグとが両方ともに立っている場合には、データラ
イト要求フラグのみをラッチ44に出力する。MPUI
は、プライオリティコンバータ制御レジスタ47に/l
L ttをライトした後、制御プロセッサ4に対して
、復号処理実行命令を与える。これに応じて制御プロセ
ッサ4は、制御ブロック42からイメージプロセッサ3
の制御ブロック38に起動指令を与える。A flowchart for executing decoding processing or encoding processing using the image processor 3 is shown in FIG. and write LL I II. This I
By writing I I II, the priority converter 48 causes the control block 3 of the image processor 3 to
When both the data read request flag and the data write request flag received from the latch 8 are set, only the data write request flag is output to the latch 44. MPUI
/l in the priority converter control register 47
After writing L tt, a decoding process execution command is given to the control processor 4. In response, the control processor 4 transfers the information from the control block 42 to the image processor 3.
A start command is given to the control block 38 of.
イメージプロセッサ3は、制御プロセッサ4から起動指
令を受けると、処理すべきコードデータを入力バッファ
36に入力するため、制御ブロック38から制御プロセ
ッサ4に対してデータリード要求フラグを出力する。制
御プロセッサ4は、イメージプロセッサ3のデータリー
ド要求フラグをプライオリティコンバータ48で受は取
り、ラッチ44に入力する。ラッチ44の出力結果が制
御ブロック42でデータリード要求であると判断し、グ
ロックジェネレータ41でバスの動作と同期をとりメモ
リ2に対してアドレスと制御信号とを出力することによ
り、コードデータが格納されているワークメモリ21か
らバスにデータを出力させる。この出力時点で、制御ブ
ロック42からイメージプロセッサ3の制御ブロック3
8にデータリード指令を与える。制御ブロック38は、
クロックジェネレータ31でバスの動作と同期をとって
、バスに出力されているコードデータをデータ入出力バ
ッファ32を介し1人カバソファ36(ただし、入カバ
ソファ36は数段のランチからなるFIFOを構成して
いる)に入力する。同時に、入力データカウンタ33を
カウントアツプして入力データを計数し、入力バッファ
36を構成するラッチに空がないかをチエツクする。本
実施例では、カウント値が一定値に達するまで空と判定
される。入力バッファ36にデータを入力し終わると、
データ処理ブロック37にコードデータを転送し、その
復号後、出力バッファ35(ただし、出力バッファ36
も数段のラッチからなるFIFOを構成している)にイ
メージデータを転送する。同時に、出力データカウンタ
34をカウントアツプし、出力バッファ35がオーバー
フローしないかをチエツクする。本実施例では、カウン
ト値が一定値に達したら、満杯と判定される。When the image processor 3 receives the activation command from the control processor 4, it outputs a data read request flag from the control block 38 to the control processor 4 in order to input the code data to be processed into the input buffer 36. The control processor 4 receives the data read request flag from the image processor 3 using the priority converter 48 and inputs it to the latch 44 . The control block 42 determines that the output result of the latch 44 is a data read request, and the glock generator 41 synchronizes with the bus operation and outputs the address and control signal to the memory 2, thereby storing the code data. The data is output from the work memory 21 that is currently being used to the bus. At this output point, from the control block 42 to the control block 3 of the image processor 3
Give data read command to 8. The control block 38 is
The clock generator 31 synchronizes with the operation of the bus, and sends the code data output to the bus through the data input/output buffer 32 to the single-person cover sofa 36 (however, the input cover sofa 36 constitutes a FIFO consisting of several stages of lunches). ). At the same time, the input data counter 33 is counted up to count the input data, and it is checked whether the latches constituting the input buffer 36 are empty. In this embodiment, it is determined that the counter is empty until the count value reaches a certain value. After inputting data to the input buffer 36,
The code data is transferred to the data processing block 37, and after decoding, the output buffer 35 (however, the output buffer 36
The image data is also transferred to the FIFO (which also constitutes a FIFO consisting of several stages of latches). At the same time, the output data counter 34 is counted up to check whether the output buffer 35 has overflowed. In this embodiment, when the count value reaches a certain value, it is determined that the tank is full.
制御ブロック38は、入力データカウンタ33と出力デ
ータカウンタ34の値から出カバソファのオーバーフロ
ーと入カバソファの空状態とをチエツクし、その結果に
応じて制御プロセッサ4にデータリード要求フラグある
いはデータライト要求フラグを出力する。The control block 38 checks the overflow of the output sofa and the empty state of the input sofa from the values of the input data counter 33 and the output data counter 34, and sends a data read request flag or a data write request flag to the control processor 4 according to the result. Output.
イメージプロセッサ3が復号処理実行中に、出力バッフ
ァ35のオーバーフローと入カバソファ36の空状態と
が同時に発生した場合、前述のようにバッファはともに
数段のラッチで構成されているので、入力バッファ36
の空状態はデータ入出力バッファ32に最も近いラッチ
が空になったことを意味し、出力バッファ35のオーバ
ーフローはデータ入出力バッファ32に最も近いラッチ
まで満杯になったことを意味する6従って、入カバソフ
ァ36にはコードデータが残っているが、出力バッファ
35にはイメージデータが満杯となっている。そこで、
出カバソファ35からイメージデータを出力する動作を
優先させれば、データ処理ブロック38の動作を中断す
る期間が短縮され、イメージプロセッサ3全体の処理速
度が向上する。すなわち、上記の場合、制御ブロック3
8からデータリード要求フラグとデータライト要求フラ
グは同時に出力されるが、プライオリティコンバータ4
8はデータライト要求フラグをデータライト要求フラグ
に優先してラッチ44に出力するので、制御ブロック4
2はイメージプロセッサ3に対してデータライト指令を
与える。これに上り、出力バッファ35のオーバーフロ
ーで生じるイメージプロセッサ3の処理速度低下を抑え
ることができる。If an overflow of the output buffer 35 and an empty state of the input buffer sofa 36 occur simultaneously while the image processor 3 is executing a decoding process, the input buffer 36 is
An empty state of 2 means that the latch closest to the data input/output buffer 32 has become empty, and an overflow of the output buffer 35 means that the latch closest to the data input/output buffer 32 has become full.6 Therefore, Code data remains in the input cover sofa 36, but the output buffer 35 is full of image data. Therefore,
By giving priority to the operation of outputting image data from the output sofa 35, the period during which the operation of the data processing block 38 is interrupted is shortened, and the overall processing speed of the image processor 3 is improved. That is, in the above case, control block 3
The data read request flag and the data write request flag are output simultaneously from 8, but the priority converter 4
Since the control block 8 outputs the data write request flag to the latch 44 with priority over the data write request flag, the control block 4
2 gives a data write command to the image processor 3. In addition, it is possible to suppress a decrease in the processing speed of the image processor 3 caused by an overflow of the output buffer 35.
逆に、符号化処理の場合、MPUIはプライオリティコ
ンバータ制御レジスタ47に0′″をライトする。よっ
て、プライオリティコンバータ48は、データリード要
求フラグとデータライト要求フラグの両フラグがともに
立って入力された場合、データリード要求フラグをデー
タライト要求フラグに優先してラッチ44に出力する。Conversely, in the case of encoding processing, the MPUI writes 0'' to the priority converter control register 47. Therefore, the priority converter 48 receives an input with both the data read request flag and the data write request flag set. In this case, the data read request flag is output to the latch 44 with priority over the data write request flag.
制御プロセッサ4は、ラッチ44の出力結果を制御ブロ
ック42でデータライト要求と判断し1表示メモリ22
からイメージデータをバスに出力させると共に、イメー
ジプロセッサ3にデータリード指令を与え、入力バッフ
ァ36にイメージデータをラッチさせる。イメージプロ
セッサ3は、このイメージデータをデータ処理ブロック
37で符号化した後、出力バッファ35にコードデータ
として転送する。同時に、入力データカウンタ33と出
力データカウンタ34の値をチエツクし、制御プロセッ
サ4にデータリード要求フラグあるいはデータライ1−
要求フラグを出力するが2両フラグが同時に出力された
場合にはプライオリティコンバータはデータリード要求
フラグをデータライト要求フラグに優先してラッチ44
に出力する。したがって、制御ブロック42は、イメー
ジプロセッサ3に対してデータリード指令を優先して与
え。The control processor 4 determines the output result of the latch 44 as a data write request in the control block 42, and writes the output result of the latch 44 to the 1 display memory 22.
It outputs image data to the bus, gives a data read command to the image processor 3, and causes the input buffer 36 to latch the image data. The image processor 3 encodes this image data in a data processing block 37, and then transfers it to an output buffer 35 as code data. At the same time, the values of the input data counter 33 and the output data counter 34 are checked, and the data read request flag or the data read request flag or data read request flag of the control processor 4 is checked.
A request flag is output, but if both flags are output at the same time, the priority converter gives priority to the data read request flag over the data write request flag and latches it to the latch 44.
Output to. Therefore, the control block 42 gives a data read command to the image processor 3 with priority.
入力バッファ36の空状態で生じるイメージプロセッサ
3の処理速度低下を抑えることができる。It is possible to suppress a decrease in the processing speed of the image processor 3 that occurs when the input buffer 36 is empty.
[発明の効果コ
本発明によれば、事前にデータ処理の内容により、出力
データが入力データより多くなる場合と、入力データが
出力データより多くなる場合とを判断し、その結果によ
り処理の優先順位を変更するようにしたので、プロセッ
サの入力バッファが空になること、あるいは出力バッフ
ァが満杯になることによりデータ処理が中断して待ち状
態になる期間を短縮できる。したがって、プロセッサの
処理速度を向上させ、ひいては、システム全体の処理速
度を向上させることができる。[Effects of the Invention] According to the present invention, depending on the content of the data processing, it is determined in advance whether the output data will be larger than the input data or the case where the input data will be larger than the output data, and based on the results, processing priority is determined. Since the order is changed, it is possible to shorten the period in which data processing is interrupted and becomes in a waiting state when the input buffer of the processor becomes empty or the output buffer becomes full. Therefore, the processing speed of the processor and, in turn, the processing speed of the entire system can be improved.
第1図は本発明に係る複数プロセッサシステムの一実施
例のブロック図、第2図は第1図に示したシステム中の
プロセッサの動作を示すフローチャートである。
1・・・マイクロプロセッサ(M、PU)、2・・・メ
モリ、21・・ワークメモリ、22・・・表示メモリ、
3・・・イメージプロセッサ、4・・・制御プロセッサ
。
31・・・クロックジェネレータ、32・・・データ人
出カバソファ、33・・・入力データカウンタ、34・
・・出力データカウンタ、35・・・出カバソファ、3
6・・入力バッファ、37・・・データ処理ブロック、
38・・制御ブロック、41・・・クロックジェネレー
タ、42・・・制御ブロック、44・・・ラッチ、46
・・・入出力バッファ、47・・・プライオリティコン
バータ制御レジスタ、48・・・プライオリティコンバ
ータ。
第2図FIG. 1 is a block diagram of an embodiment of a multi-processor system according to the present invention, and FIG. 2 is a flowchart showing the operation of the processors in the system shown in FIG. 1... Microprocessor (M, PU), 2... Memory, 21... Work memory, 22... Display memory,
3... Image processor, 4... Control processor. 31... Clock generator, 32... Data output cover sofa, 33... Input data counter, 34...
... Output data counter, 35 ... Output sofa, 3
6...Input buffer, 37...Data processing block,
38... Control block, 41... Clock generator, 42... Control block, 44... Latch, 46
. . . Input/output buffer, 47 . . . Priority converter control register, 48 . . . Priority converter. Figure 2
Claims (1)
の際に、同時に実行できない複数の動作要求が同時に生
じた場合、上記複数の動作要求のうちいずれを優先する
かを、当該処理の内容によって、変更することを特徴と
する処理の優先制御方法。 2、上記処理プロセッサは、イメージデータの符号化処
理および復号化処理を実行するイメージプロセッサであ
り、上記同時に実行できない複数の動作は、上記イメー
ジプロセッサによるメモリのリード動作およびライト動
作である請求項1記載の処理の優先制御方法。 3、複数の処理プロセッサと、該複数の処理プロセッサ
からの動作要求に応じて当該処理プロセッサの動作を制
御する制御プロセッサとを有するシステムにおいて、同
時に複数の処理プロセッサから上記制御プロセッサに対
して動作要求が発生した場合の優先順位を、当該動作要
求発生時点の各処理プロセッサの処理の内容に応じて、
決定することを特徴とする処理の優先制御方法。 4、複数の処理を実行可能な処理プロセッサと、該処理
プロセッサからの動作要求に応じて当該処理プロセッサ
の動作を制御する制御プロセッサとを備えたシステムに
おいて、 上記処理プロセッサから同時に複数の動作要求が発生し
た場合に、各動作要求の優先順位を定めた優先順位決定
手段と、 当該動作要求発生時点の上記処理プロセッサの処理内容
に応じて、上記優先順位決定の優先順位を変更する優先
順位変更手段とを設けたことを特徴とするプロセッサシ
ステム。 5、上記制御プロセッサが上記優先順位決定手段および
優先順位変更手段を有する請求項4記載のプロセッサシ
ステム。 6、上記優先順位変更手段は上記プロセッサの処理の内
容に応じて異なる値が設定されるレジスタであり、上記
優先順位決定手段は上記レジスタの設定値により優先順
位が制御されるプライオリティコンバータである請求項
5または6記載のプロセッサシステム。 7、複数の処理を実行可能な処理プロセッサとともに用
いられ、該処理プロセッサからの動作要求に応じて当該
処理プロセッサの動作を制御する制御プロセッサであっ
て、 上記処理プロセッサから同時に複数の動作要求が発生し
た場合に、動作要求の優先順位を定めた優先順位決定手
段と、 当該動作要求発生時点の上記処理プロセッサの処理内容
に応じて、上記優先順位決定手段の優先順位を変更する
優先順位変更手段とを設けたことを特徴とする制御プロ
セッサ。 8、複数の処理を実行可能な処理プロセッサとともに用
いられる制御プロセッサであって、上記処理プロセッサ
からの動作要求フラグを一時保持するラッチを有し、該
ラッチの内容に従って上記処理プロセッサに動作指令を
出力する制御プロセッサにおいて、 上記処理プロセッサの処理内容に応じた値を保持するレ
ジスタと、 上記処理プロセッサから複数の異なる動作要求フラグが
同時に発生したとき優先的に上記ラッチへ出力する動作
要求フラグを、上記レジスタの値に応じて変更するプラ
イオリティコンバータとを設けたことを特徴とする制御
プロセッサ。[Claims] 1. When a plurality of operation requests that cannot be executed simultaneously occur during processing by a processor that can execute multiple processes, which of the plurality of operation requests should be prioritized, A process priority control method characterized in that the priority control method changes depending on the content of the process. 2. The processing processor is an image processor that executes image data encoding processing and decoding processing, and the plurality of operations that cannot be executed simultaneously are memory read and write operations by the image processor. Priority control method for the described processing. 3. In a system having a plurality of processing processors and a control processor that controls the operation of the processing processor in response to an operation request from the plurality of processing processors, an operation request is made from the plurality of processing processors to the control processor at the same time. When a request occurs, the priority is set according to the processing content of each processor at the time the operation request occurs.
A processing priority control method characterized by determining. 4. In a system equipped with a processor capable of executing multiple processes and a control processor that controls the operations of the processor in response to operation requests from the processor, if multiple operation requests are received from the processor at the same time. a priority determining means that determines the priority of each operation request when the operation request occurs; and a priority changing means that changes the priority of the priority determination according to the processing content of the processor at the time when the operation request occurs. A processor system comprising: 5. The processor system according to claim 4, wherein said control processor has said priority determining means and priority changing means. 6. The priority order changing means is a register in which different values are set depending on the content of processing of the processor, and the priority order determining means is a priority converter whose priority order is controlled by the set value of the register. 7. The processor system according to item 5 or 6. 7. A control processor that is used with a processor capable of executing multiple processes and controls the operation of the processor in response to operation requests from the processor, wherein multiple operation requests are generated simultaneously from the processor. a priority determining means that determines the priority of the operation request; and a priority changing means that changes the priority of the priority determining means according to the processing content of the processor at the time when the operation request is generated. A control processor comprising: 8. A control processor used with a processor capable of executing multiple processes, which has a latch that temporarily holds an operation request flag from the processor, and outputs an operation command to the processor according to the contents of the latch. The control processor includes a register that holds a value corresponding to the processing content of the processor, and an operation request flag that is output preferentially to the latch when multiple different operation request flags are generated from the processor at the same time. A control processor comprising a priority converter that changes according to a value in a register.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP29755288A JPH02143364A (en) | 1988-11-25 | 1988-11-25 | Processing priority control method and processor system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP29755288A JPH02143364A (en) | 1988-11-25 | 1988-11-25 | Processing priority control method and processor system |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH02143364A true JPH02143364A (en) | 1990-06-01 |
Family
ID=17848023
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP29755288A Pending JPH02143364A (en) | 1988-11-25 | 1988-11-25 | Processing priority control method and processor system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH02143364A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| EP1746504A4 (en) * | 2004-04-28 | 2012-07-11 | Panasonic Corp | DATA PROCESSING PROGRAM AND DATA PROCESSING DEVICE |
-
1988
- 1988-11-25 JP JP29755288A patent/JPH02143364A/en active Pending
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| EP1746504A4 (en) * | 2004-04-28 | 2012-07-11 | Panasonic Corp | DATA PROCESSING PROGRAM AND DATA PROCESSING DEVICE |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP0464615B1 (en) | Microcomputer equipped with DMA controller | |
| US5481756A (en) | DMA controller mailing auto-initialize halting unit | |
| JPH08115290A (en) | Data transfer device | |
| JPH064314A (en) | Inter-task synchronizing communication equipment | |
| JPS6115260A (en) | Data processor | |
| JPS61156454A (en) | Data transfer control device | |
| JPS62184560A (en) | Input/output buffer control device | |
| JP2594673B2 (en) | Data processing method | |
| JP2591211B2 (en) | High-speed interrupt processing device | |
| JPH0447350A (en) | Main storage read/response control | |
| JP2501393B2 (en) | Direct memory access device | |
| JPS61136131A (en) | Information processor | |
| JPH04162135A (en) | Data processor | |
| JPS63155254A (en) | Information processor | |
| JPS63231669A (en) | Transmission system for data | |
| JPH05257860A (en) | Information processing equipment | |
| JPH03116335A (en) | System for transferring from non-privileged cpu to privileged cpu | |
| JPH06348656A (en) | Data transfer method between processors | |
| JPS6223342B2 (en) | ||
| JPH0457145A (en) | Multiprocessor system | |
| JPH06266630A (en) | Input/output controller with trace function | |
| JPS6039265A (en) | Data transfer system | |
| JP2001117862A (en) | Microcomputer | |
| JPS61123937A (en) | Data-driven control method for data processing equipment | |
| JPH0646411B2 (en) | End token output circuit |