JPH07129457A - Storage device - Google Patents
Storage deviceInfo
- Publication number
- JPH07129457A JPH07129457A JP27557993A JP27557993A JPH07129457A JP H07129457 A JPH07129457 A JP H07129457A JP 27557993 A JP27557993 A JP 27557993A JP 27557993 A JP27557993 A JP 27557993A JP H07129457 A JPH07129457 A JP H07129457A
- Authority
- JP
- Japan
- Prior art keywords
- address
- signal
- data
- counter
- storage medium
- 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
- 238000010586 diagram Methods 0.000 description 12
- 238000000034 method Methods 0.000 description 6
- 230000001174 ascending effect Effects 0.000 description 1
- 230000006835 compression Effects 0.000 description 1
- 238000007906 compression Methods 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
Abstract
Description
【0001】[0001]
【産業上の利用分野】本発明は記憶装置に関し、特に複
数個のデバイスが書き込み、又は読み出しのためにアク
セスする記憶媒体を備える記憶装置に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a storage device, and more particularly to a storage device having a storage medium that a plurality of devices access for writing or reading.
【0002】[0002]
【従来の技術】従来の記憶装置には、その記憶空間の先
頭アドレス(以下、単に先頭アドレスと呼ぶ)から順に
データを格納していき、記憶空間の最終アドレス(以
下、単に最終アドレスと呼ぶ)に達するとそれ以上記憶
することができず、記憶媒体の記憶容量によって記憶装
置が扱うことのできるデータ量が制限されてしまうとい
う欠点があった。この欠点を改善するために、記憶空間
の一部または全部をリングバッファとする記憶装置が提
案されており、例えば特開昭60−100872号公報
に開示されている技術がある。前記の技術では、画像入
力手段にメモリが接続されており、画像入力手段が出力
する画像データメモリの先頭アドレスから順にページ単
位で格納していき、メモリの書き込みエリアの残りの容
量が格納するデータのデータ量より少ない場合には、書
き込みエリアの最終アドレスまでデータを格納した後、
書き込みアドレスが書き込み禁止領域の先頭番地を表す
インヒビットトップアドレスに達するまで引き続いて先
頭アドレスから格納することによってリングバッファを
実現している。2. Description of the Related Art In a conventional storage device, data is stored in order from the start address of the storage space (hereinafter referred to simply as the start address), and the final address of the storage space (hereinafter referred to as the final address). However, the storage capacity of the storage medium limits the amount of data that can be handled by the storage device. In order to improve this drawback, a storage device in which a part or the whole of the storage space is used as a ring buffer has been proposed, for example, there is a technique disclosed in JP-A-60-100872. In the above technique, a memory is connected to the image input unit, and the image data output from the image input unit is sequentially stored page by page from the start address, and the data stored in the remaining capacity of the writing area of the memory is stored. If the amount of data is less than, after storing the data up to the final address of the writing area,
The ring buffer is realized by successively storing from the start address until the write address reaches the inhibit top address indicating the start address of the write-protected area.
【0003】[0003]
【発明が解決しようとする課題】しかし、上記の技術で
は、あるデバイスがアクセスした後にそのデバイスがア
クセスした領域とは不連続な領域に別のデバイスがアク
セスする場合や、あるデバイスが記憶空間の不連続な領
域にアクセスする場合には、その都度記憶装置内部のカ
ウンタに値を再設定しなければならないため、制御や書
き込みまたは読み出しアドレスの管理が複雑となる。従
って、カウンタへの値の再設定を必要としない場合に比
べて上記の技術を用いたシステムは値の再設定のための
時間が余計にかかり、システムの処理速度が遅くなると
いう問題がある。However, in the above technique, when another device accesses an area discontinuous with the area accessed by the device after the access by the device, or when a certain device has a storage space When accessing a discontinuous area, it is necessary to reset the value in the counter inside the storage device each time, so that control and management of the write or read address become complicated. Therefore, the system using the above technique takes time for resetting the value more than the case where the resetting of the value in the counter is not necessary, and there is a problem that the processing speed of the system becomes slow.
【0004】本発明は上記課題を解決するためのもの
で、記憶装置外部から記憶装置内部のカウンタへの値の
再設定を行わずに記憶空間の不連続な領域に連続してア
クセスすることができ、カウンタへの値の再設定のため
の時間および手順を不要にして処理速度の向上を図り、
制御を簡単化した記憶装置を提供することを目的とす
る。The present invention is intended to solve the above-mentioned problems, and it is possible to continuously access a discontinuous area of a storage space from outside the storage device without resetting a value in a counter inside the storage device. It is possible to improve the processing speed by eliminating the time and procedure for resetting the value to the counter.
It is an object of the present invention to provide a storage device whose control is simplified.
【0005】[0005]
【課題を解決するための手段】本発明の記憶装置は、複
数個のデバイスがデータの書き込みまたは読みだしのた
めにアクセスする記憶媒体と、前記複数個のデバイスに
対応して、それぞれ書き込みまたは読みだしアドレスを
指示する複数個のアドレスカウンタと、前記記憶媒体の
記憶空間内の任意のアドレスを保持する第1のアドレス
保持手段と、第1のアドレス保持手段に記憶されたアド
レスとは異なる任意のアドレスを保持する第2のアドレ
ス保持手段と、前記アドレスカウンタの値と前記第2の
アドレス保持手段に記憶されたアドレスとを比較し、両
者が一致した時点で前記アドレスカウンタの値を第1の
アドレス保持手段に記憶された値に変えるべく制御する
制御手段とを備えたことを特徴とする。A storage device according to the present invention includes a storage medium accessed by a plurality of devices for writing or reading data, and writing or reading corresponding to the plurality of devices, respectively. A plurality of address counters for instructing a read address, a first address holding means for holding an arbitrary address in the storage space of the storage medium, and an arbitrary address different from the address stored in the first address holding means. A second address holding unit that holds an address is compared with the value of the address counter and the address stored in the second address holding unit, and when the two match, the value of the address counter is set to the first value. And a control means for controlling to change to a value stored in the address holding means.
【0006】[0006]
【作用】本発明は、デバイスごとに記憶媒体に書き込み
または読みだしアドレスを記憶する複数個のカウンタを
設け、カウント値が飛び元である第2のアドレス(以下
飛び元アドレスと呼ぶ)に一致したカウンタの値を第2
のアドレスとは不連続な飛び先である第1のアドレス
(以下飛び先アドレスと呼ぶ)となるように制御してデ
バイス毎に書き込みまたは読み出しアドレスを記憶する
ようにしたので、あるデバイスに対応したカウンタを動
作させた後に別のデバイスに対応したカウンタを動作さ
せれば、カウンタへの値の再設定を行わずにあるデバイ
スがアクセスした後にそのデバイスがアクセスした領域
とは不連続な領域に別のデバイスがアクセスすることが
できる。また、カウンタの値が飛び元アドレスに一致し
たら次のアドレスを飛び先アドレスとすることによっ
て、あるデバイスが記憶空間の不連続な領域に連続して
アクセスすることができる。According to the present invention, each device is provided with a plurality of counters for storing a write or read address in the storage medium, and the count value matches the second address (hereinafter referred to as the jump source address) which is the jump source. The value of the counter is the second
The address of is controlled so that it becomes the first address (hereinafter referred to as a jump destination address) which is a discontinuous jump destination, and the write or read address is stored for each device, so that it corresponds to a certain device. If the counter corresponding to another device is activated after the counter is activated, it is divided into an area discontinuous from the area accessed by the device after the access by a device without resetting the value of the counter. Devices can be accessed. When the counter value matches the jump source address, the next address is set as the jump destination address, so that a device can continuously access the discontinuous area of the storage space.
【0007】[0007]
【実施例】本発明の記憶装置の実施例を、図1〜図13
を参照しながら以下に説明する。なお、以下において、
記憶空間のアドレスから最終アドレスまで昇順であると
する。また、アクティブレベルとはある信号がアクティ
ブレベルとなるとその信号が入力される部分が所定の動
作を行う信号レベル(ハイまたはローのどちらか)であ
り、インアクティブレベルとはアクティブレベルとは逆
の信号レベルを意味するものとする。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT An embodiment of a storage device according to the present invention is shown in FIGS.
Will be described below with reference to. In the following,
It is assumed that the address is in ascending order from the address of the storage space to the final address. In addition, the active level is the signal level (either high or low) at which the part to which the signal is input performs a predetermined operation when the signal becomes the active level, and the inactive level is the opposite of the active level. Shall mean signal level.
【0008】図1は、記憶媒体にアクセスするデバイス
が4つである場合の、本発明の記憶装置を含むシステム
の一構成例を示すものであり、図2は図1の記憶装置の
一構成例を示している。なお、図1、図2において、太
矢印はバスを、細矢印は信号線を表し、矢印の向きは信
号の流れる方向を表している。図1において、デバイス
11〜14は記憶装置15内の記憶媒体にアクセスす
る、例えば、画像圧縮装置等の画像処理装置、スキャナ
ー等の画像入力装置、プリンタ等の画像記録装置、外部
との通信インターフェース装置等であり、デバイス11
〜14が記憶装置15内の記憶媒体にアクセスする必要
が生じた場合には、対応するアクセス要求信号RQ1〜
RQ4をアクティブレベルとし、アクセスを許可された
デバイスは記憶装置15とデータのやり取りを行い、ア
クセスが終了した時点で信号RQ1〜RQ4をインアク
ティブレベルとする。記憶装置15は、本発明による記
憶装置であり、内部構成例や動作については後述する。
制御装置16は、デバイス11〜14、記憶装置15お
よびアクセス制御装置17の動作を制御するCPU(中
央演算装置)および周辺回路である。アクセス制御装置
17はデバイス11〜14からのアクセス要求信号RQ
1〜RQ4の信号レベルによって各デバイスのアクセス
要求の有無を判断し、いずれかのデバイスがアクセスし
ていなければ所定の優先順位に従ってアクセスを許可す
るデバイスをただ1つ決定し、デバイス11〜 14に
対応したカウンタへのカウント・イネーブル信号である
信号ET1〜ET4および記憶装置15への制御信号群
である信号群CNTLを、記憶装置15内の記憶媒体6
(図2)の構成およびアクセスするデバイスによって決
定される所定のタイミングでアクティブレベルとする。
なお、いずれかのデバイスが記憶装置15にアクセス中
であれば、アクセス制御装置17は他のいずれかのデバ
イスにも記憶装置15へのアクセスを許可しない。信号
群CNTLは、デバイス11〜14の記憶装置15への
データの書き込み時または記憶装置15からのデータ読
み出し時に記憶装置15を制御する制御信号群である。FIG. 1 shows an example of the configuration of a system including the storage device of the present invention when there are four devices that access the storage medium, and FIG. 2 shows an example of the configuration of the storage device of FIG. An example is shown. 1 and 2, a thick arrow indicates a bus, a thin arrow indicates a signal line, and an arrow direction indicates a signal flow direction. In FIG. 1, devices 11 to 14 access a storage medium in the storage device 15, for example, an image processing device such as an image compression device, an image input device such as a scanner, an image recording device such as a printer, and a communication interface with the outside. Device or the like, and the device 11
14 to 14 need to access the storage medium in the storage device 15, the corresponding access request signals RQ1 to RQ1
RQ4 is set to the active level, the device permitted to access exchanges data with the storage device 15, and when the access is completed, the signals RQ1 to RQ4 are set to the inactive level. The storage device 15 is a storage device according to the present invention, and an internal configuration example and operation will be described later.
The control device 16 is a CPU (central processing unit) and peripheral circuits that control the operations of the devices 11 to 14, the storage device 15, and the access control device 17. The access control device 17 receives the access request signal RQ from the devices 11 to 14.
The presence or absence of an access request from each device is determined according to the signal levels of 1 to RQ4, and if any device is not accessing, only one device to which access is permitted is determined according to a predetermined priority order. The storage medium 6 in the storage device 6 stores the signals ET1 to ET4, which are count enable signals to the corresponding counters, and the signal group CNTL, which is a control signal group to the storage device 15.
The active level is set at a predetermined timing determined by the configuration of FIG. 2 and the device to be accessed.
If any device is accessing the storage device 15, the access control device 17 does not allow any other device to access the storage device 15. The signal group CNTL is a control signal group that controls the storage device 15 at the time of writing data to the storage device 15 of the devices 11 to 14 or reading data from the storage device 15.
【0009】次に、図1の記憶装置の一構成例である図
2について説明する。カウンタ1〜4は、それぞれ記憶
媒体6にアクセスするデバイス1〜4の読み出しまたは
書き込みアドレスを記憶する、記憶媒体6の記憶空間上
のアドレスと同じビット数のアップカウンタであり、そ
れぞれに対応するインタフェース(I/F)8からの信
号LE1〜LE4がアクティブレベルとなるとバスLD
上のデータをロードし、それぞれに対応する信号ET1
〜ET4がアクティブレベルとなるとカウントアップ
し、それぞれに対応する信号RS1〜RS4がアクティ
ブレベルとなるとレジスタ9に記憶されている飛び先ア
ドレスをロードする。また、それぞれのカウンタに記憶
されている値、つまり書き込みまたは読み出しアドレス
をMUX(マルチプレクサ)5に出力する。MUX5
は、アクセス制御装置17からの信号MXによってカウ
ンタ1〜4のうちのいずれか1つのカウンタのデータ、
つまり書き込みまたは読み出しアドレスを選択し、アク
セス制御装置17からの信号RCによって、選択したア
ドレスの全ビットまたは一部のビット(例えば下位10
ビット)を記憶媒体6に出力する。Next, FIG. 2, which is an example of the configuration of the storage device of FIG. 1, will be described. Each of the counters 1 to 4 is an up-counter having the same number of bits as the address in the storage space of the storage medium 6 for storing the read or write address of the device 1 to 4 that accesses the storage medium 6, and the interface corresponding to each. When the signals LE1 to LE4 from the (I / F) 8 become active level, the bus LD
Load the above data and the corresponding signal ET1
When ET4 to ET4 reach the active level, the count-up is performed, and when the corresponding signals RS1 to RS4 reach the active level, the jump destination address stored in the register 9 is loaded. Further, the value stored in each counter, that is, the write or read address is output to the MUX (multiplexer) 5. MUX5
Is data of any one of the counters 1 to 4 according to the signal MX from the access control device 17,
That is, a write or read address is selected, and all or some of the bits of the selected address (for example, lower 10 bits) are selected by the signal RC from the access control device 17.
(Bit) to the storage medium 6.
【0010】記憶媒体6はDRAMやハードディスクド
ライブ(HDD)等から構成され、信号群CNTLによ
って、MUX5より出力されるアドレスによって指定さ
れる領域に外部からのデータを格納するか、MUX5よ
り出力されるアドレスによって指定される領域に格納さ
れているデータを外部に出力する。レジスタ9は、飛び
先アドレスを記憶するためのレジスタであり、信号LE
5がアクティブレベルとなるとバスLD上のデータをロ
ードして記憶するとともに、記憶したデータをカウンタ
1〜4に出力する。レジスタ10は飛び元アドレスを記
憶するためのレジスタであり、信号LE6がアクティブ
レベルとなるとバスLD上のデータをロードして記憶す
るとともに、記憶したデータを判定器7に出力する。判
定器7は、カウンタ1〜4の値がレジスタ10に記憶さ
れている飛び元アドレスと一致したら、所定のタイミン
グに従って値が飛び元アドレスと一致したカウンタに対
応した信号RS1〜RS4をアクティブレベルとする。
例えば、カウンタ1の値が飛び元アドレスと一致した
ら、信号RS1をアクティブレベルとし、カウンタ1
は、レジスタ9に記憶されている飛び先アドレスをロー
ドすることになる。I/F8は、記憶装置外部からカウ
ンタ1〜4、レジスタ9またはレジスタ10に値を設定
するためのインタフェースであり、制御装置16からの
信号CDSがアクティブレベルとなると、バスCAD上
のアドレスで指定されるカウンタ1〜4、レジスタ9ま
たはレジスタ10に対応したロード・イネーブル信号L
E1〜LE6をアクティブレベルとし、バスCDT上の
データをバスLD上に出力する。The storage medium 6 is composed of a DRAM, a hard disk drive (HDD), etc., and stores data from the outside in an area designated by an address output from the MUX 5 by the signal group CNTL or outputs from the MUX 5. The data stored in the area specified by the address is output to the outside. The register 9 is a register for storing the jump destination address, and is a signal LE.
When 5 becomes the active level, the data on the bus LD is loaded and stored, and the stored data is output to the counters 1 to 4. The register 10 is a register for storing the jump source address. When the signal LE6 becomes the active level, the register 10 loads and stores the data on the bus LD and outputs the stored data to the determiner 7. When the values of the counters 1 to 4 match the jump source address stored in the register 10, the determiner 7 sets the signals RS1 to RS4 corresponding to the counters whose values match the jump source address to the active level at a predetermined timing. To do.
For example, when the value of the counter 1 matches the jump source address, the signal RS1 is set to the active level and the counter 1
Will load the jump destination address stored in the register 9. The I / F 8 is an interface for setting a value in the counters 1 to 4, the register 9 or the register 10 from the outside of the storage device, and when the signal CDS from the control device 16 becomes the active level, it is designated by the address on the bus CAD. Load enable signal L corresponding to counters 1 to 4 and register 9 or register 10
E1-LE6 are set to the active level, and the data on the bus CDT is output on the bus LD.
【0011】以下、動作例として、記憶媒体6を図5に
示すようなタイミングで、信号、データおよびアドレス
を入力する必要があるDRAMで構成するとし、記憶媒
体6に書き込みするデータは1ワード(16ビット)単
位であるとした場合のデバイス11〜14の記憶媒体6
へのアクセス時の本発明の記憶装置の動作について説明
する。記憶媒体6を上記のように構成しているので、信
号群CNTLはここでは、立ち下がりエッジによってD
RAMがロウアドレスを取り込む信号RAS、立ち下が
りエッジによってDRAMがカラムアドレスを取り込む
信号CAS、ライト・イネーブル信号WEおよび出力イ
ネーブル信号OEである。なお、以下において、rad
はアドレスの上位半分であるロウアドレス、例えばアド
レスが20ビットならば上位10ビットであり、cad
はアドレスの下位半分であるカラムアドレス、例えばア
ドレスが20ビットならば下位10ビットであり、ra
d+cadは上位半分がradであり、下位半分がca
dであるアドレスを意味する。例えば、rad=10h
(16進)でcad=00hならばrad+cad=1
000hである。上記DRAMは、信号WEがアクティ
ブレベルならばrad+cadで指定されるアドレスに
データを格納し、信号OEがアクティブレベルならばr
ad+cadで指定されるアドレスに格納されているデ
ータを出力する。また、以下において説明の簡便化のた
め、同時に2つ以上のデバイスのアクセス要求信号がア
クティブレベルとなることはなく、あるデバイスがアク
セス要求信号をアクティブレベルとした時点で他のどの
デバイスも記憶媒体6にはアクセスしていないとする。In the following, as an operation example, it is assumed that the storage medium 6 is composed of a DRAM which requires input of signals, data and addresses at the timings shown in FIG. 5, and the data to be written in the storage medium 6 is one word ( Storage medium 6 of the devices 11 to 14 in the unit of 16 bits)
The operation of the storage device of the present invention when accessing the memory will be described. Since the storage medium 6 is configured as described above, the signal group CNTL is D
A signal RAS for taking in a row address by the RAM, a signal CAS for taking in a column address by the DRAM at a falling edge, a write enable signal WE and an output enable signal OE. In the following, rad
Is a row address that is the upper half of the address, for example, the upper 10 bits if the address is 20 bits, and cad
Is a column address which is the lower half of the address, for example, the lower 10 bits if the address is 20 bits,
The upper half of d + cad is rad, and the lower half is ca.
means an address that is d. For example, rad = 10h
If cad = 00h in (hexadecimal), rad + cad = 1
It is 000h. The DRAM stores data at an address designated by rad + cad when the signal WE is at the active level, and r when the signal OE is at the active level.
Outputs the data stored at the address specified by ad + cad. Further, for simplification of description below, the access request signals of two or more devices do not become active levels at the same time, and when one device sets the access request signal to the active level, any other device stores a storage medium. It is assumed that 6 is not accessed.
【0012】第一にデバイス11が先頭アドレスからデ
ータを書き込んだ後に、デバイス12がデータを書き込
む場合について説明する。先ず最初にI/F8を介して
カウンタ1に先頭アドレスを設定する。ここで、デバイ
ス11が記憶媒体6に書き込むデータのワード数があら
かじめ分かっている場合には、同様にして先頭アドレス
にワード数回1を加えたアドレス以上かつ最終アドレス
以下のアドレスをレジスタ9に、カウンタ2にレジスタ
9に設定したアドレス以上かつ最終アドレス以下のアド
レスを、レジスタ10にカウンタ2に設定したアドレス
以上かつ最終アドレス以下のアドレスをそれぞれ設定す
る。従って、特定のデバイスのみアクセスできる記憶領
域の先頭アドレスを第3のアドレスとすると、これから
1を減じたアドレスが飛び元アドレスであり、飛び先ア
ドレスは飛び元アドレスより先頭アドレスに近いアドレ
スなので、記憶空間は図3に示すようになる。First, the case where the device 12 writes data after the device 11 writes data from the head address will be described. First, the leading address is set in the counter 1 via the I / F 8. Here, when the number of words of data to be written in the storage medium 6 by the device 11 is known in advance, an address equal to or higher than the address obtained by adding 1 to the number of times of the word to the start address and equal to or lower than the final address is similarly set in the register 9. Addresses greater than or equal to the address set in the register 9 and less than or equal to the final address are set in the counter 2, and addresses greater than or equal to the address set in the counter 2 and less than or equal to the final address are set in the register 10. Therefore, assuming that the start address of the storage area that can be accessed only by a specific device is the third address, the address obtained by subtracting 1 from this is the jump source address, and the jump destination address is closer to the start address than the jump source address. The space is as shown in FIG.
【0013】この場合の動作について図6により説明す
る。まず、デバイス11が信号RQ1をアクティブレベ
ルにする。信号RQ1がアクティブレベルとなったの
で、アクセス制御装置17がデバイス11に記憶媒体6
へのアクセスを許可し、図6(a)に示すようなタイミ
ングで信号RAS、信号CAS、信号ET1、信号M
X、信号RCおよび信号群CNTLをアクティブレベル
とする。なお、図6(a)はカウンタの値が飛び元アド
レスに一致していないときの、図6(b)は一致してい
るときのタイミングチャートである。記憶媒体6にデー
タが書き込まれると、アクセス制御装置17は信号RA
S、信号CAS、信号ET1、信号MX、信号RCおよ
び信号群CNTLをインアクティブレベルにし、デバイ
ス11は信号RQ1をインアクティブレベルとする。以
上の動作を所定の回数繰り返せば、デバイス11は先頭
アドレスからデータを書き込むことができる。ここで、
デバイス11が記憶媒体6に書き込むデータのワード数
があらかじめわかっていなかった場合には、I/F8を
介してデバイス11のアクセスが終了した時点のカウン
タ1の値に1を加えたアドレス以上かつ最終アドレス以
下のアドレスをレジスタ9に、カウンタ2にレジスタ9
に設定したアドレス以上かつ最終アドレス以下のアドレ
スを、レジスタ10にカウンタ2に設定したアドレス以
上かつ最終アドレス以下のアドレスをそれぞれ設定す
る。次に、デバイス12が信号RQ2をアクティブレベ
ルにする。信号RQ2がアクティブレベルとなったの
で、アクセス制御装置17がデバイス12に記憶媒体6
へのアクセスを許可し、図6(a)に示すようなタイミ
ングで信号RAS、信号CAS、信号ET2、信号M
X、信号RCおよび信号群CNTLをアクティブレベル
とする。記憶媒体6にデータが書き込まれると、アクセ
ス制御装置17は信号RAS、信号CAS、信号ET
2、信号MX、信号RCおよび信号群CNTLをインア
クティブレベルにし、デバイス12は信号RQ2をイン
アクティブレベルとする。このとき、カウンタ2の値が
レジスタ10に記憶された飛び元アドレスに一致した場
合には、判定器7が信号RS2を図6(b)に示すタイ
ミングでアクティブレベルとし、信号RS2がアクティ
ブレベルとなったのでカウンタ2はレジスタ9から飛び
先アドレスをロードする。従って、飛び元アドレスの次
にアクセスするアドレスは飛び先アドレスとなる。以上
の動作を所定の回数繰り返せば、デバイス12は飛び先
アドレスから飛び元アドレスまでの領域にデータを書き
込むことができる。以上によりデバイス11およびデバ
イス12は、それぞれ図7に示す影付領域および斜線領
域に書き込むことができることになる。なお、図7にお
いて太矢印は、デバイス12がデータを書き込む順序を
表している。The operation in this case will be described with reference to FIG. First, the device 11 sets the signal RQ1 to the active level. Since the signal RQ1 becomes the active level, the access control device 17 causes the device 11 to store the storage medium 6
To the signal RAS, the signal CAS, the signal ET1, and the signal M at the timing shown in FIG. 6A.
X, the signal RC, and the signal group CNTL are set to the active level. 6A is a timing chart when the counter value does not match the jump source address, and FIG. 6B is a timing chart when it matches. When the data is written in the storage medium 6, the access control device 17 outputs the signal RA.
S, the signal CAS, the signal ET1, the signal MX, the signal RC, and the signal group CNTL are set to the inactive level, and the device 11 sets the signal RQ1 to the inactive level. By repeating the above operation a predetermined number of times, the device 11 can write data from the head address. here,
If the number of words of data to be written in the storage medium 6 by the device 11 is not known in advance, it is equal to or more than the address obtained by adding 1 to the value of the counter 1 at the time when the access of the device 11 is completed via the I / F 8 and the final value. Addresses below the address in register 9 and counter 2 in register 9
An address equal to or more than the address set to No. 2 and less than the final address is set to the register 10, and an address more than or equal to the address set to the counter 2 and less than the final address is set to the register 10. Next, the device 12 brings the signal RQ2 to the active level. Since the signal RQ2 has become the active level, the access control device 17 causes the device 12 to store the storage medium 6
To the signal RAS, the signal CAS, the signal ET2, and the signal M at the timing shown in FIG. 6A.
X, the signal RC, and the signal group CNTL are set to the active level. When data is written in the storage medium 6, the access control device 17 causes the signal RAS, the signal CAS, and the signal ET.
2, the signal MX, the signal RC, and the signal group CNTL are set to the inactive level, and the device 12 sets the signal RQ2 to the inactive level. At this time, when the value of the counter 2 matches the jump source address stored in the register 10, the determiner 7 sets the signal RS2 to the active level at the timing shown in FIG. 6B, and the signal RS2 becomes the active level. Now, the counter 2 loads the jump destination address from the register 9. Therefore, the address accessed next to the jump source address is the jump destination address. By repeating the above operation a predetermined number of times, the device 12 can write data in the area from the jump destination address to the jump source address. As described above, the device 11 and the device 12 can write in the shaded area and the shaded area shown in FIG. 7, respectively. The thick arrows in FIG. 7 indicate the order in which the device 12 writes data.
【0014】第二に、デバイス11が第3のアドレスか
ら最終アドレスまでの領域にデータを書き込んだ後にデ
バイス12がデータを書き込む場合について説明する。
まず最初にI/F8を介してカウンタ1に第3のアドレ
スを、カウンタ2に先頭アドレス以上かつ第3のアドレ
スから1を減じたアドレス以下のアドレスを、レジスタ
9に先頭アドレス以上かつカウンタ2に設定したアドレ
ス以下のアドレスを設定する。従って、第3のアドレス
から1を減じたアドレスが飛び元アドレスであり、飛び
先アドレスは飛び元アドレスより先頭アドレスに近いア
ドレスなので、記憶空間は図3に示すようになる。Secondly, a case where the device 12 writes data after the device 11 has written data in the area from the third address to the final address will be described.
First of all, via the I / F 8, the counter 1 is provided with a third address, the counter 2 is provided with an address equal to or greater than the start address and equal to or less than the address obtained by subtracting 1 from the third address, is set to the register 9 or greater and equal to the counter 2 Set an address less than the set address. Therefore, the address obtained by subtracting 1 from the third address is the jump source address, and the jump destination address is an address closer to the start address than the jump source address, so the storage space is as shown in FIG.
【0015】次に、動作を説明すると、デバイス11が
信号RQ1をアクティブレベルにする。信号RQ1がア
クティブレベルとなったので、アクセス制御装置17が
デバイス11に記憶媒体6へのアクセスを許可し、図6
(a)に示すようなタイミングで信号RAS、信号CA
S、信号ET1、信号MX、信号RCおよび信号群CN
TLをアクティブレベルとする。記憶媒体6にデータが
書き込まれると、アクセス制御装置17は信号RAS、
信号CAS、信号ET1、信号MX、信号RCおよび信
号群CNTLをインアクティブレベルにし、デバイス1
1は信号RQ1をインアクティブレベルとする。以上の
動作をカウンタ1の値が最終アドレスに等しくなるまで
繰り返せば、デバイス11は第3のアドレスから最終ア
ドレスまでデータを書き込むことができる。次にデバイ
ス12が信号RQ2をアクティブレベルにする。信号R
Q2がアクティブレベルとなったので、アクセス制御装
置17がデバイス12に記憶媒体6へのアクセスを許可
し、図6(a)に示すようなタイミングで信号RAS、
信号CAS、信号ET2、信号MX、信号RCおよび信
号CNTLをアクティブレベルとする。記憶媒体6にデ
ータが書き込まれると、アクセス制御装装置17は信号
RAS、信号CAS、信号ET2、信号MX、信号RC
および信号群CNTLをインアクティブレベルにし、デ
バイス12は信号RQ2をインアクティブレベルとす
る。このとき、カウンタ2の値がレジスタ10に記憶さ
れた飛び元アドレスに一致した場合には、判定器7が信
号RS2を図6(b)に示すタイミングでアクティブレ
ベルとし、信号RS2がアクティブレベルとなったので
カウンタ2はレジスタ9から飛び先アドレスをロードす
る。従って飛び元アドレスの次にアクセスするアドレス
は飛び先アドレスとなる。以上の動作を所定の回数繰り
返せば、デバイス12は飛び先アドレスから飛び元アド
レスまでの領域にデータを書き込むことができる。以上
によりデバイス11およびデバイス12は、それぞれ図
8に示す影付領域および斜線領域にデータを書き込むこ
とができることになる。なお、図8において太矢印はデ
バイス12がデータを書き込む順序を表している。In operation, the device 11 brings the signal RQ1 to the active level. Since the signal RQ1 becomes the active level, the access control device 17 permits the device 11 to access the storage medium 6,
The signal RAS and the signal CA at the timing shown in FIG.
S, signal ET1, signal MX, signal RC and signal group CN
Set TL to the active level. When the data is written in the storage medium 6, the access control device 17 causes the signal RAS,
The signal CAS, the signal ET1, the signal MX, the signal RC, and the signal group CNTL are set to the inactive level, and the device 1
1 sets the signal RQ1 to the inactive level. By repeating the above operation until the value of the counter 1 becomes equal to the final address, the device 11 can write data from the third address to the final address. Next, the device 12 brings the signal RQ2 to the active level. Signal R
Since Q2 has become the active level, the access control device 17 permits the device 12 to access the storage medium 6, and the signal RAS at the timing shown in FIG.
The signal CAS, the signal ET2, the signal MX, the signal RC, and the signal CNTL are set to the active level. When the data is written in the storage medium 6, the access control device 17 causes the signal RAS, the signal CAS, the signal ET2, the signal MX, and the signal RC.
And the signal group CNTL is set to the inactive level, and the device 12 sets the signal RQ2 to the inactive level. At this time, when the value of the counter 2 matches the jump source address stored in the register 10, the determiner 7 sets the signal RS2 to the active level at the timing shown in FIG. 6B, and the signal RS2 becomes the active level. Now, the counter 2 loads the jump destination address from the register 9. Therefore, the address accessed next to the jump source address becomes the jump destination address. By repeating the above operation a predetermined number of times, the device 12 can write data in the area from the jump destination address to the jump source address. As described above, the device 11 and the device 12 can write data in the shaded area and the hatched area shown in FIG. 8, respectively. The thick arrows in FIG. 8 indicate the order in which the device 12 writes data.
【0016】第三に、デバイス11が第3のアドレスか
らデータを書き込んだ後に、デバイス12が先頭アドレ
ス以上かつ第3のアドレスから1を減じたアドレス以下
のアドレスからデータを書き込む場合について説明す
る。まず最初にI/F8を介してカウンタ1に第3のア
ドレスを、レジスタ10に第3のアドレスより1を減じ
たアドレスを、カウンタ2に先頭アドレス以上かつレジ
スタ10に設定したアドレス以下のアドレスを設定す
る。ここで、デバイス11が記憶媒体6に書き込むデー
タのワード数があらかじめわかっている場合には、同様
にして第3のアドレスにワード数回1を加えたアドレス
をレジスタ9に設定する。従って、第3のアドレスから
1を減じたアドレスが飛び元アドレスであり、デバイス
11がデータを書き込む領域の最終アドレスに1を加え
たアドレスが飛び先アドレスであり、飛び元アドレスは
飛び先アドレスより先頭アドレスに近いアドレスなの
で、記憶空間は図4に示すようになる。Thirdly, a case will be described in which, after the device 11 writes data from the third address, the device 12 writes data from an address equal to or higher than the start address and equal to or lower than the address obtained by subtracting 1 from the third address. First, a third address is set in the counter 1 via the I / F 8, an address obtained by subtracting 1 from the third address is set in the register 10, and an address not less than the start address and not more than the address set in the register 10 is set in the counter 2. Set. Here, if the number of words of data to be written in the storage medium 6 by the device 11 is known in advance, an address obtained by adding 1 to the third address is set in the register 9 in the same manner. Therefore, the address obtained by subtracting 1 from the third address is the jump source address, and the address obtained by adding 1 to the final address of the area where the device 11 writes data is the jump destination address. Since the address is close to the start address, the storage space is as shown in FIG.
【0017】次に、動作を説明すると、デバイス11が
信号RQ1をアクティブレベルにする。信号RQ1がア
クティブレベルとなったので、アクセス制御装置17が
デバイス11に記憶媒体6へのアクセスを許可し、図6
(a)に示すようなタイミングで信号RAS、信号CA
S、信号ET1、信号MX、信号RCおよび信号群CN
TLをアクティブレベルとする。記憶媒体6にデータが
書き込まれると、アクセス制御装置17は信号RAS、
信号CAS、信号ET1、信号MX、信号RCおよび信
号群CNTLをインアクティブレベルにし、デバイス1
1は信号RQ1をインアクティブレベルとする。以上の
動作を所定の回数繰り返せば、デバイス11は第3のア
ドレスからデータを書き込むことができる。ここで、デ
バイス11が記憶媒体6に書き込むデータのワード数が
あらかじめわかっていなかった場合には、I/F8を介
してレジスタ9にデバイス11のアクセスが終了した時
点のカウンタ1の値に1を加えたアドレスをレジスタ9
に設定する。次に、デバイス12が信号RQ2をアクテ
ィブレベルにする。信号RQ2がアクティブレベルとな
ったので、アクセス側制御装置17がデバイス12に記
憶媒体6へのアクセスをを許可し、図6(a)に示すよ
うなタイミングで信号RAS、信号CAS、信号ET
2、信号MX、信号RCおよび信号群CNTLをアクテ
ィブレベルとする。記憶媒体6にデータが書き込まれる
と、アクセス制御装置17は信号RAS、信号CAS、
信号ET2、信号MX、信号RCおよび信号群CNTL
をインアクティブレベルとする。このとき、カウンタ2
の値がレジスタ10に記憶された飛び元アドレスに一致
した場合には、判定器7が信号RS2を図6(b)にタ
イミングでアクティブレベルとし、信号RS2がアクテ
ィブレベルとなったのでカウンタ2はレジスタ9から飛
び先アドレスをロードする。従って飛び元アドレスの次
にアクセスするアドレスは飛び先アドレスとなる。以上
の動作を所定の回数繰り返せば、デバイス12は先頭ア
ドレス以上かつレジスタ10に設定したアドレス以下の
アドレスからデータを書き込むことができる。以上によ
りデバイス11およびデバイス12は、図9に示す影付
領域および斜線領域にデータを書き込むことができるこ
とになる。なお、図9において太矢印は、デバイス12
がデータを書き込む順序を表している。In operation, the device 11 brings the signal RQ1 to the active level. Since the signal RQ1 becomes the active level, the access control device 17 permits the device 11 to access the storage medium 6,
The signal RAS and the signal CA at the timing shown in FIG.
S, signal ET1, signal MX, signal RC and signal group CN
Set TL to the active level. When the data is written in the storage medium 6, the access control device 17 causes the signal RAS,
The signal CAS, the signal ET1, the signal MX, the signal RC, and the signal group CNTL are set to the inactive level, and the device 1
1 sets the signal RQ1 to the inactive level. By repeating the above operation a predetermined number of times, the device 11 can write data from the third address. Here, if the number of words of data to be written in the storage medium 6 by the device 11 is not known in advance, 1 is set to the value of the counter 1 at the time when the access of the device 11 to the register 9 via the I / F 8 is completed. Register the added address
Set to. Next, the device 12 brings the signal RQ2 to the active level. Since the signal RQ2 has become the active level, the access side control device 17 permits the device 12 to access the storage medium 6, and the signal RAS, the signal CAS, and the signal ET at the timings shown in FIG. 6A.
2. The signal MX, the signal RC, and the signal group CNTL are set to the active level. When the data is written in the storage medium 6, the access control device 17 causes the signal RAS, the signal CAS,
Signal ET2, signal MX, signal RC and signal group CNTL
Is the inactive level. At this time, the counter 2
If the value of the counter coincides with the jump source address stored in the register 10, the decision unit 7 sets the signal RS2 to the active level at the timing shown in FIG. 6B, and the signal RS2 becomes the active level. The jump destination address is loaded from the register 9. Therefore, the address accessed next to the jump source address becomes the jump destination address. By repeating the above operation a predetermined number of times, the device 12 can write data from an address which is equal to or higher than the head address and equal to or lower than the address set in the register 10. As described above, the device 11 and the device 12 can write data in the shaded area and the shaded area shown in FIG. In FIG. 9, the thick arrow indicates the device 12
Represents the order of writing data.
【0018】第四に、デバイス11が第3のアドレスか
らデータを書き込んだ後に、デバイス11がアクセスし
た領域の最終アドレスより1つ後のアドレス以上かつ最
終アドレス以下のアドレスからデバイス12がデータを
書き込む場合について説明する。まず最初にI/F8を
介してカウンタ1に第3のアドレスを、レジスタ9に先
頭アドレスを設定する。ここでデバイス11が記憶媒体
6に書き込むデータのワード数があらかじめわかってい
る場合には、同様にして第3のアドレスにワード数回1
を加えたアドレス以上かつ最終アドレス以下のアドレス
をカウンタ2に設定する。次に、デバイス11が第三の
場合のデバイス11と同様に、第3のアドレスからデー
タを書き込む。ここで、デバイス11が記憶媒体6に書
き込むデータのワード数があらかじめわかっていなかっ
た場合には、I/F8を介してカウンタ2にデバイス1
1のアクセスが終了した時点でカウンタ1に記憶されて
いるアドレスに1を加えたアドレス以上かつ最終アドレ
ス以下のアドレスを設定する。次にデバイス12が信号
RQ2をアクティブレベルにする。信号RQ2がアクテ
ィブレベルとなったので、アクセス制御装置17がデバ
イス12に記憶媒体6へのアクセスを許可し、図6
(a)に示すようなタイミングで信号RAS、信号CA
S、信号ET2、信号MX、信号RCおよび信号群CN
TLをアクティブレベルとする。記憶媒体6にデータが
書き込まれると、アクセス制御装置17は信号RAS、
信号CAS、信号ET2、信号MX、信号RCおよび信
号群CNTLをインアクティブレベルにし、デバイス1
2は信号RQ2をインアクティブレベルとする。このと
きカウンタ2の値がレジスタ10に記憶された飛び元ア
ドレス、つまり最終アドレスに一致した場合には、判定
器7が信号RS2を図6(b)に示すタイミングでアク
ティブレベルとし、信号RS2がアクティブレベルとな
ったのでカウンタ2はレジスタ9から飛び先アドレス、
つまり先頭アドレスをロードする。従って最終アドレス
の次にアクセスするアドレスは先頭アドレスとなる。以
上の動作を所定の回数繰り返せば、デバイス12はデバ
イス11がアクセスした領域の最終アドレスより1つ後
のアドレス以上かつ最終アドレス以下のアドレスからデ
ータを書き込むことができる。以上によりデバイス11
およびデバイス12は、図10に示す影付領域および斜
線領域にデータを書き込むことができることになる。な
お、図10においては太矢印はデバイス12がデータを
書き込む順序を表している。Fourth, after the device 11 writes data from the third address, the device 12 writes data from an address which is one address after the final address of the area accessed by the device 11 and which is less than the final address. The case will be described. First, the third address is set in the counter 1 and the head address is set in the register 9 via the I / F 8. Here, if the number of words of data to be written in the storage medium 6 by the device 11 is known in advance, the number of words 1
An address equal to or more than the address added with and less than or equal to the final address is set in the counter 2. Next, similarly to the device 11 when the device 11 is the third device, data is written from the third address. Here, when the number of words of data to be written in the storage medium 6 by the device 11 is not known in advance, the device 1 is stored in the counter 2 via the I / F 8.
When the access of 1 is completed, an address equal to or greater than the address obtained by adding 1 to the address stored in the counter 1 and equal to or less than the final address is set. Next, the device 12 brings the signal RQ2 to the active level. Since the signal RQ2 has become the active level, the access control device 17 permits the device 12 to access the storage medium 6,
The signal RAS and the signal CA at the timing shown in FIG.
S, signal ET2, signal MX, signal RC and signal group CN
Set TL to the active level. When the data is written in the storage medium 6, the access control device 17 causes the signal RAS,
The signal CAS, the signal ET2, the signal MX, the signal RC, and the signal group CNTL are set to the inactive level, and the device 1
2 sets the signal RQ2 to the inactive level. At this time, when the value of the counter 2 matches the jump source address stored in the register 10, that is, the final address, the decision unit 7 sets the signal RS2 to the active level at the timing shown in FIG. Since it becomes the active level, the counter 2 jumps from the register 9 to the destination address,
That is, the top address is loaded. Therefore, the address to be accessed next to the final address is the top address. By repeating the above operation a predetermined number of times, the device 12 can write data from an address which is one address after the final address of the area accessed by the device 11 and which is less than the final address. Device 11
Then, the device 12 can write data in the shaded area and the hatched area shown in FIG. Note that, in FIG. 10, thick arrows indicate the order in which the device 12 writes data.
【0019】以上、第一〜第四の場合では、2つのデバ
イスが順にアクセスする場合の動作にいて説明したが、
3つ以上のデバイスが順にアクセスする場合の動作につ
いては、第一〜第四の場合の動作の組み合わせによって
説明することができる。例えば、デバイス11が第3の
アドレスからデータを書き込んだ後に、デバイス11が
アクセスした領域の最終アドレスに1を加えたアドレス
以上かつ最終アドレス以下の第4のアドレスから最終ア
ドレスまでのデバイス12がデータを書き込み、デバイ
ス13が先頭アドレスからデータ書き込み、さらにデバ
イス13がアクセスした領域の最終アドレスに1を加え
たアドレス以上かつ第3のアドレスより1を減じたアド
レス以下のアドレスからデバイス14がアクセスする場
合は、記憶装置にまず最初に、上記第四の場合と同様の
動作をさせ、次に第二の場合においてレジスタ9にこの
時点でカウンタ1に記憶されているアドレスに1を加え
たアドレスを、レジスタ10に第3のアドレスから1を
減じたアドレスを設定した場合の動作をさせ、次に第三
の場合と同様の動作をさせ、そしてデバイス13がアク
セスした領域の最終アドレスに1を加えたアドレス以上
かつ第3のアドレスから1を減じたアドレス以下の領域
にデバイス14がアクセスしている時は第三の場合と同
様に、デバイス11がアクセスした領域の最終アドレス
に1を加えたアドレス以上かつ第4のアドレスから1を
減じたアドレス以下の領域にデバイス14がアクセスし
ている時は第二の場合においてレジスタ9にデバイス1
3がアクセスした領域の最終アドレスに1を加えたアド
レスを設定した場合の動作をさせればよい。この場合の
各デバイスがアクセスする空間記憶の領域を図11に示
す。4つ以上のデバイスが順にアクセスする場合も同様
である。In the above, in the first to fourth cases, the operation when two devices sequentially access has been described.
The operation when three or more devices sequentially access can be described by a combination of the operations in the first to fourth cases. For example, after the device 11 writes data from the third address, the devices 12 from the fourth address to the final address which is equal to or more than the address obtained by adding 1 to the last address of the area accessed by the device 11 and less than the last address When the device 13 writes data from the start address, and the device 14 accesses from an address equal to or higher than the address obtained by adding 1 to the final address of the area accessed by the device 13 and equal to or lower than the address obtained by subtracting 1 from the third address. First causes the storage device to operate in the same manner as in the fourth case, and then in the second case, the address obtained by adding 1 to the address stored in the counter 1 at this point in the register 9 is added, The operation when the address obtained by subtracting 1 from the third address is set in register 10 Then, the same operation as in the third case is performed, and the device 14 accesses the area above the address obtained by adding 1 to the final address of the area accessed by the device 13 and below the address obtained by subtracting 1 from the third address. In the same manner as in the third case, the device 14 accesses the area above the address obtained by adding 1 to the final address of the area accessed by the device 11 and below the address obtained by subtracting 1 from the fourth address. In the second case, the device 1 in register 9
It is sufficient to perform the operation when the address obtained by adding 1 to the final address of the area accessed by 3 is set. FIG. 11 shows the area of the spatial storage accessed by each device in this case. The same applies when four or more devices sequentially access.
【0020】以上、動作例として、記憶媒体6を図5に
示すようなタイミングで、信号、データおよびアドレス
を入力する必要があるDRAMで構成するとし、記憶媒
体6に読み書きするデータは1ワード(16ビット)単
位であるとした場合の、本発明の記憶装置の動作を説明
したが、本発明はこれに限定されていないことは以下か
らも明らかである。As an example of the operation described above, it is assumed that the storage medium 6 is composed of a DRAM which needs to input signals, data and addresses at the timings shown in FIG. 5, and the data to be read from and written to the storage medium 6 is one word ( Although the operation of the storage device of the present invention has been described in the case of the unit of 16 bits), it is clear from the following that the present invention is not limited to this.
【0021】まず、記憶媒体6を図5に示すようなタイ
ミングとは異なるタイミングで、信号、データおよびア
ドレスを入力する必要があるDRAMで構成する場合に
は、信号群CNTLと、アクセスを許可されたデバイス
に対応した信号ET1〜ET4のいずれか、信号MX、
信号RC、信号群CNTLをアクティブレベルとするタ
イミングが変わるのみであり、記憶装置自体の動作は変
わらない。また、記憶媒体6に読み書きするデータが1
ワード単位でない場合および記憶媒体6をハードディス
クドライブや光磁気ディスク装置等で構成した場合も同
様である。First, when the storage medium 6 is composed of a DRAM which requires input of signals, data and addresses at timings different from those shown in FIG. 5, the signal group CNTL and access is permitted. Signal ET1 to ET4 corresponding to the device, signal MX,
Only the timing of setting the signal RC and the signal group CNTL to the active level changes, and the operation of the storage device itself does not change. In addition, the data to be read from and written to the storage medium 6 is 1
The same applies to the case where the storage medium 6 is not a word unit and the storage medium 6 is configured by a hard disk drive, a magneto-optical disk device, or the like.
【0022】また、複数個のデバイスが同時にアクセス
要求信号をアクティブレベルとした場合には、アクセス
制御装置17が所定の優先順位に従ってアクセスを許可
するデバイスを決定した後にただ1つのデバイスがアク
セス要求信号をアクティブレベルとした場合と同様の動
作を行えばよく、あるデバイスがアクセス中に別のデバ
イスがアクセス要求信号をアクティブレベルとした場合
には、最低アクセス中のデバイスのアクセスが終了する
までアクセスが許可されるのを待てばよい。When a plurality of devices simultaneously set the access request signal to the active level, only one device requests the access request signal after the access control device 17 determines the devices to which the access is permitted according to a predetermined priority. The same operation as when is set to the active level is performed.If another device sets the access request signal to the active level while another device is accessing, access is performed until the access of the device being accessed at the minimum is completed. You just have to wait for permission.
【0023】また、図1に示す本発明の記憶装置を含む
システム構成例では、記憶装置にデータの書き込みまた
は読み出しのためにアクセスするデバイスは4個である
が、上記以外の個数の場合は、記憶装置15のカウンタ
の数を最低限デバイスの個数用意し、上記と同様の制御
を行えばよい。また、入力データバスと出力データバス
が別個となっているデバイスに対しては、読み出し用と
書き込み用のカウンタを設け、読み出しアクセス要求信
号と書き込みアクセス信号を設けて上記と同様の制御を
行えばよい。Further, in the system configuration example including the storage device of the present invention shown in FIG. 1, the number of devices that access the storage device for writing or reading data is four. The minimum number of counters in the storage device 15 may be prepared and the same control as described above may be performed. For devices having separate input data buses and output data buses, a read counter and a write counter are provided, and a read access request signal and a write access signal are provided to perform the same control as above. Good.
【0024】また、図2に示す本発明の記憶装置の構成
例では、飛び先アドレスをレジスタ9に記憶し、信号R
S1〜RS4がアクティブレベルとなると、対応するカ
ウンタ1〜4がレジスタ9より飛び先アドレスをロード
するようにしているが、図12に示すように飛び元アド
レスをあるアドレスに固定し、飛び先アドレスを変化さ
せる場合には、信号RS1〜RS4がアクティブレベル
となると、値が飛び先アドレスとなるようカウンタを構
成させればよい。In the configuration example of the memory device of the present invention shown in FIG. 2, the jump destination address is stored in the register 9 and the signal R
When S1 to RS4 become active levels, the corresponding counters 1 to 4 load the jump destination address from the register 9, but the jump source address is fixed to a certain address as shown in FIG. When changing the signal, the counter may be configured so that the value becomes the jump destination address when the signals RS1 to RS4 become the active level.
【0025】また、図2に示す本発明の記憶装置の構成
では、飛び元アドレスをレジスタ10に記憶し、カウン
タ1〜4の値が飛び元アドレスと等しくなると信号RS
1〜RS4をアクティブレベルとするようにしており、
そのための回路構成例としては、バスRDとバスCD1
〜CD4を入力としバスCD1〜CD4上のデータがバ
スRD上のデータと一致すると対応する信号RS1〜R
S4をアクティブレベルとする判定器(比較器)がある
が、図13に示すように飛び先アドレスをあるアドレス
に固定し、飛び元アドレスを変化させる場合には、判定
器7はバスCD1〜CD4を入力としバスCD1〜CD
4上のデータが飛び元アドレスと一致すると対応する信
号RS1〜RS4を所定のタイミングでアクティブレベ
ルとする組み合わせ回路でもよい。Further, in the configuration of the memory device of the present invention shown in FIG. 2, the jump source address is stored in the register 10, and when the values of the counters 1 to 4 become equal to the jump source address, the signal RS is output.
1 to RS4 are set to the active level,
As a circuit configuration example for that purpose, a bus RD and a bus CD1
~ CD4 as an input, and when the data on the buses CD1 to CD4 match the data on the bus RD, the corresponding signals RS1 to R
Although there is a determiner (comparator) that makes S4 an active level, as shown in FIG. 13, when the jump destination address is fixed to a certain address and the jump source address is changed, the determiner 7 uses the buses CD1 to CD4. Input as bus CD1-CD
4 may be a combinational circuit that sets the corresponding signals RS1 to RS4 to the active level at a predetermined timing when the data on 4 corresponds to the jump source address.
【0026】[0026]
【発明の効果】以上のように本発明によれば、記憶装置
外部から記憶装置内部のカウンタへの値の再設定を行わ
ずに記憶空間の不連続な領域に連続してアクセスするこ
とができる。従って、値の再設定のための時間および手
順が不要となり、処理速度の向上が図れ、制御も簡単に
なる。また、記憶媒体にアクセスするデバイスは任意の
データ量のデータを記憶媒体に読み書きでき、特に飛び
先アドレスが飛び元アドレスにより先頭アドレスに近い
アドレスの場合には飛び先アドレスから飛び元アドレス
までの領域がリングバッファ領域となるため、記憶空間
を有効に利用することができる。As described above, according to the present invention, it is possible to continuously access discontinuous areas of the storage space from outside the storage device without resetting the value in the counter inside the storage device. . Therefore, the time and procedure for resetting the value are unnecessary, the processing speed can be improved, and the control can be simplified. In addition, a device that accesses the storage medium can read and write data of an arbitrary amount of data to and from the storage medium, and particularly when the jump destination address is closer to the start address due to the jump source address, the area from the jump destination address to the jump source address Since it becomes the ring buffer area, the storage space can be effectively used.
【図1】 本発明の記憶装置を含むシステムの一構成図
である。FIG. 1 is a configuration diagram of a system including a storage device of the present invention.
【図2】 本発明の記憶装置の一構成図である。FIG. 2 is a configuration diagram of a storage device of the present invention.
【図3】 飛び先アドレスを飛び元アドレスより先頭ア
ドレスに近いアドレスに設定した場合の記憶空間の状態
を表す図である。FIG. 3 is a diagram showing a state of a storage space when a jump destination address is set to an address closer to a start address than a jump source address.
【図4】 飛び元アドレスを飛び先アドレスより先頭ア
ドレスに近いアドレスに設定した場合の記憶空間の状態
を表す図である。FIG. 4 is a diagram showing a state of a storage space when a jump source address is set to an address closer to a start address than a jump destination address.
【図5】 図2の記憶媒体に対する制御信号、データお
よびアドレスのタイミングの一例を示す図である。5 is a diagram showing an example of timings of control signals, data and addresses for the storage medium of FIG.
【図6】 図2の記憶媒体に図5に示すタイミングで各
信号を制御することを必要とするDRAMを用い、デバ
イスがデータの読み出しのために記憶媒体にアクセスす
る場合の各信号のタイミングの一例を示す図である。FIG. 6 is a timing chart of each signal when a DRAM is required to control each signal at the timing shown in FIG. 5 in the storage medium of FIG. 2 and a device accesses the storage medium for reading data. It is a figure which shows an example.
【図7】 第一の場合の記憶空間の状態を表す図であ
る。FIG. 7 is a diagram showing a state of a storage space in the first case.
【図8】 第二の場合の記憶空間の状態を表す図であ
る。FIG. 8 is a diagram showing a state of a storage space in the second case.
【図9】 第三の場合の記憶空間の状態を表す図であ
る。FIG. 9 is a diagram showing a state of a storage space in a third case.
【図10】 第四の場合の記憶空間の状態を表す図であ
る。FIG. 10 is a diagram showing a state of a storage space in a fourth case.
【図11】 3つ以上のデバイスが順にアクセスする場
合の一例の記憶空間の状態を表す図である。FIG. 11 is a diagram showing an example of a storage space state when three or more devices sequentially access.
【図12】 飛び先アドレスを固定した場合の記憶空間
の状態を表す図である。FIG. 12 is a diagram showing a state of a storage space when a jump destination address is fixed.
【図13】 飛び元アドレスを固定した場合の記憶空間
の状態を表す図である。FIG. 13 is a diagram showing a state of a storage space when a jump source address is fixed.
1〜4…アドレスカウンタ、5…マルチプレクサ、6…
記憶媒体、7…判定器、8…インターフェース、9〜1
0…レジスタ、11〜14…デバイス、15…記憶装
置、16…制御装置、17…アクセス制御装置1 to 4 ... Address counter, 5 ... Multiplexer, 6 ...
Storage medium, 7 ... Judgment device, 8 ... Interface, 9-1
0 ... Register, 11-14 ... Device, 15 ... Storage device, 16 ... Control device, 17 ... Access control device
Claims (1)
たは読みだしのためにアクセスする記憶媒体と、 前記複数個のデバイスに対応して、それぞれ書き込みま
たは読みだしアドレスを指示する複数個のアドレスカウ
ンタと、 前記記憶媒体の記憶空間内の任意のアドレスを保持する
第1のアドレス保持手段と、 第1のアドレス保持手段に記憶されたアドレスとは異な
る任意のアドレスを保持する第2のアドレス保持手段
と、 前記アドレスカウンタの値と前記第2のアドレス保持手
段に記憶されたアドレスとを比較し、両者が一致した時
点で前記アドレスカウンタの値を第1のアドレス保持手
段に記憶された値に変えるべく制御する制御手段とを備
えたことを特徴とする記憶装置。1. A storage medium that a plurality of devices access to write or read data, and a plurality of address counters that respectively indicate write or read addresses corresponding to the plurality of devices. First address holding means for holding an arbitrary address in the storage space of the storage medium, and second address holding means for holding an arbitrary address different from the address stored in the first address holding means To compare the value of the address counter with the address stored in the second address holding means, and change the value of the address counter to the value stored in the first address holding means when they match. A storage device comprising control means for controlling.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP27557993A JPH07129457A (en) | 1993-11-04 | 1993-11-04 | Storage device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP27557993A JPH07129457A (en) | 1993-11-04 | 1993-11-04 | Storage device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH07129457A true JPH07129457A (en) | 1995-05-19 |
Family
ID=17557427
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP27557993A Pending JPH07129457A (en) | 1993-11-04 | 1993-11-04 | Storage device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH07129457A (en) |
-
1993
- 1993-11-04 JP JP27557993A patent/JPH07129457A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US7984246B1 (en) | Multicore memory management system | |
| CA1304523C (en) | Computer bus having page mode memory access | |
| JP4150718B2 (en) | Destructive read type random access memory system | |
| KR102700109B1 (en) | Adaptive memory access management | |
| US7200693B2 (en) | Memory system and method having unidirectional data buses | |
| US6587917B2 (en) | Memory architecture for supporting concurrent access of different types | |
| US7069409B2 (en) | System for addressing a data storage unit used in a computer | |
| US7003637B2 (en) | Disk array device with utilization of a dual-bus architecture dependent on data length of cache access requests | |
| JPH07129457A (en) | Storage device | |
| EP0587370A1 (en) | Method and apparatus for software sharing between multiple controllers | |
| JPH05197619A (en) | Memory control circuit for multi-cpu | |
| US7111122B2 (en) | Access circuit with various access data units | |
| JPH0528770A (en) | Multiport memory circuit | |
| JPH0512883A (en) | Sequential memory | |
| JP2882202B2 (en) | Multi-port access control circuit | |
| JPH04358220A (en) | Electronic disk device | |
| JP2870285B2 (en) | register | |
| JPH10207825A (en) | Data transfer device | |
| JP2900892B2 (en) | Information processing device | |
| JP2591928B2 (en) | Cache storage circuit | |
| JPH10208479A (en) | Dual port memory device | |
| JPH03223950A (en) | bus conversion circuit | |
| JPH0231220A (en) | Dynamic route memory circuit for magnetic disk device | |
| JPS60126750A (en) | cache memory device | |
| JPS62273692A (en) | Memory access system |