JPH03178096A - Controller for storage device - Google Patents

Controller for storage device

Info

Publication number
JPH03178096A
JPH03178096A JP1318107A JP31810789A JPH03178096A JP H03178096 A JPH03178096 A JP H03178096A JP 1318107 A JP1318107 A JP 1318107A JP 31810789 A JP31810789 A JP 31810789A JP H03178096 A JPH03178096 A JP H03178096A
Authority
JP
Japan
Prior art keywords
refresh
memory access
storage device
address
central processing
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
JP1318107A
Other languages
Japanese (ja)
Inventor
Yukiyasu Kawabata
幸保 川畑
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP1318107A priority Critical patent/JPH03178096A/en
Publication of JPH03178096A publication Critical patent/JPH03178096A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To make asynchronously and freely access by providing a second competitive control part sending a refresh requiring signal, and a central processor selected by a first competitive control part, and a data buffer to execute the input and output of the data between storage devices. CONSTITUTION:The subject device is provided with the second competitive control part 5b sending the refresh requiring signal at the time of refresh require ment at every prescribed interval from a refresh timer 4 by denying a memory access requirement of the requirement of the competitive decision and the cen tral processor selected by the first competitive control part 5a, and the data buffer 8 to execute the input/output of the data between the memory devices. By the first and the second competitive control parts 5a, 5b, the competitive control of refresh priority and the competitive control of memory access require ment from plural CPUs 1a, 1b are allowed to independently compete and by allowing the refresh requirement to have the priority, the competitive decision of memory access requirement from the plural CPUs 1a, 1b is executed. In such a manner, the controller for the storage device making a DRAM 2 access with asynchronous is obtained.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明は、記憶装置の制御装置に関し、特にダイナ主
ツタ方式の記憶装置を制御する装置に関するものである
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a control device for a storage device, and particularly to a device for controlling a Dyna main type storage device.

〔従来の技術〕[Conventional technology]

第2図は例えば「トランジスタ技術J  (1988年
10月号404頁〜415頁)に示されたダイナミック
方式の記憶装置(以下DRAMとする)の制御装置を示
す回路図であり、図において、(1)は中央処理装置(
以下、cpuとする)、(2)はDRAM、(3)はc
pu (1)からのアドレスにより必要なメモリを選択
するアドレスデコーダ、(4)はDRAM (2)を一
定間隔でリフレッシュするためのリフレッシュ要求を行
うリフレッシュタイマ、(5)はアドレスデコーダ(3
)によるcpu (1)からのメモリアクセス要求とリ
フレッシュタイマ(4)からのリフレッシュ要求の競合
裁定を行うリフレッシュアービタ、(6)はDRAM(
2)に必要な制御信号をつくるタイミングジェネータ、
(7)はCPLI (1)のアドレスの上位アドレスと
下位アドレスをDRAM (2)に入力するために切替
えるためのアドレスマルチプレクサ、(8)はCPLI
 (1)からの読み出し/書き込みの制御によってDR
AM (2)からのデータの人出力を制御するデータバ
ッファである。
FIG. 2 is a circuit diagram showing a control device for a dynamic storage device (hereinafter referred to as DRAM), which is shown in, for example, "Transistor Technology J (October 1988 issue, pages 404-415). 1) is the central processing unit (
(hereinafter referred to as cpu), (2) is DRAM, (3) is c
pu (1) is an address decoder that selects the required memory according to the address from the address, (4) is a refresh timer that makes a refresh request to refresh DRAM (2) at regular intervals, and (5) is an address decoder (3).
) is a refresh arbiter that arbitrates the conflict between memory access requests from CPU (1) and refresh requests from refresh timer (4), and (6) is
2) a timing generator that creates the control signals necessary for
(7) is an address multiplexer for switching to input the upper and lower addresses of the CPLI (1) to the DRAM (2), and (8) is the CPLI
(1) DR by controlling read/write from
This is a data buffer that controls the output of data from AM (2).

次に動作について説明する。CPLI (1)からDR
AM(2)のアクセス要求のためのアドレスがアドレス
デコーダ(3)に人力されて、アドレスデコーダ(3)
からメモリアクセス要求リフレッシュアービタ(5)に
出力される。次いで、リフレッシュアービタ(5)によ
ってリフレッシュタイマ(4)からのリフレッシュ要求
信号とアドレスデコーダ(3)からのメモリアクセス要
求との競合裁定を行う。上記メモリアクセス要求信号と
リフレッシュ要求信号のうちいずれか早く出された要求
が先に許可されて、もし要求が競合した場合は、後から
の要求は先に許可された要求のサイクルが終了するまで
待たされる。
Next, the operation will be explained. CPLI (1) to DR
The address for the access request of AM (2) is manually entered into the address decoder (3), and the address decoder (3)
The memory access request refresh arbiter (5) is output from the memory access request refresh arbiter (5). Next, the refresh arbiter (5) arbitrates a conflict between the refresh request signal from the refresh timer (4) and the memory access request from the address decoder (3). Whichever of the above memory access request signal or refresh request signal is issued earlier is granted first, and if there is a conflict, subsequent requests are allowed until the cycle of the request that was granted first is completed. made to wait.

次いで、タイミングジェネレータ(δ〉でリフレッシュ
アービタ(5)によって選択されたメモリアクセス要求
信号やタイくングジェネータ(6)でリフレッシュアー
ビタ(5)によって選択されたメモリアクセス要求信号
やリフレッシュ要求信号をもとにメモリアクセスやリフ
レッシュに必要なRAS、CAS信号のタイミングがタ
イミングジェネレータ(6)によって作り出され、DR
AM (2)に入力される。
Next, based on the memory access request signal selected by the refresh arbiter (5) by the timing generator (δ>) and the memory access request signal and refresh request signal selected by the refresh arbiter (5) by the tying generator (6), The timing of the RAS and CAS signals necessary for memory access and refresh is generated by the timing generator (6), and the timing of the DR
AM (2) is input.

また、例えば上記タイくングジェネレータ(6)によっ
て選択されたメモリアクセス要求信号(あるいはリフレ
ッシュ要求信号)は、アドレスマルチプレクサ(7)に
入力され、DRAM (2)のロウアドレスとカラムア
ドレスを時分割で人力するためのCPU (1)のアド
レスを切り替えが行われDRAM (2)に入力される
。次いで、DRAM (2)は、読み出し時には、CP
t1 (1)によって要求されたアドレスに格納されて
いるデータを読み出し、書き込み時には、CPU (1
)によって要求されたアドレスにデータを書き込む。そ
の時、データバッファ(8)は、双方向のバッファを用
い、データの方向(読み出し時はDRAM(2)からc
pu(1)  書き込み時はcpu(1)からDRAM
(2) )によりバッファを制御している。
Further, for example, the memory access request signal (or refresh request signal) selected by the tying generator (6) is input to the address multiplexer (7), and the row address and column address of the DRAM (2) are time-divided. The address of the CPU (1) for manual processing is switched and input to the DRAM (2). Next, when reading the DRAM (2), the CP
When reading and writing data stored at the address requested by t1 (1), the CPU (1
) writes data to the address requested by At that time, the data buffer (8) uses a bidirectional buffer, and the direction of data (from DRAM (2) to c
pu(1) When writing, from cpu(1) to DRAM
(2) ) controls the buffer.

(発明が解決しようとする課題) 従来のダイミック方式の記憶装置の制御装置は、以上の
ように構成されているので、複数のCPUによるアクセ
スでは、リフレッシュ制御、競合裁定の制御等cpu制
御に複雑な処理手順や割り込み、回路の付加が必要とな
り、また、ハードウェアの規模も大きくなるなどの問題
点があり、リフレッシュ間隔もある程度自由度を持たせ
ておかなくてはならないなどの問題点があった。
(Problem to be Solved by the Invention) Since the control device of the conventional dynamic storage device is configured as described above, access by multiple CPUs requires complex CPU control such as refresh control and contention arbitration control. There are problems such as requiring additional processing procedures, interrupts, and circuits, and increasing the scale of the hardware.There are also problems such as the need to have a certain degree of flexibility in the refresh interval. Ta.

この発明は、上記のような問題点を解消するためになさ
れたもので、リフレッシュ間隔を一定にして優先権を持
たせ、最大時間でリフレッシュを行い複数のcpuから
の要求に於て競合制御を行わせることによって非同期に
自由にアクセスできるダイナミック方式の記憶装置の制
御装置を得ることを目的とする。
This invention was made in order to solve the above-mentioned problems, and it makes the refresh interval constant, gives priority, refreshes in the maximum time, and controls contention in requests from multiple CPUs. The object of the present invention is to obtain a control device for a dynamic storage device that can be freely accessed asynchronously by performing the following steps.

〔課題を解決するための手段〕[Means to solve the problem]

この発明に係る記憶装置の制御装置は、複数の中央処理
装置によって共有しているダイナミック方式の記憶装置
を非同期でアクセスする記憶装置の制御装置において、
各中央処理装置から出力されるメモリアクセス要求をそ
れぞれデコードするアドレスデコーダと、上記記憶装置
をアクセスする中央処理装置からのアドレスを選択する
セレクタと、上記各アドレスデコーダを介して与えられ
る各中央処理装置からのメモリアクセス要求の競合裁定
を行い上記セレクタに選択制御信号を送出する第1の競
合制御部と、上記競合裁定結果のメモリアクセス要求を
リフレッシュタイマからの所定間隔毎のリフレッシュ要
求時には打ち消してすフレッシュ要求信号を送出する第
2の競合制御部と、上記記憶装置に常時はメモリアクセ
ス制御信号を送出しつつ、上記リフレッシュ要求信号の
入力時にはリフレッシュ制御信号を送出するタイミング
ジェネレータと、上記第1の競合制御部によって選択さ
れた中央処理装置のアドレスの上位と下位アドレスを切
替えて上記記憶装置に送出するアドレスマルチプレクサ
と、第1の競合制御部によって選択された中央処理装置
と上記記憶装置間でデータの入出力が行われるデータバ
ッファとを備えたものである。
A storage device control device according to the present invention is a storage device control device that asynchronously accesses a dynamic storage device shared by a plurality of central processing units.
an address decoder that decodes each memory access request output from each central processing unit; a selector that selects an address from the central processing unit that accesses the storage device; and each central processing unit provided through each of the address decoders. a first contention control unit that performs contention arbitration on memory access requests from a refresh timer and sends a selection control signal to the selector; a second contention control unit that sends a refresh request signal; a timing generator that normally sends a memory access control signal to the storage device and sends a refresh control signal when the refresh request signal is input; an address multiplexer that switches the upper and lower addresses of the central processing unit selected by the contention control unit and sends the same to the storage device; and an address multiplexer that switches the upper and lower addresses of the central processing unit selected by the contention control unit and sends the same to the storage device; It is equipped with a data buffer for inputting and outputting data.

〔作用〕[Effect]

この発明における記憶装置の制御装置は、第1と第2の
競合制御部により、リフレッシュ優先の競合制御と複数
のCPUからのメモリアクセス要求の競合制御を独立に
競合させ、また、リフレッシュ要求に優先権を持たせ、
複数のCPUからのメモリアクセス要求を競合裁定を行
う。
The storage device control device according to the present invention independently competes refresh priority conflict control and memory access request conflict control from a plurality of CPUs by the first and second conflict control units, and also gives priority to refresh requests. have the right,
Competitive arbitration is performed for memory access requests from multiple CPUs.

〔実施例〕〔Example〕

以下、この発明の一実施例を図について説明する。 An embodiment of the present invention will be described below with reference to the drawings.

第1図において、(la)と(lb)は第1と第2のC
PU 、  (2) はDRAM、  (3a)と(3
b)は第1と第2のCPU (la)と(1b)のアド
レスデコーダ、(4)はDRAM(2)を一定間隔でリ
フレッシュするためのリフレッシュ要求を行うリフレッ
シュタイマ、(5a)は第1と第2のCPU (la)
と(lb)からのメモリアクセス要求をもとに競合裁定
を行う第1の競合制御部、(5b)はCPU (la)
と(1b)の競合裁定結果のメモリアクセス要求をリフ
レッシュ要求時に打ち消し、リフレッシュ要求信号を出
力する第2の競合制御部、(6)はDRAM (2)必
要なリフレッシュ時の制御信号とメモリアクセス時の制
御信号をつくるタイミングジェネレータ、(7)は第1
の競合制御部(5a)によって選択されたcpu (l
a)と(lb)のどちらかのアドレスの上位アドレスと
下位アドレスをDRAM (2)に入力するための切替
えを行うアドレスマルチプレクサ、(8)はCPU (
la)と(1b)の選択された方のデータバスとDRA
M (2)のデータバスを接続し、接続されたCPU 
(la)あるいは(lb)の読み出し/書き込みの制御
によってDRAM (2)からのデータの人出力を制御
するデータバッファ、(9)はDRAM(2)をアクセ
スするCPU (la)あるいは(1b)のアドレスを
選択するセレクタである。
In Figure 1, (la) and (lb) are the first and second C
PU, (2) is DRAM, (3a) and (3
b) is an address decoder for the first and second CPUs (la) and (1b), (4) is a refresh timer that issues a refresh request to refresh the DRAM (2) at regular intervals, and (5a) is the first and second CPU (la)
The first contention control unit performs contention arbitration based on memory access requests from and (lb), and (5b) is the CPU (la).
and (1b) a second contention control unit that cancels the memory access request resulting from contention arbitration at the time of a refresh request and outputs a refresh request signal; (6) is the DRAM; (2) control signals during necessary refresh and memory access; The timing generator (7) is the first
cpu (l
Address multiplexer (8) switches to input the upper and lower addresses of either address (a) or (lb) to DRAM (2);
The data bus and DRA of the selected one of la) and (1b)
Connect the data bus of M (2) and connect the connected CPU.
(la) or (lb) is a data buffer that controls the output of data from DRAM (2) by controlling reading/writing; (9) is the CPU (la) or (1b) that accesses DRAM (2); This is a selector for selecting an address.

次に動作について説明する。CPU (la) 、 (
lb)からDRAM (2)をアクセスするために、C
PU (la)のアドレスデコーダ(3a)とCPU 
(lb)のアドレスデコーダ(3b)からメモリアクセ
ス要求が出されると、第1の競合制御部(5a)によっ
て先にアクセス要求を出したCPUに対するアクセス権
を第2の競合制御部(5b)やセレクタ(9)に知らせ
る。次いで、第2の競合制御部(5b)においてリフレ
ッシュタイマ(4)からのリフレッシュ要求があるかど
うかを確認して、リフレッシュ要求が無い場合は、競合
制御部(5a)からのメモリアクセス要求信号をタイミ
ングジェネレータ(6)   アドレスマルチプレクサ
(7)に知らせて、タイミングジェネレータ(6)によ
ってメモリアクセス要求信号をもとにDRAM制御の信
号RAS、CASを生成し、アドレスマルチプレクサ(
7)によって選択されたCPUのアドレスをロウアドレ
スとカラムアドレスに時分割に切替える。
Next, the operation will be explained. CPU (la), (
In order to access DRAM (2) from C
Address decoder (3a) of PU (la) and CPU
When a memory access request is issued from the address decoder (3b) of (lb), the first contention control unit (5a) grants access rights to the CPU that issued the access request first to the second contention control unit (5b) and the second contention control unit (5b). Notify the selector (9). Next, the second contention control unit (5b) checks whether there is a refresh request from the refresh timer (4), and if there is no refresh request, it outputs a memory access request signal from the contention control unit (5a). Timing generator (6) Notifies the address multiplexer (7), the timing generator (6) generates DRAM control signals RAS and CAS based on the memory access request signal, and outputs the DRAM control signals RAS and CAS to the address multiplexer (7).
7) The selected CPU address is time-divisionally switched to a row address and a column address.

また、リフレッシュ要求がある場合は、競合制御部(5
a)によって選択されたCPU (la)、(lb)の
どちらかの要求信号をタイミングジェネレータ(6)や
アドレスマルチプレクサ(7)には知らせず、リフレッ
シュ要求をタイミングジェネレータ(6)に知らせる。
Also, if there is a refresh request, the contention control unit (5
The timing generator (6) and address multiplexer (7) are not notified of the request signal of either CPU (la) or (lb) selected by a), but the refresh request is notified to the timing generator (6).

リフレッシュ要求が競合制御部(5b)に出されている
間は、選択されたCPUは待っていて、リフレッシュ要
求が解除された時点から第2の競合制御部(5b)から
CPU要求信号をタイミングジェネレータ(6)   
アドレスマルチプレクサ(7)に出す。
While the refresh request is issued to the contention control unit (5b), the selected CPU waits, and from the time the refresh request is released, the CPU request signal is sent from the second contention control unit (5b) to the timing generator. (6)
Output to address multiplexer (7).

従って、上記実施例によれば、複数のcpoによって共
有しているDRAMを非同期でアクセスできる。
Therefore, according to the above embodiment, the DRAM shared by a plurality of cpo can be accessed asynchronously.

〔発明の効果〕〔Effect of the invention〕

以上のように、この発明によれば、リフレッシュ要求を
優先にして、複数のcpo間での非同期競合制御を行う
ように構成したので、ソフトウェアによるフラグセンス
などの手間や割り込み処理回路を付加しなくてもよく、
リフレッシュの間隔も最大時間とれる効果がある。
As described above, according to the present invention, refresh requests are prioritized and asynchronous contention control is performed between multiple CPOs, thereby eliminating the need for software flag sensing and the addition of an interrupt processing circuit. It's okay,
This also has the effect of maximizing the refresh interval.

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

第1図はこの発明の一実施例による記憶装置の制御装置
のブロック図、第2図は従来の記憶装置の制御装置を示
すブロック図である。 (la) 、 (tb)は第1と第2のcpu 、  
(2)はDRAM。 (3a) 、 (3b) は第1と第2のアドレスデコ
ーダ、(4)はリフレッシュタイマ、(5a)は第1の
競合制御部、(5b)は第2の競合制御部、(6)はタ
イミングジェネレータ、(7)はアドレスマルチプレク
サ、(8)はデータバッファ、(9)はセレクタ。 尚、図中同一符号は同−又は相当部分を示す。
FIG. 1 is a block diagram of a storage device control device according to an embodiment of the present invention, and FIG. 2 is a block diagram showing a conventional storage device control device. (la), (tb) are the first and second CPUs,
(2) is DRAM. (3a) and (3b) are first and second address decoders, (4) is a refresh timer, (5a) is a first contention control unit, (5b) is a second contention control unit, and (6) is a Timing generator, (7) address multiplexer, (8) data buffer, (9) selector. Note that the same reference numerals in the figures indicate the same or corresponding parts.

Claims (1)

【特許請求の範囲】[Claims] 複数の中央処理装置によって共有しているダイナミック
方式の記憶装置を非同期でアクセスする記憶装置の制御
装置において、各中央処理装置から出力されるメモリア
クセス要求をそれぞれデコードするアドレスデコーダと
、上記記憶装置をアクセスする中央処理装置からのアド
レスを選択するセレクタと、上記各アドレスデコーダを
介して与えられる各中央処理装置からのメモリアクセス
要求の競合裁定を行い上記セレクタに選択制御信号を送
出する第1の競合制御部と、上記競合裁定結果のメモリ
アクセス要求をリフレッシュタイマからの所定間隔毎の
リフレッシュ要求時には打ち消してリフレッシュ要求信
号を送出する第2の競合制御部と、上記記憶装置に常時
はメモリアクセス制御信号を送出しつつ、上記リフレッ
シュ要求信号の入力時にはリフレッシュ制御信号を送出
するタイミングジェネレータと、上記第1の競合制御部
によって選択された中央処理装置のアドレスの上位と下
位アドレスを切替えて上記記憶装置に送出するアドレス
マルチプレクサと、第1の競合制御部によって選択され
た中央処理装置と上記記憶装置間でデータの入出力が行
われるデータバッファとを備えたことを特徴とする記憶
装置の制御装置。
A storage device control device that asynchronously accesses a dynamic storage device shared by a plurality of central processing units includes an address decoder that decodes each memory access request output from each central processing unit, and an address decoder that decodes each memory access request output from each central processing unit; A selector that selects an address from the central processing unit to be accessed; and a first competition that determines a conflict between memory access requests from each central processing unit provided via each of the address decoders and sends a selection control signal to the selector. a second contention control unit that cancels the memory access request resulting from the contention arbitration result and sends a refresh request signal when the refresh timer requests a refresh at predetermined intervals; and a timing generator that sends out a refresh control signal when the refresh request signal is input, and a timing generator that switches the upper and lower addresses of the central processing unit address selected by the first contention control unit to the storage device. 1. A control device for a storage device, comprising: an address multiplexer for sending data; and a data buffer for inputting and outputting data between a central processing unit selected by a first contention control unit and the storage device.
JP1318107A 1989-12-07 1989-12-07 Controller for storage device Pending JPH03178096A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1318107A JPH03178096A (en) 1989-12-07 1989-12-07 Controller for storage device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1318107A JPH03178096A (en) 1989-12-07 1989-12-07 Controller for storage device

Publications (1)

Publication Number Publication Date
JPH03178096A true JPH03178096A (en) 1991-08-02

Family

ID=18095571

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1318107A Pending JPH03178096A (en) 1989-12-07 1989-12-07 Controller for storage device

Country Status (1)

Country Link
JP (1) JPH03178096A (en)

Similar Documents

Publication Publication Date Title
EP0972251B1 (en) A method and apparatus for providing concurrent acces by a plurality of agents to a shared memory
US4796232A (en) Dual port memory controller
JPH028948A (en) Method and apparatus for controlling access to resource for computer apparatus
JP2002342159A (en) Memory controller
JP2002063131A (en) Bus system
JPH03254497A (en) Microcomputer
JP2000047974A (en) Bus arbitrating method of bus controller, bus controller, and system of electronic equipment
JP4560498B2 (en) Arbitration scheme for shared memory devices
US5802581A (en) SDRAM memory controller with multiple arbitration points during a memory cycle
US5748203A (en) Computer system architecture that incorporates display memory into system memory
JPH10228413A (en) Memory access controlling method device therefor and memory system
KR101022473B1 (en) Memory bank interleaving method and apparatus in the multi-layer bus system
US6859848B2 (en) Circuit for controlling sequential access to SDRAM
US5802597A (en) SDRAM memory controller while in burst four mode supporting single data accesses
US6529981B1 (en) Bus arbiter
JPH03178096A (en) Controller for storage device
JPH06325570A (en) Dynamic memory refresh circuit
JP2848082B2 (en) DMA bus arbitration
KR100210404B1 (en) An apparatus for controlling access of memory in dual bus system
JP2946561B2 (en) Multiprocessor system
JPH10301897A (en) Method and device for arbitration
JPH04328663A (en) Method and device for dram access arbitration
JPS63191398A (en) Information processor
JPH0378711B2 (en)
JPH10312333A (en) Data transfer control unit