JPH0883207A - Data processing device and data processing method - Google Patents
Data processing device and data processing methodInfo
- Publication number
- JPH0883207A JPH0883207A JP21852994A JP21852994A JPH0883207A JP H0883207 A JPH0883207 A JP H0883207A JP 21852994 A JP21852994 A JP 21852994A JP 21852994 A JP21852994 A JP 21852994A JP H0883207 A JPH0883207 A JP H0883207A
- Authority
- JP
- Japan
- Prior art keywords
- address
- data
- read
- write
- held
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Withdrawn
Links
Landscapes
- Multi Processors (AREA)
Abstract
(57)【要約】
【目的】 データ処理装置の改善に関し、メモリアクセ
スを連続的に行い、データ処理部に間断なくデータを供
給して動作休止期間を最小にし、データ処理の高速化を
図る。
【構成】 パラメータに応じてADRアドレスを発生す
るアドレス生成部11と、読出しデータを演算して、そ
の演算結果データをバス制御部に出力するデータ処理部
12と、ADRアドレスによって指定される格納番地の
データを読出したり、ADWアドレスによって指定され
る格納番地にデータを書込み、それを記憶するメモリ1
3と、ADRアドレス及びADWを監視しながらデータ
の読出し動作を優先し、データの書込み動作を調整する
バス制御部14とを備える。
(57) [Summary] [Object] To improve a data processing device, memory access is continuously performed, data is supplied to a data processing unit without interruption, and an operation suspension period is minimized, so that data processing is performed at high speed. [Structure] An address generation unit 11 that generates an ADR address according to a parameter, a data processing unit 12 that calculates read data and outputs the calculation result data to a bus control unit, and a storage address specified by the ADR address. Memory 1 that reads the data in the memory, writes the data in the storage address specified by the ADW address, and stores it
3 and a bus control unit 14 that prioritizes a data read operation and adjusts a data write operation while monitoring the ADR address and ADW.
Description
【0001】[0001]
【産業上の利用分野】本発明は、データ処理装置及びデ
ータ処理方法に関するものであり、更に詳しく言えば、
複数のバスマスタが1つのメモリを共有し、バス調停を
行いながらデータ処理を実行する装置及び方法の改善に
関するものである。近年、各種情報処理装置が高機能化
及び多様化される中で、データ処理の高速化が要求され
る。例えば、あるパラメータに対応するデータをメモリ
から読出し、このデータを使用してある演算処理を行
い、その結果,メモリから読出したデータに変更があっ
た場合に、そのデータ更新を行うシステム(リードモデ
ィファイライト動作)が採用される。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data processing device and a data processing method, and more specifically,
The present invention relates to an improvement in an apparatus and method in which a plurality of bus masters share one memory and perform data processing while performing bus arbitration. In recent years, as various information processing apparatuses have been highly functionalized and diversified, speeding up of data processing is required. For example, a system that reads data corresponding to a certain parameter from the memory, performs certain arithmetic processing using this data, and updates the data when the data read from the memory is changed as a result (read modify) Write operation) is adopted.
【0002】これによれば、複数のバスマスタが1つの
メモリを共有してデータ処理を行う場合、各データ処理
ブロック毎にバス調停部が設けられ、バス要求に対して
その許可が得られた場合に、メモリアクセスを実行する
方法が採られる。しかし、バスマスタがバス要求を出力
してから、それが許可されるまで、データ読出し動作が
できなかったり、データ処理部で動作休止期間を生ずる
ことがある。According to this, when a plurality of bus masters share one memory to perform data processing, a bus arbitration unit is provided for each data processing block and the permission is obtained for a bus request. In addition, a method of executing memory access is adopted. However, after the bus master outputs the bus request, the data read operation may not be possible or the data processing unit may have an operation suspension period until the bus request is permitted.
【0003】そこで、メモリアクセスを連続的に行い、
データ処理部に間断なくデータを供給して動作休止期間
を最小にし、データ処理の高速化を図ることができる装
置及び方法が望まれている。Therefore, memory access is continuously performed,
There is a demand for an apparatus and method capable of supplying data to the data processing section without interruption to minimize the operation suspension period and speed up data processing.
【0004】[0004]
【従来の技術】図6は、従来例に係るデータ処理装置の
構成図を示している。例えば、バス調停機能付きデータ
処理装置は図6に示すように、メモリ3、アドレス生成
部&転送制御部1及びデータ処理部2がバス5に接続さ
れ、制御部1及びデータ処理部2(バスマスタ)の間に
バス調停部4が接続されて成る。2. Description of the Related Art FIG. 6 is a block diagram of a conventional data processing apparatus. For example, in a data processing device with a bus arbitration function, as shown in FIG. 6, a memory 3, an address generator & transfer controller 1 and a data processor 2 are connected to a bus 5, a controller 1 and a data processor 2 (bus master). ), The bus arbitration unit 4 is connected.
【0005】当該装置の機能は、データの整合性を取り
ながら、メモリ3を2つのバスマスタからアクセスする
場合、両バスマスタはバス調停部4にメモリアクセス要
求を出し、その許可が得られた後に、メモリアクセスを
行う。例えば、あるパラメータに対応するデータをメモ
リ3から読出し、このデータを使用して、ある演算処理
を行い、メモリ中の同一番地のデータを更新する場合、
まず、アドレス生成部&転送制御部1は、外部からのパ
ラメータによってアドレス「001」を生成する。アド
レス生成部はバス要求=「0」をバス調停部4へ出力
し、それが許可された後に、メモリ3から該当するデー
タ「11」を読出し、それを内部へ保持しデータ処理部
2の要求に応じて転送する。The function of the device is that when the memory 3 is accessed from two bus masters while maintaining data consistency, both bus masters issue a memory access request to the bus arbitration unit 4 and, after the permission is obtained, Access the memory. For example, when the data corresponding to a certain parameter is read from the memory 3, a certain arithmetic process is performed using this data, and the data at the same address in the memory is updated,
First, the address generation unit & transfer control unit 1 generates the address "001" by a parameter from the outside. The address generation unit outputs a bus request = “0” to the bus arbitration unit 4, and after the bus arbitration unit 4 is permitted, reads the corresponding data “11” from the memory 3 and holds it internally to request the data processing unit 2. Forward according to.
【0006】データ処理部2は受け取ったデータ「1
1」に基づいてデータ処理を行い、この結果、このデー
タが「18」に変化したとすると、ここで、データ処理
部2はバス調停部4にバス要求=「1」を出力し、それ
が許可された後に、アドレス「001」に対応するデー
タ「18」をメモリに書き込む。これにより、メモリ中
の同一格納番地のデータが更新される。The data processing unit 2 receives the received data "1".
Assuming that the data is changed to "18" as a result of the data processing based on "1", the data processing unit 2 outputs the bus request = "1" to the bus arbitration unit 4 and the data is changed to "18". After being permitted, the data “18” corresponding to the address “001” is written in the memory. As a result, the data at the same storage address in the memory is updated.
【0007】[0007]
【発明が解決しようとする課題】ところで、従来例によ
れば、複数のバスマスタが1つのメモリを共有してデー
タ処理を行う場合、各データ処理ブロック毎にバス調停
部4を設け、該調停部4にメモリアクセス要求を出し、
その許可が得られた後に、メモリアクセスを実行してい
る。According to the conventional example, when a plurality of bus masters share one memory to perform data processing, a bus arbitration unit 4 is provided for each data processing block, and the arbitration unit is provided. Issue a memory access request to 4,
After the permission is obtained, the memory access is executed.
【0008】このため、メモリ3からデータを読み出し
てそれをデータ処理部2に転送する場合、アドレス生成
部&転送制御部1がバス要求=「0」をバス調停部4に
出力してから、それが許可されるまで、データ読出し動
作が中断する。このことで、動作休止期間(メモリアク
セスのデッド時間)が生ずる。このような動作休止期間
をハード的に補うとすると複雑なタイミング調停回路や
アクセスサイクルの変更が必要となる。Therefore, when the data is read from the memory 3 and transferred to the data processing unit 2, the address generation unit & transfer control unit 1 outputs a bus request = "0" to the bus arbitration unit 4, and then The data read operation is suspended until it is enabled. As a result, an idle period (dead time of memory access) occurs. If such an operation suspension period is to be supplemented by hardware, a complicated timing arbitration circuit or access cycle must be changed.
【0009】これにより、バス調停のための無駄な時間
を費やし、データ処理の高速化の妨げとなったり、デー
タ更新を効率良く行うことができないという問題があ
る。本発明は、かかる従来例の問題点に鑑み創作された
ものであり、メモリアクセスを連続的に行い、データ処
理部に間断なくデータを供給して動作休止期間を最小に
し、データ処理の高速化を図ることが可能となるデータ
処理装置及びデータ処理方法の提供を目的とする。As a result, there is a problem that a wasteful time is spent for bus arbitration, which hinders speeding up of data processing and data cannot be updated efficiently. The present invention was created in view of the problems of the conventional example, and continuously accesses the memory, supplies data to the data processing unit without interruption, minimizes the operation pause period, and speeds up the data processing. It is an object of the present invention to provide a data processing device and a data processing method capable of achieving the above.
【0010】[0010]
【課題を解決するための手段】本発明に係るデータ処理
装置はその実施例を図1〜5に示すように、原理的な装
置は、データの読出しに関するリードアドレス及び該デ
ータの書込みに関するライトアドレスを監視しながらデ
ータの読出し動作を優先し、前記データの書込み動作を
調整する制御手段を備え、前記制御手段は、図2に示す
ように、リードアドレスを順次シフト保持する第1のレ
ジスタと、前記ライトアドレス及び該ライトアドレスに
付随したデータを順次シフト保持する第2のレジスタ
と、前記第1のレジスタによって順次シフトされたリー
ドアドレスの中で、先頭に位置するリードアドレスと前
記第2のレジスタによって順次シフトされる全てのライ
トアドレスとを比較して前記リードアドレスに一致した
ライトアドレスを出力するアドレス比較回路と、前記リ
ードアドレスに一致したライトアドレスに付随するデー
タを選択出力するデータ選択回路とを有することを特徴
とする。As shown in FIGS. 1 to 5, a data processing apparatus according to the present invention has a principle device, a read address for reading data and a write address for writing data. And a first register for sequentially holding read addresses as shown in FIG. 2, the control means having a priority to a data read operation and adjusting the data write operation. A second register that sequentially shifts and holds the write address and data associated with the write address; a read address located at the head of the read addresses sequentially shifted by the first register; and the second register Compare all write addresses that are sequentially shifted by and output the write address that matches the read address. Characterized in that it has an address comparison circuit for, and a data selection circuit for selectively outputting the associated data to the write address matches the read address.
【0011】本発明の第1のデータ処理装置において、
前記第2のレジスタは、図4(C)に示すように、前記
リードアドレスに一致するライトアドレス及び該ライト
アドレスに付随したデータが出力された場合に、残りの
ライトアドレス及び該ライトアドレスに付随したデータ
を詰めることを特徴とする。本発明の第2のデータ処理
装置は、前記制御手段が、図5に示すように、メモリの
データ読出し番地を指定するリードアドレスを順次シフ
ト保持する第1のレジスタと、前記メモリに書き込むデ
ータを保持する第2のレジスタと、前記第1のレジスタ
に最初に保持されたリードアドレスと、新たに保持され
たリードアドレスとを比較してデータ選択信号を出力す
るアドレス比較回路と、データの更新を要求する信号及
び前記データ選択信号に基づいて前記最初に保持された
リードアドレス又は新たに保持されたリードアドレスの
いずれか一方を出力するデータ選択回路とを有すること
を特徴とする。In the first data processor of the present invention,
As shown in FIG. 4C, the second register is associated with the remaining write address and the write address when the write address matching the read address and the data associated with the write address are output. It is characterized in that the filled data is packed. In the second data processing device of the present invention, the control means, as shown in FIG. 5, stores a first register for sequentially holding a read address designating a data read address of the memory, and data to be written in the memory. A second register for holding, an address comparison circuit for comparing a read address initially held in the first register with a newly held read address and outputting a data selection signal, and updating of data. And a data selection circuit for outputting either the read address initially held or the newly held read address based on a request signal and the data selection signal.
【0012】本発明の原理的なデータ処理方法は、デー
タの読出しに関するリードアドレスと、該データの書込
みに関するライトアドレスとを監視しながらデータの読
出し動作を優先し、前記データの書込み動作を調整する
ことを特徴とする。本発明の第1のデータ処理方法は、
一方で、データの読出し番地を指定する複数のリードア
ドレスを順次保持し、他方で、データの書き込み番地を
指定する複数のライトアドレス及び該書き込み番地に書
き込むデータを付随して順次保持し、前記一方で、順次
保持されたリードアドレスの中で、先頭位置に保持され
たリードアドレスと前記他方で、順次保持された全ての
ライトアドレスとを比較し、前記リードアドレスと全て
のライトアドレスとを比較した結果、アドレスが一致す
るものがない場合には、前記先頭位置に保持されたリー
ドアドレスを出力し、前記アドレスが一致するものがあ
る場合には、前記リードアドレスに一致したライトアド
レスと、該ライトアドレスに付随したデータとを出力す
ることを特徴とする。In the data processing method of the present invention, the read operation of data is prioritized and the write operation of data is adjusted while monitoring the read address for reading data and the write address for writing data. It is characterized by The first data processing method of the present invention is
On the other hand, a plurality of read addresses designating a read address of data are sequentially held, and on the other hand, a plurality of write addresses designating a write address of data and data to be written to the write address are sequentially stored in association with each other. Among the read addresses sequentially held, the read address held at the head position is compared with all the write addresses sequentially held on the other side, and the read address is compared with all the write addresses. As a result, if there is no address that matches, the read address held at the head position is output. If there is a address that matches, the write address that matches the read address and the write address. The data associated with the address is output.
【0013】本発明の第2のデータ処理方法は、一方
で、メモリのデータ読出し番地を指定するリードアドレ
スを順次保持し、他方で、前記メモリに書き込むデータ
を保持し、前記一方で、最初に保持されたリードアドレ
スと、新たに保持されたリードアドレスとを比較し、前
記2つのアドレスを比較した結果、前記アドレスが一致
しない場合には、新たに保持したリードアドレスを選択
し、前記アドレスが一致した場合に、前記最初のリード
アドレスをライトアドレスとして選択し、前記ライトア
ドレスに付随して前記保持されたデータを出力すること
を特徴とし、上記目的を達成する。According to the second data processing method of the present invention, on the one hand, the read address designating the data read address of the memory is sequentially held, on the other hand, the data to be written in the memory is held, and on the other hand, first, The held read address is compared with the newly held read address. As a result of comparing the two addresses, if the addresses do not match, the newly held read address is selected and In the case of a match, the first read address is selected as a write address, and the held data is output in association with the write address, and the above object is achieved.
【0014】[0014]
【作 用】次に、図1,2を参照しながら本発明の第1
のデータ処理装置の動作を説明する。例えば、リードア
ドレス及びライトアドレスが、図1に示すような制御手
段の一例となるバス制御部14により監視され、データ
の書込み動作に対してデータの読出し動作が優先され、
該書込み動作が調整される。[Operation] Next, referring to FIGS.
The operation of the data processing device will be described. For example, the read address and the write address are monitored by the bus control unit 14, which is an example of the control means as shown in FIG. 1, and the data read operation is prioritized over the data write operation.
The write operation is adjusted.
【0015】このため、従来例のバス調停方式のような
書込み動作を順次処理に左右されることなく、メモリか
らの読出しデータを間断なくデータ処理部に供給するこ
とができる。すなわち、図2に示すように、バス制御部
14の第1のレジスタにリードアドレスが供給される
と、当該アドレスが順次シフト保持される。また、デー
タ処理部からのライトアドレス及び該ライトアドレスに
付随したデータが第2のレジスタで、順次シフト保持さ
れる。この第1のレジスタによって順次シフトされたリ
ードアドレスの中で、先頭に位置するリードアドレスと
第2のレジスタによって順次シフトされた全てのライト
アドレスとがアドレス比較回路で比較される。Therefore, the read data from the memory can be supplied to the data processing section without interruption, without the write operation unlike the conventional bus arbitration method being influenced by the sequential processing. That is, as shown in FIG. 2, when the read address is supplied to the first register of the bus control unit 14, the address is sequentially shifted and held. Further, the write address from the data processing unit and the data associated with the write address are sequentially shifted and held in the second register. Of the read addresses sequentially shifted by the first register, the read address located at the head and all the write addresses sequentially shifted by the second register are compared by the address comparison circuit.
【0016】この際の比較結果で、アドレスが一致する
ものがない場合には、先頭位置に保持されたリードアド
レスがメモリに出力され、アドレスが一致するものがあ
る場合には、リードアドレスに一致したライトアドレス
と、該ライトアドレスに付随したデータとがデータ選択
回路により選択され、それらがメモリに出力される(第
1のデータ処理方法)。If there is no matching address in the comparison result at this time, the read address held at the head position is output to the memory, and if there is a matching address, the read address is matched. The write address and the data associated with the write address are selected by the data selection circuit and are output to the memory (first data processing method).
【0017】このため、アドレス比較回路でリードアド
レス及びライトアドレスが監視され、データの書込み動
作に対してデータの読出し動作を優先することができ、
該書込み動作を調整することができる。このことで、メ
モリからの読出しデータを間断なくデータ処理部に供給
することができる。また、メモリアクセスを連続的に行
うことができ、データ更新を効率良く行うことが可能と
なる。Therefore, the read address and the write address are monitored by the address comparison circuit, and the data read operation can be prioritized over the data write operation.
The write operation can be adjusted. As a result, the read data from the memory can be supplied to the data processing unit without interruption. In addition, memory access can be performed continuously, and data can be updated efficiently.
【0018】これにより、従来例に比べてバス調停のた
めの時間が無くなり、各データ処理ブロックでの動作休
止期間が削減され、データ処理の高速化を図ることが可
能となる。本発明の第2のデータ処理装置の動作を説明
する。例えば、図5に示すように、バス制御部14の第
1のレジスタにより、リードアドレスが順次シフト保持
される。また、メモリに書き込むデータが第2のレジス
タにより保持される。ここで、最初に保持されたリード
アドレスと新たに保持されたリードアドレスとがアドレ
ス比較回路により比較される。この結果、データ選択信
号がデータ選択回路に出力される。データ選択回路で
は、データの更新を要求する信号及びデータ選択信号に
基づいて最初のリードアドレス又は新たなリードアドレ
スのいずれか一方が出力される。As a result, the time for bus arbitration is eliminated as compared with the conventional example, the operation suspension period in each data processing block is reduced, and the speed of data processing can be increased. The operation of the second data processing device of the present invention will be described. For example, as shown in FIG. 5, the read address is sequentially shifted and held by the first register of the bus control unit 14. Further, the data to be written in the memory is held by the second register. Here, the first held read address and the newly held read address are compared by the address comparison circuit. As a result, the data selection signal is output to the data selection circuit. The data selection circuit outputs either the first read address or a new read address based on the signal requesting data update and the data selection signal.
【0019】このため、2つのアドレスを比較した結
果、アドレスが一致しない場合には、新しなリードアド
レスが選択されて読出し動作が優先される。また、アド
レスが一致した場合には、最初のリードアドレスをライ
トアドレスとして選択し、ライトアドレスに付随して保
持されたデータをメモリに出力することができる。これ
により、リードアドレスを監視しながらデータの読出し
動作を優先させることができ、書込み動作を調整するこ
とができる。また、メモリアクセスを連続的に行うこと
ができ、データ更新を効率良く行うこと、及び、データ
処理の高速化を図ることが可能となる。Therefore, as a result of comparing the two addresses, if the addresses do not match, a new read address is selected and the read operation is prioritized. When the addresses match, the first read address can be selected as the write address, and the data held in association with the write address can be output to the memory. As a result, the data read operation can be prioritized while the read address is monitored, and the write operation can be adjusted. In addition, memory access can be performed continuously, data can be efficiently updated, and data processing can be speeded up.
【0020】[0020]
【実施例】次に、図を参照しながら本発明の各実施例に
ついて説明をする。図1〜5は、本発明の各実施例に係
るデータ処理装置及びデータ処理方法を説明する図であ
る。 (1)第1の実施例の説明 図1は、本発明の第1の実施例に係るデータ処理装置の
全体構成図であり、図2は、そのバス制御部の内部構成
図である。図3は、そのシフトレジスタの状態遷移図表
をそれぞれ示している。DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, each embodiment of the present invention will be described with reference to the drawings. 1 to 5 are diagrams illustrating a data processing device and a data processing method according to each embodiment of the present invention. (1) Description of First Embodiment FIG. 1 is an overall configuration diagram of a data processing device according to a first embodiment of the present invention, and FIG. 2 is an internal configuration diagram of its bus control unit. FIG. 3 shows a state transition chart of the shift register.
【0021】例えば、1つのメモリ13を2つのバスマ
スタが共有してメモリアクセスするデータ処理装置は、
図1に示すように、アドレス生成部11,データ処理部
12,メモリ13,バス制御部14及びデータFIFO
メモリ15を備える。すなわち、アドレス生成部11は
バスマスタの一例であり、外部から供給されるパラメー
タに応じてリードアドレス(以下ADRアドレスとい
う)を発生し、それをバス制御部14に出力する。アド
レス生成部11はメモリアクセス状況に無関係に、AD
Rアドレスを発生する。ADRアドレスはデータの読出
しに関するデータである。For example, a data processing device in which two bus masters share one memory 13 to access the memory is
As shown in FIG. 1, an address generation unit 11, a data processing unit 12, a memory 13, a bus control unit 14, and a data FIFO.
A memory 15 is provided. That is, the address generator 11 is an example of a bus master, generates a read address (hereinafter referred to as an ADR address) according to a parameter supplied from the outside, and outputs it to the bus controller 14. The address generation unit 11 uses the AD regardless of the memory access status.
Generate an R address. The ADR address is data relating to the reading of data.
【0022】データ処理部12はバスマスタの一例であ
り、読出しデータ(DATA)を入力して,例えば、演
算処理をし、その演算結果データをバス制御部14に出
力する。メモリ13はバス16に接続され、ADRアド
レスによって指定される格納番地のデータを読出した
り、ライトアドレス(以下ADWアドレスという)によ
って指定される格納番地にデータを書込み、それを記憶
する。データ処理部12はメモリアクセス状況に無関係
に、例えば、演算処理を実行する。ADWアドレスはデ
ータの書込みに関するデータである。The data processing unit 12 is an example of a bus master, inputs read data (DATA), performs arithmetic processing, for example, and outputs the arithmetic result data to the bus control unit 14. The memory 13 is connected to the bus 16 and reads data at a storage address specified by an ADR address, writes data at a storage address specified by a write address (hereinafter referred to as an ADW address), and stores the data. The data processing unit 12 executes, for example, arithmetic processing regardless of the memory access status. The ADW address is data relating to data writing.
【0023】バス制御部14は制御手段の一例であり、
バス16とデータ生成部12との間に接続され、ADR
アドレス及びADWを監視しながらデータの読出し動作
を優先し、データの書込み動作を調整するものである。
バス制御部14については図2において詳述する。な
お、データFIFOメモリ15は、バス16とデータ処
理部12との間に接続され、データ処理されたデータを
入力して該データを順次シフトするものである。The bus control unit 14 is an example of control means,
ADR is connected between the bus 16 and the data generator 12.
While monitoring the address and ADW, the data read operation is prioritized and the data write operation is adjusted.
The bus control unit 14 will be described in detail with reference to FIG. The data FIFO memory 15 is connected between the bus 16 and the data processing unit 12, inputs the data-processed data, and sequentially shifts the data.
【0024】バス制御部14は、例えば、図2に示すよ
うにデータコントロール用シフトレジスタ(以下単にリ
ードレジスタという)41,メモリコントロール用シフ
トレジスタ(以下単にライトレジスタという)42,ア
ドレス比較回路43,セレクタ44及びバス制御信号発
生回路45から成る。リードレジスタ41は、第1のレ
ジスタの一例であり、アドレス生成部11からのADR
アドレスを順次シフト保持し、ADWアドレスに優先し
てADRアドレスをバス制御信号発生回路45に出力す
る。ライトレジスタ42は第2のレジスタ42の一例で
あり、ライトアドレスシフトレジスタ42A及びライトデ
ータシフトレジスタ42Bを有する。レジスタ42Aはデー
タ処理部12からのADWアドレスを順次シフト保持す
る。レジスタ42Bはデータ処理部12からのADWアド
レスに付随したデータを順次シフト保持する。ライトレ
ジスタ42の内部構成については図3において詳述す
る。As shown in FIG. 2, the bus control unit 14 includes, for example, a data control shift register (hereinafter simply referred to as a read register) 41, a memory control shift register (hereinafter simply referred to as a write register) 42, an address comparison circuit 43, It is composed of a selector 44 and a bus control signal generation circuit 45. The read register 41 is an example of the first register, and the ADR from the address generation unit 11 is used.
The addresses are sequentially shifted and held, and the ADR address is output to the bus control signal generation circuit 45 in preference to the ADW address. The write register 42 is an example of the second register 42, and includes a write address shift register 42A and a write data shift register 42B. The register 42A sequentially shifts and holds the ADW address from the data processing unit 12. The register 42B sequentially shifts and holds the data attached to the ADW address from the data processing unit 12. The internal configuration of the write register 42 will be described in detail with reference to FIG.
【0025】アドレス比較回路43は、リードレジスタ
41によって順次シフトされたADRアドレスの中で、
先頭に位置するADRアドレスと、ライトレジスタ42
によって順次シフトされた全てのADWアドレスとを比
較してADRアドレスに一致したADWアドレスを出力
する。アドレス比較回路43は、ADRアドレスに一致
するADWアドレスが見い出された場合に、アドレス比
較/選択信号SA1,SA2…をライトレジスタ42や
セレクタ44に出力する。The address comparison circuit 43, among the ADR addresses sequentially shifted by the read register 41,
The ADR address located at the head and the write register 42
By comparing all the ADW addresses sequentially shifted by, the ADW address that matches the ADR address is output. The address comparison circuit 43 outputs the address comparison / selection signals SA1, SA2 ... To the write register 42 and the selector 44 when an ADW address matching the ADR address is found.
【0026】セレクタ44はデータ選択回路の一例であ
り、アドレス比較/選択信号SA1,SA2…等に応じ
て、ADRアドレスに一致したADWアドレスに付随す
るデータを選択し、それをバス制御信号発生回路45に
出力する。バス制御信号発生回路45はバス16に接続
され、ADRアドレス,ADWアドレス及びデータを所
定電位に調整してバス16に伝送する。当該回路45は
データの書込み又は読出し動作を識別するデータイネー
ブル信号R/Wを発生し、それをメモリ13,データF
IFOメモリ15及びデータ処理部12に転送する。The selector 44 is an example of a data selection circuit, which selects the data associated with the ADW address that matches the ADR address according to the address comparison / selection signals SA1, SA2, etc., and uses it to select the bus control signal generation circuit. Output to 45. The bus control signal generation circuit 45 is connected to the bus 16 and adjusts the ADR address, the ADW address and the data to a predetermined potential and transmits the adjusted potential to the bus 16. The circuit 45 generates a data enable signal R / W for identifying a data writing or reading operation, and outputs it to the memory 13 and the data F.
The data is transferred to the IFO memory 15 and the data processing unit 12.
【0027】ここで、ライトレジスタ42の説明をす
る。例えば、ライトアドレスシフトレジスタ42Aは、図
3に示すように、3つのメモリ回路421 ,423 ,425 及
び2つのセレクタ422 ,424 から成る。メモリ回路421
はシフト信号SSに基づいてADWアドレスを保持す
る。セレクタ422 はアドレス比較/選択信号SA1に応
じてメモリ回路421 から出力されるADWアドレス又は
メモリ回路423 に保持されたADWアドレスをいずれか
を選択するものである。Now, the write register 42 will be described. For example, the write address shift register 42A is composed of three memory circuits 421, 423 and 425 and two selectors 422 and 424 as shown in FIG. Memory circuit 421
Holds the ADW address based on the shift signal SS. The selector 422 selects either the ADW address output from the memory circuit 421 or the ADW address held in the memory circuit 423 according to the address comparison / selection signal SA1.
【0028】メモリ回路423 はシフト信号SSに基づい
てADWアドレスを保持する。セレクタ424 はアドレス
比較/選択信号SA1に応じてメモリ回路423 から出力
されるADWアドレス又はメモリ回路424 に保持された
ADWアドレスをいずれかを選択するものである。アド
レス比較/選択信号SA1,SA2…は、アドレス比較
回路43で、ADRアドレスに一致するADWアドレス
が見い出された場合にアサートされる。レジスタ42Aは
1つ前のADWアドレスをシフトすることにより、一致
したADR=ADWアドレスを削除してADWアドレス
を1つ詰めて記憶する。レジスタ42Bについても同様な
機能を有する。The memory circuit 423 holds the ADW address based on the shift signal SS. The selector 424 selects either the ADW address output from the memory circuit 423 or the ADW address held in the memory circuit 424 according to the address comparison / selection signal SA1. The address comparison / selection signals SA1, SA2 ... Are asserted when the address comparison circuit 43 finds an ADW address that matches the ADR address. The register 42A shifts the previous ADW address, deletes the matching ADR = ADW address, and packs one ADW address for storage. The register 42B has a similar function.
【0029】これにより、ライトレジスタ42では、A
DRアドレスに一致するADWアドレス及び該ADWア
ドレスに付随したデータが出力された場合に、残りのA
DWアドレス及び該ADWアドレスに付随したデータを
詰めることができ、メモリのデータを効率良く更新する
とができる。これについては、図4(C)において説明
をする。As a result, in the write register 42, A
When the ADW address that matches the DR address and the data associated with the ADW address are output, the remaining A
The data associated with the DW address and the ADW address can be packed, and the data in the memory can be updated efficiently. This will be described with reference to FIG.
【0030】次に、本発明の第1の実施例に係るデータ
処理方法について、当該装置の動作を説明する。例え
ば、図1に示したような1つのメモリ13を2つのバス
マスタが共有してメモリアクセスする場合、アドレス生
成部11からバス制御部14のリードレジスタ41にA
DRアドレスが供給されると、当該アドレスが順次シフ
ト保持される。Next, the operation of the data processing method according to the first embodiment of the present invention will be described. For example, in the case where two bus masters share one memory 13 as shown in FIG. 1 to access the memory, the address generator 11 transfers A to the read register 41 of the bus controller 14.
When the DR address is supplied, the address is sequentially shifted and held.
【0031】また、データ処理部からのADWアドレス
及び該ADWアドレスに付随したデータがライトレジス
タ42で、順次シフト保持される。このリードレジスタ
41によって順次シフトされたADRアドレスの中で、
先頭に位置するADRアドレスとライトレジスタ42に
よって順次シフトされる全てのADWアドレスとがアド
レス比較回路で比較される。The ADW address from the data processing unit and the data associated with the ADW address are sequentially shifted and held in the write register 42. Among the ADR addresses sequentially shifted by this read register 41,
The ADR address located at the head and all the ADW addresses sequentially shifted by the write register 42 are compared by the address comparison circuit.
【0032】例えば、図4(A)に示すように、リード
レジスタ41の先頭のADRアドレス=0010と、ラ
イトレジスタ42の全てのADWアドレス=0053,
0022,0002,00AA,00BC,0011が
比較される。しかし、0010に一致するものが無い。
この場合には、ADRアドレス=0010により、メモ
リからデータが読み出される。この際のデータリードで
は、メモリ13から読み出されたデータが、データFI
FOメモリ15に一旦書き込まれ、データ処理部12に
転送される。For example, as shown in FIG. 4A, the head ADR address of the read register 41 = 0010 and all the ADW addresses of the write register 42 = 0053,
0022, 0002, 00AA, 00BC, 0011 are compared. However, there is no match for 0010.
In this case, the data is read from the memory with the ADR address = 0010. In the data read at this time, the data read from the memory 13 is the data FI.
It is once written in the FO memory 15 and transferred to the data processing unit 12.
【0033】また、アドレスが1つシフトすると、図4
(B)に示すように、リードレジスタ41の先頭のAD
Rアドレス=0002となり、これとライトレジスタ4
2の全てのADWアドレス=0053,0022,00
02,00AA,00BC,0011が比較される。こ
の際には、0002に一致するものが有る。この場合に
は、初めて、ADWアドレス=ADRアドレス=000
2により、メモリ13にDATA=FDが書き込まれ、
それが更新されると同時にデータFIFOメモリ15に
書き込まれる。When the address is shifted by one,
As shown in (B), the first AD of the read register 41
R address = 0002, and this and write register 4
All 2 ADW addresses = 0053,0022,00
02, 00AA, 00BC, 0011 are compared. In this case, there are some that match 0002. In this case, for the first time, ADW address = ADR address = 000
2, DATA = FD is written in the memory 13,
At the same time as it is updated, it is written in the data FIFO memory 15.
【0034】なお、ライトアクセスが可能となるのは、
リードアクセスが発生しないとき、ADRアドレスとA
DWアドレスとが一致して、メモリ13のデータ更新と
データ処理部12へのデータ転送を同時に実行すると
き、ライトレジスタ42のバッファが桁溢れ状態になっ
たときの何れかの場合である。この際のADWアドレス
に付随したデータは、データ選択回路により選択され、
それらがメモリ13に出力される(第1のデータ処理方
法)。Note that the write access becomes possible.
When read access does not occur, ADR address and A
This is either the case when the DW address matches and the data update of the memory 13 and the data transfer to the data processing unit 12 are executed at the same time, or the buffer of the write register 42 is in the overflow state. The data associated with the ADW address at this time is selected by the data selection circuit,
They are output to the memory 13 (first data processing method).
【0035】さらに、図4(C)に示すように、ADR
アドレスに一致するADWアドレス=0002及びこれ
に付随したDATA=FDが出力されると、ライトレジ
スタ42では、残りのADWアドレス=00AA,00
BC,0011及びそれに付随したDATA=14,D
E,D1が上位側に詰められる。また、データ処理部1
2は、データFIFOメモリ15のデータイネーブル信
号R/Wを監視しながら、データFIFOメモリ15内
のデータを順次処理する。Further, as shown in FIG.
When the ADW address = 0002 that matches the address and DATA = FD associated therewith are output, the remaining ADW address = 00AA, 00 in the write register 42.
BC, 0011 and accompanying DATA = 14, D
E and D1 are packed in the higher order side. In addition, the data processing unit 1
2 sequentially processes the data in the data FIFO memory 15 while monitoring the data enable signal R / W of the data FIFO memory 15.
【0036】これにより、データ処理部12では、メモ
リアクセス状況に無関係に、データFIFOメモリ15
から読み出してデータ処理を行うことができる。また、
バス制御部14 を介してADRアドレスとADWアドレ
スとを監視しながらデータの読出し動作を優先したデー
タの書込み動作を調整することができる。このようにし
て、本発明の第1の実施例に係るデータ処理装置によれ
ば、図2に示すように、リードレジスタ41,ライトレ
ジスタ42,アドレス比較回路43及びセレクタ44を
有するバス制御部14が設けられる。As a result, in the data processing unit 12, the data FIFO memory 15 is irrespective of the memory access status.
Can be read from and processed for data. Also,
By monitoring the ADR address and the ADW address via the bus control unit 14, it is possible to adjust the data write operation that prioritizes the data read operation. In this way, according to the data processing device of the first embodiment of the present invention, as shown in FIG. 2, the bus control unit 14 having the read register 41, the write register 42, the address comparison circuit 43 and the selector 44 is provided. Is provided.
【0037】このため、レジスタ41及び42によりA
DR,ADWアドレスを一括管理し、アドレス比較回路
43によりADRアドレス及びADWアドレスを監視す
ることにより、データの書込み動作に対してデータの読
出し動作を優先することができ、該書込み動作を調整す
ることができる。これにより、リード・ライト処理を統
合して実行することができ、従来例のバス調停方式のよ
うな書込み動作を順次処理に左右されることなく、メモ
リ13からの読出しデータを間断なくデータ処理部12
に供給することができる。Therefore, the registers 41 and 42 are used to
By collectively managing the DR and ADW addresses and monitoring the ADR address and the ADW address by the address comparison circuit 43, the data read operation can be prioritized over the data write operation, and the write operation can be adjusted. You can As a result, the read / write processing can be integrated and executed, and the read data from the memory 13 can be read continuously without being influenced by the sequential processing of the write operation like the conventional bus arbitration method. 12
Can be supplied to.
【0038】すなわち、本発明の第1の実施例に係るデ
ータ処理方法によれば、一方で、ADRアドレスが順次
保持され、他方で、ADWアドレス及びデータが付随し
て順次保持された状態で、ADRアドレスの中で、先頭
位置に保持されたADRアドレスと他方で、順次保持さ
れた全てのADWアドレスとが比較され、その結果、ア
ドレスが一致するものがない場合には、先頭位置に保持
されたADRアドレスが出力され、アドレスが一致する
ものがある場合には、ADRアドレスに一致したADW
アドレスと、該ADWアドレスに付随したデータとが出
力される。That is, according to the data processing method of the first embodiment of the present invention, on the one hand, the ADR address is sequentially held, and on the other hand, the ADW address and the data are sequentially held together, Among the ADR addresses, the ADR address held at the head position is compared with all the ADW addresses held sequentially on the other hand, and as a result, if there is no matching address, it is held at the head position. Output ADR address, and if there is a match, the ADW that matches the ADR address
The address and the data associated with the ADW address are output.
【0039】このため、リードアクセス及びライトアク
セスを連続的に行うことができ、従来例に比べてバス調
停のための時間が無くなり、各データ処理ブロックでの
動作休止期間が削減され、データ処理の高速化を図るこ
とが可能となる。また、リードアクセスとライトアクセ
スが同一アドレスの場合には、リードデータを無効とし
て新しいデータをメモリ13とデータFIFOメモリ1
5とに転送することにより、データ更新等を効率良く行
うことが可能となる。Therefore, the read access and the write access can be continuously performed, the time for bus arbitration is reduced as compared with the conventional example, the operation suspension period in each data processing block is reduced, and the data processing It is possible to increase the speed. If the read access and the write access have the same address, the read data is invalidated and new data is transferred to the memory 13 and the data FIFO memory 1.
Data can be efficiently updated by transferring the data.
【0040】(2)第2の実施例の説明 図5は、本発明の第2の実施例に係るデータ処理装置の
バス制御部の内部構成図を示している。第2の実施例で
は第1の実施例と異なり、レジスタの段数を少なくし、
アドレス比較対象を少なくしてリードアドレスを監視し
ながら、読出し動作及び書込み動作を調整するものであ
る。(2) Description of Second Embodiment FIG. 5 shows an internal configuration diagram of the bus control unit of the data processing apparatus according to the second embodiment of the present invention. In the second embodiment, unlike the first embodiment, the number of register stages is reduced,
The read operation and the write operation are adjusted while monitoring the read address by reducing the address comparison target.
【0041】すなわち、本発明の第2のデータ処理装置
のバス制御部は、図5に示すように、アドレスシフトレ
ジスタ(以下単にリードレジスタという)51,52,
アドレス比較回路53,セレクタ54,バス制御信号発
生回路55及びデータレジスタ56を備える。リードレ
ジスタ51は新しくメモリのデータ読出し番地を指定す
るADRアドレスを保持する記憶素子である。リードレ
ジスタ52は、レジスタ51からシフトされた最初のA
DRアドレスを保持する記憶素子である。ADRアドレ
スは第1の実施例と同様に、アドレス生成部から供給さ
れる。That is, as shown in FIG. 5, the bus control unit of the second data processing device of the present invention includes address shift registers (hereinafter simply referred to as read registers) 51, 52,
An address comparison circuit 53, a selector 54, a bus control signal generation circuit 55, and a data register 56 are provided. The read register 51 is a storage element that holds an ADR address that newly specifies a data read address of the memory. The read register 52 is the first A shifted from the register 51.
A storage element that holds a DR address. The ADR address is supplied from the address generator as in the first embodiment.
【0042】アドレス比較回路53は両レジスタ51,
52に記憶されたADRアドレスを比較してデータ選択
信号SEをセレクタ54に出力する。例えば、回路53
は最初のADRアドレスと次のADRアドレスとが一致
した場合には、信号SE=「H」レベルを出力し、アド
レス不一致の場合には、信号SE=「L」レベルを出力
する。The address comparison circuit 53 includes both registers 51,
The ADR address stored in 52 is compared and the data selection signal SE is output to the selector 54. For example, the circuit 53
Outputs the signal SE = "H" level when the first ADR address and the next ADR address match, and outputs the signal SE = "L" level when the addresses do not match.
【0043】セレクタ54はデータ更新要求信号SN及
びデータ選択信号SEに基づいて最初のADRアドレス
又は次のADRアドレスのいずれか一方を出力する。信
号SNは、例えば、データ処理部から供給され、メモリ
の同一格納番地のデータを更新する制御信号である。バ
ス制御信号発生回路55は第1の実施例と同様に、バス
16に接続され、ADRアドレス,ADWアドレス及び
データを所定電位に調整してバス16に伝送する。デー
タレジスタ56はメモリに書き込むデータ(DATA)
を保持する記憶素子である。データはデータ処理部から
転送され、随時書換えられる。The selector 54 outputs either the first ADR address or the next ADR address based on the data update request signal SN and the data selection signal SE. The signal SN is, for example, a control signal that is supplied from the data processing unit and that updates data at the same storage address in the memory. Similar to the first embodiment, the bus control signal generation circuit 55 is connected to the bus 16 and adjusts the ADR address, the ADW address and the data to a predetermined potential and transmits them to the bus 16. The data register 56 is data to be written in the memory (DATA)
Is a memory element that holds The data is transferred from the data processing unit and rewritten at any time.
【0044】次に、本発明の第2の実施例に係るデータ
処理方法について当該バス制御部の動作を説明する。例
えば、アドレス生成部から図5に示すようなリードレジ
スタ51に、最初のADRアドレスが供給されると、当
該ADRアドレスは次段のレジスタ52にシフト保持さ
れ、次に、新たなADRアドレスがレジスタ51に保持
される。また、メモリに書き込むデータが生じた場合に
は、データ処理部からレジスタ56にデータが転送さ
れ、これが保持される。Next, the operation of the bus control unit will be described with respect to the data processing method according to the second embodiment of the present invention. For example, when the first ADR address is supplied from the address generation unit to the read register 51 as shown in FIG. 5, the ADR address is shifted and held in the register 52 of the next stage, and then the new ADR address is registered. Held at 51. Further, when there is data to be written in the memory, the data is transferred from the data processing unit to the register 56 and held therein.
【0045】この状態で、最初のADRアドレスと新た
なADRアドレスとがアドレス比較回路53により比較
される。この結果、データ選択信号SEがセレクタ55
に出力される。セレクタ54では、データの更新要求信
号SN及びデータ選択信号SEに基づいて最初のADR
アドレス又は新たなADRアドレスのいずれか一方が出
力される。In this state, the address comparison circuit 53 compares the first ADR address with the new ADR address. As a result, the data selection signal SE changes to the selector 55.
Is output to In the selector 54, the first ADR based on the data update request signal SN and the data selection signal SE.
Either the address or the new ADR address is output.
【0046】すなわち、2つのアドレスを比較した結
果、アドレスが一致しない場合には、信号SE=「H」
レベルとなって、新たなADRアドレスが選択されて読
出し動作が優先される。これにより、メモリアクセス状
況に無関係に、データ処理部では、メモリから読み出さ
れたデータに基づく演算処理,つまり、レジスタ52に
格納されたADRアドレスに基づくデータに関する演算
処理が実行される。That is, as a result of comparing the two addresses, if the addresses do not match, the signal SE = "H".
The level becomes high, a new ADR address is selected, and the read operation is prioritized. As a result, the data processing unit executes the arithmetic processing based on the data read from the memory, that is, the arithmetic processing related to the data based on the ADR address stored in the register 52, regardless of the memory access status.
【0047】また、レジスタ51に新しいADRアドレ
スが供給され、しかも、信号SNがアサートされ、更
に、アドレスが一致した場合には、信号SEが「L」レ
ベルとなって、セレクタ54より最初のADRアドレス
がADWアドレスとして選択され、ADWアドレスに付
随して保持されたデータがメモリに出力される(第2の
データ処理方法)。これにより、データ更新処理が実行
される。これと同時にADWアドレスに付随して保持さ
れたデータが、次の処理データとしてデータ処理部に転
送される。When a new ADR address is supplied to the register 51, the signal SN is asserted, and the addresses match each other, the signal SE becomes "L" level, and the first ADR from the selector 54. The address is selected as the ADW address, and the data held in association with the ADW address is output to the memory (second data processing method). As a result, the data update process is executed. At the same time, the data held in association with the ADW address is transferred to the data processing unit as the next processing data.
【0048】このようにして、本発明の第2の実施例に
係るデータ処理装置によれば、図5に示すように、リー
ドレジスタ51,52,アドレス比較回路53,セレク
タ54及びバス制御信号発生回路55を有するバス制御
部が設けられる。このため、レジスタ51及び52によ
り、前後のADRアドレスを管理し、アドレス比較回路
53により、2つのアドレスを比較した結果、アドレス
が一致しない場合には、最初のADRアドレスが選択さ
れて読出し動作が優先される。また、アドレスが一致し
た場合には、新たなADRアドレスをADWアドレスと
して選択し、ADWアドレスに付随して保持されたデー
タをメモリに出力することができる。As described above, according to the data processor of the second embodiment of the present invention, as shown in FIG. 5, the read registers 51, 52, the address comparison circuit 53, the selector 54, and the bus control signal generator are generated. A bus controller having a circuit 55 is provided. Therefore, the registers 51 and 52 manage the preceding and following ADR addresses, and when the two addresses are compared by the address comparison circuit 53, if the addresses do not match, the first ADR address is selected and the read operation is performed. have priority. When the addresses match, a new ADR address can be selected as the ADW address, and the data held in association with the ADW address can be output to the memory.
【0049】これにより、少ないADRアドレスを監視
しながらデータの読出し動作を優先させることができ、
書込み動作を調整することができる。また、メモリアク
セスを連続的に行うことができ、データ更新を効率良く
行うこと、及び、データ処理の高速化を図ることが可能
となる。As a result, the data read operation can be prioritized while monitoring a small number of ADR addresses.
The write operation can be adjusted. In addition, memory access can be performed continuously, data can be efficiently updated, and data processing can be speeded up.
【0050】[0050]
【発明の効果】以上説明したように、本発明のデータ処
理装置及びデータ処理方法によれば、リードアドレス及
びライトアドレスとを監視しながらデータの読出し動作
が優先され、データの書込み動作が調整される。このた
め、書込み動作が従来例のような順次処理に左右される
ことが無くなり、メモリからの読出しデータを間断なく
データ処理部に供給することができる。また、メモリア
クセスを連続的に行うことができ、従来例に比べてバス
調停のための時間が無くなり、各データ処理ブロックで
の動作休止期間を削減することができる。また、データ
更新を効率良く行うことができる。As described above, according to the data processing apparatus and the data processing method of the present invention, the data read operation is prioritized and the data write operation is adjusted while monitoring the read address and the write address. It Therefore, the write operation does not depend on the sequential processing as in the conventional example, and the read data from the memory can be supplied to the data processing section without interruption. Further, the memory access can be continuously performed, the time for bus arbitration is eliminated as compared with the conventional example, and the operation suspension period in each data processing block can be reduced. In addition, the data can be updated efficiently.
【0051】これにより、データ処理能力の向上を図る
ことができ、高速メモリアクセス可能なデータ処理装置
の提供に寄与するところが大きい。As a result, it is possible to improve the data processing capacity, and this contributes greatly to the provision of a data processing device capable of high-speed memory access.
【図1】本発明の第1の実施例に係るデータ処理装置の
全体構成図である。FIG. 1 is an overall configuration diagram of a data processing device according to a first embodiment of the present invention.
【図2】本発明の第1の実施例に係るバス制御部の内部
構成図である。FIG. 2 is an internal configuration diagram of a bus control unit according to the first embodiment of the present invention.
【図3】本発明の第1の実施例に係るライト側のレジス
タの内部構成図である。FIG. 3 is an internal configuration diagram of a register on the write side according to the first embodiment of the present invention.
【図4】本発明の第1の実施例に係るシフトレジスタの
状態遷移図である。FIG. 4 is a state transition diagram of the shift register according to the first embodiment of the present invention.
【図5】本発明の第2の実施例に係るバス制御部の内部
構成図である。FIG. 5 is an internal configuration diagram of a bus control unit according to a second embodiment of the present invention.
【図6】従来例に係るバス調停機能付きデータ処理装置
の構成図である。FIG. 6 is a configuration diagram of a data processing device with a bus arbitration function according to a conventional example.
11…アドレス生成部、 12…データ処理部、 13…メモリ、 14…バス制御部、 15…データFIFOメモリ、 16…バス、 41…データコントロール用シフトレジスタ、 42…メモリコントロール用シフトレジスタ、 42A…ライトアドレスシフトレジスタ、 42B…ライトデータシフトレジスタ、 43,53…アドレス比較回路、 44,422, 422, 54…セレクタ、 45,55…バス制御信号発生部、 51,52…アドレスシフトレジスタ、 421, 423, 425 …メモリ回路、 ADR…リードアドレス、 ADW…ライトアドレス、 SN…データ更新要求信号、 SE…データ選択信号、 R/W…データイネーブル信号。 11 ... Address generation unit, 12 ... Data processing unit, 13 ... Memory, 14 ... Bus control unit, 15 ... Data FIFO memory, 16 ... Bus, 41 ... Data control shift register, 42 ... Memory control shift register, 42A ... Write address shift register, 42B ... Write data shift register, 43, 53 ... Address comparison circuit, 44, 422, 422, 54 ... Selector, 45, 55 ... Bus control signal generating section, 51, 52 ... Address shift register, 421, 423, 425 ... Memory circuit, ADR ... Read address, ADW ... Write address, SN ... Data update request signal, SE ... Data selection signal, R / W ... Data enable signal.
Claims (6)
及び該データの書込みに関するライトアドレスを監視し
ながらデータの読出し動作を優先し、前記データの書込
み動作を調整する制御手段を備え、 前記制御手段は、リードアドレスを順次シフト保持する
第1のレジスタと、前記ライトアドレス及び該ライトア
ドレスに付随したデータを順次シフト保持する第2のレ
ジスタと、前記第1のレジスタによって順次シフトされ
たリードアドレスの中で、先頭に位置するリードアドレ
スと前記第2のレジスタによって順次シフトされる全て
のライトアドレスとを比較して前記リードアドレスに一
致したライトアドレスを出力するアドレス比較回路と、
前記リードアドレスに一致したライトアドレスに付随す
るデータを選択出力するデータ選択回路とを有すること
を特徴とするデータ処理装置。1. A control unit that prioritizes a data read operation while monitoring a read address related to data read and a write address related to data write and adjusts the data write operation, wherein the control unit is a read Of the first register that sequentially shifts and holds addresses, the second register that sequentially shifts and holds the write address and data associated with the write address, and the read address that is sequentially shifted by the first register, An address comparison circuit that compares the read address located at the head with all the write addresses sequentially shifted by the second register and outputs a write address that matches the read address.
And a data selection circuit for selectively outputting data associated with a write address that matches the read address.
レスに一致するライトアドレス及び該ライトアドレスに
付随したデータが出力された場合に、残りのライトアド
レス及び該ライトアドレスに付随したデータを詰めるこ
とを特徴とする請求項1記載のデータ処理装置。2. The second register packs the remaining write address and the data associated with the write address when the write address matching the read address and the data associated with the write address are output. The data processing device according to claim 1, wherein
番地を指定するリードアドレスを順次シフト保持する第
1のレジスタと、前記メモリに書き込むデータを保持す
る第2のレジスタと、前記第1のレジスタに最初に保持
されたリードアドレスと、新たに保持されたリードアド
レスとを比較してデータ選択信号を出力するアドレス比
較回路と、データの更新を要求する信号及び前記データ
選択信号に基づいて前記最初に保持されたリードアドレ
ス又は新たに保持されたリードアドレスのいずれか一方
を出力するデータ選択回路を有することを特徴とする請
求項1記載のデータ処理装置。3. The first control means for sequentially shifting and holding a read address designating a data read address of a memory, a second register for holding data to be written in the memory, and the first register. An address comparison circuit that outputs a data selection signal by comparing the read address initially held in the first and the newly held read address, and a signal requesting data update and the first based on the data selection signal. 2. The data processing apparatus according to claim 1, further comprising a data selection circuit that outputs one of the read address held in the memory and the newly held read address.
と、該データの書込みに関するライトアドレスとを監視
しながらデータの読出し動作を優先し、前記データの書
込み動作を調整することを特徴とするデータ処理方法。4. A data processing method, wherein priority is given to a data read operation while monitoring a read address related to data read and a write address related to data write, and the data write operation is adjusted.
複数のリードアドレスを順次保持し、他方で、データの
書き込み番地を指定する複数のライトアドレス及び該書
き込み番地に書き込むデータを付随して順次保持し、 前記一方で、順次保持されたリードアドレスの中で、先
頭位置に保持されたリードアドレスと前記他方で、順次
保持された全てのライトアドレスとを比較し、前記リー
ドアドレスと全てのライトアドレスとを比較した結果、
アドレスが一致するものがない場合には、前記先頭位置
に保持されたリードアドレスを出力し、前記アドレスが
一致するものがある場合には、前記リードアドレスに一
致したライトアドレスと、該ライトアドレスに付随した
データとを出力することを特徴とするデータ処理方法。5. On the one hand, a plurality of read addresses designating a read address of data are sequentially held, and on the other hand, a plurality of write addresses designating a write address of data and data to be written to the write address are sequentially attached. On the one hand, among the read addresses sequentially held on the one hand, the read address held at the head position is compared with all the write addresses held sequentially on the other hand, and the read address and all the write addresses are compared. As a result of comparing with the address,
If no address matches, the read address held at the head position is output. If there is a address match, the write address matching the read address and the write address are output. A data processing method, comprising: outputting accompanying data.
定するリードアドレスを順次保持し、他方で、前記メモ
リに書き込むデータを保持し、 前記一方で、最初に保持されたリードアドレスと新たに
保持されたリードアドレスとを比較し、前記2つのアド
レスを比較した結果、前記アドレスが一致しない場合に
は、新たに保持したリードアドレスを選択し、 前記アドレスが一致した場合に、前記最初に保持したリ
ードアドレスをライトアドレスとして選択し、前記ライ
トアドレスに付随して前記保持されたデータを出力する
ことを特徴とするデータ処理方法。6. On the one hand, a read address designating a data read address of the memory is sequentially held, on the other hand, data to be written to the memory is held, and on the other hand, the first held read address and a new hold are newly held. When the two addresses are not matched as a result of comparing the two read addresses, the newly held read address is selected, and when the addresses match, the first held address is selected. A data processing method comprising: selecting a read address as a write address and outputting the held data in association with the write address.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP21852994A JPH0883207A (en) | 1994-09-13 | 1994-09-13 | Data processing device and data processing method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP21852994A JPH0883207A (en) | 1994-09-13 | 1994-09-13 | Data processing device and data processing method |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0883207A true JPH0883207A (en) | 1996-03-26 |
Family
ID=16721359
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP21852994A Withdrawn JPH0883207A (en) | 1994-09-13 | 1994-09-13 | Data processing device and data processing method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0883207A (en) |
-
1994
- 1994-09-13 JP JP21852994A patent/JPH0883207A/en not_active Withdrawn
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPH03127147A (en) | Information processing system | |
| JPH0348370A (en) | Memory access control circuit | |
| JP4007483B2 (en) | High level synthesis apparatus and high level synthesis method | |
| JP2002366431A (en) | Apparatus for accessing embedded memory of application specific integrated circuits | |
| JP2591502B2 (en) | Information processing system and its bus arbitration system | |
| JP2000020451A (en) | Device and method for processing information and provision method | |
| JPH0793274A (en) | Data transfer method and data transfer device | |
| JPH0883207A (en) | Data processing device and data processing method | |
| JP2002532811A (en) | Musical sound data generating apparatus and method, and medium for providing the method | |
| JP2000227895A (en) | Device and method for transferring image data | |
| JPH1185673A (en) | Method and apparatus for controlling shared bus | |
| JPH09185547A (en) | Control method and apparatus for multiprocessor | |
| JPH06332851A (en) | Data transfer method | |
| JP2000066946A (en) | Memory controller | |
| JP2003177960A (en) | Arithmetic device and storage device | |
| JPS6054065A (en) | synchronous control device | |
| JPH0333951A (en) | Microcomputer system | |
| JP2001101072A (en) | Memory access device | |
| JPH05143449A (en) | Main memory data write control method | |
| JPH1139278A (en) | Processor and memory access method | |
| JPH1049437A (en) | Dynamic RAM controller | |
| JP2003228546A (en) | Direct memory access controller | |
| JP2000148574A (en) | Device and method for register control | |
| JPH04297936A (en) | Memory control circuit | |
| JPH01119825A (en) | Hash processing control device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A300 | Withdrawal of application because of no request for examination |
Free format text: JAPANESE INTERMEDIATE CODE: A300 Effective date: 20011120 |