JPH0574151A - Emulation circuit for dynamic memory - Google Patents

Emulation circuit for dynamic memory

Info

Publication number
JPH0574151A
JPH0574151A JP3237751A JP23775191A JPH0574151A JP H0574151 A JPH0574151 A JP H0574151A JP 3237751 A JP3237751 A JP 3237751A JP 23775191 A JP23775191 A JP 23775191A JP H0574151 A JPH0574151 A JP H0574151A
Authority
JP
Japan
Prior art keywords
dma
cycle
refresh
signal
cpu
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
JP3237751A
Other languages
Japanese (ja)
Inventor
Takeshi Maeda
武 前田
Nobuyuki Kobayashi
信幸 小林
Takeshi Shiobara
毅 塩原
Masahiko Otaki
雅彦 大瀧
Masahito Hiroi
雅人 広井
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.)
Hitachi Image Information Systems Inc
Hitachi Ltd
Hitachi Advanced Digital Inc
Original Assignee
Hitachi Image Information Systems Inc
Hitachi Ltd
Hitachi Video and Information System Inc
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 Hitachi Image Information Systems Inc, Hitachi Ltd, Hitachi Video and Information System Inc filed Critical Hitachi Image Information Systems Inc
Priority to JP3237751A priority Critical patent/JPH0574151A/en
Publication of JPH0574151A publication Critical patent/JPH0574151A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To achieve higher efficiency of a memory access preventing emulation between a refreshing cycle and a CPU cycle and a DMA cycle. CONSTITUTION:When emulation occurs between a refreshing demand signal 6 to be outputted from a refreshing demand signal generating section 3, a DMA demand signal 5 to be outputted from a DMA controller 2 and a CPU access demand signal 4 to be outputted from a CPU1, a memory status generation part 7 starts a processing with a demand high in preference. In the emulation with the DMA demand signal 5, when the refreshing cycle is preferred, a weight is set on the DMA controller 2 with a DMA weight generation part 8. In the emulation with the CPU access demand signal 4, when the refreshing cycle is preferred, the CPU1 is under a weight until a RDY signal 20 is outputted from a RDY signal generation part 21.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、ダイナミックメモリ
(以下、DRAMと略す)のアクセスサイクルとリフレ
ッシュサイクルの競合回路に係り、特に、DRAMの有
する高速ページモード及びスタティクカラムモードにお
いてリフレッシュサイクルとの競合によるメモリアクセ
ス速度の低下を防ぐのに好適なダイナミックメモリの競
合回路に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a competition circuit for an access cycle and a refresh cycle of a dynamic memory (hereinafter abbreviated as DRAM). The present invention relates to a dynamic memory contention circuit suitable for preventing a decrease in memory access speed due to contention.

【0002】[0002]

【従来の技術】DRAMのアクセスサイクルとリフレッ
シュサイクルの競合対策を行う従来技術として、特開平
1−276488号公報記載のものがある。この従来技
術では、CPU以外のデバイスによるダイレクトメモリ
アクセス要求信号とリフレッシュサイクル要求信号とが
競合した場合、ダイレクトメモリ要求を優先して実行
し、このダイレクトメモリアクセス中はリフレッシュ要
求信号をホールドしておき、ダイレクトメモリアクセス
終了後にリフレッシュサイクルを行なうようになってい
る。
2. Description of the Related Art As a conventional technique for coping with competition between a DRAM access cycle and a refresh cycle, there is one disclosed in Japanese Patent Laid-Open No. 1-276488. In this conventional technique, when the direct memory access request signal from the device other than the CPU and the refresh cycle request signal compete with each other, the direct memory request is preferentially executed, and the refresh request signal is held during the direct memory access. A refresh cycle is performed after the direct memory access is completed.

【0003】[0003]

【発明が解決しようとする課題】前記従来技術では、リ
フレッシュ要求信号とCPU以外のデバイスによるダイ
レクトメモリアクセス要求信号とが競合した場合、必ず
DMAサイクルを優先して実行し、リフレッシュサイク
ルを優先して実行することはない。又、リフレッシュ要
求信号の出力の方が早く出て、このリフレッシュサイク
ル実行中に、CPU以外のデバイスによるダイレクトメ
モリアクセス要求が起きた時は、DMAサイクルに対す
るウェイト挿入の配慮がなく、メモリアクセスの速度が
低下してしまうという問題がある。
In the above prior art, when the refresh request signal and the direct memory access request signal from a device other than the CPU conflict with each other, the DMA cycle is always prioritized and executed, and the refresh cycle is prioritized. Never do. Also, when the refresh request signal is output earlier and a direct memory access request is issued by a device other than the CPU during execution of this refresh cycle, there is no consideration of wait insertion for the DMA cycle, and the memory access speed is not considered. However, there is a problem that

【0004】本発明の目的は、データ保持動作の必要な
DRAMを用いたメモリシステムにおいて、リフレッシ
ュ要求信号とCPU以外のデバイスによるダイレクトメ
モリアクセス要求信号とが競合した際のメモリアクセス
の速度低下を防ぐことのできる競合回路を提供すること
にある。
An object of the present invention is to prevent a decrease in memory access speed when a refresh request signal and a direct memory access request signal from a device other than a CPU compete with each other in a memory system using a DRAM which requires a data holding operation. It is to provide a competing circuit capable of doing so.

【0005】[0005]

【課題を解決するための手段】上記目的は、データ保持
機能の必要なDRAMを用いたメモリシステムにおい
て、DRAMのリフレッシュ要求信号とCPU以外のデ
バイスをバスマスタとしたDMAメモリアクセス要求信
号が競合した際に、競合のタイミングがDMAコマンド
出力前,後のいずれかによって、リフレッシュサイク
ル,DMAサイクルのどちらを優先的に行なうかを決め
ることにより、達成される。上記目的はまた、CPU及
びCPU以外のデバイスの双方をバスマスタとしないア
イドル期間中にリフレッシュ要求信号とCPUアクセス
要求信号が競合した際に、高速ページモード継続中には
CPUサイクルを優先して実行し、高速ページモード中
断中にはリフレッシュサイクルを優先して実行すること
により、達成される。上記目的はまた、リフレッシュサ
イクル実行中にCPU以外のデバイスによるメモリアク
セス要求が発生した場合、リフレッシュサイクル終了ま
でに要する時間に応じたDMAウェイトを挿入すること
により、達成される。
SUMMARY OF THE INVENTION In a memory system using a DRAM having a data holding function, the above object is to be satisfied when a DRAM refresh request signal and a DMA memory access request signal with a device other than a CPU as a bus master compete with each other. In addition, the contention timing can be achieved by deciding which of the refresh cycle and the DMA cycle is preferentially performed before or after the DMA command is output. The above object is also to execute the CPU cycle with priority when the refresh request signal and the CPU access request signal compete during an idle period in which both the CPU and a device other than the CPU are not bus masters. This is achieved by giving priority to the refresh cycle during the suspension of the fast page mode. The above object is also achieved by inserting a DMA wait according to the time required until the end of the refresh cycle when a memory access request by a device other than the CPU occurs during execution of the refresh cycle.

【0006】[0006]

【作用】リフレッシュサイクルとCPU以外のデバイス
によるDMAサイクルの競合や、リフレッシュサイクル
とCPUをバスマスタとしたメモリサイクルとの競合が
回避されるので、DRAMの制御において、記憶データ
保持のためのリフレッシュサイクル実行に伴うメモリア
クセス速度の低下が防止され、リフレッシュサイクルと
メモリアクセスサイクルの競合によるメモリシステムの
誤動作を防ぐこともできる。
Since the conflict between the refresh cycle and the DMA cycle by the device other than the CPU and the conflict between the refresh cycle and the memory cycle in which the CPU is the bus master are avoided, the refresh cycle for holding the stored data is executed in the control of the DRAM. It is possible to prevent the memory access speed from being lowered due to the above, and to prevent the malfunction of the memory system due to the competition between the refresh cycle and the memory access cycle.

【0007】[0007]

【実施例】以下、本発明の一実施例を図面を参照して説
明する。図1は、本発明の一実施例に係るダイナミック
メモリ競合回路のブロック構成図である。CPU1から
出力された要求信号4と、DMAコントローラ2から出
力された要求信号5と、リフレッシュ要求信号生成部3
から出力された要求信号6は、メモリステータス生成部
7及びDMAウェイト生成部8に入力される。各要求信
号4,5,6が競合しない場合には、DMAウェイト生
成部8は0ウェイト設定のためのウェイト設定信号9を
DMAコントローラ2に出力する。又、メモリステータ
ス生成部7は、単独のアクセス要求信号4,5若しくは
6に従い、CPUステータス信号10,DMAステータ
ス信号11若しくはリフレッシュステータス信号12を
メモリ制御信号生成部13に出力する。メモリ制御信号
生成部13は、各ステータス信号10,11若しくは1
2の入力信号に従い、ロウアドレスストローブ信号14
(RAS−N信号),カラムアドレスストローブ信号1
5(CAS−N信号),メモリライトイネーブル信号1
6(MWEN信号)及びアウトプットイネーブル信号1
7(OE−N信号)等を出力して、メモリチップ18の
制御を行なう。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram of a dynamic memory contention circuit according to an embodiment of the present invention. The request signal 4 output from the CPU 1, the request signal 5 output from the DMA controller 2, and the refresh request signal generator 3
The request signal 6 output from is input to the memory status generation unit 7 and the DMA weight generation unit 8. When the request signals 4, 5, and 6 do not conflict with each other, the DMA weight generation unit 8 outputs a weight setting signal 9 for setting 0 weight to the DMA controller 2. Further, the memory status generation unit 7 outputs the CPU status signal 10, the DMA status signal 11 or the refresh status signal 12 to the memory control signal generation unit 13 according to the single access request signal 4, 5 or 6. The memory control signal generation unit 13 uses the status signals 10, 11 or 1
According to the input signal of 2, the row address strobe signal 14
(RAS-N signal), column address strobe signal 1
5 (CAS-N signal), memory write enable signal 1
6 (MWEN signal) and output enable signal 1
7 (OE-N signal) is output to control the memory chip 18.

【0008】DMA要求信号5とリフレッシュ要求信号
6とが競合した場合、DMAコントローラ2からのDM
Aコマンド信号19が既にDMAウェイト生成部8とメ
モリステータス生成部7に出力されていれば、DMAウ
ェイト生成部8は0ウェイト設定信号をDMAコントロ
ーラ2に出力し、メモリステータス生成部7はDMA,
リフレッシュの順にステータス信号11,12をメモリ
制御信号生成部13に出力し、DMA,リフレッシュの
順にサイクルが実行される。又、DMAコントローラ2
がDMAコマンド19を出力する前に要求信号5,6が
競合した場合には、メモリステータス生成部7はリフレ
ッシュ,DMAの順にステータス信号11,12を出力
し、リフレッシュ,DMAの順にサイクルが実行され
る。この時、DMAウェイト生成部8では、リフレツシ
ュサイクル実行後にDMAサイクル実行可能なだけのウ
ェイト設定信号9をDMAコントローラ2に出力する。
When the DMA request signal 5 and the refresh request signal 6 compete with each other, the DM from the DMA controller 2
If the A command signal 19 has already been output to the DMA weight generation unit 8 and the memory status generation unit 7, the DMA weight generation unit 8 outputs a 0 weight setting signal to the DMA controller 2, and the memory status generation unit 7 causes the DMA,
The status signals 11 and 12 are output to the memory control signal generation unit 13 in the order of refresh, and the cycle is executed in the order of DMA and refresh. Also, the DMA controller 2
If the request signals 5 and 6 compete with each other before outputting the DMA command 19, the memory status generator 7 outputs status signals 11 and 12 in the order of refresh and DMA, and the cycle is executed in the order of refresh and DMA. It At this time, the DMA weight generation unit 8 outputs to the DMA controller 2 a wait setting signal 9 that allows execution of the DMA cycle after execution of the refresh cycle.

【0009】CPUアクセス要求信号4とリフレツシュ
要求信号6とが競合した場合、この時のメモリ制御信号
の状態が高速ページモード実行中(RAS−N信号14
アサート状態)であれば、メモリステータス生成部7は
CPU,リフレツシュの順にステータス信号10,12
を出力し、CPU,リフレッシュの順にサイクルが実行
される。メモリ制御信号の状態が高速ページモード中断
状態(RAS−N信号14ネゲート状態)であれば、メ
モリステータス生成部7は、リフレッシュ,CPUの順
にステータス信号10,12を出力し、リフレツシュ,
CPUの順にサイクルが実行される。この時、CPU1
がサイクルの終りを認識する為のRDY信号20は、C
PUステータス信号10によりRDY信号生成部21で
生成される。そのため、CPUとリフレッシュサイクル
の競合において、リフレツシュサイクルが優先的に実行
されても、CPU1はCPUサイクル実行までウェイト
状態となる。
When the CPU access request signal 4 and the refresh request signal 6 compete with each other, the state of the memory control signal at this time is that the high speed page mode is being executed (RAS-N signal 14).
(Asserted state), the memory status generation unit 7 outputs status signals 10, 12 in the order of CPU and refresh.
Is output, and the cycle is executed in the order of CPU and refresh. If the state of the memory control signal is the high-speed page mode suspended state (RAS-N signal 14 negated state), the memory status generation unit 7 outputs the status signals 10 and 12 in the order of refresh, CPU, refresh,
The cycle is executed in the order of CPU. At this time, CPU1
The RDY signal 20 for recognizing the end of the cycle is C
It is generated by the RDY signal generation unit 21 by the PU status signal 10. Therefore, in the competition between the CPU and the refresh cycle, even if the refresh cycle is preferentially executed, the CPU 1 is in the wait state until the CPU cycle is executed.

【0010】リフレツシュサイクル実行中にDMAコン
トローラ2によるDMA要求信号5が出力されると、メ
モリステータス生成部7から出力されているリフレッシ
ュステータス信号12によりリフレッシュサイクルの実
行状態を認識し、後に続くDMAサイクルの実行に必要
なDMAウェイトをDMAウェイト生成部8で生成し、
DMAコントローラ2に出力する。図2は図1に示した
競合回路の各サイクルにおける状態遷移を示したもので
ある。図中C0,C1の2ステージはCPUサイクルを
示し、D0,D1,D2の3ステージはDMAサイクル
を示し、R0,R1,R2の3ステージはリフレッシュ
サイクルを示し、I0,I1の2ステージは上記いずれ
のサイクルも行なわれていないアイドル期間中を示す。
但し、I0ステージは高速ページモード中断状態(RA
S−N信号ネゲート状態)でのアイドル期間を示し、I
2ステージは高速ページモード継続状態(RAS−N信
号アサート状態)でのアイドル期間を各々示す。
When the DMA request signal 5 is output from the DMA controller 2 during execution of the refresh cycle, the refresh status signal 12 output from the memory status generator 7 recognizes the execution state of the refresh cycle, and the subsequent DMA is executed. The DMA weight generation unit 8 generates the DMA weight necessary for executing the cycle,
Output to the DMA controller 2. FIG. 2 shows state transitions in each cycle of the competitive circuit shown in FIG. In the figure, two stages of C0 and C1 indicate a CPU cycle, three stages of D0, D1 and D2 indicate a DMA cycle, three stages of R0, R1 and R2 indicate a refresh cycle, and two stages of I0 and I1 are the above. Indicates an idle period when neither cycle is performed.
However, the I0 stage is in the high-speed page mode suspended state (RA
S-N signal negated state) indicates an idle period, I
The two stages show the idle periods in the fast page mode continuation state (RAS-N signal asserted state).

【0011】図3はDMA要求信号5とリフレッシュ要
求信号6がDMAコマンド19出力前に競合した場合の
タイムチャートをである。I0ステージのアイドル期間
中にDMA要求信号5が出力されると、DMAステージ
D0に移行する。DMAコマンド19はDMAステージ
D1で出力されるため、DMAステージD0においてリ
フレッシュ要求信号6が出力されると、DMAステージ
D0からリフレツシュステージR0に移行してリフレッ
シュサイクルを優先して実行する。この間にもDMAコ
ントローラ2はDMAサイクルを継続しているため、R
0,R1,R2のリフレツシュサイクル期間に相当する
3ウェイト設定信号9をDMAウェイト生成部8よりD
MAコントローラ2に出力する。リフレッシュステージ
R2からDMAステージD1に移行し、待機中のDMA
サイクルを実行する。図4はDMA要求信号5とリフレ
ッシュ要求信号6がDMAコマンド19出力後に競合し
た場合のタイムチャートである。この場合には、先に要
求のあったDMAサイクルをD0,D1,D2の順で実
行し、その後リフレッシュステージR0に移行してリフ
レッシュサイクルを実行する。この時、DMAサイクル
はリフレッシュ要求信号6により中断されることはない
ため、DMAウェイト生成部8からは0ウェイト設定信
号9をDMAコントローラ2に出力する。このように、
DMA要求信号5とリフレッシュ要求信号6が競合した
場合には、DMAコマンド19の出力状況に応じてDM
Aサイクルのアクセス速度を低下させることなく、メモ
リチップ18内部データ保持のために必要なリフレッシ
ュサイクルを確実に行なうことができる。
FIG. 3 is a time chart when the DMA request signal 5 and the refresh request signal 6 compete with each other before the DMA command 19 is output. When the DMA request signal 5 is output during the idle period of the I0 stage, the process proceeds to the DMA stage D0. Since the DMA command 19 is output in the DMA stage D1, when the refresh request signal 6 is output in the DMA stage D0, the DMA stage D0 shifts to the refresh stage R0 and the refresh cycle is preferentially executed. Since the DMA controller 2 continues the DMA cycle during this period, R
The DMA wait generator 8 outputs the 3 wait setting signal 9 corresponding to the refresh cycle period of 0, R1, R2 from the DMA wait generator 8.
Output to the MA controller 2. Transition from the refresh stage R2 to the DMA stage D1 and wait for DMA
Run the cycle. FIG. 4 is a time chart when the DMA request signal 5 and the refresh request signal 6 compete with each other after the DMA command 19 is output. In this case, the previously requested DMA cycle is executed in the order of D0, D1, and D2, and then the process moves to the refresh stage R0 to execute the refresh cycle. At this time, since the DMA cycle is not interrupted by the refresh request signal 6, the DMA wait generator 8 outputs the 0 wait setting signal 9 to the DMA controller 2. in this way,
When the DMA request signal 5 and the refresh request signal 6 compete with each other, DM is output according to the output status of the DMA command 19.
The refresh cycle necessary for holding the internal data of the memory chip 18 can be surely performed without lowering the access speed of the A cycle.

【0012】図5は、CPUアクセス要求信号4とリフ
レッシュ要求信号6が、高速ページモード中断中(RA
S−N信号14ネゲート状態)で、CPU及びCPU以
外のデバイスの双方をバスマスタとしないアイドル期間
中に競合した場合のタイムチャートである。I0ステー
ジのアイドル期間中にCPUアクセス要求信号4とリフ
レッシュ要求信号6の双方が出力されると、リフレッシ
ュステージR0に移行してリフレッシュサイクルを実行
する。リフレッシュサイクル実行後、リフレッシュステ
ージR2からCPUステージC0に移行して、CPUア
クセス要求信号4によるCPUサイクルを実行する。C
PUサイクルの終了はCPUステータス信号10より生
成されるRDY信号20を認識することにより行なわれ
る。そのため、リフレッシュサイクル実行中は必然的に
CPUサイクルはウェイト状態となる。又、この競合状
態において、DMAウェイト設定信号9の設定は行なわ
れず、0ウェイトのままである。
In FIG. 5, when the CPU access request signal 4 and the refresh request signal 6 are in the high speed page mode interruption (RA
9 is a time chart in the case where the CPU and the device other than the CPU compete with each other during the idle period in which the S-N signal 14 is negated). When both the CPU access request signal 4 and the refresh request signal 6 are output during the idle period of the I0 stage, the process proceeds to the refresh stage R0 and the refresh cycle is executed. After execution of the refresh cycle, the stage moves from the refresh stage R2 to the CPU stage C0 to execute the CPU cycle according to the CPU access request signal 4. C
The PU cycle is ended by recognizing the RDY signal 20 generated from the CPU status signal 10. Therefore, the CPU cycle is inevitably in the wait state during the execution of the refresh cycle. Further, in this race condition, the DMA wait setting signal 9 is not set and the 0 wait remains.

【0013】図6は、CPUアクセス要求信号4とリフ
レッシュ要求信号6が、高速ページモード継続中(RA
S−N信号14アサート状態)で、CPU及びCPU以
外のデバイスの双方をバスマスタとしないアイドル期間
中に競合した場合のタイムチャートである。I1ステー
ジのアイドル期間中にCPUアクセス要求信号4とリフ
レッシュ要求信号6の双方が出力されると、CPUステ
ージC1に移行して、高速ページモードによるCPUサ
イクルを実行することができる。I1,C1による0ウ
ェイトの高速ページモード実行後にR0ステージに移行
して、リフレッシュ要求信号4によるリフレッシュサイ
クルを実行する。このように、CPUアクセス要求信号
4と前記リフレッシュ要求信号6がアイドル期間中に競
合すると、高速ページモードが継続中にはCPUサイク
ルを優先して実行することにより、リフレッシュサイク
ルの実行に伴うメモリアクセス速度の低下を防ぐことが
できる。
In FIG. 6, when the CPU access request signal 4 and the refresh request signal 6 are in the high speed page mode (RA
FIG. 6 is a time chart in the case where the CPU and the device other than the CPU compete with each other during the idle period in which the S-N signal 14 is asserted). When both the CPU access request signal 4 and the refresh request signal 6 are output during the idle period of the I1 stage, it is possible to shift to the CPU stage C1 and execute the CPU cycle in the fast page mode. After executing the 0-wait high-speed page mode by I1 and C1, the process shifts to the R0 stage to execute the refresh cycle by the refresh request signal 4. As described above, when the CPU access request signal 4 and the refresh request signal 6 compete during the idle period, the CPU cycle is preferentially executed while the high-speed page mode continues, so that the memory access accompanying the execution of the refresh cycle is executed. It is possible to prevent a decrease in speed.

【0014】図7は、リフレッシュサイクル実行中のR
0ステージにおいて、DMA要求信号5が出力された場
合のタイムチャートである。この場合、DMA要求信号
5によるDMAサイクルは、R1ステージがD0ステー
ジに対応するため、次のR2ステージの期間中DMAウ
ェイトが設定されるように、DMAウェイト生成部8に
より1ウェイト設定信号9がDMAコントローラ2に出
力される。リフレッシュサイクルが終了すると、R2ス
テージからD1ステージに移行し待機中のDMAサイク
ルを実行する。
FIG. 7 shows R during the refresh cycle.
It is a time chart when the DMA request signal 5 is output in the 0 stage. In this case, in the DMA cycle by the DMA request signal 5, since the R1 stage corresponds to the D0 stage, the DMA wait generator 8 outputs the 1 wait setting signal 9 so that the DMA wait is set during the next R2 stage. It is output to the DMA controller 2. When the refresh cycle is completed, the R2 stage shifts to the D1 stage and the waiting DMA cycle is executed.

【0015】図8は、リフレッシュサイクル実行中のR
1ステージにおいて、DMA要求信号5が出力された場
合のタイムチャートである。この場合、DMA要求信号
5によるDMAサイクルは、R2ステージがD0ステー
ジに対応するため、リフレッシュサイクル実行中にDM
Aウェイトを挿入する必要がないため、DMAウェイト
生成部8により0ウェイト設定信号9がDMAコントロ
ーラ2に出力される。リフレッシュサイクルが終了する
と、R2ステートからD1ステートに移行し、DMAサ
イクルを実行する。
FIG. 8 shows R during the refresh cycle.
6 is a time chart when the DMA request signal 5 is output in one stage. In this case, in the DMA cycle by the DMA request signal 5, since the R2 stage corresponds to the D0 stage, DM is executed during the refresh cycle.
Since it is not necessary to insert the A weight, the DMA weight generator 8 outputs the 0 weight setting signal 9 to the DMA controller 2. When the refresh cycle ends, the R2 state shifts to the D1 state and the DMA cycle is executed.

【0016】図9は、リフレッシュサイクル実行中のR
2ステージにおいて、DMA要求信号5が出力された場
合のタイムチャートである。この場合、DMA要求信号
5によるDMAサイクルは、リフレッシュサイクル終了
後起動されるため、R2ステージからD0ステージに移
行し実行される。この場合、リフレッシュサイクルの実
行に伴うDMAウェイトの設定を行なう必要がないた
め、DMAウェイト生成部8により0ウェイト設定信号
9がDMAコントローラ2に出力される。このように、
リフレッシュサイクル実行中にDMA要求信号5が出力
されると、リフレッシュサイクルの実行状態に応じてD
MAウェイト設定信号9の値を定めることが可能であ
る。
FIG. 9 shows R during the refresh cycle.
6 is a time chart when the DMA request signal 5 is output in the two stages. In this case, since the DMA cycle by the DMA request signal 5 is activated after the refresh cycle is completed, the R2 stage shifts to the D0 stage and is executed. In this case, since it is not necessary to set the DMA wait associated with the execution of the refresh cycle, the DMA wait generator 8 outputs the 0 wait setting signal 9 to the DMA controller 2. in this way,
When the DMA request signal 5 is output during execution of the refresh cycle, D is output according to the execution state of the refresh cycle.
It is possible to determine the value of the MA weight setting signal 9.

【0017】本実施例においては、簡単のため、各メモ
リサイクルのステータス数を少なくし、又、各ステータ
スの遷移は基本的なものとしたが、メモリシステムの環
境に応じてメモリステータス生成部7の構成方法を変え
ることにより任意に設定可能である。
In the present embodiment, for simplicity, the number of statuses in each memory cycle is reduced, and the transition of each status is basic. However, the memory status generator 7 depends on the environment of the memory system. It can be arbitrarily set by changing the configuration method of.

【0018】[0018]

【発明の効果】本発明によれば、ダイナミックメモリの
制御において、メモリデータ保持のために必要なリフレ
ッシュサイクルとCPU以外のデバイスをバスマスタと
したDMAサイクル競合を防ぐことができる。又、リフ
レッシュサイクルとCPUをバスマスタとしたメモリア
クセスサイクルとの競合も防ぐことができる。
According to the present invention, in the control of the dynamic memory, it is possible to prevent the refresh cycle necessary for holding the memory data and the DMA cycle contention in which a device other than the CPU is used as the bus master. In addition, it is possible to prevent contention between the refresh cycle and the memory access cycle in which the CPU is the bus master.

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

【図1】本発明の一実施例に係る競合回路のブロック構
成図である。
FIG. 1 is a block configuration diagram of a competitive circuit according to an embodiment of the present invention.

【図2】図1に示すメモリステータス生成部により生成
されるメモリステータスの状態遷移図である。
FIG. 2 is a state transition diagram of a memory status generated by a memory status generation unit shown in FIG.

【図3】リフレッシュ要求信号とDMA要求信号とが競
合した際のリフレッシュ優先のタイムチャートである。
FIG. 3 is a time chart of refresh priority when a refresh request signal and a DMA request signal compete with each other.

【図4】リフレッシュ要求信号とDMA要求信号とが競
合した際のDMA優先のタイムチャートである。
FIG. 4 is a time chart of DMA priority when a refresh request signal and a DMA request signal compete with each other.

【図5】リフレッシュ要求信号とCPUサイクル要求信
号とが競合した際のリフレッシュ優先のタイムチャート
である。
FIG. 5 is a time chart of refresh priority when a refresh request signal and a CPU cycle request signal compete with each other.

【図6】リフレッシュ要求信号とCPUサイクル要求信
号とが競合した際のCPU優先のタイムチャートであ
る。
FIG. 6 is a time chart of CPU priority when a refresh request signal and a CPU cycle request signal compete with each other.

【図7】リフレッシュサイクル実行中のR0ステージに
DMA要求信号が出力された際の1ウェイトのタイムチ
ャートである。
FIG. 7 is a 1-wait time chart when a DMA request signal is output to the R0 stage during execution of a refresh cycle.

【図8】リフレッシュサイクル実行中のR1ステージに
DMA要求信号が出力された際の0ウェイトのタイムチ
ャートである。
FIG. 8 is a time chart of 0 wait when a DMA request signal is output to the R1 stage during execution of a refresh cycle.

【図9】リフレッシュサイクル実行中のR2ステージに
DMA要求信号が出力された際の0ウェイトのタイムチ
ャートである。
FIG. 9 is a time chart of 0 wait when a DMA request signal is output to the R2 stage during execution of a refresh cycle.

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

1…CPU、2…DMAコントローラ、3…リフレッシ
ュ要求信号生成部、4,5,6,9〜12,14〜1
7,19,20…信号線、7…メモリステータス生成
部、8…DMAウェイト生成部、13…メモリ制御信号
生成部、18…メモリチップ、21…RDY信号生成
部、I0,I1…アイドル期間中のステータス、C0,
C1…CPUサイクルのステータス、D0,D1,D2
…DMAサイクルのステータス、R0,R1,R2…リ
フレッシュサイクルのステータス。
DESCRIPTION OF SYMBOLS 1 ... CPU, 2 ... DMA controller, 3 ... Refresh request signal generation part, 4, 5, 6, 9-12, 14-1
7, 19, 20 ... Signal line, 7 ... Memory status generation unit, 8 ... DMA wait generation unit, 13 ... Memory control signal generation unit, 18 ... Memory chip, 21 ... RDY signal generation unit, I0, I1 ... During idle period Status, C0,
C1 ... CPU cycle status, D0, D1, D2
... DMA cycle status, R0, R1, R2 ... Refresh cycle status.

───────────────────────────────────────────────────── フロントページの続き (72)発明者 塩原 毅 神奈川県横浜市戸塚区吉田町292番地 株 式会社日立画像情報システム内 (72)発明者 大瀧 雅彦 神奈川県横浜市戸塚区吉田町292番地 株 式会社日立画像情報システム内 (72)発明者 広井 雅人 千葉県習志野市東習志野7丁目1番1号 株式会社日立製作所オフイスシステム設計 開発センタ内 ─────────────────────────────────────────────────── ─── Continuation of the front page (72) Inventor Takeshi Shiobara 292 No. Yoshida-cho, Totsuka-ku, Yokohama, Kanagawa Stock Company Hitachi Imaging Information Systems (72) Inventor Masahiko Otaki 292 Yoshida-cho, Totsuka-ku, Yokohama, Kanagawa Ceremony Company Hitachi Image Information System (72) Inventor Masato Hiroi 7-1-1 Higashi Narashino, Narashino, Chiba Prefecture Hitachi Systems Design and Development Center

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 小型で高密度な記憶装置としてダイナミ
ックメモリを用いたメモリシステムにおいて、前記ダイ
ナミックメモリの記憶データ保持のために必要なリフレ
ッシュサイクルの要求信号とCPU以外のデバイスをバ
スマスタとしたダイレクトメモリアクセスの要求信号が
競合した際に、ダイレクトメモリアクセスコントロ−ラ
(以下DMAコントローラと略す)からのメモリリード
/ライトコマンド出力以前に競合した場合にはリフレッ
シュサイクルを優先して実行可能なだけのDMAウェイ
トサイクルを挿入する手段と、前記コマンド信号出力中
に競合した場合には前記DMAウェイトの挿入を行なわ
ずDMAサイクル実行後リフレッシュサイクルを実行す
る手段と、前記コマンド信号クリア後に競合した場合に
は即リフレッシュサイクルを実行する手段とを備えるこ
とを特徴とするダイナミックメモリの競合回路。
1. In a memory system using a dynamic memory as a compact and high-density storage device, a direct memory using a refresh cycle request signal necessary for holding data stored in the dynamic memory and a device other than a CPU as a bus master. When conflicting access request signals occur before the memory read / write command output from the direct memory access controller (hereinafter abbreviated as DMA controller), the refresh cycle is prioritized and executed. A means for inserting a wait cycle, a means for executing a refresh cycle after the execution of a DMA cycle without inserting the DMA wait if there is a conflict during the output of the command signal, and a means for immediately following a conflict after clearing the command signal Refresh service A dynamic memory competing circuit comprising means for executing an icle.
JP3237751A 1991-09-18 1991-09-18 Emulation circuit for dynamic memory Pending JPH0574151A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3237751A JPH0574151A (en) 1991-09-18 1991-09-18 Emulation circuit for dynamic memory

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3237751A JPH0574151A (en) 1991-09-18 1991-09-18 Emulation circuit for dynamic memory

Publications (1)

Publication Number Publication Date
JPH0574151A true JPH0574151A (en) 1993-03-26

Family

ID=17019934

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3237751A Pending JPH0574151A (en) 1991-09-18 1991-09-18 Emulation circuit for dynamic memory

Country Status (1)

Country Link
JP (1) JPH0574151A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05128848A (en) * 1991-10-31 1993-05-25 Sharp Corp Memory action arbitrating circuit
US9256556B2 (en) 2011-10-21 2016-02-09 Lapis Semiconductor Co., Ltd. RAM memory device capable of simultaneously accepting multiple accesses

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05128848A (en) * 1991-10-31 1993-05-25 Sharp Corp Memory action arbitrating circuit
US9256556B2 (en) 2011-10-21 2016-02-09 Lapis Semiconductor Co., Ltd. RAM memory device capable of simultaneously accepting multiple accesses

Similar Documents

Publication Publication Date Title
KR20050005481A (en) Out of order dram sequencer
US7340544B2 (en) Method of using bus and bus interface
US6286070B1 (en) Shared memory access device and method
JP2020109639A (en) Memory control unit, memory control method, and image forming apparatus
US20010034805A1 (en) Data processing device accessing a memory in response to a request made by an external bus master
US5247640A (en) Dual access control system including plural magnetic disk control units and contention control circuitry
JPH0574151A (en) Emulation circuit for dynamic memory
JPH04192056A (en) Arbitration system
JPH0793274A (en) System and device for transferring data
JPH11232214A (en) Processor for information processor and its controlling method
JP3240863B2 (en) Arbitration circuit
JP2000242544A (en) Memory controller and direct memory access controller
JPH06325570A (en) Dynamic memory refresh circuit
JP2002063130A (en) Bus arbitration system
JPH08339353A (en) Multiprocessor device
JP2790668B2 (en) Data transfer control method
JP2001142771A (en) Data transfer device
JP3492139B2 (en) Data transfer method via bus and bus master controller
JP2002082901A (en) Bus controller
JP2570900B2 (en) Access control device and access control method
JP3265288B2 (en) DMA transfer device
JP3272890B2 (en) Memory access control circuit and output device
CN114721978A (en) Method and system for accelerating execution speed of Nand Flash control command
US20050237332A1 (en) Information processor
JP2006155220A (en) Semiconductor integrated circuit and access control method therefor