JPS59167734A - Direct memory access control system - Google Patents

Direct memory access control system

Info

Publication number
JPS59167734A
JPS59167734A JP4171883A JP4171883A JPS59167734A JP S59167734 A JPS59167734 A JP S59167734A JP 4171883 A JP4171883 A JP 4171883A JP 4171883 A JP4171883 A JP 4171883A JP S59167734 A JPS59167734 A JP S59167734A
Authority
JP
Japan
Prior art keywords
data
memory
registers
address
word
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
JP4171883A
Other languages
Japanese (ja)
Inventor
Susumu Kimura
進 木村
Seiichi Kurihara
清一 栗原
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 JP4171883A priority Critical patent/JPS59167734A/en
Publication of JPS59167734A publication Critical patent/JPS59167734A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To improve the transfer efficiency of the whole of a system by providing read cycles in the beginning and the last of a memory cycle and using the other part of the memory cycle as a write cycle in case of data transfer to shorten the memory cycle. CONSTITUTION:In case of data transfer from a memory 10 to a memory 22, a direct memory access control circuit 11 reads out data from the memory 22 to data registers 13-16 with word addresses, which are indicated by address registers 17-19, by the control of a microprocessor 12. Data is written from the memory onto this data. Data of data registers 13-16 in this state is written on the memory 22 with word addresses which are read out again. When data is written from the memory 10 on data registers 13-16, data is written on the memory 22 with word addresses counted up by +1; and this operation is repeated.

Description

【発明の詳細な説明】 (a)発明の技術分野 本発明はデータ幅の異なる領域間でデータをダイレクト
・メモリ・アクセス・モードで転送するデータ処理装置
に係り、特にメモリサイクルを書込み/読出しサイクル
のみとして短くすることにより、データ転送効率を向上
させるダイレクト・メモリーア、クセス4Ii制御方式
に関する。
Detailed Description of the Invention (a) Technical Field of the Invention The present invention relates to a data processing device that transfers data in a direct memory access mode between areas with different data widths, and particularly relates to a data processing device that transfers data between areas with different data widths in a direct memory access mode, and in particular, converts memory cycles into write/read cycles. This invention relates to a direct memory access 4Ii control method that improves data transfer efficiency by shortening the length of the memory.

(b)従来技術と問題点 データ幅の異なる領域間でデータをダイレクト・メモリ
・アクセス・モードで転送する場合2語境界(語長の整
数倍で指定されるところの記憶領域内のアドレス)で転
送されるとは限らず、リード・モディファイ・ライト・
サイクル方式を用いた方式のものか提案されているか、
メモリサイクル長が固定の方式のデータ処理装置では一
つのメモリサイクルが長くなる。即ちモディファイする
時間だけ余分なメモリサイクルを要するため効率が良く
ない欠点がある。
(b) Conventional technology and problems When transferring data in direct memory access mode between areas with different data widths, two-word boundaries (addresses within the storage area specified as integral multiples of the word length) It is not necessarily transferred; read, modify, write,
Is there a method using a cycle method or has it been proposed?
In a data processing device with a fixed memory cycle length, one memory cycle becomes long. That is, an extra memory cycle is required for the modification time, which has the drawback of poor efficiency.

(c)発明の目的 本発明の目的は上記欠点を除く為、ダイレクト・メモリ
・アクセスによりデータの転送を行う時。
(c) Purpose of the Invention The purpose of the present invention is to eliminate the above drawbacks when transferring data by direct memory access.

メモリサイクルの最初と最後に読出しサイクルを設け、
その他は書込みサイクルのみとしてメモリサイクルを短
くすることにより、全体の転送効率−を向上させるダイ
レクト・メモリ・アクセス制御方式を提供することにあ
る。
A read cycle is provided at the beginning and end of the memory cycle,
Another object of the present invention is to provide a direct memory access control method that improves the overall transfer efficiency by shortening the memory cycle as only a write cycle.

(d)発明の構成 本発明の構成はデータ幅の異なる記憶手段の間でデータ
をダイレクト・メモリ・アクセス・モート“により転送
するデータ処理装置に於て、データ 幅の大きい記憶手
段にデータを格納する場合、該データ格納の為のメモリ
サイクルの最初と最後の書込みサイクル時に、該データ
幅の大きい記憶手段よりデータを読出す為の読出しサイ
クルを追加したものである。
(d) Structure of the Invention The structure of the present invention is that in a data processing device that transfers data between storage means with different data widths using a direct memory access mode, data is stored in the storage means with a larger data width. In this case, a read cycle for reading data from the storage means having a large data width is added to the first and last write cycles of the memory cycle for storing the data.

(e)発明の実施例 データ幅の異なる領域間でデータをダイレフh・メモリ
・アクセス・モードで転送する場合、アドレスか連続し
ていれば転送開始時と終了時を除くと、その他は語境界
で転送する事が可能である。
(e) Embodiments of the Invention When data is transferred between areas with different data widths in die reflex h memory access mode, if the addresses are continuous, except at the start and end of the transfer, the rest will be word boundaries. It is possible to transfer by.

例えば1バイトのデータを4バイト1ワードのメモリに
転送する場合に付説明する。第1図は4ハイド1ワード
のメモリのワードアドレス“01”〜“′05”に17
ハイトのデータを転送する時の一例を示す。第1図に示
す如くワードアドレス゛01”はハイl−位置“2”よ
り始まり、ワードアドレス“、02″、“03 ” 、
  “04″は4ハイド連続し、ワードアドレス“05
°°でばハイド位置“2”で終了しているデータを転送
するとすれば。
For example, a case will be explained in which 1 byte of data is transferred to a memory of 4 bytes and 1 word. Figure 1 shows 17 at word addresses "01" to "'05" of 4-hyde 1-word memory.
An example of transferring height data is shown below. As shown in FIG. 1, the word address "01" starts from the high L-position "2", and the word addresses ", 02", "03",
“04” is 4 consecutive hides, word address “05”
If you want to transfer data that ends at hide position "2" in °°.

ワードアドレス“02″〜“04゛のデータは語境界で
転送し得る。従ってワードアドレス“01”1“05”
のデータをワード単位で転送し得る様にすれば、総ての
データを語境界で転送する事が可能となる。通常ダイレ
クト・メモリ・アクセス転送が主な回路では上記例に示
す如く2語境界で転送し得るデータ量が多く、ハイドi
位で転送しなければならぬ頻度は転送開始時と終了時の
みで、且つ其の頻度は比較的少ない。従って本発明はテ
ニタの転送を総て語境界で実施し得る様にしたものであ
る。
Data at word addresses “02” to “04” can be transferred at word boundaries. Therefore, word addresses “01” 1 “05”
By making it possible to transfer data in word units, all data can be transferred at word boundaries. Normally, in a circuit that mainly uses direct memory access transfer, the amount of data that can be transferred at a two-word boundary is large, as shown in the example above, and the
The frequency at which data must be transferred is only at the start and end of the transfer, and the frequency at which it is required is relatively low. Accordingly, the present invention allows all tenitor transfers to be performed at word boundaries.

第2図は本発明の一実施例を示す回路のブロック図であ
る。メモリ10は1ハイド構成のメモリでダイレクト・
メモリ・アクセス制御回路11の制御によりデータをデ
ータレジスタ13.1’4゜15.16に書込み/続出
しする。該データレジスタ13.14.is、16はメ
モリ22よりも書込み/続出し可能であるが、メモリI
Oより書込みされたレジスタはマスクされ、メモリ22
側よりセットすることが出来ず、メモリ22が該データ
を読出した時リセットされる。メモリ22は4ハイドl
ワード構成であり、従ってデータレジスタは4組設けら
れている。マイクロプロセッサ12はメモリ22に該デ
ータを書込むアドレスをア1ζレスレジスタ17.18
.19に七ノドする。
FIG. 2 is a block diagram of a circuit showing one embodiment of the present invention. Memory 10 is a memory with a 1-hide configuration and is a direct memory.
Under the control of the memory access control circuit 11, data is written/output in data registers 13.1'4 to 15.16. The data register 13.14. is, 16 is more writable/readable than memory 22, but memory I
The registers written by O are masked and stored in the memory 22.
It cannot be set from the side, and is reset when the memory 22 reads the data. Memory 22 is 4 Hyde l
It has a word configuration, and therefore four sets of data registers are provided. The microprocessor 12 sets the address at which the data is to be written into the memory 22 in address registers 17 and 18.
.. Seven throats at 19.

この時メモリ22は1ワードが4ハイドである為。At this time, one word of the memory 22 is 4 hides.

アドレスレジスタ19の下位2ビツトをハイド位置を示
すアドレスとして割当て、ハイドレジスタ20に七ソ[
する。例えば24ビットでアドレスを表す場合、データ
レジスタ17.18にば夫々   j8ビットをセット
し、ア1ζレスレジスタ19には6ヒノトをセノ1する
。アドレスレジスタ17〜19ばインクリメン1機能を
持ち、メモリ22のアクセスか終了するとメモリ22に
対するアドレスか+1される。
The lower two bits of the address register 19 are assigned as the address indicating the hide position, and the seven so[
do. For example, when representing an address with 24 bits, j8 bits are set in each of the data registers 17 and 18, and 6 bits are set in the address register 19. The address registers 17 to 19 have an increment 1 function, and when the access to the memory 22 is completed, the address for the memory 22 is incremented by 1.

ハイドレジスタの2ピノ1−はデコーダ21によリテ゛
コートされ、データレジスタ13〜16に送出される。
2 pins 1- of the hide register are recoded by the decoder 21 and sent to the data registers 13-16.

該アドレスにより指示されたチータレ   2ジスタ1
3〜16ば夫々イネーブルとなりメモリ10より送出さ
れるデータをセントする。夫々のデータレジスタ13〜
16に七)1−されたハイド単位のデータはメモリ22
側の該当するハイド毎のアドレスに格納される。従って
メモリ22のアドレスの下位2ビツトを除き、アドレス
レジスタ17〜19にセントされるアドレスはワード単
位のアドレスである。例えば第1図の一つ−トアドレス
“01”〜“′05″の如きアドレスを示す。
Cheetare 2 register 1 specified by the address
3 to 16 are respectively enabled and data sent from the memory 10 is sent. Each data register 13~
16 to 7) 1- Hyde unit data is stored in the memory 22.
It is stored at the address for each corresponding hide on the side. Therefore, except for the lower two bits of the address in memory 22, the addresses written to address registers 17-19 are in word units. For example, addresses such as one-to-one addresses "01" to "'05" in FIG. 1 are shown.

ハイドレジスタ20もインクリメント機能をもち、メモ
リ10よりデータレジスタ13〜16に頭次データがセ
ントされるに従い、該データレジスタ13〜16のアド
レスが+1される。即ちアドレスが“00゛の時データ
レジスタ13を指示Vるとすれは、アドレスが“” 0
1 ”の時データレジスタ14を、アドレスが“1o”
の時データレジスタ15を、アドレスが11”の時デー
タレジスタ16を指示することになる。これは又メモリ
22側のハイドアドレスを指示することにもな9、第1
図に示すハイド位置“o゛はデータレシスフ13のデー
タか、ハイド位置“1”にはデータレジスタ14のデー
タか、ハイド位置“′2パにはデータレジスタ】5のテ
ークか、バイト位置″3′”にはデータレジスタ16の
データが夫々格納される。
The hide register 20 also has an increment function, and as the first data is sent from the memory 10 to the data registers 13-16, the addresses of the data registers 13-16 are incremented by one. That is, if the data register 13 is instructed to V when the address is "00", the address is "" 0.
1”, the data register 14 is set to address “1o”.
When the address is 11'', the data register 15 is specified, and when the address is 11'', the data register 16 is specified.This also does not specify the hide address on the memory 22 side.
The hide position "o" shown in the figure is the data in the data register 13, the hide position "1" is the data in the data register 14, the hide position "2 is the take of the data register]5, the byte position "3' is ” stores the data of the data register 16, respectively.

メモリ10よりメモリ22にデータがダイレクトメモリ
・アクセス・モードにて転送される時。
When data is transferred from memory 10 to memory 22 in direct memory access mode.

マイクロプロセッサ12の制御により、ダ・イレク1−
・メモリ・アクセス制御回路11がデータレジスタI3
〜1Gとア[レスレジスタ17〜19を;1ilJ?a
lLL7. )−E−1) 22ヨ”+7 +X’レス
レジスタ17〜19の指示するワードアドレスでレジス
タ13〜16にデータをδ売出す。該データレジスタ1
3〜16(こ続出されたデータにメモリ10よりデータ
を書込む。こうする事でテークレジスタ13〜16には
メモリ22のデータにメモリ10のデータが重畳して書
かれたこととなる。第1図に示すワーI・アドレス“”
 01 ”のデータを〃1す10より書込んだとすれば
、ハイド位置“0″と“1″にはメモリ22のデータが
そのまま残り、ハイド位置“2゛′と“3”のデータが
書替えられてメモリ10のデータとなる。上記状態とな
ったデータレジスタ13〜16のデータをメモリ22に
再度読出したワードアドレスで書込む。こうする事で恰
もメモリ22のハイド位置“′2゛と“3”にハイド単
位でデータを書込むのと同様になる。この時アドレスレ
ジスフ17〜19のアドレスは+1される。次にデータ
レジ皮り13〜16にデータがメモリ10より書込まれ
ると、+1したワードアドレスによりメモリ22にデー
タの書込みが行われ、又アドレスレジスフ17〜]9の
アドレスは→−1される。上記の繰り返しで1例えば第
1図ワードアドレス″05″のデータを書込む状態とな
ると、又メモリ22の読出しサイクルとなり。
Under the control of the microprocessor 12, the
-Memory access control circuit 11 is data register I3
~1G and address registers 17-19; 1ilJ? a
lLL7. )-E-1) 22yo"+7 +X' Send data δ to registers 13 to 16 at the word address indicated by reply registers 17 to 19.
3 to 16 (Write data from the memory 10 to the successively output data. By doing this, the data in the memory 10 is superimposed on the data in the memory 22 and written in the take registers 13 to 16. The word I address “” shown in Figure 1
If the data of ``01'' is written from 1 to 10, the data in the memory 22 will remain in hide positions ``0'' and ``1'', and the data in hide positions ``2'' and ``3'' will be rewritten. and becomes the data in the memory 10. The data in the data registers 13 to 16 in the above state is written into the memory 22 at the read word address again. By doing this, it becomes the same as writing data in hide locations "'2" and "3" in the memory 22 in hide units.At this time, the addresses of address registers 17 to 19 are incremented by 1.Next, the data When data is written from the memory 10 to the register registers 13 to 16, the data is written to the memory 22 using the word address incremented by 1, and the addresses of the address registers 17 to 9 are incremented by -1. When a state is reached in which data at word address "05" in FIG. 1 is written by repeating 1, for example, the memory 22 becomes a read cycle.

データレジスタ13〜16にメモリ22からその時のワ
ードアドレスによりデータが読出される。
Data is read from the memory 22 into the data registers 13-16 according to the word address at that time.

この時ハイド位置“0〜3゛に該当するテークレジスタ
13〜15のデータはマスクされており。
At this time, data in take registers 13 to 15 corresponding to hide positions "0 to 3" are masked.

該メモリ22よりのデータ書込みによっても影響されな
い。従ってバイト位置“3”に相当するテークレジスタ
16のみメモリ22のデータが書込まれる。上記の状態
でメモリ22の読出したワードアドレスにデータレジス
タ13〜I6のデータを書込む。これでハイド位置” 
0 ”、  ” 1 ”、  “2”にハイド単位にデ
ータを書込むのと同様となる。以上説明した如く動作す
る為、メモリ22に対しア1パレスレジスタ17〜19
c6ワートアトレスのみを用いて書込み/読出しサイク
ルを行う事でテークの転送か可能となる。
It is not affected by data writing from the memory 22 either. Therefore, data in the memory 22 is written only to the take register 16 corresponding to byte position "3". In the above state, the data in the data registers 13 to I6 is written to the read word address of the memory 22. This is the hide position.”
This is the same as writing data in Hyde units to ``0'', ``1'', and ``2''.In order to operate as explained above, the memory 22 has 1 address registers 17 to 19.
It is possible to transfer takes by performing write/read cycles using only the c6 word address.

(f)発明の詳細 な説明した如く5本発明はメモリのメモリサイクルを短
くすることが可能であり、頻度の少ないダイレクト・メ
モリ・アクセスの転送開始と終了時の読出しサイクルを
追加したことに対する増加時間は僅かなものであって、
特にダイレクト・メモリ・アクセスによる転送データの
領域が大きい程、その効果は大なるものがある。
(f) As described in the detailed description of the invention, the present invention is capable of shortening the memory cycle of the memory, which is an increase compared to adding read cycles at the start and end of transfer of infrequent direct memory access. Time is short,
In particular, the larger the area of data transferred by direct memory access, the greater the effect.

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

第1図は4ハイド1ワーI・のメモリのワードアドレス
01〜05に17ハイトのデータを転送する時の一例を
示す図、第2図は本発明の一実施例を示す回路のブロッ
ク図である。 10.22はメモリ、11はダイレクト・メモリ・アク
セス制御回路、12はマイクロプロセッサ、13,14
,15.16はテークレジスタ。 17.18.19はアドレスレジスフ、20はハイドレ
ジスタ、21はデコーダである。
FIG. 1 is a diagram showing an example of transferring 17-height data to word addresses 01 to 05 of a 4-hide, 1-word memory, and FIG. 2 is a block diagram of a circuit showing an embodiment of the present invention. be. 10. 22 is a memory, 11 is a direct memory access control circuit, 12 is a microprocessor, 13, 14
, 15.16 are take registers. 17, 18, and 19 are address registers, 20 is a hide register, and 21 is a decoder.

Claims (1)

【特許請求の範囲】[Claims] データ幅の異なる記憶手段の間でデータをダイレクト・
メモリ・アクセス・モーI・により転送するデータ処理
装置に於て、データ幅の大きい記憶手段にデータを格納
する場合、該データ格納の為のメモリサイクルの最初と
最後の書込みサイクル時に、該データ幅の大きい記1.
a手段よりデータを読出す為の続出しサイクルを追加し
たことを特徴とするダイレクト・メモリ・アクセス制御
方式。
Direct data transfer between storage methods with different data widths
In a data processing device that transfers data using memory access mode I, when storing data in a storage means with a large data width, the data width is Big notes 1.
A direct memory access control system characterized by adding a successive cycle for reading data from means a.
JP4171883A 1983-03-14 1983-03-14 Direct memory access control system Pending JPS59167734A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4171883A JPS59167734A (en) 1983-03-14 1983-03-14 Direct memory access control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4171883A JPS59167734A (en) 1983-03-14 1983-03-14 Direct memory access control system

Publications (1)

Publication Number Publication Date
JPS59167734A true JPS59167734A (en) 1984-09-21

Family

ID=12616198

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4171883A Pending JPS59167734A (en) 1983-03-14 1983-03-14 Direct memory access control system

Country Status (1)

Country Link
JP (1) JPS59167734A (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5530783A (en) * 1978-08-28 1980-03-04 Hitachi Ltd Channel data transfer control system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5530783A (en) * 1978-08-28 1980-03-04 Hitachi Ltd Channel data transfer control system

Similar Documents

Publication Publication Date Title
JPH0887876A (en) Nand-type flash-memory ic card
JP3786993B2 (en) Data storage unit and data storage device using the unit
JPS59167734A (en) Direct memory access control system
JP2000285017A (en) Storage
JP2591514B2 (en) One-chip memory device
JP3099908B2 (en) EEPROM control device
JPS6051188B2 (en) Driving method of magnetic bubble memory
JP3568384B2 (en) Memory access circuit
JPS59104800A (en) Parity check system of picture memory
JPH0547189A (en) Memory card device
EP0075666B1 (en) Control arrangement for magnetic bubble memories
JPS63206993A (en) Dynamic ram
JPS5841525B2 (en) Direct memory access system
JPS54145444A (en) Control system of buffer memory
SU1283760A1 (en) Control device for microprocessor system
JPS59189433A (en) Data erasing system by direct memory access
JPH04243086A (en) Storage device
JPH0241058B2 (en)
JPS61198351A (en) Direct memory access control circuit
JPS6432348A (en) Memory access system
JPH0348542B2 (en)
JPH02136921A (en) Register access system
JPS63126047A (en) Memory control system
JPS60142438A (en) External storage device for data log
JPH04248655A (en) Information processor