JPS63137351A - Dmac device with logical operation function - Google Patents

Dmac device with logical operation function

Info

Publication number
JPS63137351A
JPS63137351A JP28471786A JP28471786A JPS63137351A JP S63137351 A JPS63137351 A JP S63137351A JP 28471786 A JP28471786 A JP 28471786A JP 28471786 A JP28471786 A JP 28471786A JP S63137351 A JPS63137351 A JP S63137351A
Authority
JP
Japan
Prior art keywords
data
register
logical operation
transferred
transfer
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
JP28471786A
Other languages
Japanese (ja)
Inventor
Osamu Takahashi
治 高橋
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP28471786A priority Critical patent/JPS63137351A/en
Publication of JPS63137351A publication Critical patent/JPS63137351A/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 execute data transfer while executing logical operation and to attain data transfer without applying load to a CPU by adding a logical operation function to a DMAC. CONSTITUTION:Data are transferred from a data block 21a to a data register 14a by a 1st data transfer 22 and then transferred from a data block 21b to a data register 14b by a 2nd data transfer 24. At the time of a 3rd data transfer, logical operation between both transfer data is executed by a logical operation circuit 15 and the operated result is transferred to a data block 21c for destination data.

Description

【発明の詳細な説明】 産業上の利用分野 本発明は、共通の中央処理装置に制御される複数の記憶
装置(メモリ)間のデータ伝送について、この中央処理
装置を介さず直接メモリ同士で行なう場合(ダイレクト
メモリアクセス)等に使用する論理演算機能付DMAC
装置に関する。
[Detailed Description of the Invention] Industrial Application Field The present invention relates to data transmission between a plurality of storage devices (memories) controlled by a common central processing unit, directly between the memories without going through this central processing unit. DMAC with logical operation function used for cases (direct memory access), etc.
Regarding equipment.

従来の技術 従来この種のDMAC(ダイレクトメモリアクセス制御
)装置は、データの内容を変化させないで、メモリとメ
モリ間、または、メモリと入出力装置間のデータ転送間
に使用されていた。
2. Description of the Related Art Conventionally, this type of DMAC (direct memory access control) device has been used during data transfer between memories or between memories and input/output devices without changing the data contents.

発明が解決しようとする問題点 しかしながら、上記従来のDMAC装置では、データの
演算が不可能であるため、演算は中央処理装置(CPU
)を介して行なっていたので、CPUに余分の負担をか
けているという問題があった。
Problems to be Solved by the Invention However, in the above-mentioned conventional DMAC device, data calculation is not possible, so the calculation is performed by the central processing unit (CPU).
), there was a problem in that it placed an extra burden on the CPU.

本発明は上記従来の問題を解決するものであり、CPU
に負担をかけず、データの演算をしながらデータ転送の
できる優れた論理演算機能付DMAC装置を提供するこ
とを目的とするものである。
The present invention solves the above-mentioned conventional problems, and
It is an object of the present invention to provide a DMAC device with an excellent logic operation function that can transfer data while performing data operations without placing a burden on the computer.

問題点を解決するための手段 本発明は、上記目的を達成するため、DMAC装置内に
論理演算回路、データレジスタを設け、中央処理装置に
負担をかけずにデータ演算が可能になるよう構成したも
のである。
Means for Solving the Problems In order to achieve the above object, the present invention provides a logic operation circuit and a data register within the DMAC device, and is configured to enable data operations without placing a burden on the central processing unit. It is something.

作    用 本発明は上記構成により、DMAC装置に演算機能を付
加することとなり、データ演算をしながら、データ転送
ができる、特にCPUバスと、DMAC装置によるデー
タ転送バスを分離した場合に顕著である。
Effect: With the above configuration, the present invention adds an arithmetic function to the DMAC device, making it possible to transfer data while performing data arithmetic. This is particularly noticeable when the CPU bus and the data transfer bus by the DMAC device are separated. .

実施例 第1図は本発明の一実施例による論理演算機能付DMA
C装置のブロック図である。第1図において、11はデ
ータ転送モード設定レジスタであり、演算の種類、ライ
ト、リード等を設定するものである。12はワードカウ
ントレジスタであり、データ転送数を設定するものであ
る。13はメモリアドレスレジスタであり、複数設けら
れていて、第2図のデータブロック21a〜21Cによ
りレジスタ13の数が異なるものである。 14a、1
4bはデータレジスタであり、データ転送時データを一
時退避するものである。15は論理演算回路であり、デ
ータレジスタ間の演算を行なうものである。
Embodiment FIG. 1 shows a DMA with logical operation function according to an embodiment of the present invention.
FIG. 2 is a block diagram of a C device. In FIG. 1, numeral 11 is a data transfer mode setting register, which sets the type of operation, write, read, etc. A word count register 12 is used to set the number of data transfers. A plurality of memory address registers 13 are provided, and the number of registers 13 differs depending on the data blocks 21a to 21C in FIG. 2. 14a, 1
4b is a data register, which temporarily saves data during data transfer. Reference numeral 15 denotes a logic operation circuit, which performs operations between data registers.

第2図は本実施例を使用し、論理演算をしながらデータ
転送をする例を示すブロック図である。
FIG. 2 is a block diagram showing an example of data transfer while performing logical operations using this embodiment.

第2図だおいて、218.21bはソースデータのある
データブロック、21Cはデイストネーションデータを
データのデータブロックである。これらデータブロック
212〜21Cはメモリ装置または入出力装置でアリ、
重複していても全く別個でも良い。
In FIG. 2, 218.21b is a data block containing source data, and 21C is a data block containing destination data. These data blocks 212 to 21C are memory devices or input/output devices.
They may overlap or be completely separate.

次に本発明の実施例について説明する。Next, examples of the present invention will be described.

第1図、第2図において、まずデータは1回目のデータ
転送22によりデータブロック21aからデータレジス
タ14aへ転送され、2回目のデータ転送23によりデ
ータブロック21bからデータレジスタ14bへ転送さ
れ、3回目のデータ転送24時、両者のデータの論理演
算が実施されてデイストネーションデータをデータのデ
ータブロック21Gに転送される。
In FIGS. 1 and 2, data is first transferred from the data block 21a to the data register 14a by the first data transfer 22, transferred from the data block 21b to the data register 14b by the second data transfer 23, and then transferred to the data register 14b by the third data transfer 22. At data transfer 24, a logical operation is performed on both data and the destination data is transferred to the data block 21G.

第2図では、3サイクルで一単位のデータ転送を行なっ
ている場合について説明をしたが、通常のDMA転送(
ダイレクトメモリアクセス転送)、すなわちメモリとメ
モリ間、メモリと入出力装置間でも可能である。また、
データレジスタ14a。
In Figure 2, we explained the case where one unit of data is transferred in three cycles, but normal DMA transfer (
direct memory access transfer), that is, between memories and between memories and input/output devices. Also,
Data register 14a.

14bに固定データを入力して同一データをデータ転送
できる。この場合は、1サイクルでデータ転送される。
Fixed data can be input to 14b and the same data can be transferred. In this case, data is transferred in one cycle.

演算機能には、DRI 、DB2 、DRI 、DB2
 、ノDRI 、 DH,2、DRI 、 DB、2 
、 DRI −1i、r−DB2 。
Arithmetic functions include DRI, DB2, DRI, DB2
, ノDRI, DH,2, DRI, DB,2
, DRI-1i, r-DB2.

DRI +DR2、DRI +DR2、DR,1+DR
2、DRI +■π2. DRi$DR2,万RteD
Rz、DR[9Dπiが考えられる。
DRI +DR2, DRI +DR2, DR, 1+DR
2, DRI +■π2. DRi$DR2, million RteD
Rz, DR[9Dπi can be considered.

ただし、「・」は論理積(AND)、r+Jは論理和(
OR)、rIEIJは排他的論理和を示している。上記
論理演算の内容により、1サイクルから3サイクルのデ
ータ転送のいずれかを選択する。
However, "・" is a logical product (AND), and r+J is a logical sum (
OR), rIEIJ indicates exclusive OR. Depending on the content of the logical operation, one of the 1-cycle to 3-cycle data transfers is selected.

このように、本実施例は、CPUに負担をかけず、演算
をしながら、データ転送が可能となる。
In this way, in this embodiment, data can be transferred while performing calculations without placing a burden on the CPU.

特に、CPUバスとDMACによるデータ転送専用バス
を分離することにより、いっそう効果が顕著となる。
In particular, by separating the CPU bus and the bus dedicated to data transfer by DMAC, the effect becomes even more remarkable.

発明の効果 本発明は上記実施例より明らかなように、DMACに論
理演算機能を追加したので、論理演算をしながらデータ
転送をすることができるので、CPUに負担をかけずに
データ転送ができるという効果を有する。
Effects of the Invention As is clear from the above embodiments, the present invention adds a logical operation function to the DMAC, so data can be transferred while performing logical operations, so data can be transferred without putting a burden on the CPU. It has this effect.

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

第1図は本発明の一実施例による論理演算機能付DMA
C装置のブロック図、第2図は本実施例を使用し、論理
演算をしながらデータ転送をする例を示すブロック図で
ある。 11・・・データ転送モード(MSR)、 12・・・
ワードカウントレジスタ(We R)、13・・・メモ
リアドレスレジスタ(MAR1〜3)、14a、14b
・=データレジスタ(DRI、2)、15 ・・・論理
演算回路、21a〜2IC−データブロック(SL、S
2.D)。 代理人の氏名 弁理士 中 尾 敏 男 ほか1名tt
W 第2図
FIG. 1 shows a DMA with logical operation function according to an embodiment of the present invention.
FIG. 2 is a block diagram of the C device, showing an example of data transfer while performing logical operations using this embodiment. 11...Data transfer mode (MSR), 12...
Word count register (We R), 13...Memory address register (MAR1-3), 14a, 14b
・=Data register (DRI, 2), 15...Logic operation circuit, 21a to 2IC-data block (SL, S
2. D). Name of agent: Patent attorney Toshio Nakao and one other persontt
W Figure 2

Claims (1)

【特許請求の範囲】[Claims] 演算の種類、記録再生を設定するデータ転送モード設定
レジスタと、データ転送数を設定するワードカウントレ
ジスタと、データ転送時データを一時退避させる複数の
データレジスタと、これらデータレジスタ間の論理演算
を行なう論理演算回路と、この論理演算回路のデータを
バスを介してソースデータおよびデイストネーションデ
ータをデータ転送するデータブロックと、これらデータ
ブロック数に応じてアドレスを記憶するメモリアドレス
レジスタとを備え、上記データ転送モード設定レジスタ
と上記ワードカウントレジスタの制御により上記データ
レジスタおよび論理演算回路を介して上記データブロッ
ク相互のデータ転送を行なうことを特徴とする論理演算
機能付DMAC装置。
A data transfer mode setting register that sets the type of operation and recording/playback, a word count register that sets the number of data transfers, multiple data registers that temporarily save data during data transfer, and logical operations between these data registers. A logic operation circuit, a data block for transferring source data and destination data of the logic operation circuit via a bus, and a memory address register for storing addresses according to the number of these data blocks, A DMAC device with a logic operation function, wherein data is transferred between the data blocks via the data register and the logic operation circuit under control of the data transfer mode setting register and the word count register.
JP28471786A 1986-11-28 1986-11-28 Dmac device with logical operation function Pending JPS63137351A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP28471786A JPS63137351A (en) 1986-11-28 1986-11-28 Dmac device with logical operation function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP28471786A JPS63137351A (en) 1986-11-28 1986-11-28 Dmac device with logical operation function

Publications (1)

Publication Number Publication Date
JPS63137351A true JPS63137351A (en) 1988-06-09

Family

ID=17682067

Family Applications (1)

Application Number Title Priority Date Filing Date
JP28471786A Pending JPS63137351A (en) 1986-11-28 1986-11-28 Dmac device with logical operation function

Country Status (1)

Country Link
JP (1) JPS63137351A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4815491B2 (en) * 2005-09-29 2011-11-16 アップル インコーポレイテッド Integrated DMA

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4815491B2 (en) * 2005-09-29 2011-11-16 アップル インコーポレイテッド Integrated DMA
US8566485B2 (en) 2005-09-29 2013-10-22 Apple Inc. Data transformation during direct memory access

Similar Documents

Publication Publication Date Title
JPH0760423B2 (en) Data transfer method
CA2478570A1 (en) Data processing apparatus and system and method for controlling memory access
JPS63137351A (en) Dmac device with logical operation function
JPH11312085A (en) Processor
JPH1091593A (en) Data processor provided with microprocessor and optional calculation unit
JP3168845B2 (en) Digital signal processor
JPH10334038A (en) Data transfer device
JP2657947B2 (en) Data processing device
JPH0535472A (en) Microcomputer
JPH0594366A (en) Microcomputer
JP3149436B2 (en) Microprocessor
JPH04160458A (en) Dma controller peripheral circuit
JPH0567035A (en) Data alignment system for dma transfer
JPH0521262B2 (en)
JPS63225846A (en) Multiport memory with address conversion mechanism
JPS61143850A (en) Processor
JPS602708B2 (en) Single-chip computer addressing scheme
JPH0545978B2 (en)
JPH03149656A (en) Arithmetic circuit
JPH0234017A (en) Digital signal processor
JPS61193230A (en) Magnetic disk controller
JPS61120262A (en) Inter-memory intelligent dma controller
JPS62241057A (en) Circuit for increasing input/output processing speed
JPS62274346A (en) Memory access circuit
JPH01113806A (en) Sequence controller