JPH01166155A - Memory access control circuit - Google Patents

Memory access control circuit

Info

Publication number
JPH01166155A
JPH01166155A JP32613287A JP32613287A JPH01166155A JP H01166155 A JPH01166155 A JP H01166155A JP 32613287 A JP32613287 A JP 32613287A JP 32613287 A JP32613287 A JP 32613287A JP H01166155 A JPH01166155 A JP H01166155A
Authority
JP
Japan
Prior art keywords
clock
dmac
signal
cpu
access
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
JP32613287A
Other languages
Japanese (ja)
Inventor
Takumi Maruyama
巧 丸山
Ryoetsu Nakajima
中島 亮悦
Naoki Yamazaki
直己 山崎
Koichi Kitamura
耕一 北村
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP32613287A priority Critical patent/JPH01166155A/en
Publication of JPH01166155A publication Critical patent/JPH01166155A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Transfer Systems (AREA)

Abstract

PURPOSE:To operate with a sufficient margin by stopping a switching from the access signal of a CPU system to the access signal of a DMAC system for at least one clock before and after a non-synchronous DMAC is activated by synchronizing with the clock of the CPU. CONSTITUTION:A request signal of the switching to a DMAC 20 inputted to the R.REQ of an MB88867 102 of a CPU 10 is outputted as a permission signal R.GRNT to the DMAC 20 and inputted as the permission signal of an MB8861 201 of the DMAC 20. The inputted signal is delayed by one clock and inputted as a selection signal SEL to the S terminal of a selector 12. The signal of the 102 equivalent to a clock c1 of the CPU 10 and a signal 2DMA of the 201 equivalent to a clock c2 of the DMAC 20 are selected, outputted as an access clock c2 to a timing generating part 3, a read/write signal R/W1 of the CPU 10 to be inputted to an input terminal 2A and a read/write signal R/W2 of the DMAC 20 to be inputted to an input terminal 2B are selected and the read/write signal R/W2 of the DMAC 20 is outputted as a read/write signal for access from an output terminal 2Y of the selector 12 to the timing generating part 3.

Description

【発明の詳細な説明】 〔概要〕 CPUと非同期に動作するダイレクト・メモリ・アクセ
ス・コントローラDMACが、CPUと共存するメモリ
或いは入出力装置I10に対してアクセスするアクセス
タイミングをIU 御するメモリアクセス制御回路に関
し、 非同期のDMACが共有メモリにアクセスする時、その
切替がCPUのアクセスに擬似的に同期して、共有メモ
リの読出し/書込み動作がマージンを持つで正しく行わ
れることを目的とし、 DMACの起動時に、DMACのクロックC2をCPU
のクロックc1により制御してDMACのクロックc2
の1クロツタ期間だけ停止する制御信号SELを発生し
、CPUからのクロックclと読出し書込み信号R/W
lを、DMACからのクロックC2と読出し書込み信号
R/W2に切替えてアクセスクロックc2. R/W2
を出力するクロック系切替回路と、該アクセスクロック
c2. R/W2を入力して共有メモリにアクセスする
アクセス信号tを発生するタイミング生成回路を具え、
該アクセス信号tは、CPU系統の信号からDMAC系
統の信号への切替時に、少なくともDMACの起動する
前後の1クロック期間は、CPUのクロックc1に同期
して停止するように構成したものである。
[Detailed Description of the Invention] [Summary] Memory access control in which the direct memory access controller DMAC, which operates asynchronously with the CPU, controls access timing for accessing the memory or input/output device I10 that coexists with the CPU. Regarding the circuit, when an asynchronous DMAC accesses the shared memory, the switching is pseudo-synchronized with the CPU access, and the purpose of the DMAC is to ensure that read/write operations of the shared memory are performed correctly with a margin. At startup, the DMAC clock C2 is
The clock c2 of the DMAC is controlled by the clock c1 of the DMAC.
It generates a control signal SEL that stops for one clock period, and outputs the clock cl from the CPU and the read/write signal R/W.
1 is switched to the clock C2 from the DMAC and the read/write signal R/W2, and the access clock c2. R/W2
a clock system switching circuit that outputs the access clock c2. a timing generation circuit that generates an access signal t for accessing the shared memory by inputting the R/W2;
The access signal t is configured to stop in synchronization with the CPU clock c1 for at least one clock period before and after the activation of the DMAC when switching from a CPU system signal to a DMAC system signal.

〔産業上の利用分野〕 本発明は、あるCPUシステムにおいて、CPUと非同
期に動作するダイレクト・メモリ・アクセス・コントロ
ーラDMACが、CPUと共有するメモリ或いは入出力
装置I10に対してアクセスするアクセスタイミングを
制御するメモリアクセス制御回路に関するもので、非同
期動作のDMACがメモリにアクセスする時、その切替
がCPUのアクセスに擬似的に同期して、上記の共有メ
モリ或いはIloの読出し/書込み動作がマージンを持
って正しく行われることを保証することが望まれている
[Industrial Application Field] The present invention provides a system for determining the access timing when a direct memory access controller DMAC that operates asynchronously with the CPU accesses the memory or input/output device I10 shared with the CPU in a certain CPU system. This is related to the memory access control circuit that controls the memory access control circuit, and when the asynchronous DMAC accesses the memory, the switching is pseudo-synchronized with the CPU access, and the read/write operation of the shared memory or Ilo has a margin. It is desirable to ensure that the process is carried out correctly.

〔従来の技術〕[Conventional technology]

従来のメモリアクセス制御回路は、第5図に示ず如< 
、CPU IOAと、CPU IOAと非同期に動作す
るDMAC20Aがそれぞれ独立のクロックを使用して
システムの共有メモリ或いはT1030Aにアクセスす
る場合に、非同期のDMAC20Aの他にCPU IO
Aと同期して動作するもう1個のDMAC40Aと、該
同期DMAC40Aと前記非同期のDMAC2OAの間
及び該同期DMAC40A又はCPU 10八とメモリ
30Aの間の転送データを一時格納し中継するバッファ
レジスタ50Aを設けている。
A conventional memory access control circuit is shown in FIG.
, when the CPU IOA and the DMAC 20A, which operate asynchronously with the CPU IOA, use independent clocks to access the shared memory of the system or the T1030A, in addition to the asynchronous DMAC 20A, the CPU IO
Another DMAC 40A that operates in synchronization with A, and a buffer register 50A that temporarily stores and relays transfer data between the synchronous DMAC 40A and the asynchronous DMAC 2OA, and between the synchronous DMAC 40A or the CPU 108 and the memory 30A. It is set up.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

従来のメモリアクセス制御回路は、上述の如く、CPU
 IOAと非同期に動作するDMAC2OAが、システ
ム上の共有メモリ30Aに対してデータを読出し書込む
場合に、CPU IOAと同期して動作するもう1個の
DMAC40Aと転送データを一時格納するバッファレ
ジスタ50Aを仲介して行っているので、データの転送
に伴うアドレスコードの送受などで回路規模が大きくな
りコスト高になるという問題があり、それを避けようと
してCPU IOA と非同期のDMAC2OAを直接
に共有メモリ30にアクセスさせると、それぞれ独立の
クロックを使用しているので、共有のメモリ30Aの読
出し/書込みが正しく行われる保証が無いという問題が
ある。
As mentioned above, the conventional memory access control circuit
When the DMAC 2OA, which operates asynchronously with the IOA, reads and writes data to the shared memory 30A on the system, it uses another DMAC 40A, which operates synchronously with the CPU IOA, and a buffer register 50A, which temporarily stores the transferred data. Since this is done through an intermediary, there is a problem that the circuit size increases due to the sending and receiving of address codes associated with data transfer, which increases costs.In order to avoid this, the CPU IOA and the asynchronous DMAC2OA are directly connected to the shared memory When accessing the shared memory 30A, there is a problem that since independent clocks are used, there is no guarantee that the reading/writing of the shared memory 30A will be performed correctly.

〔問題点を解決するための手段〕[Means for solving problems]

この問題は、メモリ30に対するCPU 10のアクセ
スから非同期のDMAC20のアクセスに切替える場合
に、クロック系切替回路1において、DMAC20のク
ロックc2をCPU 10のクロックclにより制御し
てクロックc2の1クロック相当期間だけ停止する制御
信号SELを発生し、該制御信号SELによりCPU 
10からのクロックc1と読出し/書込み信号R/訂を
、DMAC20からのクロックc2と読出し/書込み信
号R/W2に切り替えて出力する。そしてタイミング生
成回路2において前記クロック系切替回路1の出力のア
クセスクロックc2と読出し/書込み信号R/W2によ
り、メモリ或いはIlo 30に対するアクセス信号t
を発生して、CPU 10系のアクセス信号t1からD
MAC20系のアクセス信号t2への切替えが、少なく
とも非同期のDMAC20が起動する前後の1クロック
分はCPU 10のクロックc1に同期して停止するよ
うにして、メモリ30に対する読出し/書込み動作が保
証されるようにする本発明の構成によって解決される。
This problem arises when switching from the CPU 10's access to the memory 30 to the asynchronous DMAC 20's access, in the clock system switching circuit 1, the clock c2 of the DMAC 20 is controlled by the clock cl of the CPU 10 for a period equivalent to one clock of the clock c2. A control signal SEL is generated to stop the CPU by the control signal SEL.
The clock c1 and read/write signal R/W2 from the DMAC 20 are switched and outputted to the clock c2 and read/write signal R/W2 from the DMAC 20. Then, in the timing generation circuit 2, an access signal t for the memory or Ilo 30 is generated based on the access clock c2 output from the clock system switching circuit 1 and the read/write signal R/W2.
, and the access signals t1 to D of the CPU 10 system are generated.
The switching to the access signal t2 of the MAC 20 system is stopped in synchronization with the clock c1 of the CPU 10 for at least one clock before and after the asynchronous DMAC 20 is activated, so that read/write operations to the memory 30 are guaranteed. This problem is solved by the configuration of the present invention.

本発明のメモリアクセス制御回路の構成を示す第1図の
原理図において、 1は、非同期のDMAC20の起動時に、cpu io
のクロックc1をDMAC20のクロックc2により制
御卸して、クロックc2の1クロック期間だけ停止する
制御信号SELを発生し、前記CPU 10からのクロ
ックcl。
In the principle diagram of FIG. 1 showing the configuration of the memory access control circuit of the present invention, 1 indicates that when the asynchronous DMAC 20 is activated, the CPU io
The clock c1 from the CPU 10 is controlled by the clock c2 of the DMAC 20 to generate a control signal SEL that stops the clock c2 for one clock period.

読出し/書込み信号R/Wlを、DMAC20からのク
ロツクc2.読出し/書込み信号R/W2に切替えて出
力するクロック系切替回路、 2は、クロック系切替回路1の出力のアクセスクロック
c3と読出し/書込み信号RhJ2により、CPU10
とDMAC20の共用のメモリ30にアクセスするアク
セス信号tを発生するタイミング生成回路であって、 タイミング生成回路2の出力tのCPU 10系統のア
クセス信号t1からDMAC20系統のアクセス信号t
2への切替は、少なくともDMAC20の起動する前後
の1クロック分はCPU 10のクロックc1と同期し
て停止するように構成する。
The read/write signal R/Wl is input to the clock c2. The clock system switching circuit 2 switches to the read/write signal R/W2 and outputs the read/write signal R/W2.
and a timing generation circuit that generates an access signal t for accessing a memory 30 shared by the DMAC 20, and which generates an access signal t of the CPU 10 systems of the output t of the timing generation circuit 2 to an access signal t of the DMAC 20 systems.
The switching to 2 is configured such that at least one clock before and after the DMAC 20 starts is stopped in synchronization with the clock c1 of the CPU 10.

〔作用〕[Effect]

クロック系切替回路1は、非同期のDMAC20の起動
時に、CPU10のクロックc1をDMAC20のクロ
ックc2により制御して、クロックc2の1クロック期
間だけ停止する制御信号SELを発生し、前記cpU 
10からのクロックcl、読出し/書込み信号R/Wl
を、DMAC20からのクロックc2+ ift出し/
書込み信号R/W2に切替えてタイミング生成回路2へ
出力する。
When the asynchronous DMAC 20 is activated, the clock system switching circuit 1 controls the clock c1 of the CPU 10 by the clock c2 of the DMAC 20, generates a control signal SEL that stops the clock c2 for one clock period, and
Clock cl from 10, read/write signal R/Wl
, clock c2+ ift output from DMAC20/
It is switched to the write signal R/W2 and output to the timing generation circuit 2.

タイミング生成回路2は、クロック系切替回路1の出力
のアクセスクロックC2と読出し/書込み信号R/W2
を入力して、DMAC20の起動時の前後の1クロック
分はCPU 10のクロックc1と同期するアクセス信
号tを発生して共用のメモリ30へ出力する。
The timing generation circuit 2 uses the access clock C2 output from the clock system switching circuit 1 and the read/write signal R/W2.
is input, an access signal t synchronized with the clock c1 of the CPU 10 is generated for one clock before and after the activation of the DMAC 20 and output to the shared memory 30.

本発明のメモリアクセス制御回路は、タイミング生成回
路2の出力のアクセス信号tの、CPU 10系統のア
クセス信号t1からDMAC20系統のアクセス信号t
2への切替が、DMAC20の起動時の前後の少なくと
も1クロック分はcpu ioのクロックc1と同期し
て停止するので、共用のメモリ30の読出し/書込み動
作が保証されて問題は解決される。
The memory access control circuit of the present invention converts the access signal t output from the timing generation circuit 2 from the access signal t1 of 10 CPU systems to the access signal t of 20 DMAC systems.
Since switching to 2 is stopped in synchronization with the CPU IO clock c1 for at least one clock before and after the DMAC 20 is activated, the read/write operation of the shared memory 30 is guaranteed and the problem is solved.

〔実施例〕〔Example〕

第2図は本発明の実施例のメモリアクセス制御回路の構
成を示すブロック図であって、第3図はその動作を説明
するためのメモリアクセスのタイムチャートであり、第
4図はそのクロック系切替動作のタイムチャートである
FIG. 2 is a block diagram showing the configuration of a memory access control circuit according to an embodiment of the present invention, FIG. 3 is a memory access time chart for explaining its operation, and FIG. 4 is a clock system thereof. It is a time chart of switching operation.

第2図のブロック図において、CPU 10はICのM
B8861101とMB8867102とバッファ10
3で構成され、非同期のDMAC20はICのHD68
B44201とクロック発振器202で構成される。
In the block diagram of FIG. 2, the CPU 10 is an IC M
B8861101 and MB8867102 and buffer 10
3, and the asynchronous DMAC20 is the HD68 IC.
It consists of a B44201 and a clock oscillator 202.

CPU 10のMB8861101のアドレスAI5〜
AOとデータDo −D7は、CPU 10のクロック
c1により出力される制御信号VMAに駆動されるバッ
ファ103を介して、DMAC20のMB886120
1のアドレスAI5〜AOとデータDo −D7に相互
接続される。
Address AI5 of MB8861101 of CPU 10
AO and data Do-D7 are sent to the MB886120 of the DMAC 20 via the buffer 103 driven by the control signal VMA output by the clock c1 of the CPU 10.
1 addresses AI5 to AO and data Do to D7.

クロック系切替回路1はフリップフロップ11゜セレク
タ12.アンドゲート13で構成され、フリップフロッ
プ11は、DMAC20の起動時に、DMAC20のク
ロックc2によりMB8861201から出力される制
御信号DRQTと、CPU 10からのクロックC1に
よりMB8867102から出力される制御信号MCL
Kとを入力して、その出力をMB8867102のR−
12EQに入力する。CPU 10のMB886710
2のR−REQに入力したDMAC20への切替の要求
信号は 許可信号R・Gl?NTとして[1MAC20
へ出力され、DPIAC20の肝8861201の許可
信号D −GRNTとして入力される。
The clock system switching circuit 1 includes a flip-flop 11° selector 12. The flip-flop 11 is composed of an AND gate 13, and when the DMAC 20 is activated, the control signal DRQT is output from the MB8861201 using the clock c2 of the DMAC 20, and the control signal MCL is output from the MB8867102 using the clock C1 from the CPU 10.
K and the output is input to R- of MB8867102.
Input to 12EQ. MB886710 with CPU 10
Is the request signal for switching to DMAC20 input to R-REQ of 2 the permission signal R/Gl? As NT [1MAC20
and is input as the permission signal D-GRNT of the liver 8861201 of the DPIAC 20.

MII 8861201のD −GRNTとして入力さ
れた信号はMB 8861201の内部で1クロツク遅
延されTxSTBから出力されセレクタ12のS端子に
選択信号SELとして入力する。
The signal inputted as D-GRNT of MII 8861201 is delayed by one clock inside MB 8861201, output from TxSTB, and inputted to the S terminal of selector 12 as selection signal SEL.

セレクタ12は、TxSTBからS端子に入力した選択
信号SELにより、入力端子IAに入力するCPU 1
0のクロックc1に相当するM88867102の信号
MCLKと、入力端子IBに入力するDMAC20のク
ロックc2に相当するMB8861201の信号Φ2D
MAを選択して信号Φ2DMAヲ、セレクタ12の出力
端子IYからアクセスクロックc2としてタイミング生
成部3へ出力し、又入力端子2Aに入力するCPU 1
0の読出し/書込み信号R/Wlと、入力端子2Bに入
力するDMAC20の読出し/書込み信号R/W2とを
選択してDMAC20の読出し/書込み信号R/W2を
、セレクタ12の出力端子2Yからアクセス用読出し/
書込み信号としてタイミング生成部3へ出力する。アン
ドゲート13は、CPU 10のMB8861101(
7)VBA出力 ノ反転(i号と、DMMC20のMn
8861201のTxSTB出力 をアンド処理してセ
レクタ12のイネーブル/ディスイネーブル端子Gに入
力する。
The selector 12 selects the CPU 1 input to the input terminal IA based on the selection signal SEL input from TxSTB to the S terminal.
The signal MCLK of the M88867102 corresponding to the clock c1 of 0 and the signal Φ2D of the MB8861201 corresponding to the clock c2 of the DMAC20 input to the input terminal IB.
The CPU 1 selects MA and outputs the signal Φ2DMA from the output terminal IY of the selector 12 to the timing generator 3 as the access clock c2, and also inputs it to the input terminal 2A.
The read/write signal R/Wl of 0 and the read/write signal R/W2 of the DMAC 20 input to the input terminal 2B are selected, and the read/write signal R/W2 of the DMAC 20 is accessed from the output terminal 2Y of the selector 12. Read/
It is output to the timing generator 3 as a write signal. AND gate 13 is MB8861101 (
7) VBA output inversion (i and Mn of DMMC20
The TxSTB output of the 8861201 is subjected to AND processing and inputted to the enable/disable terminal G of the selector 12.

タイミング生成回路3は、セレクタ12からのアクセス
クロックC2と、アクセスリード/ライト信号R/W2
 、即ち第3図のタイムチャートの■アクセスクロック
と■アクセス信号Wを入力し、メモリ30へのアクセス
のタイミングを与えるアクセス信号tとして、縦横のア
ドレスを規定する■RASと■CASと、読出し/書込
みを規定する■WEを発生してメモリ30へ出力する。
The timing generation circuit 3 receives the access clock C2 from the selector 12 and the access read/write signal R/W2.
That is, in the time chart of FIG. 3, the access clock and the access signal W are input, and as the access signal t that provides the timing of access to the memory 30, the RAS and CAS that define the vertical and horizontal addresses, and the read/write ■WE that specifies writing is generated and output to the memory 30.

メモリ30は、ダイナミックRAM 301とアドレス
デコーダ302で構成され、ダイナミックRAM 30
1は、CPU 10のMn8861101 とDMAC
20のMn8861201の出力バスのアドレス符号■
ADRESSをアドレスデコーダ302で復号してダイ
ナミックRAM 301にチップセレクト信号■C3と
して入力す為。
The memory 30 is composed of a dynamic RAM 301 and an address decoder 302.
1 is Mn8861101 of CPU 10 and DMAC
20 Mn8861201 output bus address code■
ADRESS is decoded by the address decoder 302 and inputted to the dynamic RAM 301 as a chip select signal ■C3.

メモリ30のダイナミックRAM 301は、チップセ
レクト信号■C8とタイミング生成回路3からのアドレ
ス信号tのうち■RASによりメモリの横方向の列デー
タの位置を規定し、■CASによりメモリの縦方向の行
データの位置を規定する。そして■WEによりデータ■
DATAを上記の規定されたアドレス位置に書込み/続
出する。
The dynamic RAM 301 of the memory 30 specifies the column data position in the horizontal direction of the memory using the chip select signal C8 and the address signal t from the timing generation circuit 3 using the RAS, and specifies the row data position in the vertical direction of the memory using the CAS. Define the location of data. And ■Data by WE■
Write/output DATA to the above defined address location.

第3図は上述のDMAC20のメモリ30へのアクセス
のタイミングを示しており、タイミング生成回路2の出
力の■アクセスクロックに同期してメモリ30への書込
み/読出しの1サイクルの終了する様子を示している。
FIG. 3 shows the timing of access to the memory 30 by the DMAC 20 described above, and shows how one cycle of writing/reading to the memory 30 ends in synchronization with the access clock of the output of the timing generation circuit 2. ing.

第4図は第2図のCPU 10とDMAC20のクロッ
ク系の切替タイミングの詳細を示すタイムチャー1・で
あって、いま、第2図のブロック図において、CPU 
10が使用中のメモリ30に対し、DMAC20がアク
セスしようとすると、DM八へ系20の■DROT力く
フリッププロップ11へ出力され、CPU系10の■M
CLKの立下りと立上りにより要求信号■R−REQと
してフリップフロップ11からCPU系10へ伝わる。
FIG. 4 is a time chart 1 showing details of the switching timing of the clock systems of the CPU 10 and DMAC 20 in FIG. 2. In the block diagram of FIG.
When the DMAC 20 attempts to access the memory 30 that is being used by the DM 8, the DROT of the DM system 20 is output to the flip-flop 11, and the
The falling and rising edges of CLK are transmitted from the flip-flop 11 to the CPU system 10 as a request signal R-REQ.

CPU系10の■MCLKの次の立下りにより許可信号
■R−GRNT出力が、そのままDMAC系20の■D
 −GI?NTへ入力されると同時に、CPU系10は
■R/Hに示す如くその書込み/読出し動作を停止し、
その瞬間にクロック切替回路1のセレクタ12はアンド
ゲート13の出力@lGによりディスイネーブルされる
At the next falling edge of ■MCLK of the CPU system 10, the permission signal ■R-GRNT output is sent directly to ■D of the DMAC system 20.
-GI? At the same time as the data is input to the NT, the CPU system 10 stops its write/read operations as shown in ■R/H.
At that moment, the selector 12 of the clock switching circuit 1 is disabled by the output @lG of the AND gate 13.

そしてDMAC系20がメモリ30へのアドレスとデー
タのバスを獲得し、又自分のタイミングに従ってTxS
TBを選択信号SELとしてセレクタ12へ出力しメモ
リアクセスに入る。その時、セレクタ12もアンドゲー
ト13によりイネーブルされ、且つ入力S[相]の論理
レベルがHであるので、Bポートすなわち入力IBのD
MAC系20のクロックc2と入力2BのR/W信号R
/W2が、アクセス信号としてセレクタ12の出力端I
Y、2Yからメモリ30のダイナミックRAM 301
へ出力される。
Then, the DMAC system 20 acquires the address and data bus to the memory 30, and also transmits TxS according to its own timing.
It outputs TB to the selector 12 as a selection signal SEL and enters memory access. At that time, the selector 12 is also enabled by the AND gate 13, and the logic level of the input S [phase] is H, so the D of the B port, that is, the input IB
Clock c2 of MAC system 20 and R/W signal R of input 2B
/W2 is the output terminal I of the selector 12 as an access signal.
Dynamic RAM 301 of memory 30 from Y, 2Y
Output to.

DJ’lAC系20は、第20のタイムチャートに従っ
たアクセスを行うが、その終了後は、その出力の■DR
QTを無効にして立ち上がる。すると、CPU系10の
■MCLKの立下りと立上りにより■R−REQが無効
となり立ち上がる。■MCLKの次の立下りにより■V
MAの右端に示す如く、再度CPU系10がメモリアク
セスの権利を有する。
The DJ'lAC system 20 performs access according to the 20th time chart, but after the access is completed, the output ■DR
Disable QT and start up. Then, due to the falling and rising edges of MCLK of the CPU system 10, the R-REQ becomes invalid and rises. ■By the next falling edge of MCLK, ■V
As shown at the right end of the MA, the CPU system 10 again has the right to access the memory.

第4図のセレクタ12の入力と出力の関係は、入力が非
同期のDMAC系20からの入力である場合にも、その
出力は、メモリアクセスの第3図に示す如きタイミング
を全く損なうことなく出力されるので見掛は上CPU 
10のクロックに同期がとれて問題が無い。
The relationship between the input and output of the selector 12 in FIG. 4 is such that even when the input is from the asynchronous DMAC system 20, the output is output without any loss of memory access timing as shown in FIG. Therefore, it appears that the upper CPU
There is no problem in synchronizing with the clock of 10.

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

以上説明した如く、本発明によれば、CPUと非同期の
DMACが、両者に共通のメモリや入出力装置にアクセ
スする場合に見掛上、同期がとれるようになり、且つ少
ない数の回路で構成され充分なマージンを持って動作す
ることを可能とする効果が得られる。
As explained above, according to the present invention, the CPU and the asynchronous DMAC can be apparently synchronized when accessing the memory or input/output device common to both, and can be configured with a small number of circuits. This provides the effect of allowing operation with sufficient margin.

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

第1図は本発明のメモリアクセス制御回路の構成を示す
原理図、 第2図は本発明のメモリアクセス制御回路の動作を説明
するための原理タイムチャート、第3図は本発明の実施
例のメモリアクセス制御回路の構成を示すブロック図、 第4図、第5図は本発明の実施例の動作を説明するため
のタイムチャート、 第6図は従来のメモリアクセス制御回路のブロック図で
ある。 図において、 1はクロック系切替回路、 11はフリップフロップ、 12はセレクタ、 13はアンドゲート、 2はタイミング生成回路、 10はCPU 、20はDMAC,30はメモリである
。 eO■O○○OO
FIG. 1 is a principle diagram showing the configuration of the memory access control circuit of the present invention, FIG. 2 is a principle time chart for explaining the operation of the memory access control circuit of the present invention, and FIG. 3 is a principle diagram showing the structure of the memory access control circuit of the present invention. FIG. 4 and FIG. 5 are time charts for explaining the operation of the embodiment of the present invention. FIG. 6 is a block diagram of a conventional memory access control circuit. In the figure, 1 is a clock system switching circuit, 11 is a flip-flop, 12 is a selector, 13 is an AND gate, 2 is a timing generation circuit, 10 is a CPU, 20 is a DMAC, and 30 is a memory. eO■O○○OO

Claims (1)

【特許請求の範囲】 プロセッサCPU(10)と非同期に動作するダイレク
トメモリアクセスコントローラDMAC(20)が前記
CPU(10)と共有するメモリ(30)にアクセスし
てデータを読出し書込むメモリアクセス制御回路におい
て、 該DMAC(20)の起動時に、DMAC(20)のク
ロック(c2)をCPU(10)のクロック(c1)に
より制御して該DMAC(20)のクロック(c2)の
1クロック期間だけ停止する制御信号(SEL)を発生
し該CPU(10)からのクロック(c1)と読出し書
込み信号(R/W1)を、前記DMAC(20)からの
クロック(c2)と読出し書込み信号(R/W2)に切
替えてアクセスクロック(c2、R/W2)を出力する
クロック系切替回路(1)と、 該クロック系切替回路(1)の出力のアクセスクロック
(c2、R/W2)を入力して前記メモリ(30)にア
クセスするタイミングを与えるアクセス信号(t)を発
生するタイミング生成回路(2)を具え、該タイミング
生成回路(2)の出力のアクセス信号(t)は、該CP
U(10)系統の信号(t1)から該DMAC(20)
系統の信号(t2)への切替時に、少なくとも該DMA
C(20)の起動する前後の1クロック期間は、該CP
U(10)のクロック(c1)と同期して停止すること
を特徴としたメモリアクセス制御回路。
[Scope of Claims] A memory access control circuit in which a direct memory access controller DMAC (20) that operates asynchronously with a processor CPU (10) accesses a memory (30) shared with the CPU (10) to read and write data. When the DMAC (20) is activated, the clock (c2) of the DMAC (20) is controlled by the clock (c1) of the CPU (10), and the clock (c2) of the DMAC (20) is stopped for one clock period. It generates a control signal (SEL) to output the clock (c1) and read/write signal (R/W1) from the CPU (10), and outputs the clock (c2) and read/write signal (R/W2) from the DMAC (20). ) and outputs the access clock (c2, R/W2), and inputs the access clock (c2, R/W2) output from the clock system switching circuit (1) and outputs the access clock (c2, R/W2). It includes a timing generation circuit (2) that generates an access signal (t) that provides timing for accessing the memory (30), and the access signal (t) output from the timing generation circuit (2) is generated when the CP
From the U (10) system signal (t1) to the DMAC (20)
When switching to the system signal (t2), at least the DMA
During the one clock period before and after the activation of C(20), the CP
A memory access control circuit characterized in that it stops in synchronization with a clock (c1) of U(10).
JP32613287A 1987-12-22 1987-12-22 Memory access control circuit Pending JPH01166155A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP32613287A JPH01166155A (en) 1987-12-22 1987-12-22 Memory access control circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP32613287A JPH01166155A (en) 1987-12-22 1987-12-22 Memory access control circuit

Publications (1)

Publication Number Publication Date
JPH01166155A true JPH01166155A (en) 1989-06-30

Family

ID=18184418

Family Applications (1)

Application Number Title Priority Date Filing Date
JP32613287A Pending JPH01166155A (en) 1987-12-22 1987-12-22 Memory access control circuit

Country Status (1)

Country Link
JP (1) JPH01166155A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6127870A (en) * 1997-07-29 2000-10-03 Matsushita Electric Works, Ltd. Output delay circuit
JP2009181203A (en) * 2008-01-29 2009-08-13 Mitsubishi Electric Corp Bus arbitration device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6127870A (en) * 1997-07-29 2000-10-03 Matsushita Electric Works, Ltd. Output delay circuit
JP2009181203A (en) * 2008-01-29 2009-08-13 Mitsubishi Electric Corp Bus arbitration device

Similar Documents

Publication Publication Date Title
US4615017A (en) Memory controller with synchronous or asynchronous interface
US4368514A (en) Multi-processor system
AU707923B2 (en) Method and apparatus for adapting an asynchronous bus to a synchronous circuit
JP2658958B2 (en) DMA controller
JPH01166155A (en) Memory access control circuit
JPS6234252A (en) Transfer of data between microprocessor and memory and apparatus for implementation thereof
JPH03144990A (en) Memory device
JP2001014213A (en) Microcomputer and system using the same
JPS6389956A (en) Access control system for master/slave system
KR920004420B1 (en) Asynchronous interfacing circuit
KR940004578B1 (en) Slave board control unit
KR100400933B1 (en) Apparatus for synchronization between CPU and external devices in keyphone system
JPH07121483A (en) Shared memory access control circuit
JP2001043127A (en) Memory controller
JP2544015B2 (en) Micro program processor
KR940022285A (en) Data processing system and processor used in it
JPS61256458A (en) Information transfer system
JPH1063566A (en) Memory arbitrating circuit and electronic circuit
JPH05197612A (en) Data access circuit
JPS5979336A (en) Data transfer system
JPH0476152B2 (en)
JPS61103257A (en) Memory control circuit
JPH02294863A (en) Direct memory access system
JPS61121152A (en) Inter-processor communication control system
JPS6325885A (en) Memory access system