JPH05189360A - Data transfer and storage system - Google Patents

Data transfer and storage system

Info

Publication number
JPH05189360A
JPH05189360A JP4023330A JP2333092A JPH05189360A JP H05189360 A JPH05189360 A JP H05189360A JP 4023330 A JP4023330 A JP 4023330A JP 2333092 A JP2333092 A JP 2333092A JP H05189360 A JPH05189360 A JP H05189360A
Authority
JP
Japan
Prior art keywords
data
memory
transfer
compression
processor
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP4023330A
Other languages
Japanese (ja)
Inventor
Yoshihisa Omoto
能久 大本
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Software Shikoku Ltd
Original Assignee
NEC Software Shikoku Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Software Shikoku Ltd filed Critical NEC Software Shikoku Ltd
Priority to JP4023330A priority Critical patent/JPH05189360A/en
Publication of JPH05189360A publication Critical patent/JPH05189360A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To shorten time for access and time for waiting for a bus and a memory with competition by transferring/storing data by compressing it every time of burst transfer operation on a bus. CONSTITUTION:The system is provided with data compression means 1-3, 2-3 and data extension means 1-4, 2-4, which can compress/extend data every time of burst transfer operation in the case of burst transfer in a bus between processors 1, 2 and a memory 3 so as to transfer data between the processors 1, 2 and the memory 3. In this case, the system is also provided with a compression data transfer requirement signal and a compressing data response signal selecting the presence/absence of data compression at the time of burst transfer and a bit storing the presence/absence of the compression of data stored in the memory 3.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は情報処理装置においてプ
ロセッサとメモリ間のデータの転送方式およびそのメモ
リにおけるデータの記憶方式に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data transfer system between a processor and a memory in an information processing apparatus and a data storage system in the memory.

【0002】[0002]

【従来の技術】従来、プロセッサとメモリ間のデータの
転送では1回の転送サイクルで1ワードのデータ転送を
行う場合が多かった。この場合、転送サイクル毎のデー
タ圧縮の必要性はない。また、1回の転送サイクルで複
数のワードのデータ転送を行うバースト転送の場合にお
いても転送サイクル毎のデータ圧縮は行われていなかっ
た。
2. Description of the Related Art Conventionally, in transferring data between a processor and a memory, one word of data is often transferred in one transfer cycle. In this case, there is no need for data compression for each transfer cycle. Further, even in the case of burst transfer in which data transfer of a plurality of words is performed in one transfer cycle, data compression is not performed for each transfer cycle.

【0003】[0003]

【発明が解決しようとする課題】近年、ICの高集積化
および高速化に伴い、プロセッサの動作速度の向上は著
しく、メモリとの動作速度の差は大きくなる一方であ
る。このためプロセッサに高速に多量のデータを供給す
るために1回のメモリアクセスでより多くのデータを読
み書きすることが必要であり、1回の転送サイクルで複
数ワードのデータ転送を行うバースト転送を行うことが
必要である。例えば、1回のバースト転送サイクルで4
ワードのデータ転送があり、プロセッサの使用するクロ
ックを基準として1クロック毎にデータを供給する場合
には、メモリは4ワード分を読み出して1クロック毎に
順次転送しなければならない。しかし、一般的にメモリ
は1回のアクセスに数クロック以上の時間が必要である
ため、1クロック毎にデータを供給するには1回のメモ
リアクセスで4ワード分のデータを同時に読み出す必要
がある。これは、メモリを構成するハードウェア量は単
一ワードアクセスのメモリ構成に対し、バースト転送を
行う場合には4ワード分のメモリを用意する必要があ
り、物量が大きくなるという課題があった。つぎに、デ
ータ転送間隔を広げ数クロック毎にデータを供給する場
合は上記1クロック毎のデータ転送を行う場合よりはハ
ードウェア量を少なくできるが、1回のデータ転送サイ
クルがメモリとデータ転送用のバスを占有する時間が長
くなるという課題があった。また、複数のプロセッサが
同一のバスを使用しメモリアクセスを行うようなマルチ
プロセッサ構成の場合には、一つのプロセッサがメモリ
へのデータ転送サイクルを行っている間の時間は他のプ
ロセッサからはバスが使用できるまでの待ち時間にな
る。つまり、データ転送サイクルが長くなれば待ち時間
は長くなるという課題があった。
In recent years, with the high integration and high speed of ICs, the operating speed of the processor has been remarkably improved, and the difference in operating speed from the memory has been increasing. Therefore, in order to supply a large amount of data to the processor at high speed, it is necessary to read and write more data in one memory access, and burst transfer is performed in which data transfer of multiple words is performed in one transfer cycle. It is necessary. For example, 4 in one burst transfer cycle
When there is word data transfer and data is supplied every clock based on the clock used by the processor, the memory must read four words and sequentially transfer every clock. However, in general, a memory requires a time of several clocks or more for one access, and therefore, in order to supply data for each clock, it is necessary to read four words of data simultaneously by one memory access. .. As for the amount of hardware constituting the memory, in contrast to the memory configuration of single word access, it is necessary to prepare a memory for four words in the case of burst transfer, and there is a problem that the physical quantity becomes large. Next, when the data transfer interval is widened and the data is supplied every several clocks, the amount of hardware can be reduced as compared with the case where the data transfer is performed every one clock, but one data transfer cycle is for memory and data transfer. There was a problem that the time to occupy the bus would be long. In the case of a multiprocessor configuration in which multiple processors use the same bus for memory access, the time during which one processor performs a data transfer cycle to the memory is Will be waiting until you can use. That is, there is a problem that the waiting time becomes longer as the data transfer cycle becomes longer.

【0004】[0004]

【課題を解決するための手段】本発明のデータ転送およ
び記憶方式は、情報処理装置においてプロセッサとメモ
リを有しそのプロセッサとメモリ間のデータ転送におい
て、1回の転送動作で複数ワードのデータを転送できる
バースト転送を行う際、バースト転送動作ごとにデータ
の圧縮伸張できるデータ圧縮手段およびデータ伸張手段
をプロセッサとシステムバス間に備え、データ圧縮およ
び伸張のために特別なデータ転送サイクルを起動するこ
となくプロセッサのバースト転送の書き込みサイクル中
でデータ圧縮を行い、バースト転送の読み出しサイクル
中にデータ伸張を行うことにより、プロセッサとメモリ
間のデータ転送を行う際に1回のバースト転送動作がシ
ステムバスを占有する時間を短くするようにしたもので
ある。また、本発明の別の発明によるデータ転送方式は
上記のものにおいて、プロセッサとメモリ間のバースト
転送動作でのデータ転送において、データ転送を行う際
にデータ圧縮の有無を選択する選択手段を備え、圧縮効
果のあるデータのみを圧縮し転送することにより圧縮伸
張によるデータ転送のオーバーヘッドを軽減するように
したものである。また、本発明のさらに別の発明による
データ転送方式は、上記の第2の発明において、データ
転送方式で使用されるメモリにおいて記憶されているデ
ータの圧縮の有無を記憶する記憶手段を備え、バースト
転送するデータが圧縮データでも伸張することなく書込
みおよび読み出しを行うことにより、データが圧縮され
ている場合には1回のデータ書き込みおよび読み出しに
要する時間を短くするようにしたものである。
A data transfer and storage system of the present invention has a processor and a memory in an information processing apparatus, and in data transfer between the processor and the memory, a plurality of words of data are transferred in one transfer operation. When performing burst transfer that can be transferred, a data compression unit and a data expansion unit that can compress and expand data for each burst transfer operation are provided between the processor and the system bus, and a special data transfer cycle is activated for data compression and expansion. Rather, data compression is performed during the burst transfer write cycle of the processor, and data decompression is performed during the burst transfer read cycle, so that one burst transfer operation is performed on the system bus during data transfer between the processor and memory. It occupies a short time. In the data transfer method according to another invention of the present invention, in the above-mentioned one, in the data transfer in the burst transfer operation between the processor and the memory, there is provided a selection means for selecting the presence / absence of data compression, By compressing and transferring only data having a compression effect, the data transfer overhead due to compression and decompression is reduced. A data transfer method according to yet another invention of the present invention is the burst invention according to the second invention, further comprising storage means for storing the presence or absence of compression of the data stored in the memory used in the data transfer method. Even if the data to be transferred is compressed data, writing and reading are performed without decompression, so that the time required for one-time data writing and reading is shortened when the data is compressed.

【0005】[0005]

【作用】本発明においては、データをバス上のバースト
転送動作ごとに圧縮して転送,記憶し、また、データ圧
縮の有無を選択する。
In the present invention, data is compressed and transferred and stored for each burst transfer operation on the bus, and the presence or absence of data compression is selected.

【0006】[0006]

【実施例】図1は本発明の一実施例を示すブロック図で
ある。この図1において、1,2はプロセッサ、3はメ
モリ、4は10ポートである。このプロセッサ1,2、
10ポート4およびメモリ3はシステムバス5に接続さ
れ、プロセッサ1,プロセッサ2はシステムバス5を通
してメモリ3、10ポート4等をアクセスする。なお、
プロセッサ1とプロセッサ2は独立して動作し、任意に
メモリ3をアクセスすることができる。
FIG. 1 is a block diagram showing an embodiment of the present invention. In FIG. 1, 1 and 2 are processors, 3 is memory, and 4 is 10 ports. These processors 1, 2,
The 10 ports 4 and the memory 3 are connected to the system bus 5, and the processors 1 and 2 access the memories 3, 10 ports 4 and the like through the system bus 5. In addition,
The processor 1 and the processor 2 operate independently, and the memory 3 can be arbitrarily accessed.

【0007】そして、プロセッサ1はデータ処理を行う
マイクロプロセッサ1−1と、このマイクロプロセッサ
1−1固有のバスであるローカルバス1−2と、書き込
みデータの圧縮を行うデータ圧縮部1−3と、読み出し
データの伸張を行うデータ伸張部1−4と、圧縮データ
と通常データの切り替えを行うデータセレクタ1−5
と、システムバス5とデータセレクタ1−5を接続する
バスバッファ1−6と、マイクロプロセッサ1−1のシ
ステムバス5へのアクセスを制御するバス制御部1−7
と、マイクロプロセッサ1−1がデータの圧縮を指示す
る圧縮指示信号1−8および圧縮の成否を示す圧縮完了
信号1−9より構成される。
The processor 1 includes a microprocessor 1-1 for processing data, a local bus 1-2 which is a bus unique to the microprocessor 1-1, and a data compression section 1-3 for compressing write data. , A data decompression unit 1-4 for decompressing read data, and a data selector 1-5 for switching between compressed data and normal data.
, A bus buffer 1-6 that connects the system bus 5 and the data selector 1-5, and a bus control unit 1-7 that controls access to the system bus 5 by the microprocessor 1-1.
And a compression instruction signal 1-8 for instructing data compression by the microprocessor 1-1 and a compression completion signal 1-9 for indicating success or failure of compression.

【0008】プロセッサ2はデータ処理を行うマイクロ
プロセッサ2−1と、このマイクロプロセッサ2−1固
有のバスであるローカルバス2−2と、書き込みデータ
の圧縮を行うデータ圧縮部2−3と、読み出しデータの
伸張を行うデータ伸張部2−4と、圧縮データと通常デ
ータの切り替えを行うデータセレクタ2−5と、システ
ムバス5とデータセレクタ2−5を接続するバスバッフ
ァ2−6と、マイクロプロセッサ2−1のシステムバス
5へのアクセスを制御するバス制御部2−7と、マイク
ロプロセッサ2−1がデータの圧縮を指示する圧縮指示
信号2−8と、圧縮の成否を示す圧縮完了信号2−9よ
り構成され、プロセッサ1と同一の構成をとる。
The processor 2 includes a microprocessor 2-1 for processing data, a local bus 2-2 which is a bus unique to the microprocessor 2-1, a data compression section 2-3 for compressing write data, and a read operation. A data decompression unit 2-4 for decompressing data, a data selector 2-5 for switching between compressed data and normal data, a bus buffer 2-6 for connecting the system bus 5 and the data selector 2-5, and a microprocessor. 2-1 is a bus control unit 2-7 for controlling access to the system bus 5, a compression instruction signal 2-8 for instructing the microprocessor 2-1 to compress data, and a compression completion signal 2 for indicating success or failure of compression. -9, and has the same configuration as the processor 1.

【0009】メモリ3は記憶素子3−1、記憶素子3−
2の2バンク(BANK)構成であり、リードデータ生
成部3−4は記憶素子3−1または記憶素子3−2から
読み出したデータのエラーチェックと訂正を行いシステ
ムバス5に出力すると共に圧縮データ読み出し信号3−
7にデータ圧縮の有無を出力し、ライトデータ生成部3
−5はシステムバス5から受け取ったデータにメモリ制
御部3−3から出力された圧縮データ記憶信号3−6を
つけ加えエラー検出用のチェックビットを生成し、記憶
素子3−1または記憶素子3−2に出力し、メモリ制御
部3−3はこれらの制御を行う。この記憶素子3−1お
よび記憶素子3−2の記憶形式はメモリに記憶する1ワ
ードの構成例を示す説明図である図2に示すように1ワ
ードは40ビットからなり、記憶データ312が32ビ
ット、圧縮データ記憶フラグ311が1ビット、チェッ
クビット310が7ビット幅により構成される。
The memory 3 includes a storage element 3-1 and a storage element 3-.
2 has a two-bank (BANK) configuration, and the read data generation unit 3-4 performs error check and correction of the data read from the storage element 3-1 or the storage element 3-2 and outputs the data to the system bus 5 and the compressed data. Read signal 3-
The presence or absence of data compression is output to 7, and the write data generation unit 3
-5 adds the compressed data storage signal 3-6 output from the memory control section 3-3 to the data received from the system bus 5 to generate a check bit for error detection, and stores the storage element 3-1 or the storage element 3-. 2, and the memory control unit 3-3 performs these controls. The storage format of the storage element 3-1 and the storage element 3-2 is an explanatory diagram showing a configuration example of one word stored in the memory. As shown in FIG. 2, one word has 40 bits, and the storage data 312 has 32 bits. The bit, the compressed data storage flag 311 is 1 bit, and the check bit 310 is 7 bits wide.

【0010】そして、プロセッサ1および2におけるデ
ータ圧縮部1−3、データ伸張部1−4およびデータ圧
縮部2−3、データ伸張部2−4は、バースト転送動作
ごとにデータの圧縮伸張できるデータ圧縮手段およびデ
ータ伸張手段を構成し、プロセッサ1,2とメモリ3間
のデータ転送において、1回の転送動作で複数ワードの
データを転送できるバースト転送を行う際、上記データ
圧縮手段とデータ伸張手段をプロセッサとシステムバス
間に有することにより、データ圧縮および伸張のために
特別なデータ転送サイクルを起動することなくプロセッ
サのバースト転送の書き込みサイクル中でデータ圧縮を
行い、バースト転送の読み出しサイクル中にデータ伸張
を行うことにより、プロセッサとメモリ間のデータ転送
を行う場合に1回のバースト転送動作がシステムバスを
占有する時間を短くするように構成されている。
The data compressing unit 1-3, the data decompressing unit 1-4, the data compressing unit 2-3, and the data decompressing unit 2-4 in the processors 1 and 2 are capable of compressing and expanding data for each burst transfer operation. In the data transfer between the processors 1 and 2 and the memory 3, when the burst transfer capable of transferring the data of a plurality of words is performed in the data transfer between the processors 1 and 2, the data compressing means and the data decompressing means are constituted. Between the processor and the system bus, data compression is performed during the write cycle of burst transfer of the processor and data is not read during the read cycle of burst transfer without activating a special data transfer cycle for data compression and decompression. Once when performing data transfer between the processor and memory by performing decompression Burst transfer operation is configured to shorten the time to occupy the system bus.

【0011】また、プロセッサ1および2におけるデー
タセレクタ1−5およびデータセレクタ2−5はデータ
転送を行う際にデータ圧縮の有無を選択する選択手段を
構成し、プロセッサとメモリ間のバースト転送動作での
データ転送において、上記選択手段を有することによ
り、圧縮効果のあるデータのみを圧縮し転送することに
より圧縮伸張によるデータ転送のオーバーヘッドを軽減
するように構成されている。また、メモリ3における記
憶素子3−1,3−2はデータ転送方式で使用されるメ
モリにおいて記憶されているデータの圧縮の有無を記憶
する記憶手段を構成し、バースト転送するデータが圧縮
データでも伸張することなく書込みおよび読み出しを行
うことにより、データが圧縮されている場合には1回の
データ書き込みおよびデータの読み出しに要する時間を
短くするように構成されている。
Further, the data selector 1-5 and the data selector 2-5 in the processors 1 and 2 constitute selection means for selecting the presence / absence of data compression at the time of data transfer, and the burst transfer operation between the processor and the memory is performed. In the data transfer, the above-mentioned selecting means is provided so that only the data having a compression effect is compressed and transferred, thereby reducing the data transfer overhead due to the compression and expansion. Further, the storage elements 3-1 and 3-2 in the memory 3 constitute storage means for storing the presence / absence of compression of the data stored in the memory used in the data transfer method, and the burst transfer data may be compressed data. By performing writing and reading without decompression, the time required for one-time data writing and data reading is shortened when the data is compressed.

【0012】図3ないし図6は図1の動作説明に供する
タイムチャートで、図3は本発明によるデータ圧縮の行
われていないデータをメモリから読み出す場合のタイム
チャートを示したものであり、図4は本発明によるデー
タ圧縮の行われているデータをメモリから読み出す場合
のタイムチャート、図5は本発明によるデータ圧縮を行
わずにデータをメモリに書き込む場合のタイムチャー
ト、図6は本発明によるデータ圧縮を行いデータをメモ
リに書き込む場合のタイムチャートを示したものであ
る。
FIGS. 3 to 6 are time charts provided for explaining the operation of FIG. 1, and FIG. 3 is a time chart for reading data that has not been compressed according to the present invention from the memory. 4 is a time chart in the case of reading the data compressed by the present invention from the memory, FIG. 5 is a time chart in the case of writing the data in the memory without the data compression according to the present invention, and FIG. 6 is the present invention. 6 is a time chart when data is compressed and written in a memory.

【0013】つぎに図1に示す実施例の動作を図3ない
し図6を参照して説明する。なお、プロセッサ1とプロ
セッサ2は同一機能を持ち、動作は同じである。よっ
て、以下特に断らない限りプロセッサ1を対象として動
作を説明する。プロセッサ1内のマイクロプロセッサ1
−1は1回のアクセスで1クロック毎に1ワードずつ4
回を読み書きできるバースト転送を行い、これに伴いシ
ステムバス5、メモリ3もバースト転送を行う。そし
て、データ圧縮部1−3はバースト転送において転送さ
れる4ワードのデータを順にα、β、γ、δとすると、
αとβが等しくかつγとδが等しい場合にαc=α=
β、βc=γ=δとし、αとβをαcで代表し、γとδ
をβcで代表することによりαcとβcをデータセレク
タ1−5に出力し、α≠βまたはγ≠δの場合はα、
β、γ、δを順にデータセレクタ1−5に出力する。デ
ータ伸張部1−4は圧縮データ転送において転送される
2ワードのデータを順にαc、βcとすると、αcとβ
cより4ワードのデータ、α、β、γ、δに復元し、マ
イクロプロセッサ1−1に出力する。
The operation of the embodiment shown in FIG. 1 will be described below with reference to FIGS. The processor 1 and the processor 2 have the same function and the same operation. Therefore, the operation will be described below for the processor 1 unless otherwise specified. Microprocessor 1 in processor 1
-1 is 4 words, one word per clock in one access
Burst transfer is performed so that the data can be read and written once, and accordingly, the system bus 5 and the memory 3 also perform burst transfer. Then, the data compression unit 1-3, assuming that the 4-word data transferred in the burst transfer is α, β, γ, and δ in order,
When α and β are equal and γ and δ are equal, αc = α =
β and βc = γ = δ, α and β are represented by αc, and γ and δ
Is represented by βc to output αc and βc to the data selector 1-5, and when α ≠ β or γ ≠ δ, α,
The β, γ, and δ are sequentially output to the data selector 1-5. If the two-word data transferred in the compressed data transfer are set as αc and βc in this order, the data decompression unit 1-4 sets αc and β.
Data of 4 words, α, β, γ, and δ are restored from c and output to the microprocessor 1-1.

【0014】つぎに実際の動作を説明する。まず、デー
タ圧縮が行われていない場合のプロセッサ1のメモリ3
からのデータ読み出し動作を説明する。図3がこの場合
のタイムチャートであり、アドレスA番地からα、β、
γ、δと読み出した場合である。マイクロプロセッサ1
−1はアドレスA番地からバースト転送によりA番地、
A+1番地、A+2番地、A+3番地のデータを読み込
む。まず、マイクロプロセッサ1−1はローカルバス1
−2にアドレスA番地を出力し、バス制御部1−7にア
クセス要求を行う。このバス制御部1−7はシステムバ
ス5の状態を常に監視しており、システムバス5をプロ
セッサ2が使用していない場合、メモリ3にアクセス要
求を行い、システムバス5にアドレスA番地を出力し、
メモリ3はシステムバス5よりアドレスA番地からの読
み出し要求を受け取る。これによりメモリ制御部3−3
は記憶素子3−1よりA番地の内容αmを読み出し、リ
ードデータ生成部3−4に渡す。つぎに、このデータ生
成部3−4ではαmのエラーチェックと訂正を行い、リ
ードデータαと圧縮の有無を生成し、生成したリードデ
ータαをシステムバス5に出力し、圧縮データ読み出し
信号3−7を「L」にし、読み出したデータが圧縮され
ていないことをメモリ制御部3−3に通知する。これに
よりメモリ制御部3−3はデータ応答信号5−1を
「L」、圧縮データ応答信号5−2を「H」にし、A+
1番地の内容βmを記憶素子3−2から読み出し、A+
2番地の内容γmを記憶素子3−1から読み出し、A+
3番地の内容δmを記憶素子3−2から読み出し、リー
ドデータ生成部3−4でβ、γ、δとしシステムバス5
に出力する。このときバス制御部1−7はシステムバス
5のデータ応答信号5−1が「L」であることよりデー
タα、β、γ、δをシステムバス5から順次取り込み、
このときの圧縮データ応答信号5−2が「H」であるこ
とより読み出しデータデータセレクタ1−5、ローカル
バス1−2を通してバスバッファ1−6よりマイクロプ
ロセッサ1−1に直接供給する。この場合4ワードのデ
ータを読み出すのにシステムバス5で9クロック、マイ
クロプロセッサ1−1は10クロック、メモリ3は9ク
ロックを消費する。以上が圧縮が行われていない場合の
読み出し動作である。
Next, the actual operation will be described. First, the memory 3 of the processor 1 when data compression is not performed
The operation of reading data from will be described. FIG. 3 is a time chart in this case. From address A, α, β,
This is the case of reading γ and δ. Microprocessor 1
-1 indicates the address A by burst transfer from the address A,
The data at address A + 1, address A + 2, and address A + 3 are read. First, the microprocessor 1-1 is the local bus 1
-2 outputs the address A and outputs an access request to the bus control unit 1-7. The bus control unit 1-7 constantly monitors the state of the system bus 5, and when the processor 2 is not using the system bus 5, issues an access request to the memory 3 and outputs the address A to the system bus 5. Then
The memory 3 receives a read request from the address A from the system bus 5. As a result, the memory control unit 3-3
Reads the content αm of address A from the storage element 3-1 and passes it to the read data generation unit 3-4. Next, the data generator 3-4 performs error check and correction of αm, generates read data α and presence / absence of compression, outputs the generated read data α to the system bus 5, and outputs the compressed data read signal 3- 7 is set to "L" to notify the memory control unit 3-3 that the read data is not compressed. As a result, the memory control unit 3-3 sets the data response signal 5-1 to "L" and the compressed data response signal 5-2 to "H", and A +
The content βm at address 1 is read from the storage element 3-2, and A +
The content γm at address 2 is read from the storage element 3-1 and A +
The content δm at address 3 is read from the storage element 3-2, and the read data generation unit 3-4 sets it as β, γ, δ and the system bus 5
Output to. At this time, the bus control unit 1-7 sequentially fetches the data α, β, γ, δ from the system bus 5 because the data response signal 5-1 of the system bus 5 is “L”.
Since the compressed data response signal 5-2 at this time is "H", it is directly supplied from the bus buffer 1-6 to the microprocessor 1-1 through the read data data selector 1-5 and the local bus 1-2. In this case, the system bus 5 consumes 9 clocks to read 4-word data, the microprocessor 1-1 consumes 10 clocks, and the memory 3 consumes 9 clocks. The above is the read operation when the compression is not performed.

【0015】つぎに、データ圧縮が行われている場合の
プロセッサ1のメモリ3からのデータ読み出し動作を説
明する。図4はこの場合のタイムチャートであり、アド
レスA番地からα、β、γ、δと読み出した場合であ
る。マイクロプロセッサ1−1はアドレスA番地からバ
ースト転送によりA番地、A+1番地、A+2番地、A
+3番地のデータを読み込む。まず、マイクロプロセッ
サ1−1はローカルバス1−2にアドレスA番地を出力
し、バス制御部1−7にアクセス要求を行う。このバス
制御部1−7はシステムバス5の状態を常に監視してお
り、システムバス5をプロセッサ2が使用していない場
合には、メモリ3にアクセス要求を行い、システムバス
5にアドレスA番地を出力し、メモリ3はシステムバス
5よりアドレスA番地からの読み出し要求を受け取る。
これによりメモリ制御部3−3は記憶素子3−1よりA
番地の内容αmを読み出し、リードデータ生成部3−4
に渡す。このリードデータ生成部3−4ではαmのエラ
ーチェックと訂正を行い、リードデータαcと圧縮の有
無を生成し、生成したリードデータαcをシステムバス
5に出力し、圧縮データ読み出し信号3−7を「H」に
し、読み出したデータが圧縮されていることをメモリ制
御部3−3に通知する。つぎに、これによりメモリ制御
部3−3はデータ応答信号5−1を「L」、圧縮データ
応答信号5−2を「L」にし、A+1番地の内容βmを
記憶素子3−2から読み出し、リードデータ生成部3−
4でβcとしシステムバス5に出力する。これでメモリ
3のリード動作は完了する。このときバス制御部1−7
はシステムバス5のデータ応答信号5−1が「L」であ
ることよりデータαc、βcをシステムバス5から順次
取り込み、このときの圧縮データ応答信号5−2が
「L」であることより読み出しデータセレクタ1−5を
通してデータ伸張部1−4に供給し、このデータ伸張部
1−4においてαc、βcからα、β、γ、δに復元し
順次マイクロプロセッサ1−1に供給する。この場合、
4ワードのデータを読み出すのにシステムバス5で5ク
ロック、マイクロプロセッサ1−1は9クロック、メモ
リ3は5クロックを消費する。以上が圧縮が行われてい
る場合の読み出し動作である。
Next, a data read operation from the memory 3 of the processor 1 when the data compression is performed will be described. FIG. 4 is a time chart in this case, and shows a case where α, β, γ, and δ are read from the address A. The microprocessor 1-1 performs the burst transfer from the address A to the addresses A, A + 1, A + 2, A
Read the data at address +3. First, the microprocessor 1-1 outputs the address A to the local bus 1-2 and makes an access request to the bus control unit 1-7. The bus control unit 1-7 constantly monitors the state of the system bus 5. When the processor 2 is not using the system bus 5, the bus controller 1-7 makes an access request to the memory 3 and sends an address A address to the system bus 5. The memory 3 receives the read request from the address A from the system bus 5.
As a result, the memory control section 3-3 causes the memory element 3-1
The content αm of the address is read and the read data generation unit 3-4
Pass to. The read data generation unit 3-4 performs error check and correction of αm, generates read data αc and presence / absence of compression, outputs the generated read data αc to the system bus 5, and outputs the compressed data read signal 3-7. It is set to "H" and the memory control unit 3-3 is notified that the read data is compressed. Then, the memory controller 3-3 sets the data response signal 5-1 to "L" and the compressed data response signal 5-2 to "L", reads the content βm at address A + 1 from the storage element 3-2, Read data generator 3-
4 is set to βc, which is output to the system bus 5. This completes the read operation of the memory 3. At this time, the bus control unit 1-7
Means that the data response signal 5-1 of the system bus 5 is "L", so that the data .alpha.c and .beta.c are sequentially fetched from the system bus 5, and the compressed data response signal 5-2 at this time is "L" and is read. The data is supplied to the data decompression unit 1-4 through the data selector 1-5, and the data decompression unit 1-4 restores αc, βc to α, β, γ, δ and sequentially supplies them to the microprocessor 1-1. in this case,
The system bus 5 consumes 5 clocks to read 4-word data, the microprocessor 1-1 consumes 9 clocks, and the memory 3 consumes 5 clocks. The above is the read operation when the compression is performed.

【0016】つぎに、データ圧縮を行わない場合のプロ
セッサ1からメモリ3へのデータ書き込み動作について
説明する。図5がこの場合のタイムチャートであり、ア
ドレスA番地からα、β、γ、δと書き込んだ場合であ
る。マイクロプロセッサ1−1はアドレスA番地からバ
ースト転送によりA番地、A+1番地、A+2番地、A
+3番地のデータα、β、γ、δを出力する。まず、マ
イクロプロセッサ1−1はローカルバス1−2にアドレ
スA番地を出力し、圧縮指示信号1−8を「H」にし、
圧縮せずにデータを書き込むアクセス要求をバス制御部
1−7に行う。このバス制御部1−7マイクロプロセッ
サ1−1よりアドレスA番地と書き込みデータα、β、
γ、δをデータバッファ1−6に格納し、システムバス
5をプロセッサ2が使用していない場合には、メモリ3
にアクセス要求を行い、システムバス5にアドレスA番
地を出力し、圧縮データ供給信号5−3を「H」にし、
データαを出力する。この後、データ応答信号5−1が
「L」になる度に次のデータβ、γ、δを順次出力す
る。つぎに、メモリ3はシステムバス5よりアドレスA
番地からの書き込み要求を受け取りデータ応答信号5−
1を「L」にし、圧縮データ供給信号5−3が「H」な
ので4ワード分のデータα、β、γ、δをライトデータ
生成部3−5に取り込み、圧縮データ記憶信号3−6の
値と合わせてチェックビットを生成し、書き込みデータ
αm、βm、γm、δmを生成する。メモリ制御部3−
3は記憶素子3−1、記憶素子3−2に対し書き込みを
2回ずつ行う。この場合4ワードのデータを書き込むの
にシステムバス5で7クロック、マイクロプロセッサ1
−1は5クロック、メモリ3は9クロックを消費する。
以上が圧縮が行わない場合の書き込み動作である。
Next, a data write operation from the processor 1 to the memory 3 when data compression is not performed will be described. FIG. 5 is a time chart in this case, where α, β, γ, and δ are written from the address A. The microprocessor 1-1 performs the burst transfer from the address A to the addresses A, A + 1, A + 2, A
The data α, β, γ, δ at the +3 address is output. First, the microprocessor 1-1 outputs the address A to the local bus 1-2, sets the compression instruction signal 1-8 to "H",
An access request for writing data without compression is issued to the bus control unit 1-7. From the bus controller 1-7 microprocessor 1-1, address A and write data α, β,
When γ and δ are stored in the data buffer 1-6 and the system bus 5 is not used by the processor 2, the memory 3
Access request to the system bus 5, the address A is output to the system bus 5, the compressed data supply signal 5-3 is set to “H”,
Output the data α. After that, each time the data response signal 5-1 becomes “L”, the next data β, γ, δ is sequentially output. Next, the memory 3 receives the address A from the system bus 5.
Receiving write request from address, data response signal 5-
1 is set to "L", and since the compressed data supply signal 5-3 is "H", the four-word data α, β, γ, δ are fetched into the write data generator 3-5, and the compressed data storage signal 3-6 is stored. A check bit is generated together with the value to generate write data αm, βm, γm, δm. Memory control unit 3-
3 writes to the storage element 3-1 and the storage element 3-2 twice each. In this case, it takes 7 clocks by the system bus 5 to write 4 words of data, and the microprocessor 1
-1 consumes 5 clocks, and the memory 3 consumes 9 clocks.
The above is the write operation when compression is not performed.

【0017】つぎに、データ圧縮を行う場合のプロセッ
サ1からメモリ3へのデータ書き込み動作に付いて説明
する。図6がこの場合のタイムチャートであり、アドレ
スA番地からα、β、γ、δと書き込んだ場合である。
マイクロプロセッサ1−1はアドレスA番地からバース
ト転送によりA番地、A+1番地、A+2番地、A+3
番地へのデータα、β、γ、δを出力する。まず、マイ
クロプロセッサ1−1はローカルバス1−2にアドレス
A番地を出力し、圧縮指示信号1−8を「L」にし、圧
縮してデータを書き込むアクセス要求をバス制御部1−
7に行う。このバス制御部1−7はマイクロプロセッサ
1−1よりアドレスA番地と書き込みデータα、β、
γ、δをデータバッファ1−6に蓄え、データ圧縮部1
−3に書き込みデータα、β、γ、δを格納し、データ
圧縮の可否を判定し圧縮可能で有ればデータ圧縮を行い
圧縮完了信号1−9を「L」にし、データ圧縮の可否を
判定し圧縮不可能で有れば圧縮完了信号1−9を「H」
にする。そして、このバス制御部1−7は圧縮完了信号
1−9の値が「H」であればデータバッファ1−6に蓄
えられたデータを出力し、データ圧縮をしない場合と同
様に動作する。つぎに、バス制御部1−7は圧縮完了信
号1−9の値が「L」であれば、データ圧縮部1−3よ
り圧縮されたデータαc、βcをデータバッファ1−6
に蓄え、メモリ3にアクセス要求を行い、システムバス
5にアドレスA番地を出力し、圧縮データ供給信号5−
3を「L」にし、データαcを出力する。この後、デー
タ応答信号5−1が「L」になると次のデータβc出力
する。そして、メモリ3はシステムバス5よりアドレス
A番地からの書き込み要求を受け取りデータ応答信号5
−1を「L」にし、圧縮データ供給信号5−3が「L」
なので2ワード分のデータαc、βcをライトデータ生
成部3−5に取り込み、圧縮データ記憶信号3−6の値
と合わせてチェックビットを生成し、書き込みデータα
m、βmを生成する。メモリ制御部3−3は記憶素子3
−1、記憶素子3−2に対し書き込みを1回ずつ行う。
この場合4ワードのデータを書き込むのにシステムバス
5で3クロック、マイクロプロセッサ1−1は5クロッ
ク、メモリ3は5クロック消費する。以上が圧縮を行う
場合の書き込み動作である。なお、データの圧縮方法は
以上説明した以外の方法を用いても同様の利点があるこ
とは云うまでもない。
Next, a data write operation from the processor 1 to the memory 3 when data compression is performed will be described. FIG. 6 is a time chart in this case, where α, β, γ, and δ are written from the address A.
The microprocessor 1-1 performs the burst transfer from the address A to the addresses A, A + 1, A + 2, A + 3.
Outputs data α, β, γ, δ to the address. First, the microprocessor 1-1 outputs the address A to the local bus 1-2, sets the compression instruction signal 1-8 to "L", and issues an access request for compressing and writing data to the bus control unit 1-.
Go to 7. The bus control unit 1-7 receives from the microprocessor 1-1 the address A and the write data α, β,
γ and δ are stored in the data buffer 1-6, and the data compression unit 1
The write data α, β, γ, and δ are stored in -3, and whether or not the data compression is possible is determined. If the data compression is possible, the data compression is performed, the compression completion signal 1-9 is set to "L", and the data compression availability is determined. If it is determined that compression is impossible, the compression completion signal 1-9 is set to "H".
To Then, the bus control unit 1-7 outputs the data stored in the data buffer 1-6 when the value of the compression completion signal 1-9 is "H", and operates in the same manner as when the data is not compressed. Next, if the value of the compression completion signal 1-9 is "L", the bus control unit 1-7 sends the data αc and βc compressed by the data compression unit 1-3 to the data buffer 1-6.
, The memory 3 is requested to access, the address A is output to the system bus 5, and the compressed data supply signal 5-
3 is set to “L”, and the data αc is output. After that, when the data response signal 5-1 becomes "L", the next data βc is output. Then, the memory 3 receives the write request from the address A from the system bus 5, and receives the data response signal 5
-1 is set to "L" and the compressed data supply signal 5-3 is set to "L"
Therefore, two words of data αc and βc are fetched into the write data generator 3-5, a check bit is generated together with the value of the compressed data storage signal 3-6, and the write data α is written.
m and βm are generated. The memory control unit 3-3 is the storage element 3
-1, writing to the storage element 3-2 is performed once.
In this case, to write 4 words of data, the system bus 5 consumes 3 clocks, the microprocessor 1-1 consumes 5 clocks, and the memory 3 consumes 5 clocks. The above is the write operation when compression is performed. Needless to say, the same advantages can be obtained by using a method other than those described above as the data compression method.

【0018】[0018]

【発明の効果】以上説明したように本発明は、データを
バス上のバースト転送動作ごとに圧縮して転送,記憶す
るようにし、また、データ圧縮の有無を選択できるよう
にしたので、ハードウェア量を余り大きくすることなく
高速にデータ転送を行うことができる効果がある。ここ
で、データを圧縮して書き込むことによりプロセッサか
ら見たアクセス時間は余り変わらないが、システムバス
とメモリのアクセス時間を少なくできる。これは複数の
プロセッサを共通バスに接続する場合、個々のプロセッ
サがバスとメモリを占有する時間が減少するため、他の
プロセッサの競合によるバスおよびメモリの待ち時間を
減少することができる効果がある。また、データ圧縮の
有無を選択できるため、圧縮効率が低く、頻繁にリー
ド、ライトを行う部分は圧縮処理を行わずにメモリに保
存することにより、パーシャルライトが発生した場合に
一度データを伸張して書き込みデータを加え再圧縮する
という処理がいらず、常に圧縮するということをしなく
て良いという効果を有する。
As described above, according to the present invention, data is compressed and transferred and stored for each burst transfer operation on the bus, and the presence or absence of data compression can be selected. There is an effect that data can be transferred at high speed without increasing the amount too much. By compressing and writing the data, the access time seen from the processor does not change much, but the access time of the system bus and the memory can be reduced. This has the effect of reducing bus and memory latency due to contention of other processors, since when each processor connects to a common bus, the time taken for each processor to occupy the bus and memory is reduced. .. Also, since data compression can be selected, the compression efficiency is low, and the part that frequently reads and writes is saved in the memory without performing compression processing, so that data is expanded once when a partial write occurs. Therefore, there is no need to add write data and re-compress, and it is not necessary to always compress.

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

【図1】本発明の一実施例を示すブロック図である。FIG. 1 is a block diagram showing an embodiment of the present invention.

【図2】図1のメモリに記憶する1ワードの構成例を示
す説明図である。
FIG. 2 is an explanatory diagram showing a configuration example of one word stored in a memory of FIG.

【図3】図1の動作説明に供するデータ圧縮の行われて
いないデータをメモリから読み出す場合のタイムチャー
トである。
FIG. 3 is a time chart for reading data, which has not been subjected to data compression, from the memory, which is used for explaining the operation of FIG. 1.

【図4】図1の動作説明に供するデータ圧縮の行われて
いるデータをメモリから読み出す場合のタイムチャート
である。
FIG. 4 is a time chart for reading the data, which has been subjected to data compression, from the memory, which is used to explain the operation of FIG.

【図5】図1の動作説明に供するデータ圧縮を行わずに
データをメモリに書き込む場合のタイムチャートであ
る。
5 is a time chart for writing data in a memory without performing data compression, which is used for explaining the operation of FIG. 1. FIG.

【図6】図1の動作説明に供するデータ圧縮を行ないデ
ータをメモリに書き込む場合のタイムチャートである。
FIG. 6 is a time chart in the case of performing data compression and writing the data in the memory, which is used for explaining the operation of FIG.

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

1 プロセッサ 1−1 マイクロプロセッサ 1−3 データ圧縮部 1−4 データ伸張部 1−5 データセレクタ 1−6 バスバッファ 1−7 バス制御部 2 プロセッサ 2−1 マイクロプロセッサ 2−3 データ圧縮部 2−4 データ伸張部 2−5 データセレクタ 2−6 バスバッファ 2−7 バス制御部 3 メモリ 3−1,3−2 記憶素子 3−3 メモリ制御部 3−4 リードデータ生成部 3−5 ライトデータ生成部 1 Processor 1-1 Microprocessor 1-3 Data Compressor 1-4 Data Decompressor 1-5 Data Selector 1-6 Bus Buffer 1-7 Bus Controller 2 Processor 2-1 Microprocessor 2-3 Data Compressor 2- 4 data decompression unit 2-5 data selector 2-6 bus buffer 2-7 bus control unit 3 memory 3-1 and 3-2 storage element 3-3 memory control unit 3-4 read data generation unit 3-5 write data generation Department

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 情報処理装置においてプロセッサとメモ
リを有しそのプロセッサとメモリ間のデータ転送におい
て、1回の転送動作で複数ワードのデータを転送できる
バースト転送を行う際、バースト転送動作ごとにデータ
の圧縮伸張できるデータ圧縮手段およびデータ伸張手段
を前記プロセッサとシステムバス間に備え、データ圧縮
および伸張のために特別なデータ転送サイクルを起動す
ることなくプロセッサのバースト転送の書き込みサイク
ル中でデータ圧縮を行い、バースト転送の読み出しサイ
クル中にデータ伸張を行うことにより、プロセッサとメ
モリ間のデータ転送を行う際に1回のバースト転送動作
がシステムバスを占有する時間を短くするようにしたこ
とを特徴とするデータ転送方式。
1. An information processing apparatus, comprising a processor and a memory, and performing a burst transfer capable of transferring a plurality of words of data in one transfer operation in data transfer between the processor and the memory. Data compression means and data decompression means capable of decompressing the data are provided between the processor and the system bus, and the data compression is performed during the write cycle of the burst transfer of the processor without activating a special data transfer cycle for the data compression and decompression. By performing data decompression during the read cycle of burst transfer, the time taken for one burst transfer operation to occupy the system bus during data transfer between the processor and memory is shortened. Data transfer method.
【請求項2】 請求項1記載のデータ転送方式におい
て、プロセッサとメモリ間のバースト転送動作でのデー
タ転送において、データ転送を行う際にデータ圧縮の有
無を選択する選択手段を備え、圧縮効果のあるデータの
みを圧縮し転送することにより圧縮伸張によるデータ転
送のオーバーヘッドを軽減するようにしたことを特徴と
するデータ転送方式。
2. The data transfer method according to claim 1, further comprising a selection means for selecting whether or not to perform data compression when performing data transfer in a data transfer in a burst transfer operation between a processor and a memory. A data transfer method characterized by reducing the overhead of data transfer due to compression and expansion by compressing and transferring only certain data.
【請求項3】 請求項2記載のデータ転送方式におい
て、このデータ転送方式で使用されるメモリにおいて記
憶されているデータの圧縮の有無を記憶する記憶手段を
備え、バースト転送するデータが圧縮データでも伸張す
ることなく書込みおよび読み出しを行うことにより、デ
ータが圧縮されている場合には1回のデータ書き込みお
よびデータ読み出しに要する時間を短くするようにした
ことを特徴とするデータ記憶方式。
3. The data transfer method according to claim 2, further comprising storage means for storing whether or not data stored in a memory used in this data transfer method is compressed, and the burst transfer data is compressed data. A data storage method characterized in that by performing writing and reading without decompression, the time required for one-time data writing and data reading is shortened when the data is compressed.
JP4023330A 1992-01-14 1992-01-14 Data transfer and storage system Pending JPH05189360A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4023330A JPH05189360A (en) 1992-01-14 1992-01-14 Data transfer and storage system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4023330A JPH05189360A (en) 1992-01-14 1992-01-14 Data transfer and storage system

Publications (1)

Publication Number Publication Date
JPH05189360A true JPH05189360A (en) 1993-07-30

Family

ID=12107576

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4023330A Pending JPH05189360A (en) 1992-01-14 1992-01-14 Data transfer and storage system

Country Status (1)

Country Link
JP (1) JPH05189360A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008123031A (en) * 2006-11-08 2008-05-29 Toyota Motor Corp Shared memory management device and multiprocessor system equipped with the same device
JP2008523499A (en) * 2004-12-09 2008-07-03 ラムバス・インコーポレーテッド Memory interface with workload adaptive encoding / decoding
JP2010092499A (en) * 2004-09-28 2010-04-22 Sony Computer Entertainment Inc Data processing method, device, processing system, computer processing system, network of computer and storage medium
WO2013094280A1 (en) * 2011-12-22 2013-06-27 インターナショナル・ビジネス・マシーンズ・コーポレーション Storage device access system
JPWO2021010088A1 (en) * 2019-07-18 2021-01-21

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010092499A (en) * 2004-09-28 2010-04-22 Sony Computer Entertainment Inc Data processing method, device, processing system, computer processing system, network of computer and storage medium
US8001294B2 (en) 2004-09-28 2011-08-16 Sony Computer Entertainment Inc. Methods and apparatus for providing a compressed network in a multi-processing system
JP2008523499A (en) * 2004-12-09 2008-07-03 ラムバス・インコーポレーテッド Memory interface with workload adaptive encoding / decoding
JP2008123031A (en) * 2006-11-08 2008-05-29 Toyota Motor Corp Shared memory management device and multiprocessor system equipped with the same device
WO2013094280A1 (en) * 2011-12-22 2013-06-27 インターナショナル・ビジネス・マシーンズ・コーポレーション Storage device access system
CN103999061A (en) * 2011-12-22 2014-08-20 国际商业机器公司 Storage device access system
JP5629392B2 (en) * 2011-12-22 2014-11-19 インターナショナル・ビジネス・マシーンズ・コーポレーションInternational Business Machines Corporation Storage device access system
GB2510523B (en) * 2011-12-22 2014-12-10 Ibm Storage device access system
US9146933B2 (en) 2011-12-22 2015-09-29 International Business Machines Corporation Compressed storage access system with uncompressed frequent use data
JPWO2021010088A1 (en) * 2019-07-18 2021-01-21
WO2021010088A1 (en) * 2019-07-18 2021-01-21 日本電気株式会社 Memory control method, memory control device, and program
US11886713B2 (en) 2019-07-18 2024-01-30 Nec Corporation Memory control method, memory control device, program

Similar Documents

Publication Publication Date Title
US7707328B2 (en) Memory access control circuit
JPH10301841A (en) Memory integrated circuit, main memory system using the same and graphics memory system
JP2586138B2 (en) Microprocessor
JPH09265777A (en) Synchronizing type dram
JPH05189360A (en) Data transfer and storage system
JPH06103225A (en) Chain type dma system and dma controller therefor
US6483753B1 (en) Endianess independent memory interface
JPH0140432B2 (en)
JPH1040165A (en) Data read method and read buffer
JP3176319B2 (en) Data processing device
JP3179891B2 (en) Bus control method
JP3242474B2 (en) Data processing device
JPS61256458A (en) Information transfer system
JP2000276398A (en) Data reading controlled for cpu
JPH05334223A (en) Channel device and frame transmitting and receiving method for the same
KR930007016B1 (en) Locking circuit helping the read-modify write cycle
JP2845746B2 (en) Micro program controller
JP2008083772A (en) Data processor
JPH0326177A (en) Compression and expansion controller for image data
JPH09269890A (en) Endian conversion system
JPH0431939A (en) External storage device
JPH04112251A (en) Microcomputer
JPS61288261A (en) Multiprocessor system
JPH0784866A (en) Memory control circuit
JPH10105457A (en) Memory control system and memory control circuitt