JPS6341967A - Direct memory access transfer circuit - Google Patents

Direct memory access transfer circuit

Info

Publication number
JPS6341967A
JPS6341967A JP18608186A JP18608186A JPS6341967A JP S6341967 A JPS6341967 A JP S6341967A JP 18608186 A JP18608186 A JP 18608186A JP 18608186 A JP18608186 A JP 18608186A JP S6341967 A JPS6341967 A JP S6341967A
Authority
JP
Japan
Prior art keywords
address
circuit
transfer
pattern data
update
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
JP18608186A
Other languages
Japanese (ja)
Inventor
Toshiaki Usui
敏彰 臼井
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 JP18608186A priority Critical patent/JPS6341967A/en
Publication of JPS6341967A publication Critical patent/JPS6341967A/en
Pending legal-status Critical Current

Links

Landscapes

  • Bus Control (AREA)

Abstract

PURPOSE:To attain the transfer with a simple constitution without using a CPU for an address control by executing the direct access transfer between memories with a hardware at a pattern image. CONSTITUTION:In a head address memory circuit 3, first, a head address HA of pattern data by a main memory device 2 is stored, after the transfer is started, only the setting address of an updating address setting circuit 4 is operated and updated from the head address HA and the data are transferred to the main memory device 2. At this time, the updating address setting circuit 4 generates an updating address so that the pattern data of a memory 1 can be preserved. Namely, when the data are stored up to an address width a1 of the pattern data, the updating address setting circuit 4 sets a transfer address width (a2 + a3) of the main memory device 2 except the address width of the pattern data and updates it successively from a new address. Thus, the address control to transfer original picture pattern data to the main memory device 2 can be executed.

Description

【発明の詳細な説明】 〔概 要〕 本願は、画像等の原画パターンデータを主記憶装置の特
定傾城に転送するような場合に、転送先の広域メモリ領
域を制御することができる直接メモリアクセス(DMA
)転送回路を開示するものである。
[Detailed Description of the Invention] [Summary] The present application provides a direct memory access method that can control the wide area memory area of the transfer destination when original pattern data such as images is transferred to a specific storage area of the main storage device. (DMA
) discloses a transfer circuit.

〔産業上の利用分野〕[Industrial application field]

本発明は、直接メモリアクセス転送回路に関し、特に画
像データ等のパターンデータを広域の主記憶装置に直接
格納する際の転送アドレス制御回路に関するものである
The present invention relates to a direct memory access transfer circuit, and more particularly to a transfer address control circuit when pattern data such as image data is directly stored in a wide area main storage device.

画像データ等のパターンデータが格納されているメモリ
からそのパターンデータを読み出す場合、そのデータビ
ットの周囲のデータを使用して処理を行うという方法が
多く取られているが、パターンイメージで格納されたデ
ータであれば周囲データの抽出が容易に行われるのでパ
ターンイメージとして転送することが望ましい。
When reading pattern data such as image data from a memory in which the data is stored, the most common method is to perform processing using data surrounding the data bits. If it is data, it is desirable to transfer it as a pattern image because surrounding data can be easily extracted.

〔従来の技術〕[Conventional technology]

従来のパターンデータを転送する場合のメモリアクセス
方式としては、cpu <ファームウェア)の制御下で
転送先のアドレスをインクリメントしながらドツト毎に
順次格納して行く方式が採られている。
The conventional memory access method for transferring pattern data is to sequentially store each dot while incrementing the transfer destination address under the control of the CPU (firmware).

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

しかしながら、かかる従来の方式では、パターンイメー
ジを何等意識していないので、主記憶装置にはバラバラ
に格納され、パターンイメージとして一括して主記憶装
置に格納することができなかった。そのため、原画パタ
ーン中のビットの周囲のデータを抽出することが困難で
あった。
However, in such a conventional method, since the pattern image is not considered in any way, it is stored separately in the main memory, and cannot be stored all at once as a pattern image in the main memory. Therefore, it has been difficult to extract data surrounding the bits in the original pattern.

従って、本発明の目的はパターンイメージを崩さずにデ
ータ転送を実現する直接メモリアクセス転送回路を得る
ことである。
Therefore, an object of the present invention is to obtain a direct memory access transfer circuit that realizes data transfer without destroying the pattern image.

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

上記の目的を達成するため、パターンデータを格納して
いるメモリから主記憶装置へデータ転送するときの本発
明に係る直接メモリアクセス転送回路が第1図に原理的
に示されており、1はメモリ、2は主記憶装置、3は主
記憶装置2でのパターンデータの先頭アドレスを記憶す
る先頭アドレス記憶回路、4はパターンデータを保存す
るように先頭アドレス記憶回路3の更新アドレスを設定
する更新アドレス設定回路、5は先頭アドレス記憶回路
3及び更新アドレス設定回路4の両アドレス値を演算し
て先頭アドレス記憶回路3に設定する演算回路、である
To achieve the above object, a direct memory access transfer circuit according to the present invention when transferring data from a memory storing pattern data to a main memory device is shown in principle in FIG. Memory, 2 is a main memory, 3 is a start address storage circuit that stores the start address of pattern data in the main memory 2, and 4 is an update that sets an update address of the start address storage circuit 3 to save the pattern data. An address setting circuit 5 is an arithmetic circuit that calculates both the address values of the start address storage circuit 3 and the update address setting circuit 4 and sets them in the start address storage circuit 3.

〔作 用〕[For production]

第1図及び本発明による転送イメージを図式化した第2
図において、先頭アドレス記憶回路3には最初、主記憶
装置2でのパターンデータの先頭アドレスHAが記憶さ
れており、転送開始後、その先頭アドレスHAから更新
アドレス設定回路4の設定アドレスだけ演算回路5で演
算更新しながら主記憶装置2にデータ転送して行く、こ
のとき、更新アドレス設定回路4はメモリ1のパターン
データが保存されるように更新アドレスを生成する。
Fig. 1 and Fig. 2 illustrating the transfer image according to the present invention.
In the figure, the start address storage circuit 3 initially stores the start address HA of the pattern data in the main memory 2, and after the start of transfer, the arithmetic circuit 3 only stores the setting address of the update address setting circuit 4 from the start address HA. 5, the data is transferred to the main storage device 2 while being updated. At this time, the update address setting circuit 4 generates an update address so that the pattern data in the memory 1 is saved.

即ち、パターンデータのアドレス幅a1まで格納された
とき、更新アドレス設定回路4がパターンデータのアド
レス幅以外の主記憶装置2の転送アドレス幅(a2+2
3)を設定して新たなアドレスから再び順次更新して行
く、これにより、原画パターンデータを主記憶袋M2に
転送するためのアドレス制御が行える。
That is, when the address width a1 of the pattern data is stored, the update address setting circuit 4 sets the transfer address width (a2+2) of the main memory 2 other than the address width of the pattern data.
3) and sequentially update again from the new address. This allows address control for transferring the original pattern data to the main memory bag M2.

〔実施例〕〔Example〕

以下、第1図及び第2図に示した本発明の直接メモリア
クセス転送回路を第3図に示した実施例に沿って説明す
る。
Hereinafter, the direct memory access transfer circuit of the present invention shown in FIGS. 1 and 2 will be explained along with the embodiment shown in FIG. 3.

第3図において、第1図の先頭アドレス記憶回路3は例
えばレジスタであり、この先頭アドレスはCPUによっ
て予め設定される。更新アドレス設定回路4は、パター
ンデータが一連に続く場合に「1」を格納し、1つ飛び
に転送する場合には「2」を格納するような更新用レジ
スタ41と、パターンデータのアドレス幅以外の主記憶
装置における転送アドレス幅を記憶したアドレス幅用レ
ジスタ42と、パターンデータのアドレス幅だけ更新し
たときに更新用レジスタ41からアドレス幅用レジスタ
42に切り替えるセレクタ43と、で構成されている。
In FIG. 3, the start address storage circuit 3 of FIG. 1 is, for example, a register, and this start address is set in advance by the CPU. The update address setting circuit 4 includes an update register 41 that stores "1" when the pattern data continues, and stores "2" when the pattern data is transferred one by one, and an update register 41 that stores the address width of the pattern data. It is composed of an address width register 42 that stores the transfer address width in the main memory other than the address width register 42, and a selector 43 that switches from the update register 41 to the address width register 42 when only the address width of pattern data is updated. .

また、演算回路5は先頭アドレス記憶回路3の出力と更
新アドレス設定回路4の出力とを加減算する加減算回路
である。
Further, the arithmetic circuit 5 is an addition/subtraction circuit that adds and subtracts the output of the head address storage circuit 3 and the output of the update address setting circuit 4.

次に動作を説明する。Next, the operation will be explained.

今、主記憶装置2にはメモリ1の原画パターンを転送す
るための領域を予め確保しておき、セレクタ43は、C
PU (図示せず)により転送開始時においてレジスタ
41を選択し、転送が第2図に示すパターンデータのア
ドレス幅a1の終了点Aに達した場合にレジスタ42を
選択するように制御される。
Now, an area for transferring the original pattern in the memory 1 is secured in advance in the main storage device 2, and the selector 43
A PU (not shown) selects register 41 at the start of transfer, and selects register 42 when transfer reaches end point A of address width a1 of pattern data shown in FIG.

従って、転送開始時、例えばレジスタ41に「1」が記
憶されている場合は、レジスタ3が示す先頭アドレスに
「1」が加減算回路5で演算される。この場合、加減算
回路5が加算回路であれば、「1」が加算される。
Therefore, at the start of transfer, if "1" is stored in the register 41, for example, "1" is calculated at the start address indicated by the register 3 in the addition/subtraction circuit 5. In this case, if the addition/subtraction circuit 5 is an addition circuit, "1" is added.

こうして転送が点Aまで進むと、CPUの制御によりセ
レクタ43はレジスタ41からレジスタ42に切り替わ
り、第2図に示した転送アドレス幅a2とa3とのアド
レス和がレジスタ3のアドレス値に加算されて更新され
、再び一連の転送が行われる。
When the transfer progresses to point A in this way, the selector 43 is switched from register 41 to register 42 under the control of the CPU, and the address sum of transfer address widths a2 and a3 shown in FIG. 2 is added to the address value of register 3. The data is updated and the series of transfers is performed again.

このようにしてメモリ1の原画パターンが主記憶装置2
にパターンイメージで転送されることになる。
In this way, the original pattern in memory 1 is stored in main memory 2.
will be transferred as a pattern image.

尚、更新用レジスタ41に記憶されるアドレス値は、種
々変更することができる。これは、例えばデータ転送が
8ビツト(1バイト)構成のメモIJ 1から8ビツト
構成の主記憶装置2へ行われるときには、記憶されるア
ドレス値は「1」でよいが、32ビツト(4バイト)構
成の主記憶装置2へ行われる場合には、4回のデータ転
送の後、アドレス更新が行われるので、「4」が記憶さ
れることとなるからである。
Note that the address value stored in the update register 41 can be changed in various ways. This means that, for example, when data is transferred from an 8-bit (1 byte) memory memory IJ1 to an 8-bit main memory 2, the stored address value may be "1"; ) configuration, the address is updated after four data transfers, so "4" will be stored.

また、演算回路5が減算回路である場合は、第2図で言
えば、点Aが先頭アドレスHAの反対側(アドレス幅a
3の側)に在ることになり、逆転したイメージで主記憶
装置2に格納されることとなる。この場合、主記憶装置
2に転送されるデータは、加算回路の場合に対しLSB
 (最下位ビット)とMSB (最上位ビット)とが反
対になる。
In addition, when the arithmetic circuit 5 is a subtraction circuit, in FIG. 2, point A is on the opposite side of the start address HA (address width a
3 side), and will be stored in the main storage device 2 as an inverted image. In this case, the data transferred to the main memory device 2 is LSB compared to the case of an adder circuit.
(least significant bit) and MSB (most significant bit) are reversed.

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

以上のように、本発明の直接メモリアクセス転送回路に
よれば、パターンイメージでメモリ間の直接アクセス転
送をハードウェアで行っているので、アドレス制御Jに
CPUを用いず、簡易な構成で転送できるという効果が
得られる。
As described above, according to the direct memory access transfer circuit of the present invention, since the direct access transfer between memories is performed by hardware using a pattern image, transfer can be performed with a simple configuration without using a CPU for address control J. Effects can be obtained.

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

第1図は本発明に係る直接メモリアクセス転送回路の原
理ブロック図、 第2図は本発明による転送イメージを示す図、第3図は
第1図の直接メモリアクセス転送回路の原理ブロック図
の実施例を示す回路図、である。 第1図乃至第3図において、 1はメモリ、 2は主記憶装置、 3は先頭アドレス記憶回路、 4は更新アドレス設定回路、 5は演算回路、 41.42はレジスタ、 43はセレクタ、である。 尚、図中、同一符号は同−又は相当部分を示す。 特 許出願人  冨 士 通 株式会社代理人弁理士 
 森 1)寛 (外1名)本弁明にまる転送イメージえ
示す図 第2図
Figure 1 is a principle block diagram of a direct memory access transfer circuit according to the present invention, Figure 2 is a diagram showing a transfer image according to the present invention, and Figure 3 is an implementation of the principle block diagram of the direct memory access transfer circuit of Figure 1. 1 is a circuit diagram showing an example. 1 to 3, 1 is a memory, 2 is a main memory, 3 is a start address storage circuit, 4 is an update address setting circuit, 5 is an arithmetic circuit, 41 and 42 are registers, and 43 is a selector. . In the drawings, the same reference numerals indicate the same or corresponding parts. Patent applicant Tsuji Fuji Agent Patent Attorney Co., Ltd.
Mori 1) Hiroshi (1 other person) Figure 2 shows the transfer image for this defense.

Claims (4)

【特許請求の範囲】[Claims] (1)パターンデータを格納しているメモリ(1)から
主記憶装置(2)へデータ転送するときの直接メモリア
クセス転送回路であって、前記主記憶装置(2)での前
記パターンデータの先頭アドレスを記憶する先頭アドレ
ス記憶回路(3)と、 前記パターンデータを保存するように前記先頭アドレス
の更新アドレスを設定する更新アドレス設定回路(4)
と、 前記先頭アドレスと更新アドレスの値を演算して前記先
頭アドレス記憶回路(3)に設定する演算回路(5)と
、 を備えたことを特徴とする直接メモリアクセス転送回路
(1) A direct memory access transfer circuit for transferring data from a memory (1) storing pattern data to a main storage device (2), the beginning of the pattern data in the main storage device (2). A start address storage circuit (3) that stores an address; and an update address setting circuit (4) that sets an update address of the start address so as to save the pattern data.
A direct memory access transfer circuit comprising: a calculation circuit (5) that calculates values of the start address and the update address and sets them in the start address storage circuit (3).
(2)前記更新アドレス設定回路(4)が、連続更新す
るためのアドレスを記憶している更新用レジスタ(41
)と、前記パターンデータのアドレス幅以外の前記主記
憶装置(2)の転送用アドレス幅を記憶したアドレス幅
用レジスタ(42)と、前記パターンデータのアドレス
幅だけ更新したときに前記更新用レジスタ(41)から
前記アドレス幅用レジスタ(42)に切り替えるセレク
タ(43)と、で構成されている特許請求の範囲第1項
記載の直接メモリアクセス転送回路。
(2) The update address setting circuit (4) stores an update register (41) that stores an address for continuous update.
), an address width register (42) that stores a transfer address width of the main memory (2) other than the address width of the pattern data, and an address width register (42) that stores a transfer address width of the main memory (2) other than the address width of the pattern data; 2. The direct memory access transfer circuit according to claim 1, further comprising a selector (43) for switching from (41) to the address width register (42).
(3)前記演算回路(5)が、前記先頭アドレス記憶回
路からのアドレスに前記更新アドレス設定回路(4)の
アドレスを加算する加算回路である特許請求の範囲第1
項又は第2項記載の直接メモリアクセス転送回路。
(3) Claim 1, wherein the arithmetic circuit (5) is an addition circuit that adds the address of the update address setting circuit (4) to the address from the start address storage circuit.
The direct memory access transfer circuit according to item 1 or 2.
(4)前記演算回路(5)が、前記先頭アドレス記憶回
路からのアドレスから前記更新アドレス設定回路のアド
レスを減算する減算回路である特許請求の範囲第1項又
は第2項記載の直接メモリアクセス転送回路。
(4) Direct memory access according to claim 1 or 2, wherein the arithmetic circuit (5) is a subtraction circuit that subtracts the address of the update address setting circuit from the address from the start address storage circuit. transfer circuit.
JP18608186A 1986-08-07 1986-08-07 Direct memory access transfer circuit Pending JPS6341967A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP18608186A JPS6341967A (en) 1986-08-07 1986-08-07 Direct memory access transfer circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP18608186A JPS6341967A (en) 1986-08-07 1986-08-07 Direct memory access transfer circuit

Publications (1)

Publication Number Publication Date
JPS6341967A true JPS6341967A (en) 1988-02-23

Family

ID=16182043

Family Applications (1)

Application Number Title Priority Date Filing Date
JP18608186A Pending JPS6341967A (en) 1986-08-07 1986-08-07 Direct memory access transfer circuit

Country Status (1)

Country Link
JP (1) JPS6341967A (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60124764A (en) * 1983-12-12 1985-07-03 Minolta Camera Co Ltd Direct memory access controller

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60124764A (en) * 1983-12-12 1985-07-03 Minolta Camera Co Ltd Direct memory access controller

Similar Documents

Publication Publication Date Title
JPS6341967A (en) Direct memory access transfer circuit
JPS6118023A (en) Key input controller
JP2611065B2 (en) Data transfer method
JP3497852B1 (en) Calculation method and calculation circuit
JPH0851627A (en) Device for feeding operands to (n+1) operators provided in systolic architecture
JP2535817B2 (en) Processor
JPH0895850A (en) Microprocessor
JP2006135825A (en) Image interpolation processing apparatus
JPS62279787A (en) Noise eliminating device for flat image pickup element fix pattern
EP1120958A2 (en) Polynomial based multi-level screening
JPH0435792B2 (en)
JPS6141273A (en) Picture processor
JPH03263275A (en) Mask processor
JP2867482B2 (en) Image processing device
JPH01113806A (en) Sequence controller
JPS6243781A (en) Image processor
JPH0512114A (en) Cache memory
JPH01295568A (en) Picture element synthesis processing unit
JPH08339177A (en) Picture processing device
JPH07129398A (en) Microprocessor
JPS60225283A (en) Histogram arithmetic circuit
JPH02100095A (en) External character registration device
JP2004151915A (en) Data processor
JPH03282928A (en) Address control type information processor
JPH09191233A (en) Storage device for filter operation