JPS5957321A - Dma access control system - Google Patents

Dma access control system

Info

Publication number
JPS5957321A
JPS5957321A JP16788982A JP16788982A JPS5957321A JP S5957321 A JPS5957321 A JP S5957321A JP 16788982 A JP16788982 A JP 16788982A JP 16788982 A JP16788982 A JP 16788982A JP S5957321 A JPS5957321 A JP S5957321A
Authority
JP
Japan
Prior art keywords
address
dma
signal
word
byte
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
JP16788982A
Other languages
Japanese (ja)
Inventor
Toshiaki Maruyama
丸山 寿朗
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.)
Ricoh Co Ltd
Original Assignee
Ricoh Co 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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP16788982A priority Critical patent/JPS5957321A/en
Publication of JPS5957321A publication Critical patent/JPS5957321A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/14Handling requests for interconnection or transfer
    • G06F13/20Handling requests for interconnection or transfer for access to input/output bus
    • G06F13/28Handling requests for interconnection or transfer for access to input/output bus using burst mode transfer, e.g. direct memory access DMA, cycle steal

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Bus Control (AREA)

Abstract

PURPOSE:To attain efficient use of a DMA controller, by making an address output of the DMA controller accessible at both byte and word, in a computer system. CONSTITUTION:When a DMA request is given from an input/output device to a DMA controller 11 in a DMA cycle, a DMA response signal is returned to a request channel. The response signal is returned to a requesting input/output device and becomes an input to a byte/word information storage means 13. When the DMA channel is a word, an A input to an address selector 12 is suppressed, and a B input is selected. An address is advanced at each even number address at a DMA controller exclusive use of byte access and the word access is made possible. If the transfer is the byte transfer, an inverting signal of A0 signal of the DMA controller 11 becomes a BHE signal and signals A0-An are outputted as they are.

Description

【発明の詳細な説明】 本発明は、l) M Aアクセス制御方式に関し、特に
チャネルごとにバイト/ワードの指定が任意に行えるD
MAアクセス切換制御方式に関するものである。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to l) an MA access control system, in particular a D
This relates to an MA access switching control method.

従来より、コンピュータ・システムには、DMA (D
irect Me”017ACQ8”B )コントロー
ラが設けられ、高速転送が必要な入出力装置、例えばC
RTディスプレイ装置やプリンタ等にメモリから文字デ
ータや画像データを転送する場合には、CPUによるプ
ログラム制御に比べてきわめて高速なり M A制御に
より転送を行っている。
Traditionally, computer systems have DMA (D
direct Me”017ACQ8”B) An input/output device that is equipped with a controller and requires high-speed transfer, such as C
When transferring character data or image data from memory to an RT display device, printer, etc., the transfer is performed using MA control, which is much faster than program control using a CPU.

ところで、ワード単位でメモリをアクセスするか、ある
いはバイト単位でメモリをアクセスするかは、例えば1
.6ビツト系CPUでは、アクセスし易いようにそれぞ
れの制御信号がCP Uから出力されるのに対して、D
MAコントローラでは、従来バイト/ワードを任意に制
御できる累子が存在しないため、同一方法でアドレス制
御できない。
By the way, whether to access memory in units of words or units of bytes depends on, for example, 1
.. In a 6-bit CPU, each control signal is output from the CPU for easy access, whereas the D
Conventional MA controllers do not have a cusp that can arbitrarily control bytes/words, so addresses cannot be controlled in the same way.

一般に、ワード構成のメモリは、バイトでアクセスする
か、ワードでアクセスするかによって、同一番地の場合
でもアドレス制御信号は異なったものになる。また、ワ
ード構成のメモリをワード単位で効率的にアクセスする
ために&1、偶数番地ごとにアクセスすることが望まし
く、バイト中位では偶数、奇数番地が交互になってしま
う。
In general, in a word-structured memory, the address control signal will differ depending on whether the memory is accessed in bytes or words, even if the address is the same. Further, in order to efficiently access a word-structured memory in units of words, it is desirable to access every even address by &1, and in the middle of a byte, even and odd addresses alternate.

このように、1相来ワード構成のメモリをバイト/ワー
ド単位でアクセスするには、アドレス制御信号をそれぞ
れy4 trつた方法により制御するjう要があるため
、T)MAコントローラは蝮雑とt【つでおり、同一の
アドレス制御にすることは困難とされている。
In this way, in order to access a memory with a one-phase word structure in units of bytes/words, it is necessary to control the address control signals by the method of y4 and tr, respectively. [Therefore, it is said that it is difficult to maintain the same address control.

本発明の目的はこのような従来の問題を解決するため、
DMAコントローラのアドレス出力カをバイトとワード
の両方でアクセスできるようにし、かつチャネルごとに
バ・rト/ワードの指定を任意に行ってDMAコントν
−ラの効率的な使用を図ることができるDMAアクセス
制御方式を提供することにある。
The purpose of the present invention is to solve such conventional problems,
The address output of the DMA controller can be accessed in both bytes and words, and the bit/word can be arbitrarily specified for each channel to control DMA control.
- It is an object of the present invention to provide a DMA access control method that can make efficient use of the RAM.

本発明のDMAアクセス制御方式は、D M Aチャネ
ルに対応した少なくとも1ビツト以上の情報保持手段と
、DMAアドレスのmビット目と(m+1)ビット目の
いずれか一方をセレクトするセレクタを備え、実行中の
DMAチャネルに対応した情報保持手段の出力にしたが
って上記セレクタを制御し、セレクタ出力をD M A
アドレスとすることに特徴を有する。
The DMA access control method of the present invention includes an information holding means of at least one bit or more corresponding to a DMA channel, and a selector for selecting either the m-th bit or the (m+1)-th bit of a DMA address. The selector is controlled according to the output of the information holding means corresponding to the DMA channel in the DMA, and the selector output is
It is characterized by being an address.

以下、本発明の実施例を図面により説明する。Embodiments of the present invention will be described below with reference to the drawings.

第1図は、本発明を用いたコンピュータ・システムの要
部ブーロック図である。
FIG. 1 is a block diagram of main parts of a computer system using the present invention.

第1図においC11は本発明によるD M Aモジュー
ルであり、T)MAコントローラ11の他ニ新しくバイ
ト/ワード情報保持手段13とデータ・アドレス・セレ
クタ12が設けられる。2はCPU、3.4はアドレス
・バッファ、5(1メモリ・モジュール、6はデータ・
バス、7はアドレス・バスである。
In FIG. 1, C11 is a DMA module according to the present invention, and in addition to the MA controller 11, a byte/word information holding means 13 and a data address selector 12 are newly provided. 2 is the CPU, 3.4 is the address buffer, 5 (1 memory module, 6 is the data
Bus 7 is an address bus.

メモリ・モジュール5には、DOND8のロー)< −
f ) 43納部51とD8〜T’)15のハイバイト
格納部52が設けられている。
Memory module 5 has DOND8 low) < -
f) 43 storage sections 51 and D8 to T') 15 high-byte storage sections 52 are provided.

先ず、CP U 2がメモリ、5をアクセスする場合に
ついて述べる。
First, the case where CPU 2 accesses memory 5 will be described.

CP r、yは、アクセスすべきメモリ・アト17スを
アドレス・バッファ3を通じて出力し、さらにメモリ5
をリードするか、あるいはライトするかにより、制御信
号M RD CあるいはMWTCを出力する。このとき
、メモリ5をワード単位でアクセスする場合には、CP
U2からのアドレス信号AO−“L″、B I−T E
−“T、 ITと4rる。また、DMA(ネーブル信号
(DMA、EN)は°°L”であるため、アドレス・バ
ッファ3が活性化され、DMAのアドレス・バッファ4
は活性化されない。なお、制御信号MRDC,MWTC
,l0RC,TOWCも、7)−L、スーバッファ3,
4と同じように、イネーブル・ゲート付のバッファで駆
動され、CPUサイクルまたはDMAサイクルでバッフ
ァを選択して使用する。
CP r, y outputs the memory address to be accessed through address buffer 3, and further outputs the memory address to be accessed through address buffer 3.
Depending on whether it is read or written, a control signal M RDC or MWTC is output. At this time, when accessing the memory 5 in word units, CP
Address signal AO-“L” from U2, B I-T E
- "T, IT". Also, since the DMA (enable signal (DMA, EN) is °°L", the address buffer 3 is activated, and the DMA address buffer 4 is activated.
is not activated. Note that the control signals MRDC, MWTC
, l0RC, TOWC also has 7)-L, super buffer 3,
4, it is driven by a buffer with an enable gate, and the buffer is selected and used in the CPU cycle or DMA cycle.

次に、DMAサイクルにおいては、入出力装置(Ilo
 )よりDMAコントローラ11にD M A要求が出
されると、DMAコントローラ11はその許可信号とし
てDMA応答信号をその要求チャネルに対して返送する
。D MA応答信号は、要求元の入出力装置に返送され
るとともに、バス14を通してバイト/ワード情報保持
手段13の入力となる。バイト/ワード情報保持手段に
は、あらかじめ各T)MAAチヤネル対応して、バイト
転送かワード転送かを指定する情報が1呆持されており
、そのDMAチャネルがワードであれば、アドレス・セ
レクタ12のへ入力は抑止され、B入力が出力される。
Next, in the DMA cycle, the input/output device (Ilo
) issues a DMA request to the DMA controller 11, the DMA controller 11 returns a DMA response signal to the request channel as a permission signal. The DMA response signal is returned to the requesting input/output device and is input to the byte/word information holding means 13 through the bus 14. The byte/word information holding means holds in advance one piece of information specifying whether the DMA channel is a byte transfer or a word transfer, corresponding to each T)MAA channel, and if the DMA channel is a word transfer, the address selector 12 The input to is suppressed and the B input is output.

B入力が出力されると、アドレス・セレクタ12のアド
レス信号AO−”L”、T3HE−■、”となり、さら
にDMAコントローラ11のアドレス出力信号のAOが
A1に、A1がA2に、・・・・・AnがAn+1に、
アドレスが1ビツトずつシフトした状態で出力される。
When the B input is output, the address signal of the address selector 12 becomes AO-"L", T3HE-■, ", and the address output signal of the DMA controller 11 becomes A1, A1 becomes A2, etc. ...An becomes An+1,
The address is output with the address shifted one bit at a time.

ワード転送において、アドレス・セレクタ12のB入力
が選択されることにより、バイト・アクセス専用のDM
Aコントローラでも、偶数番地ごとにアドレスが歩進さ
れて(AOが常にIT、”)、ワード・アクセスが可能
となる。
In word transfer, by selecting the B input of the address selector 12, the DM dedicated for byte access
In the A controller as well, the address is incremented at every even address (AO is always IT, "), allowing word access.

もし、バイト転送であれば、DMAコントローラ11の
AO信号の反転信号がB )i E信号になって、AO
〜Anはそのまま出力される。
If it is a byte transfer, the inverted signal of the AO signal of the DMA controller 11 becomes the B)iE signal, and the AO
~An is output as is.

このように、本発明では本来バイト・アクセス専用のD
MAコントローラ11からのアドレス出力に対して、セ
レクタ12で制御することにより、バイト・アクセスと
ワード・アクセスを複数のDMAチャネルで自由に使い
分けられるようにしている。
In this way, in the present invention, D
By controlling the address output from the MA controller 11 with the selector 12, byte access and word access can be freely used in a plurality of DMA channels.

第2園は、本発明の実施例を示すDMAモジュールの構
成rくであり、第3菌は本発明によるメモリ・アクセス
動作の説明図である。
The second diagram shows the configuration of a DMA module according to an embodiment of the present invention, and the third diagram is an explanatory diagram of a memory access operation according to the present invention.

第2図では、互いに独立した4つのDMAチャネルを制
御する場合を示している。
FIG. 2 shows a case where four mutually independent DMA channels are controlled.

DMAチャネル1〜4に対応した1ビツトの情報保持手
段13には、あらかじめCPU2によりそれぞれのチャ
ネルがバイト・アクセスか、あるいはワード・アクセス
かを指定するデータが保持されている。いま、ワード・
アクセスを°゛1″、バイト・アクセスをO′″とする
と、情報保持手段13ではチャネル1,2.4がバイト
・アクセスチャネル3が1ノ・−ド・アクセスとして指
定されている。
In the 1-bit information holding means 13 corresponding to DMA channels 1 to 4, data specifying whether each channel is accessed by byte or word is held in advance by the CPU 2. Now, Word
When the access is ``1'' and the byte access is O'', channels 1, 2.4 are designated as byte access and channel 3 is designated as 1 node access in the information holding means 13.

D M A 1th VF、’JJ求がチャネル1から
発せられた場合、この要求の許可信号としてDMA応答
信号がそのチャネルだけ活性化される。このDMA応答
M Aチャネル1の出力のみを活性什させ、その出力を
アドレス・セレクタ12に送出さセる。アドレス・セレ
クタ12のS端子けO”(ローレベル)となり、A入力
がセレクトされるように動作するので、DMAコントロ
ーラ]]のアドレス出力はそのままセレクタ出力(A、
O−A、n)となる。ただし、AOの反転信号がB H
E信号となる。
When a DMA 1th VF,'JJ request is issued from channel 1, a DMA response signal is activated for only that channel as a permission signal for this request. Only the output of the DMA response MA channel 1 is activated and the output is sent to the address selector 12. The S terminal of the address selector 12 becomes O'' (low level) and operates so that the A input is selected, so the address output of the DMA controller remains unchanged as the selector output (A,
OA, n). However, the inverted signal of AO is BH
It becomes E signal.

なお、AO倍信号BFTE信号は、アドレスの歩進によ
って、交互に変化することにt「る。B IT E信号
はワード構成のメモリにおける奇数番地(ハイバイト)
をセ1/り卜するためのr号であり、AO倍信号反転信
号がB HE信号となっているので、D M Aアドレ
スの歩進により、偶Toa地(ローバイト)−奇数mi
+!+(ハイパ・rl)−・偶数番地(ローバイト)→
・・・・、・のjj’iでろ7互にメモリのバイト・ア
クセスが可能となる。すなわち、第3図に示すように、
メモリ5のローバイト格納部51とハイバイト格納部、
52にはアドレスrt7 号A l〜Anが並列に入力
され、かつローバイト格納部5]、とハイバイト格納部
52のイネーブル信号として、それぞれアドレス信号A
OとBHEが使用されている。
Note that the AO multiplication signal BFTE signal changes alternately as the address increments.
This is the r number for separating/removing the data, and the AO multiplied signal inversion signal is the BHE signal, so by incrementing the DMA address, even Toa ground (low byte) - odd number
+! + (Hypa・rl) −・Even address (low byte) →
jj'i of . That is, as shown in Figure 3,
A low byte storage section 51 and a high byte storage section of the memory 5,
52, addresses rt7 A1 to An are input in parallel, and address signals A are input as enable signals for the low byte storage section 5 and the high byte storage section 52, respectively.
O and BHE are used.

次に、DMAチャネル3が活性化された場合について述
べる。
Next, a case where DMA channel 3 is activated will be described.

D M A応答信9号により、1111報保持手段13
の出力がI I I+となるので、アドレス・セレクタ
12のS端子”1”(ハイレベル)となり、B入力がセ
レクトされる。B入力がセレクトされると、Ao倍信号
B HE信号は、ともに必ず゛′0″レベルとなり、ま
たDMAコントローラ出力出力子ドレスが順次1ビツト
・シフトされたアドレスとなる。すなわち、アドレスA
OがA1になり、アドレスAIがA2になり、A (n
−1)がAnとなる。
Due to the DMA response signal No. 9, the 1111 information holding means 13
Since the output becomes I II I+, the S terminal of the address selector 12 becomes "1" (high level), and the B input is selected. When the B input is selected, both the Ao multiplied signal B and the HE signal are always at the ``0'' level, and the DMA controller output output child address becomes an address sequentially shifted by 1 bit. That is, the address A
O becomes A1, address AI becomes A2, A (n
-1) becomes An.

このようなtaII成によって、DMAコントローラ出
力アドレスか歩進すると、メモリ・アドレスは偶数アド
レスごとに歩進する。例えば、DMAコン)o−ラll
がら’ 00001 ” 、 ” 00010 ” 、
00011′″・・・・・と1ずつ歩進されたアドレス
信号が出力されると、アドレス・セレクタ12からはo
Due to such a taII configuration, when the DMA controller output address is incremented, the memory address is incremented every even address. For example, DMA controller) o-rall
Gara' 00001 ”, ”00010”,
When the address signal incremented by 1 as 00011''' is output, the address selector 12 outputs o.
.

010”、’“00100”、“”00110”・・・
・と2ずつ歩進されたアドレスに変換されて出力される
ことになるので、メモリ・アドレスは偶数アドレスごと
に歩進する。したがって、メモリ5はワード単位で順次
アクセスされる。第3図に示す斜線の部分がワード・ア
クセス単位を示している。
010", '00100', "00110"...
Since the memory address is converted to an address incremented by 2 and output, the memory address is incremented at every even address. Therefore, the memory 5 is sequentially accessed word by word. The shaded area shown in FIG. 3 indicates a word access unit.

以上説明したように、本発明によれば、バイト・アクセ
ス専用のDNIAコントローラのアドレス出力を、バイ
トとワードの両方でアクセスできるようにしたので、D
MAコントローラを有効に使用することができ、かつつ
ヤネルごとにバイト/ワードの指定を任意に行うことが
できる。
As explained above, according to the present invention, the address output of the DNIA controller dedicated to byte access can be accessed in both byte and word.
The MA controller can be used effectively, and bytes/words can be arbitrarily specified for each channel.

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

第1図は本発明を用いたコンピュータ・システムの要部
ブロック図、第2図は本発明の実施例を示すDMAモジ
ュフルの構成図、第3図は本発明によるメモリ・アクセ
ス動作の説明図である。 1:DMAモジュール、2 : CPU、3,4ニアド
レス・バッファ、5:メモリ、6:7’ −タ・バス、
7;アドレス・バス、l 1 : T)MAコントロー
ラ、12ニアドレス・セレクタ、13:情報保持手段。 第   2   図 11.  12 第3図
FIG. 1 is a block diagram of main parts of a computer system using the present invention, FIG. 2 is a block diagram of a DMA module showing an embodiment of the present invention, and FIG. 3 is an explanatory diagram of memory access operation according to the present invention. be. 1: DMA module, 2: CPU, 3, 4 near address buffer, 5: memory, 6: 7'-ta bus,
7: Address bus, l1: T) MA controller, 12 Near address selector, 13: Information holding means. 2nd Figure 11. 12 Figure 3

Claims (1)

【特許請求の範囲】[Claims] DMAチャネルごとにバイト単位またはワード単位のア
クセスを指定する情報保持手段と、該情報保持手段の出
力により制御され、DMAアドレスのmビット11と(
m+1)ビット目のいずれか一方をセレクトするセレク
タを備え、実行中のDMAチャネルがベイト単位のとき
には上記mビット4目のセレクタ出力をアドレスとして
メモリをアクセスし、ワード単位のときには上記(m+
1)ビット目をセレクタ出力として偶数アドレスごとに
歩進したアドレスでメモリをアクセスすることを特徴と
するD M Aアクセス制御方式。
Controlled by the information holding means that specifies access in bytes or words for each DMA channel, and the output of the information holding means, m bit 11 of the DMA address and (
The DMA channel being executed is provided with a selector that selects one of the m+1) bits, and when the DMA channel being executed is in bait units, the memory is accessed using the selector output of the 4th m bit as an address, and when it is in word units, the memory is accessed using the (m+1) bits as the address.
1) A DMA access control method characterized in that the memory is accessed with an address incremented for every even number address using the selector output as the bit-th bit.
JP16788982A 1982-09-27 1982-09-27 Dma access control system Pending JPS5957321A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP16788982A JPS5957321A (en) 1982-09-27 1982-09-27 Dma access control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP16788982A JPS5957321A (en) 1982-09-27 1982-09-27 Dma access control system

Publications (1)

Publication Number Publication Date
JPS5957321A true JPS5957321A (en) 1984-04-02

Family

ID=15857941

Family Applications (1)

Application Number Title Priority Date Filing Date
JP16788982A Pending JPS5957321A (en) 1982-09-27 1982-09-27 Dma access control system

Country Status (1)

Country Link
JP (1) JPS5957321A (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5195740A (en) * 1975-02-20 1976-08-21 Chokusetsumemori akusesuseigyohoshiki

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5195740A (en) * 1975-02-20 1976-08-21 Chokusetsumemori akusesuseigyohoshiki

Similar Documents

Publication Publication Date Title
US7707328B2 (en) Memory access control circuit
JPH059872B2 (en)
JPH0684351A (en) Clock synchronized type semiconductor memory device and access method thereof
US20060059320A1 (en) Memory control device
KR100676981B1 (en) Arrangement with a plurality of processors sharing a collective memory
JPH03189843A (en) System and method for processing data
KR100676982B1 (en) Arrangement with a plurality of processors having an interface for a collective memory
JPS5957321A (en) Dma access control system
JPH0546527A (en) Dual port memory circuit
JPS6285343A (en) Memory reading-out circuit
KR20010050234A (en) Addressing of a memory
JPS59178667A (en) Memory device
JP2570271B2 (en) Semiconductor memory controller
JPH0525331B2 (en)
JPH1027130A (en) Picture processor and its processing method
JPH036763A (en) High speed data transfer method between dram type memory devices
JPH039453A (en) Data transfer controller
JPH0236443A (en) System for controlling expansion storage
JPH0561769A (en) Memory access method
JPH0619737B2 (en) Memory access device
JPS6059462A (en) Pipeline access memory of bi-directional data bus
JPS6027971A (en) Expanding method of address space
JPH06301629A (en) Main storage device
JPH0512182A (en) Direct memory access controller
JPS6289085A (en) Data transfer