JPH09297705A - Memory control method - Google Patents

Memory control method

Info

Publication number
JPH09297705A
JPH09297705A JP11351996A JP11351996A JPH09297705A JP H09297705 A JPH09297705 A JP H09297705A JP 11351996 A JP11351996 A JP 11351996A JP 11351996 A JP11351996 A JP 11351996A JP H09297705 A JPH09297705 A JP H09297705A
Authority
JP
Japan
Prior art keywords
memory
data
control method
functional blocks
memory controller
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
JP11351996A
Other languages
Japanese (ja)
Inventor
Hiroshi Tajima
博 田島
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.)
Sony Corp
Original Assignee
Sony Corp
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 Sony Corp filed Critical Sony Corp
Priority to JP11351996A priority Critical patent/JPH09297705A/en
Publication of JPH09297705A publication Critical patent/JPH09297705A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide the memory control method which can perform precise control, even if respective function blocks differ in transfer speed and can corrects data of the respective function blocks by one-error correcting circuit and is actualized at a low cost. SOLUTION: When the data A and B of the function blocks 1 and 2 are written into or read out of a memory 10, a memory controller 20 allocates the frequencies of memory access to the data A and B and the allocation rate of the access frequencies is made to correspond to the ratio '10MB/S:20MB/S =1:2' of the transfer speeds of the function blocks 1 and 2. Namely, the memory controller 20, after having accessed the memory 10 once for the data A, accesses the memory 10 twice for the data B.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、複数の機能ブロッ
クが一のメモリに対してアクセスする際のメモリ制御方
法に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a memory control method when a plurality of functional blocks access one memory.

【0002】[0002]

【従来の技術】図8は、従来例に係るメモリ制御方法を
示すブロック図である。このメモリ制御方法は、2つの
機能ブロック1,2が共有する1つのメモリ10を、2
つの領域11,12に分割し、2つの機能ブロック1,
2が領域11,12に対して交互にアクセスするように
なっていた。すなわち、機能ブロック1が領域11にア
クセスしている間は、機能ブロック2が領域12にアク
セスするようにメモリコントローラ200で制御する。
そして、次に、機能ブロック1が領域12をアクセスす
ると、機能ブロック2が領域11にアクセスするように
制御する。また、通常は、コストの面を考慮して、DR
AMをメモリ10として使用するが、DRAMはα線な
どの影響によりある確率でビット化けを生じることが知
られている。このため、DRAMをメモリ10として使
用する場合には、エラー訂正回路30を付加して、高い
信頼性を確保するようにしている。
2. Description of the Related Art FIG. 8 is a block diagram showing a conventional memory control method. In this memory control method, one memory 10 shared by two functional blocks 1 and 2 is
It is divided into two areas 11, 12 and two functional blocks 1,
2 alternately accessed the areas 11 and 12. That is, the memory controller 200 controls the functional block 2 to access the area 12 while the functional block 1 is accessing the area 11.
Then, next, when the functional block 1 accesses the area 12, the functional block 2 is controlled to access the area 11. In addition, DR is usually taken into consideration in terms of cost.
Although the AM is used as the memory 10, it is known that the DRAM is garbled with a certain probability due to the influence of α rays or the like. Therefore, when the DRAM is used as the memory 10, the error correction circuit 30 is added to ensure high reliability.

【0003】[0003]

【発明が解決しようとする課題】しかし、上記した従来
のメモリ制御方法では、次のような問題があった。従来
のメモリ制御方法では、メモリ10を2つの領域11,
12に分割し、2つの機能ブロック1,2が領域11,
12に対して交互にアクセスする技術であるので、各機
能ブロックから分割領域への制御線がメモリ10の分割
数だけ必要である。例えば、2つの機能ブロック1,2
で領域11,12にアクセスする場合には、2本の制御
線が必要である。このため、機能ブロックの数が増加す
ると、多数の制御線が必要となり、配線面及びコスト面
で問題が生じる。また、例えば、機能ブロック1の転送
速度が10MB/sで、機能ブロック2の転送速度が2
0MB/sというように、複数の機能ブロックの転送速
度がそれぞれ異なる場合には、各機能ブロックが任意の
アドレスにアクセスすることができるように制御するこ
とが困難であった。また、DRAMをメモリ10に使用
する場合には、メモリ10の分割数に対応してエラー訂
正回路30の数を増加させなければならず、コストがさ
らに膨らんでしまう。
However, the above-mentioned conventional memory control method has the following problems. In the conventional memory control method, the memory 10 is divided into two areas 11,
12 functional blocks 1 and 2 are divided into regions 11,
Since this is a technique of alternately accessing 12, the control lines from each functional block to the divided area are required by the number of divisions of the memory 10. For example, two functional blocks 1 and 2
In order to access the areas 11 and 12 with, two control lines are required. Therefore, as the number of functional blocks increases, a large number of control lines are required, which causes problems in wiring and cost. Further, for example, the transfer rate of the functional block 1 is 10 MB / s, and the transfer rate of the functional block 2 is 2
When the transfer rates of a plurality of functional blocks are different, such as 0 MB / s, it is difficult to control each functional block so that it can access any address. Further, when the DRAM is used for the memory 10, the number of error correction circuits 30 has to be increased corresponding to the number of divisions of the memory 10, which further increases the cost.

【0004】本発明は上述した課題を解決するためにな
されたもので、各機能ブロックの転送速度が異なってい
ても正確な制御が可能であると共に一のエラー訂正回路
で各機能ブロックのデータ訂正が可能であり、しかも低
コストで実現可能なメモリ制御方法を提供することを目
的としている。
The present invention has been made in order to solve the above-mentioned problems. It is possible to perform accurate control even if the transfer speed of each functional block is different, and to correct the data of each functional block with one error correction circuit. It is an object of the present invention to provide a memory control method that is capable of achieving the above and can be realized at low cost.

【0005】[0005]

【課題を解決するための手段】上記課題を解決するため
に、請求項1の発明は、複数の機能ブロックが一のメモ
リを共有し、メモリコントローラの制御によって上記複
数の機能ブロックと上記一のメモリとの間でデータ転送
を行うメモリ制御方法において、上記メモリコントロー
ラは、上記各機能ブロックのデータについてのメモリア
クセス回数を時分割で割り当て、このアクセス回数の割
り当て比を上記複数の機能ブロックの転送速度の比に対
応させるものである構成とした。
In order to solve the above-mentioned problems, the invention of claim 1 is such that a plurality of functional blocks share one memory, and the plurality of functional blocks and the above-mentioned one are controlled by a memory controller. In the memory control method for transferring data to and from a memory, the memory controller allocates the memory access times for the data of each of the functional blocks in a time-sharing manner, and allocates the access frequency allocation ratio to the plurality of functional blocks. It is configured to correspond to the speed ratio.

【0006】請求項2の発明は、請求項1に記載のメモ
リ制御方法において、上記メモリコントローラは、上記
複数の機能ブロック及び一のメモリからのデータをリン
グバッファを用いて先入れ先出しするものである構成と
した。
According to a second aspect of the present invention, in the memory control method according to the first aspect, the memory controller uses a ring buffer to first-in first-out data from the plurality of functional blocks and one memory. And

【0007】請求項3及び請求項4の発明は、請求項1
及び請求項2に記載のメモリ制御方法において、上記一
のメモリにDRAMを用い、上記メモリコントローラと
上記DRAMとの間にエラー訂正回路を介在させて、デ
ータのエラー訂正を行う構成とした。
The inventions of claims 3 and 4 are defined by claim 1.
In the memory control method according to claim 2, a DRAM is used as the one memory, and an error correction circuit is interposed between the memory controller and the DRAM to perform data error correction.

【0008】上記請求項1の発明によれば、メモリコン
トローラの制御によって複数の機能ブロックと一のメモ
リとの間でデータ転送が行われるが、この際、各機能ブ
ロックのデータについてのメモリアクセス回数が時分割
で割り当てられ、かつそのアクセス回数の割り当て比が
複数の機能ブロックの転送速度の比に対応づけられる。
この結果、複数の機能ブロックの転送速度に対応した量
のデータが、メモリとメモリコントローラ間で転送され
る。
According to the invention of claim 1, data is transferred between the plurality of functional blocks and one memory under the control of the memory controller. At this time, the number of times of memory access for the data of each functional block is increased. Are allocated in a time division manner, and the allocation ratio of the number of times of access is associated with the transfer speed ratio of a plurality of functional blocks.
As a result, the amount of data corresponding to the transfer speed of the plurality of functional blocks is transferred between the memory and the memory controller.

【0009】上記請求項2の発明によれば、複数の機能
ブロック及び一のメモリからのデータは、リングバッフ
ァにおいて先入れ先出され、データの連続転送がなされ
る。
According to the second aspect of the present invention, the data from the plurality of functional blocks and the one memory is first-in first-out in the ring buffer, and the data is continuously transferred.

【0010】上記請求項3及び請求項4の発明によれ
ば、メモリコントローラからDRAMへのアクセスで転
送されるデータにエラーがあると、そのエラーがエラー
訂正回路によって訂正される。
According to the third and fourth aspects of the invention, if there is an error in the data transferred by the access from the memory controller to the DRAM, the error is corrected by the error correction circuit.

【0011】[0011]

【発明の実施の形態】以下、本発明の実施の形態につい
て図面を参照して説明する。 (第1の実施形態)図1は、本発明の第1の実施形態に
係るメモリ制御方法を示すブロック図である。本実施形
態のメモリ制御方法は、2つの機能ブロック1,2が1
つのメモリ10を共有し、FIFO21,22を有する
メモリコントローラ20の制御によって、これら2つの
機能ブロック1,2とメモリ10との間で、データA,
Bの転送を行う方法である。
BEST MODE FOR CARRYING OUT THE INVENTION Embodiments of the present invention will be described below with reference to the drawings. (First Embodiment) FIG. 1 is a block diagram showing a memory control method according to a first embodiment of the present invention. In the memory control method of this embodiment, the two functional blocks 1 and 2 are
Under the control of the memory controller 20 which shares one memory 10 and has the FIFOs 21 and 22, data A, between these two functional blocks 1 and 2 and the memory 10 are controlled.
This is a method of transferring B.

【0012】まず、機能ブロック1,2のデータA,B
をメモリ10に書き込む際の制御方法について述べる。
機能ブロック1,2によるデータA,Bの転送速度をそ
れぞれ10MB/s,20MB/sとすると、メモリコ
ントローラ20は、データA,Bを転送速度10MB/
s,20MB/sでメモリ10に書き込む必要がある。
機能ブロック1,2からのデータA,Bは、メモリコン
トローラ20のFIFO21,22に転送速度10MB
/s,20MB/sで書き込まれる。すると、メモリコ
ントローラ20は、データAのアクセス回数とデータB
のアクセス回数とを時分割で割り当てる。また、データ
A,Bのアクセス回数の割り当て比は、機能ブロック
1,2の転送速度の比に対応させる。具体的には、デー
タA,Bの転送速度の比は、「10MB/s:20MB
/s」即ち「1:2」であるので、メモリコントローラ
20は、データAをFIFO21からメモリ10に1回
書き込んだ後、データBをFIFO22からメモリ10
に2回書き込む。これを1秒間繰り返すことで、メモリ
コントローラ20はデータA,Bを30MB/sでメモ
リ10に書き込むこととなる。
First, the data A and B of the functional blocks 1 and 2
A control method when writing data to the memory 10 will be described.
If the transfer rates of the data A and B by the functional blocks 1 and 2 are 10 MB / s and 20 MB / s, respectively, the memory controller 20 transfers the data A and B to the transfer rate of 10 MB / s.
It is necessary to write to the memory 10 at s, 20 MB / s.
Data A and B from the functional blocks 1 and 2 are transferred to the FIFOs 21 and 22 of the memory controller 20 at a transfer rate of 10 MB.
/ S, 20 MB / s. Then, the memory controller 20 determines the number of accesses to the data A and the data B.
And the number of times of access of are assigned in a time-sharing manner. Further, the allocation ratio of the access counts of the data A and B corresponds to the transfer speed ratio of the functional blocks 1 and 2. Specifically, the ratio of the transfer rates of the data A and B is “10 MB / s: 20 MB
/ S ”, that is,“ 1: 2 ”, the memory controller 20 writes the data A from the FIFO 21 to the memory 10 once, and then writes the data B from the FIFO 22 to the memory 10.
Write twice to. By repeating this for 1 second, the memory controller 20 writes the data A and B in the memory 10 at 30 MB / s.

【0013】図2は、メモリ10へのアクセス状態を示
す概略図である。図2に示すように、メモリコントロー
ラ20は、「データA,データB,データB」のアクセ
スを1秒間間内で繰り返し、FIFO21,22内のデ
ータA,Bを全てメモリ10に転送する。これにより、
1秒間のスパンで見ると、データAが1秒間に10MB
転送され、データBが1秒間に20MB転送されたこと
になる。すなわち、データAが機能ブロック1の転送速
度に等しい転送速度10MB/sでFIFO21からメ
モリ10に書き込まれ、同時に、データBが機能ブロッ
ク2の転送速度に等しい転送速度20MB/sでFIF
O22からメモリ10に書き込まれる。
FIG. 2 is a schematic diagram showing an access state to the memory 10. As shown in FIG. 2, the memory controller 20 repeats the access of “data A, data B, data B” within one second, and transfers all the data A, B in the FIFO 21, 22 to the memory 10. This allows
Looking at the span of 1 second, data A is 10MB in 1 second.
This means that the data B has been transferred by 20 MB per second. That is, the data A is written from the FIFO 21 to the memory 10 at a transfer rate of 10 MB / s equal to the transfer rate of the functional block 1, and at the same time, the data B is transferred to the FIFO at a transfer rate of 20 MB / s equal to the transfer rate of the functional block 2.
It is written in the memory 10 from O22.

【0014】このようなデータA,Bの書込は、FIF
O21,22の機能によって連続的に行われる。すなわ
ち、図2に示すように、メモリコントローラ20はデー
タAを1回書き込んだ後、データBを2回書き込む動作
を繰り返すので、図3に示すように、メモリコントロー
ラ20をスイッチに見立てることができる。このスイッ
チング動作によると、データAについてメモリ10に1
回アクセスした後、次のデータAについてアクセスする
までに、データBについての2回分のアクセス時間が入
り、その間、データAは休止状態となる。データBにつ
いても同様であり、このため、データA,Bの転送が間
欠的に行われる。これに対して、本実施形態では、図1
に示すように、リングバッファであるFIFO(Fir
st In First Out)21,22を介し
て、データA,Bの転送を行うので、データA,Bの上
記休止時間内に、次のデータA,BがFIFO21,2
2に格納され、データA,Bの連続転送が行われる。な
お、転送速度に余裕があり、上記連続動作を必要としな
い場合には、FIFO21,22を用いる必要がない。
Writing of such data A and B is performed by the FIF.
It is continuously performed by the functions of O21 and 22. That is, as shown in FIG. 2, since the memory controller 20 repeats the operation of writing the data A once and then the data B twice, as shown in FIG. 3, the memory controller 20 can be regarded as a switch. . According to this switching operation, 1 is stored in the memory 10 for the data A.
After the first access, the access time for the data B is twice before the next data A is accessed, and the data A is in the dormant state during that time. The same applies to the data B, so that the data A and B are transferred intermittently. In contrast, in the present embodiment, FIG.
As shown in FIG.
Since the data A and B are transferred via the st In First Out) 21 and 22, the next data A and B are transferred to the FIFOs 21 and 2 within the pause time of the data A and B.
2 and the data A and B are continuously transferred. It should be noted that the FIFOs 21 and 22 need not be used when the transfer speed has a margin and the continuous operation is not required.

【0015】次に、メモリコントローラ20によるメモ
リ10への書込及び読出動作について述べる。例えば、
機能ブロック1からのデータAをメモリ10に書き込
み、データBをメモリ10から読み出して機能ブロック
2に転送する場合には、メモリコントローラ20は、デ
ータAをFIFO21からメモリ10に1回書き込んだ
後、データBをメモリ10からFIFO22に2回読み
出す。これにより、データAは転送速度10MB/sで
メモリ10に転送され、データBは転送速度20MB/
sでメモリ10からFIFO22に転送されることとな
る。また、メモリ10からデータA,Bを読み出す場合
には、データAの読出を1回行った後、データBの読出
を2回行えば良い。
Next, the writing and reading operations to and from the memory 10 by the memory controller 20 will be described. For example,
When the data A from the functional block 1 is written to the memory 10 and the data B is read from the memory 10 and transferred to the functional block 2, the memory controller 20 writes the data A from the FIFO 21 to the memory 10 once, The data B is read from the memory 10 to the FIFO 22 twice. As a result, the data A is transferred to the memory 10 at a transfer rate of 10 MB / s, and the data B is transferred at a transfer rate of 20 MB / s.
The data is transferred from the memory 10 to the FIFO 22 in s. Further, when the data A and B are read from the memory 10, the data A may be read once and then the data B may be read twice.

【0016】このように、本実施形態のメモリ制御方法
によれば、1つのメモリ10を分割せずに、機能ブロッ
ク1のデータAと機能ブロック2のデータBとを時分割
でほぼ同時に転送する構成であるので、メモリ10とメ
モリコントローラ20との間に、機能ブロック1,2の
数に合わせて制御線を増設する必要がなく、その分コス
トを低く抑えることができる。また、上記のように機能
ブロック1,2の転送速度が異なっていても、何ら複雑
な制御技術を用いることなく、機能ブロック1,2の転
送速度でデータA,Bを転送することができる。
As described above, according to the memory control method of this embodiment, the data A of the functional block 1 and the data B of the functional block 2 are transferred almost simultaneously at the same time without dividing one memory 10. Because of the configuration, it is not necessary to add control lines between the memory 10 and the memory controller 20 according to the number of the functional blocks 1 and 2, and the cost can be suppressed to that extent. Even if the transfer speeds of the functional blocks 1 and 2 are different as described above, the data A and B can be transferred at the transfer speed of the functional blocks 1 and 2 without using any complicated control technique.

【0017】(第2の実施形態)図4は、本発明の第2
の実施形態に係るメモリ制御方法を示すブロック図であ
る。本実施形態のメモリ制御方法は、3つの機能ブロッ
ク1,2,3が1つのメモリ10を共有し、FIFO2
1〜23を有するメモリコントローラ20の制御でデー
タA,B,Cの転送を行う点が、上記第1の実施形態と
異なる。本実施形態において、例えば、機能ブロック1
のデータAの転送速度を10MB/s、機能ブロック2
のデータBの転送速度を20MB/s、機能ブロック3
のデータCの転送速度を30MB/sとすると、これら
のデータA,B,Cのメモリ10への書込は、図5に示
すようにして行われる。すなわち、データAについて、
FIFO21からメモリ10への書込アクセスを1回行
った後、データCについて、FIFO23からメモリ1
0への書込を3回行い、しかる後、データBについて、
FIFO22からメモリ10への書込アクセスを2回行
う。このようなアクセスを1秒間繰り返すことで、デー
タが60MB/sの転送速度でメモリコントローラ20
からメモリ10に書き込まれる。この結果、データAが
機能ブロック1の転送速度に等しい転送速度10MB/
sでFIFO21からメモリ10に書き込まれ、データ
Cが機能ブロック3の転送速度に等しい転送速度30M
B/sでFIFO23からメモリ10に書き込まれ、デ
ータBが機能ブロック2の転送速度に等しい転送速度2
0MB/sでFIFO22からメモリ10に書き込まれ
る。
(Second Embodiment) FIG. 4 shows a second embodiment of the present invention.
3 is a block diagram showing a memory control method according to the embodiment of FIG. In the memory control method of this embodiment, the three functional blocks 1, 2, and 3 share one memory 10,
The difference from the first embodiment is that the data A, B, and C are transferred under the control of the memory controller 20 having 1 to 23. In this embodiment, for example, the functional block 1
Data A transfer rate is 10MB / s, functional block 2
Data B transfer rate is 20MB / s, functional block 3
If the transfer rate of the data C of 30 is set to 30 MB / s, writing of these data A, B, and C into the memory 10 is performed as shown in FIG. That is, for data A,
After the write access from the FIFO 21 to the memory 10 is performed once, for the data C, the FIFO 23 to the memory 1
Write to 0 three times, and then, for data B,
Write access to the memory 10 from the FIFO 22 is performed twice. By repeating such access for 1 second, the memory controller 20 can transfer data at a transfer rate of 60 MB / s.
Is written in the memory 10. As a result, the data A has a transfer rate of 10 MB / equal to the transfer rate of the functional block 1.
The data C is written from the FIFO 21 to the memory 10 at s, and the data C is transferred at a transfer rate of 30M which is equal to the transfer rate of the functional block 3.
B / s is written from the FIFO 23 to the memory 10 and the data B is equal to the transfer rate of the functional block 2
The data is written from the FIFO 22 to the memory 10 at 0 MB / s.

【0018】図6は、本実施形態をテープストリーマ装
置に適用した例を示すブロック図である。機能ブロック
1がSCSIコントローラであり、機能ブロック2がテ
ープ記録及び再生装置であり、機能ブロック3がCPU
である。これにより、SCSIバスからのデータAをメ
モリコントローラ20を介してSCSIコントローラ1
からメモリ10に転送し、一旦メモリ10に蓄える。そ
して、テープ記録及び再生装置2のテープの動きに同期
させて、メモリ10のデータAをテープ記録及び再生装
置2に読み出し、そのテープ上に記録することができ
る。また、逆に、テープ記録及び再生装置2のテープ上
のデータBをメモリコントローラ20を介してメモリ1
0に一旦転送し、SCSIコマンドなどによって、デー
タBをメモリ10からSCSIコントローラ1に転送す
ることもできる。さらに、必要に応じて、CPU3から
メモリ10に対してデータCの読み書きを行うことがで
きる。その他の構成,作用効果は上記第1の実施形態と
同様であるので、その記載は省略する。
FIG. 6 is a block diagram showing an example in which this embodiment is applied to a tape streamer device. The functional block 1 is a SCSI controller, the functional block 2 is a tape recording and reproducing device, and the functional block 3 is a CPU.
It is. As a result, the data A from the SCSI bus is transferred to the SCSI controller 1 via the memory controller 20.
To the memory 10 and temporarily store it in the memory 10. Then, in synchronization with the movement of the tape of the tape recording / reproducing apparatus 2, the data A in the memory 10 can be read to the tape recording / reproducing apparatus 2 and recorded on the tape. On the contrary, the data B on the tape of the tape recording and reproducing device 2 is transferred to the memory 1 via the memory controller 20.
It is also possible to transfer the data B once from the memory 10 to the SCSI controller 1 by a SCSI command or the like. Furthermore, the data C can be read from and written to the memory 10 from the CPU 3 as needed. The other configuration, operation, and effect are the same as those of the first embodiment, and the description thereof is omitted.

【0019】(第3の実施形態)図7は、本発明の第3
の実施形態に係るメモリ制御方法を示すブロック図であ
る。本実施形態のメモリ制御方法は、メモリ10として
DRAM10を用い、エラー訂正回路30により、この
DRAM10とメモリコントローラ20間のデータのエ
ラー訂正を行う点が、上記第1及び第2の実施形態のメ
モリ制御方法と異なる。機能ブロック1〜3のデータA
〜Cの転送速度を上記第2の実施形態と同様に、10m
b/s,20MB/s,30MB/sとすると、この転
送速度の比「1:2:3」のアクセス回数比で、DRA
M10とメモリコントローラ20間におけるデータA〜
Cの転送が行われる。そして、DRAM10におけるビ
ット化けによるエラーがエラー訂正回路30によって訂
正される。このように、1つのDRAM10を分割せず
に、機能ブロック1〜3のデータA〜Cの転送を時分割
でほぼ同時に行うので、DRAM10とメモリコントロ
ーラ20との間に介設するエラー訂正回路30は1つで
済む。その他の構成,作用効果は上記第1及び第2の実
施形態と同様であるので、その記載は省略する。
(Third Embodiment) FIG. 7 shows a third embodiment of the present invention.
3 is a block diagram showing a memory control method according to the embodiment of FIG. The memory control method according to the present embodiment uses the DRAM 10 as the memory 10, and the error correction circuit 30 performs error correction of data between the DRAM 10 and the memory controller 20. That is, the memory according to the first and second embodiments. Different from the control method. Data A of function blocks 1 to 3
The transfer rate of C to 10 m is set to 10 m as in the second embodiment.
If b / s, 20 MB / s, and 30 MB / s are set, the DRA can be accessed at the access count ratio of the transfer rate ratio “1: 2: 3”.
Data A between M10 and memory controller 20
Transfer of C is performed. Then, the error due to garbled bits in the DRAM 10 is corrected by the error correction circuit 30. As described above, since the data A to C of the functional blocks 1 to 3 are transferred almost simultaneously without dividing one DRAM 10, the error correction circuit 30 provided between the DRAM 10 and the memory controller 20 is provided. One is enough. The other configuration, operation, and effect are the same as those of the first and second embodiments, and thus description thereof is omitted.

【0020】なお、本発明は、上記実施形態に限定され
るものではなく、発明の要旨の範囲内において種々の変
形や変更が可能である。例えば、上記第1ないし第3の
実施形態では、機能ブロックを2つ又は3つとしたが、
これに限るものではない。メモリコントローラが、各機
能ブロックのデータについてのメモリアクセス回数を時
分割で割り当て、このアクセス回数の割り当て比を複数
の機能ブロックの転送速度の比に対応させるものであれ
ば、機能ブロックの数を任意に設定することができるこ
とは勿論である。この場合において、FIFOを機能ブ
ロックの数だけメモリコントローラ20に設けること
で、連続動作が可能となる。
The present invention is not limited to the above embodiment, but various modifications and changes can be made within the scope of the invention. For example, in the first to third embodiments described above, the number of functional blocks is two or three, but
It is not limited to this. The number of functional blocks is arbitrary as long as the memory controller allocates the number of memory accesses for the data of each functional block in a time-sharing manner and the allocation ratio of the number of accesses corresponds to the transfer speed ratio of a plurality of functional blocks. Of course, it can be set to. In this case, by providing FIFOs in the memory controller 20 as many as the functional blocks, continuous operation becomes possible.

【0021】[0021]

【発明の効果】以上詳しく説明したように、本発明のメ
モリ制御方法によれば、複数の機能ブロックの転送速度
に対応した量のデータが、メモリとメモリコントローラ
間において、時分割で転送されるので、メモリとメモリ
コントローラ間の制御線を機能ブロックの数に対応させ
て増設する必要がなく、この結果、本方法を実現する装
置の低コスト化を図ることができるという効果がある。
また、各機能ブロックの転送速度が異なっていても、各
機能ブロックのデータを正確に転送制御することができ
る。さらに、エラー訂正回路を増設することなく、一の
エラー訂正回路で各機能ブロックのデータの訂正を行う
ことができる。
As described in detail above, according to the memory control method of the present invention, the amount of data corresponding to the transfer speed of a plurality of functional blocks is transferred in a time division manner between the memory and the memory controller. Therefore, it is not necessary to add control lines between the memory and the memory controller in correspondence with the number of functional blocks, and as a result, it is possible to reduce the cost of the device that implements the present method.
Further, even if the transfer speed of each functional block is different, it is possible to accurately control the transfer of the data of each functional block. Further, the data of each functional block can be corrected by one error correction circuit without adding an error correction circuit.

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

【図1】本発明の第1の実施形態に係るメモリ制御方法
を示すブロック図である。
FIG. 1 is a block diagram showing a memory control method according to a first embodiment of the present invention.

【図2】図1のメモリ制御方法によるメモリへのアクセ
ス状態を示す概略図である。
FIG. 2 is a schematic diagram showing an access state to a memory by the memory control method of FIG.

【図3】メモリコントローラのスイッチ機能を示す模式
図である。
FIG. 3 is a schematic diagram showing a switch function of a memory controller.

【図4】本発明の第2の実施形態に係るメモリ制御方法
を示すブロック図である。
FIG. 4 is a block diagram showing a memory control method according to a second embodiment of the present invention.

【図5】図4のメモリ制御方法によるメモリへのアクセ
ス状態を示す概略図である。
5 is a schematic diagram showing a memory access state according to the memory control method of FIG. 4;

【図6】図4のメモリ制御方法をテープストリーマ装置
に適用した例を示すブロック図である。
6 is a block diagram showing an example in which the memory control method of FIG. 4 is applied to a tape streamer device.

【図7】本発明の第3の実施形態に係るメモリ制御方法
を示すブロック図である。
FIG. 7 is a block diagram showing a memory control method according to a third embodiment of the present invention.

【図8】従来例に係るメモリ制御方法を示すブロック図
である。
FIG. 8 is a block diagram showing a memory control method according to a conventional example.

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

1〜3・・・機能ブロック、 10・・・メモリ、 2
0・・・メモリコントローラ、 21〜23・・・FI
FO、 30・・・エラー訂正回路、 A,B,C・・
・データ。
1 to 3 ... Functional block, 10 ... Memory, 2
0 ... Memory controller, 21-23 ... FI
FO, 30 ... Error correction circuit, A, B, C ...
·data.

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 複数の機能ブロックが一のメモリを共有
し、メモリコントローラの制御によって上記複数の機能
ブロックと上記一のメモリとの間でデータ転送を行うメ
モリ制御方法において、 上記メモリコントローラは、上記各機能ブロックのデー
タについてのメモリアクセス回数を時分割で割り当て、
このアクセス回数の割り当て比を上記複数の機能ブロッ
クの転送速度の比に対応させるものである、 ことを特徴とするメモリ制御方法。
1. A memory control method in which a plurality of functional blocks share one memory, and data is transferred between the plurality of functional blocks and the one memory under the control of a memory controller. Allocate the number of memory accesses for the data of each functional block above in a time-sharing manner,
The memory control method, wherein the allocation ratio of the number of accesses corresponds to the transfer speed ratio of the plurality of functional blocks.
【請求項2】 請求項1に記載のメモリ制御方法におい
て、 上記メモリコントローラは、上記複数の機能ブロック及
び一のメモリからのデータをリングバッファを用いて先
入れ先出しするものである、 ことを特徴とするメモリ制御方法。
2. The memory control method according to claim 1, wherein the memory controller is a first-in first-out first-in first-out mode using a ring buffer for data from the plurality of functional blocks and one memory. Memory control method.
【請求項3】 請求項1に記載のメモリ制御方法におい
て、 上記一のメモリにDRAMを用い、 上記メモリコントローラと上記DRAMとの間にエラー
訂正回路を介在させて、データのエラー訂正を行う、 ことを特徴とするメモリ制御方法。
3. The memory control method according to claim 1, wherein a DRAM is used as the one memory, and an error correction circuit is interposed between the memory controller and the DRAM to perform data error correction. A memory control method characterized by the above.
【請求項4】 請求項2に記載のメモリ制御方法におい
て、 上記一のメモリにDRAMを用い、 上記メモリコントローラと上記DRAMとの間にエラー
訂正回路を介在させて、データのエラー訂正を行う、 ことを特徴とするメモリ制御方法。
4. The memory control method according to claim 2, wherein a DRAM is used as the one memory, and an error correction circuit is interposed between the memory controller and the DRAM to correct an error in data. A memory control method characterized by the above.
JP11351996A 1996-05-08 1996-05-08 Memory control method Pending JPH09297705A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP11351996A JPH09297705A (en) 1996-05-08 1996-05-08 Memory control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11351996A JPH09297705A (en) 1996-05-08 1996-05-08 Memory control method

Publications (1)

Publication Number Publication Date
JPH09297705A true JPH09297705A (en) 1997-11-18

Family

ID=14614408

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11351996A Pending JPH09297705A (en) 1996-05-08 1996-05-08 Memory control method

Country Status (1)

Country Link
JP (1) JPH09297705A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007156544A (en) * 2005-11-30 2007-06-21 Canon Inc Information processing system, memory control device, and data transmission control method
JP2007257362A (en) * 2006-03-23 2007-10-04 Sony Corp Storage device and access control method therefor

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007156544A (en) * 2005-11-30 2007-06-21 Canon Inc Information processing system, memory control device, and data transmission control method
JP2007257362A (en) * 2006-03-23 2007-10-04 Sony Corp Storage device and access control method therefor
JP4609356B2 (en) * 2006-03-23 2011-01-12 ソニー株式会社 Storage device and access control method thereof

Similar Documents

Publication Publication Date Title
JP3598321B2 (en) Buffering data exchanged between buses operating at different frequencies
US6532525B1 (en) Method and apparatus for accessing memory
KR100619806B1 (en) Arbitration Methods and Systems for Arbitrating Access to a Disk Controller Memory
JPH09297705A (en) Memory control method
US4400793A (en) Method and arrangement for fast access to CCD-stores
US7346830B2 (en) Usage of an SDRAM as storage for correction and track buffering in frontend ICs of optical recording or reproduction devices
JPS6216294A (en) Memory device
JPS61217858A (en) Data transmitting device
JPS6226055B2 (en)
JPH03204753A (en) Dma controller
JPS58169398A (en) Memory system
JPS63245745A (en) Buffer storage controller
JP2616490B2 (en) Shared data storage method
KR100219045B1 (en) Fifo circuit having dual channel
JPS5918745B2 (en) Memory shared access method
JPH04333950A (en) Information processing system
JPH0241058B2 (en)
JPS61208692A (en) First write first read memory device
JPH04225453A (en) Data processor
JPS60258638A (en) Control system of magnetic disk device
US20020175919A1 (en) Graphic accelerator
JPH0926858A (en) Data storage method and device therefor
JPH01162966A (en) Control system for channel data buffer
JPS62127933A (en) Magnetic tape controller
JPH07295946A (en) Information processor and data transfer method therefor