JPH01201760A - Dma controller - Google Patents

Dma controller

Info

Publication number
JPH01201760A
JPH01201760A JP2700888A JP2700888A JPH01201760A JP H01201760 A JPH01201760 A JP H01201760A JP 2700888 A JP2700888 A JP 2700888A JP 2700888 A JP2700888 A JP 2700888A JP H01201760 A JPH01201760 A JP H01201760A
Authority
JP
Japan
Prior art keywords
transfer
data
information
pla
dma
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.)
Granted
Application number
JP2700888A
Other languages
Japanese (ja)
Other versions
JPH0831080B2 (en
Inventor
Kokichi Taniai
谷合 高吉
Yasuhiro Tanaka
康浩 田中
Tadashi Saito
正 斎藤
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
Fujitsu Microcomputer Systems Ltd
Original Assignee
Fujitsu Ltd
Fujitsu Microcomputer Systems 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, Fujitsu Microcomputer Systems Ltd filed Critical Fujitsu Ltd
Priority to JP63027008A priority Critical patent/JPH0831080B2/en
Priority to DE68927015T priority patent/DE68927015D1/en
Priority to EP89400344A priority patent/EP0328450B1/en
Priority to US07/306,952 priority patent/US5119487A/en
Priority to KR1019890001426A priority patent/KR920009448B1/en
Publication of JPH01201760A publication Critical patent/JPH01201760A/en
Publication of JPH0831080B2 publication Critical patent/JPH0831080B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Bus Control (AREA)

Abstract

PURPOSE:To attain high speed data transfer by providing a programmable logic array which generates and outputs control information of data transfer by means of a random logic in correspondence with an input condition. CONSTITUTION:A data handler 16 is controlled by a micro instruction from a micro sequencer 14 and transfers data between a system data bus 18, a system address bus 19 and an internal data bus 17. The programmable logic array (PLA) 11 for gate control receives a transfer mode from a transfer mode register 10 and a transfer address and the number of bytes from an arithmetic and logic unit 15, extracts information required for transfer in a subsequent cycle, and gives information to the micro sequencer 14 and the data handler 16. The output of a PLA 11 is transmitted to a state instruction circuit which is not illustrated and the content of the state instruction circuit is fed back to the PLA 11, whereby transfer information are sequentially generated.

Description

【発明の詳細な説明】 〔概要〕 DMA制御装置、特にCPUを有するデータ処理装置に
おいてCPUがシステムバスの専有権を放棄している期
間に記憶装置と入出力装置との間でCPUを介さず直接
にデータを高速で転送するDMAを制御するDMA制御
装置に関し、マイクロプログラムによる条件判断の負担
を軽減すると共にランダム論理のハードウェアの大規模
化を防止し、データ篭送のビット長が大きい場合でも高
速なデータ転送を可能とすることを目的とし、 DMAによるデータ転送を制御するDMA制御装置にお
いて、データ転送の制御用情報を人力条件に応答してラ
ンダム論理により生成出力するプログラマブル・ロジッ
ク・アレイと、該プログラマブル・ロジック争アレイか
らの信号に基づいて次の転送状態を指示する情報を更新
すると共に該プログラマブル・ロジック・アレイに供給
する状態指示回路とを備え、該プログラマブル・ロジッ
ク・アレイは、該状態指示回路からの情報を該入力条件
の一部として該制御用情報を順次生成出力するように構
成する。
[Detailed Description of the Invention] [Summary] In a DMA control device, especially a data processing device having a CPU, communication between a storage device and an input/output device without using the CPU during a period when the CPU relinquishes exclusive rights to the system bus is possible. Regarding a DMA control device that controls DMA that directly transfers data at high speed, it reduces the burden of condition judgment by a microprogram and prevents the hardware of random logic from increasing in size, and when the bit length of data transfer is large. However, with the aim of enabling high-speed data transfer, a DMA control device that controls data transfer by DMA uses a programmable logic array that generates and outputs data transfer control information using random logic in response to human input conditions. and a state indicating circuit that updates and supplies information indicating the next transfer state to the programmable logic array based on a signal from the programmable logic array, the programmable logic array comprising: The control information is sequentially generated and output using information from the state indicating circuit as part of the input conditions.

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

本発明はDMA (ダイレクト・メモリ・アクセス)制
御装置、特にCPU (中央処理装置)を有するデータ
処理装置においてCPLIがシステムバスの専有様を放
棄している期間に記憶装置と入出力装置との間でCPt
Jを介さず直接にデータを高速で転送するDMAを制御
するD M A I制御装置に関する。
The present invention is directed to a DMA (Direct Memory Access) control device, particularly a data processing device having a CPU (Central Processing Unit). CPt
The present invention relates to a DMA I control device that controls a DMA that directly transfers data at high speed without going through a J.

〔従来の技術〕[Conventional technology]

従来のD M A ill ’a装置は、DMAによる
データ転送をマイクロプログラム又はランダム論理を用
いて制御していた。しかし、従来のDMAでは、データ
転送のビット長が例えば8.16ビツトと小さいため、
アドレスの制御及びどのバイトをアクセスするかのバイ
ト制御が比較的簡単である。
Conventional DMA devices control data transfer by DMA using microprograms or random logic. However, in conventional DMA, the bit length of data transfer is as small as 8.16 bits, so
Address control and byte control of which byte to access is relatively simple.

従って、D M A III tllにマイクロプログ
ラムを用いた場合の転送速度の低下及びランダム論理を
用いた場合のハードウェア(物量)増大の問題は、特に
大きな問題ではなかった。
Therefore, the problems of a reduction in transfer speed when a microprogram is used for the DMA III tll and an increase in hardware (amount of material) when a random logic is used are not particularly serious problems.

しかし、最近のDMAでは、データ転送のビット長が例
えば32ビツトと大きくなって来ており、システム全体
も大規模化して来ている。これに伴い、より複雑な条件
で転送処理を行なう必要が生じて来ている。つまり、ア
ドレスの制御、バイト制御及びこれらの制御を行なうた
めに使用される制御信号の発生出力の制御が非常に複雑
になって来た。このため、ボートサイズ、オペランドサ
イズ、ミスアライン等の組合わせを考慮すると、ビット
長が32ビツトのDMAを制御するDMA制御装置の場
合、データ転送の組合わせが4000通り以上考えられ
る。ここで、ボートサイズとは、周辺入出力装置の物理
的なビット長を意味し、オペランドサイズとは、周辺入
出力装置の論理的なビット長を意味する。
However, in recent DMAs, the bit length of data transfer has increased to, for example, 32 bits, and the entire system has become larger in scale. Along with this, it has become necessary to perform transfer processing under more complicated conditions. In other words, address control, byte control, and control of the generation and output of control signals used to perform these controls have become extremely complex. Therefore, when considering combinations of boat size, operand size, misalignment, etc., in the case of a DMA control device that controls DMA with a bit length of 32 bits, more than 4000 combinations of data transfer can be considered. Here, the boat size means the physical bit length of the peripheral input/output device, and the operand size means the logical bit length of the peripheral input/output device.

第5図は、D M A til+ 8にマイクロプログ
ラムを用いた考えられるDMA制御装置の一例の要部を
示す。同図中、40は要求制御部、41はマイクロプロ
グラムを格納しているマイクロシーケンサ、42はアド
レスレジスタ、43はバスコントローラである。
FIG. 5 shows the main parts of an example of a possible DMA control device using a microprogram in DMA til+8. In the figure, 40 is a request control section, 41 is a microsequencer storing a microprogram, 42 is an address register, and 43 is a bus controller.

転送要求が要求制御部40に入来すると、バスコントロ
ーラ43は要求制御部40からの指示に従ってリード/
ライト信号等のシステムバスを制御するための信号を出
力する。他方、アドレスレジスタ42は、要求制御部4
0からの指示に応じたアドレスを出力すると共に、次の
7ドレスをカウントアツプ動作により生成する。マイク
ロシーケンサ41は要求制御部40からの要求に応じて
、データ転送の制御用情報を生成出力する。
When a transfer request enters the request control unit 40, the bus controller 43 performs read/write operations according to instructions from the request control unit 40.
Outputs signals for controlling the system bus, such as write signals. On the other hand, the address register 42
It outputs the address according to the instruction starting from 0, and generates the next 7 addresses by count-up operation. The microsequencer 41 generates and outputs data transfer control information in response to a request from the request control unit 40.

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

従って、データ転送のビット長が例えば32ビツトと大
きい場合、DMA制御にマイクロプログラムを用いたの
では条件判断が複雑であるためにプログラムステップ数
が大となり、条件判断に時間がかかるためにデータ転送
速度が低下するという問題を生じていた。他方、D M
 A ill *にランダム論理を用いたのではハード
ウェアが非常に大規模になってしまい、論理設計上に誤
りが存在していた場合の論理修正は極めて難しいという
問題も生じていた。
Therefore, when the bit length of data transfer is large, for example 32 bits, if a microprogram is used for DMA control, the number of program steps will be large because the condition judgment is complicated, and the data transfer will take time. The problem was that the speed decreased. On the other hand, D.M.
If random logic was used for A ill *, the hardware would be extremely large-scale, and there would also be a problem in that it would be extremely difficult to correct the logic if there was an error in the logic design.

更に、第5図の如き構成の場合、アドレスレジスタ42
のカウントアツプ値を自由に制御可能とする必要がある
が、特にデータ転送のビット長が大きい場合にはカウン
トアツプ値の制御が複雑となり、マイクロシーケンサ4
1によりこの制御を行なうとプログラムステップ数が更
に大となるという問題もあった。
Furthermore, in the case of the configuration shown in FIG. 5, the address register 42
It is necessary to be able to freely control the count-up value of the microsequencer 4, but controlling the count-up value becomes complicated especially when the bit length of data transfer is large.
If this control is carried out using No. 1, there is a problem that the number of program steps becomes even larger.

そこで、本発明はマイクロプログラムによる条件判断の
負担を軽減すると共にランダム論理のハードウェアの大
規模化を防止し、データ転送のビット長が大きい場合で
も高速なデータ転送を可能とすることのできるD M 
A ill tll装置を提供することを目的とする。
Therefore, the present invention reduces the burden of condition judgment by microprograms, prevents the hardware of random logic from increasing in size, and enables high-speed data transfer even when the bit length of data transfer is large. M
The purpose of the present invention is to provide an A ill tll device.

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

第1図は、本発明の原理説明図である。同図中、1はプ
ログラマブル・ロジック・アレイ、2は状態指示回路で
ある。
FIG. 1 is a diagram explaining the principle of the present invention. In the figure, 1 is a programmable logic array, and 2 is a state indicating circuit.

(作用〕 プログラマブル・ロジック・アレイ1は入力条件に応答
してランダム論理によりデータ転送の制御用情報を生成
出力し、状態指示回路2は、プログラマブル・ロジック
・アレイ1からの信号に基づいて次の転送状態を指示す
る情報を更新すると共にプログラマブル拳ロジック・ア
レイ1に供給する。プログラマブル・ロジック・アレイ
1は状態指示回路からの情報を前記入力条件の一部とし
て前記制御用情報を順次生成出力する。
(Operation) The programmable logic array 1 generates and outputs data transfer control information using random logic in response to input conditions, and the state indicating circuit 2 performs the following based on the signal from the programmable logic array 1. The information indicating the transfer state is updated and supplied to the programmable logic array 1.The programmable logic array 1 sequentially generates and outputs the control information using the information from the state instruction circuit as part of the input conditions. .

従って、マイクロプログラムによる条件判断の負担を軽
減すると共にランダム論理のハードウェアの大規模化を
防止し、データ転送のビット長が大きい場合でも高速な
データ転送が可能となる。
Therefore, the burden of condition judgment by the microprogram is reduced, the scale of random logic hardware is prevented from increasing, and high-speed data transfer is possible even when the bit length of data transfer is large.

〔実施例〕〔Example〕

第2図、は、本発明装置の一実施例を示す。同図中、1
0は転送モードレジスタ、11はゲート制御用PLA(
プログラマブル・ロジック・アレイ)部、12はリクエ
ストハンドラ、13はオア回路、14はマイクロシーケ
ンサ、15はALLI (算術論理演算装置)、16は
データハンドラ、17は内部データバス、18はシステ
ムデータバス、19はシステムアドレスバスである。
FIG. 2 shows an embodiment of the apparatus of the present invention. In the same figure, 1
0 is the transfer mode register, 11 is the gate control PLA (
12 is a request handler, 13 is an OR circuit, 14 is a microsequencer, 15 is an ALLI (arithmetic logic unit), 16 is a data handler, 17 is an internal data bus, 18 is a system data bus, 19 is a system address bus.

システムデータバス18およびシステムアドレスバス1
9には、CPU、入出力装置やメモリ装置(いずれも図
示せず)が接続されている。
System data bus 18 and system address bus 1
9 is connected to a CPU, an input/output device, and a memory device (all not shown).

PLA部11は、第1図の原理図に示した様に、PLA
lと状態指示回路2とからなる。このPLA部11が、
本発明の要部を構成する。
As shown in the principle diagram of FIG.
1 and a status indicating circuit 2. This PLA section 11 is
This constitutes the main part of the present invention.

転送モードレジスタ10は、バースト、シングル、デュ
アル、サイクルスチール等の転送モードを登録するため
のものであり、システムデータバス18に接続している
。
The transfer mode register 10 is for registering transfer modes such as burst, single, dual, cycle steal, etc., and is connected to the system data bus 18.

PLA部11は、転送モードレジスタ10からの転送モ
ードに加えて、ALLJ15からの転送アドレスの下位
2ビツトとバイトカウントの下位3ビツトとを供給され
る。PLA部11の出力は、後述する如く、マイクロシ
ーケンサ14及び内部データバス17に供給される。
In addition to the transfer mode from the transfer mode register 10, the PLA section 11 is supplied with the lower two bits of the transfer address and the lower three bits of the byte count from the ALLJ15. The output of the PLA section 11 is supplied to a microsequencer 14 and an internal data bus 17, as will be described later.

リクエストハンドラ12には、DMA!11wJ装置外
部からの転送要求が供給され、転送要求の優先順位の決
定やD M A Ill III装置の内部処理の起!
牽かけて転送要求をDMA制御装置の各部への通柳など
を行なう。リクエストハンドラ12は、前記内部処理の
起動をかけるための転送要求信号 。
The request handler 12 has DMA! Transfer requests are supplied from outside the 11wJ device, and the priorities of the transfer requests are determined and the internal processing of the DMA Ill III device starts!
The transfer request is transmitted to each part of the DMA control device. The request handler 12 receives a transfer request signal for starting the internal processing.

TREQXをオア回路13及びマイクロシーケンサ14
に供給する。なお、リクエストハンドラ12は、例えば
DMAII御装置の外部からの7ボート要求などの転送
以外の処理要求0REQXをマイクロシーケンサ14に
供給する。。
OR circuit 13 and micro sequencer 14 for TREQX
supply to. Note that the request handler 12 supplies the microsequencer 14 with a processing request 0REQX other than transfer, such as a 7-vote request from outside the DMA II control device. .

マイクロシーケンサ14内、にはマ・rクロプログラム
が格納されており、各種マイクロ命令をオア回路、A、
LU15及びデータハンドラ16に供給してPLA部1
1、ALU15及びデータハンドラ16をtiIIII
lする。なお、マイクロシーケンサ14には、転送モー
ド定義用の条件も供給されている。
A macro program is stored in the micro sequencer 14, and various micro instructions are sent to the OR circuit, A,
LU15 and data handler 16 and PLA unit 1
1. ALU 15 and data handler 16
I do it. Note that conditions for defining a transfer mode are also supplied to the microsequencer 14.

ALU15は、次の転送アドレス及びバイトカウントを
出力する。ユーザは、任意に何バイト転送するかの指示
を予めしているので、ALU15は1回の転送が完了す
るとバイトカウントを更新して計算によりあと何バイト
の転送が残っているかを求める。AI−U15は、内部
データバス17に接続している。
ALU 15 outputs the next transfer address and byte count. Since the user arbitrarily instructs in advance how many bytes to transfer, when one transfer is completed, the ALU 15 updates the byte count and calculates how many bytes remain to be transferred. AI-U 15 is connected to internal data bus 17 .

データハンドラ16は、システムバスとのデータのやり
とりを制御するものであり、cpu <図示せず)のホ
ールド要求などを発生する。このデータハンドラ16は
、システムデータバス18、システムアドレスバス19
及び内部データバス17に接続されている。
The data handler 16 controls data exchange with the system bus, and generates hold requests for the CPU (not shown). This data handler 16 includes a system data bus 18 and a system address bus 19.
and an internal data bus 17.

次に、本実施例の要部の動作について説明する。Next, the operation of the main parts of this embodiment will be explained.

PLA部11は、ALL115からの転送アドレスの下
位2ビツトとバイトカウントの下位3ビツトとから、転
送するべきアドレスのミスアラインの有無を判断する。
The PLA unit 11 determines whether the address to be transferred is misaligned from the lower two bits of the transfer address from the ALL 115 and the lower three bits of the byte count.

PLA部11が出力する3ビツトのゲート情報GO〜G
2及び4ビツトのバイトコントロールBCO−803は
、データハンドラ16内のバイトスワツパにおいてデー
タの並べ換え(アセンブリ、ディスアセンブリ等)を行
なうための情報として使用される信号である。PLA部
11が出力する1ビツトのネクストサイドNEXTSは
、次の転送がソースの転送処理がデスティネーションの
転送処理であるかを指示する信号である。ネクストサイ
ドNEXTSは、マイクロシーケンサ14に供給される
と共に、内部データバス17を介してデータハンドラ1
6にも供給される。
3-bit gate information GO to G output by the PLA section 11
The 2- and 4-bit byte control BCO-803 is a signal used as information for rearranging data (assembly, disassembly, etc.) in the byte swapper in the data handler 16. The 1-bit next side NEXTS output by the PLA section 11 is a signal that indicates whether the next transfer is a source transfer process or a destination transfer process. Next side NEXTS is supplied to the micro sequencer 14 and also to the data handler 1 via the internal data bus 17.
6 is also supplied.

PLA部11が出力する1ビツトのコンティニューC0
NTは、現在行なっている処理を再度行なうように指示
する信号である。ユーザは1回の転送要求しか出さない
が、DMA制御装置内ではソースとデスティネーション
との2回の転送が必要なため、前記コンティニューC0
NTが必要となって来る。PLA部11が出力する各1
ビツトのバイトカウントオフセットBCOFFSET及
びアドレスオフセットADROFFSETは、ALU1
5内で加減算を行なう際に用いられるバイトカウントの
加減算値と次の転送アドレスを計算するための情報とよ
りなるオフセット情報である。PLA部11が出力する
1ビツトのファイナルFINALは、現在行なっている
転送が最後の転送であることを指示する信号である。転
送するべきアドレスがミスアラインしている場合、転送
が1転送サイクルで終わるという保証はないため、マイ
クロシーケンサに前記転送の最後を指示するためにファ
イナルFINALを供給する。PLA部11が出力する
信号のうち、ファイナルFINALだけがマイクロシー
ケンサのみへ供給される。
1-bit continue C0 output by the PLA section 11
NT is a signal instructing to perform the process currently being performed again. Although the user issues only one transfer request, two transfers between the source and the destination are required within the DMA control device.
NT becomes necessary. Each 1 output by the PLA section 11
The bit byte count offset BCOFFSET and address offset ADROFFSET are ALU1
This is offset information consisting of a byte count addition/subtraction value used when performing addition/subtraction within 5 and information for calculating the next transfer address. The 1-bit FINAL outputted by the PLA section 11 is a signal indicating that the current transfer is the last transfer. If the address to be transferred is misaligned, there is no guarantee that the transfer will be completed in one transfer cycle, so FINAL is supplied to the microsequencer to instruct the end of the transfer. Of the signals output by the PLA section 11, only the final signal FINAL is supplied only to the microsequencer.

第3図は、本実施例の要部の動作タイミングを示す。第
3図(a)はシステムクロックCLK。
FIG. 3 shows the operation timing of the main parts of this embodiment. FIG. 3(a) shows the system clock CLK.

第3図(b)はPLA部11の処理、第3図(c)はマ
イクロシーケンサ14の処理、第3図(d)はデータハ
ンドラ16の処理のタイミングを夫々示す。ここでは、
便宜上1転送サイクル(1バスサイクル)が3システム
クロツクサイクルに対応するものとする。
3(b) shows the processing timing of the PLA unit 11, FIG. 3(c) shows the processing timing of the microsequencer 14, and FIG. 3(d) shows the timing of the processing of the data handler 16. here,
For convenience, it is assumed that one transfer cycle (one bus cycle) corresponds to three system clock cycles.

従って、PLA部11は、ファイナルFINALなどの
現在の情報を表わす例外を除いて基本的には次の転送に
必要な制御用情報を1転送サイクル中に出力する。他方
、マイクロシーケンサ14は、各システムクロックサイ
クルにおいて現在の転送中に内部データバス17をどの
ように使用するかを制御する(即ち、現在の1転送サイ
クル中DMA制御装置の各部を制御する)。更に、デー
タハンドラ16は、1転送サイクル中にソース又はデス
ティネーションとの間でデータ転送を行なう。
Therefore, the PLA unit 11 basically outputs control information necessary for the next transfer during one transfer cycle, with exceptions such as FINAL indicating current information. Microsequencer 14, on the other hand, controls how internal data bus 17 is used during the current transfer in each system clock cycle (ie, controls parts of the DMA controller during the current transfer cycle). Additionally, data handler 16 performs data transfers to and from a source or destination during one transfer cycle.

一般的に、DMAによるデータ転送を行なう場合、最初
に転送を行なうための転送アドレス、転送モード等の情
報を書き込んだ後に転送を実行する。従って、どのよう
に転送を行なえばよいのかという情報は予め予測可能で
ある。そこで、本実施例では、次の転送に必要な情報を
1転送サイクル単位で予測するPLA部11を設け、マ
イクロシーケンサ14内のマイクロプログラムによる条
件判断の負担を軽減しているので、データ転送のビット
長が大きい場合でも高速なデータ転送が可能である。
Generally, when performing data transfer using DMA, information such as a transfer address and transfer mode for performing the transfer is first written, and then the transfer is executed. Therefore, information on how to perform the transfer can be predicted in advance. Therefore, in this embodiment, a PLA section 11 is provided that predicts the information necessary for the next transfer in units of one transfer cycle, and the burden of condition judgment by the microprogram in the microsequencer 14 is reduced. High-speed data transfer is possible even when the bit length is large.

又、DMA転送では、初期条件を設定すればその後の処
理はシーケンシャルな処理となることが多い。しかし、
データ転送のビット長が大きい場合及びシステム全体が
大規模な場合には、この初期条件が複雑である。そこで
、本発明では、複雑な入力条件を比較的処理し易いPL
Alを用いて処理している。更に、シーケンシャルな処
理を行なうために状態指示回路2を設け、PLAIから
の信号に基づいて次の転送状態を指示する状態を更新す
ると共にPLAIに供給している。従って、PLAlは
、状態指示回路2からの情報を前記入力条件の一部とし
て制御用情報を順次生成出力する。つまり、次の転送状
態は、状態指示回路2の出力情報を参照して決定される
。
Furthermore, in DMA transfer, once initial conditions are set, subsequent processing is often sequential processing. but,
This initial condition is complicated when the bit length of data transfer is large and when the entire system is large-scale. Therefore, in the present invention, we have developed a PL that is relatively easy to process complex input conditions.
Processed using Al. Further, in order to perform sequential processing, a state indicating circuit 2 is provided, which updates a state indicating the next transfer state based on a signal from the PLAI and supplies it to the PLAI. Therefore, PLAl sequentially generates and outputs control information using the information from the state indicating circuit 2 as part of the input conditions. That is, the next transfer state is determined with reference to the output information of the state indicating circuit 2.

状態指示回路2としては、例えば状態カウンタを用い得
る。状態カウンタは、カウンタとは言つでも加算器等の
特別な回路は不要であり、PLAlからの得た信号その
もので値を更新するラッチ回路の如き回路で良い。従っ
て、状態カウンタの内容は、単なる昇順又は降順の数字
である必要はなく、何らかの状態を表わす符号のような
ものでも良い。これにより、より複雑な入力条件に応じ
た処理、即ち、データ転送の制御を容易に行なうことが
できる。
As the state indicating circuit 2, for example, a state counter can be used. Although the state counter is a counter, it does not require a special circuit such as an adder, and may be a circuit such as a latch circuit that updates the value using the signal itself obtained from PLAl. Therefore, the contents of the state counter need not simply be numbers in ascending or descending order, but may be a code representing some state. Thereby, processing according to more complicated input conditions, that is, data transfer control can be easily performed.

次に、1回に8ビツトずつデータを出力する入出力装置
等の8ビツトの装置から32ビツトのメモリ装置へデー
タ転送を行なう場合のDMA制御装置のPLA部11の
動作について説明する。この場合、8ビツトの装置から
4回に分けてデータを出力して、データ部分A、B、C
,Dがメモリ装置の第4図に示すアドレスに書き込まれ
て32ビツトのデータ転送が完結する。データ部分E以
降からなる次の32ビツトのデータも同様にメモリ装置
へ転送される。データ部分A、B、C,Dの処理を特徴
付ける処理は、8ピット単位に割り振られているデータ
のアドレスの最下位2ビツトのA1.AOの値である。
Next, the operation of the PLA unit 11 of the DMA control device when data is transferred from an 8-bit device such as an input/output device that outputs data 8 bits at a time to a 32-bit memory device will be described. In this case, data is output from an 8-bit device in four parts, and data parts A, B, and C are output.
, D are written to the address shown in FIG. 4 of the memory device, and the 32-bit data transfer is completed. The next 32 bits of data starting from data portion E are similarly transferred to the memory device. The processing that characterizes the processing of data portions A, B, C, and D is based on the lowest two bits A1... of the data address allocated in units of 8 pits. This is the value of AO.

従って、最下位2ビツトのA1.AOの値が同一である
データ部分Aとデータ部分Eとの処理は同一であり、こ
の例では4通りの処理情報を予め用意しておけば4通り
の処理を繰り返すことにより各32ビツトのデータをメ
モリ装置へ転送できることがわかる。
Therefore, the lowest two bits A1. The processing for data portion A and data portion E, which have the same AO value, is the same. In this example, if four types of processing information are prepared in advance, each 32-bit data can be processed by repeating the four types of processing. It can be seen that the data can be transferred to the memory device.

そこで、データ部分A、B、C,Dの処理に例えば状態
指示番号rOJ、NJ、r2J、r3Jを付ける。先ず
、状態指示回路2(状態カウンタ)の初期値を番号「0
」に設定しておき、入力条件及び状態指示回路2からの
番号「0」に応答してPLAIから生成出力されるデー
タ部分Aの制御用情報に基づいてデータ部分Aをメモリ
装置へ転送する。これと同時に、番号「1」をPLAl
から得て状態指示回路2に設定する。次に、PLAlは
入力条件及び状態指示回路2からの番号「1」に応答し
てデータ部分Bの制御用情報を生成出力する。これによ
り、PLAIの出力制御用情報に基づいてデータ部分B
がメモリ装置へ転送され、これと同時に、番号「2」を
PLAlから得て状態指示回路2に設定する。その後、
状態指示回路2に設定された番号が「3」になったら次
には「0」に戻し、以下同様の動作を行なうことにより
、データ部分A、B、C,Dからなる32ビツトのデー
タ、データ部分E、F、G、Hからなる32ビツトのデ
ータ等をメモリ装置へ転送することができる。
Therefore, for example, status indication numbers rOJ, NJ, r2J, and r3J are attached to the processing of data portions A, B, C, and D. First, the initial value of the status indicating circuit 2 (status counter) is set to the number "0".
”, and the data portion A is transferred to the memory device based on the control information for the data portion A generated and output from the PLAI in response to the input condition and the number “0” from the status indicating circuit 2. At the same time, change the number "1" to PLAl
and set it in the status indicating circuit 2. Next, PLAl generates and outputs control information for the data portion B in response to the input conditions and the number "1" from the state indicating circuit 2. As a result, based on the output control information of PLAI, data part B
is transferred to the memory device, and at the same time, the number "2" is obtained from PLAl and set in the state indicating circuit 2. after that,
When the number set in the status indicating circuit 2 reaches "3", it is then returned to "0" and the same operation is performed thereafter to obtain 32-bit data consisting of data portions A, B, C, and D. 32-bit data consisting of data portions E, F, G, H, etc. can be transferred to the memory device.

本実施例によれば、ALU等の複雑な回路を用いること
なく次の転送状態を指示する情報を順次PLA1に供給
でき、マイクロシーケンサの条件判断の負担を増加する
ことなく複雑なデータ転躯の制御を行なうことができる
。又、システムの仕様変更にも柔軟に対応可能である。
According to this embodiment, information instructing the next transfer state can be sequentially supplied to the PLA 1 without using a complicated circuit such as an ALU, and complex data transitions can be performed without increasing the burden of condition judgment on the microsequencer. can be controlled. Furthermore, it is possible to flexibly respond to changes in system specifications.

以上本発明を実施例により説明したが、本発明は本発明
の主旨に従い種々の変形が可能であり、本発明からこれ
らを排除するものではない。
Although the present invention has been described above using examples, the present invention can be modified in various ways according to the gist of the present invention, and these are not excluded from the present invention.

(発明の効果〕 本発明によれば、データ転送の1IJIIl用情報を入
力条件に応答してランダム論理により生成出力するプロ
グラマブル・ロジック・アレイと、プログラマブル・ロ
ジック中アレイからの信号に基づいて次の転送状態を指
示する情報を更新すると共にプログラマブル・ロジック
・アレイに供給する状態指示回路とを設け、状態指示回
路からの情報を入力条件の一部として制御用情報を順次
生成出力しているので、マイクロプログラムによる条件
判断の負担を軽減すると共にランダム論理のハードウェ
アの大規模化を防止し得、データ転送のビット長が大き
い場合でも高速なデータ転送ができ、実用的には極めて
有用である。
(Effects of the Invention) According to the present invention, there is provided a programmable logic array that generates and outputs data transfer information using random logic in response to input conditions, and a programmable logic array that generates and outputs data transfer information using random logic in response to input conditions; A state instruction circuit is provided that updates information indicating the transfer state and supplies it to the programmable logic array, and the information from the state instruction circuit is used as part of the input condition to sequentially generate and output control information. This method reduces the burden of condition judgment by microprograms, prevents the hardware of random logic from increasing in size, and allows high-speed data transfer even when the data transfer bit length is large, making it extremely useful in practice.

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

第1図は本発明の原理説明図、 第2図は本発明装置の一実施例を示すブロック系統図、 第3図は第2図の実施例の動作を説明するタイミングチ
ャート、 第4図はメモリ装置へのデータ転送を説明するための図
、 第5図は考えられるDMA制御装置の一例の要部を示す
ブロック図である。 ′ 第1図〜第4図において、 1はプログラマブル・ロジック・アレイ、2は状態指示
回路、 10は転送モードレジスタ、 11はPLA部、 12はリクエストハンドラ、 13はオア回路、 14はマイクロシーケンサ、 15はALU。 16はデータハンドラ、 17は内部データバス、 18はシステムデータバス、 19はシステムアドレスバス である。 本発明の原理説明図 第1図 時間 第2図の実施例の動作を 説明するタイミングチャート 第3図
Fig. 1 is a diagram explaining the principle of the present invention, Fig. 2 is a block system diagram showing an embodiment of the device of the present invention, Fig. 3 is a timing chart explaining the operation of the embodiment of Fig. 2, and Fig. 4 is A diagram for explaining data transfer to a memory device. FIG. 5 is a block diagram showing a main part of an example of a possible DMA control device. ' In Figures 1 to 4, 1 is a programmable logic array, 2 is a state indication circuit, 10 is a transfer mode register, 11 is a PLA section, 12 is a request handler, 13 is an OR circuit, 14 is a microsequencer, 15 is ALU. 16 is a data handler, 17 is an internal data bus, 18 is a system data bus, and 19 is a system address bus. Fig. 1 is a diagram explaining the principle of the present invention. Fig. 3 is a timing chart explaining the operation of the embodiment shown in Fig. 2.

Claims (1)

【特許請求の範囲】 DMAによるデータ転送を制御するDMA制御装置にお
いて、 データ転送の制御用情報を入力条件に応答してランダム
論理により生成出力するプログラマブル・ロジック・ア
レイ(1)と、 該プログラマブル・ロジック・アレイからの信号に基づ
いて次の転送状態を指示する情報を更新すると共に該プ
ログラマブル・ロジック・アレイに供給する状態指示回
路(2)とを備え、 該プログラマブル・ロジック・アレイは、該状態指示回
路からの情報を該入力条件の一部として該制御用情報を
順次生成出力することを特徴とするDMA制御装置。
[Claims] A DMA control device that controls data transfer by DMA, comprising: a programmable logic array (1) that generates and outputs data transfer control information using random logic in response to input conditions; a state instruction circuit (2) that updates information indicating the next transfer state based on a signal from the logic array and supplies the programmable logic array with information indicating the next transfer state; A DMA control device that sequentially generates and outputs control information using information from an instruction circuit as part of the input conditions.
JP63027008A 1988-02-08 1988-02-08 DMA controller Expired - Lifetime JPH0831080B2 (en)

Priority Applications (5)

Application Number Priority Date Filing Date Title
JP63027008A JPH0831080B2 (en) 1988-02-08 1988-02-08 DMA controller
DE68927015T DE68927015D1 (en) 1988-02-08 1989-02-07 Direct memory access control
EP89400344A EP0328450B1 (en) 1988-02-08 1989-02-07 Direct memory access controller
US07/306,952 US5119487A (en) 1988-02-08 1989-02-07 Dma controller having programmable logic array for outputting control information required during a next transfer cycle during one transfer cycle
KR1019890001426A KR920009448B1 (en) 1988-02-08 1989-02-08 Direct memory access controller with programmable logic array

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63027008A JPH0831080B2 (en) 1988-02-08 1988-02-08 DMA controller

Publications (2)

Publication Number Publication Date
JPH01201760A true JPH01201760A (en) 1989-08-14
JPH0831080B2 JPH0831080B2 (en) 1996-03-27

Family

ID=12209085

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63027008A Expired - Lifetime JPH0831080B2 (en) 1988-02-08 1988-02-08 DMA controller

Country Status (1)

Country Link
JP (1) JPH0831080B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008026273A1 (en) * 2006-08-31 2008-03-06 Fujitsu Limited Dma controller

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59212938A (en) * 1983-05-18 1984-12-01 Nec Corp Dma controller

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59212938A (en) * 1983-05-18 1984-12-01 Nec Corp Dma controller

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008026273A1 (en) * 2006-08-31 2008-03-06 Fujitsu Limited Dma controller
JPWO2008026273A1 (en) * 2006-08-31 2010-01-14 富士通株式会社 DMA controller

Also Published As

Publication number Publication date
JPH0831080B2 (en) 1996-03-27

Similar Documents

Publication Publication Date Title
US4144562A (en) System and method for increasing microprocessor output data rate
US5438665A (en) Direct memory access controller for handling cyclic execution of data transfer in accordance with stored transfer control information
CA1123110A (en) Floating point processor having concurrent exponent/mantissa operation
JPS6226561A (en) Personal computer
JPS5840214B2 (en) computer system
JPH02227768A (en) Data processing system
JPH0652102A (en) Data transfer device
JPS5925254B2 (en) Digital data processing equipment
IT8148277A1 (en) Address matching device for a control memory of a data processing system
US5119487A (en) Dma controller having programmable logic array for outputting control information required during a next transfer cycle during one transfer cycle
US6457121B1 (en) Method and apparatus for reordering data in X86 ordering
JPS6465634A (en) Integrated circuit device
US5734927A (en) System having registers for receiving data, registers for transmitting data, both at a different clock rate, and control circuitry for shifting the different clock rates
JP4865960B2 (en) Data processing apparatus and control method thereof
US4641278A (en) Memory device with a register interchange function
JP2003281074A (en) Direct memory access device
JP2567134B2 (en) Bit field logical operation processing device and monolithic microprocessor having the same
JPH01201759A (en) Dma controller
JPH0831080B2 (en) DMA controller
JPH09305530A (en) DMA controller
JP2542120B2 (en) Information processing device
JPH06274450A (en) Data transfer system
JPS62245439A (en) Symbolic processing system and method
JP2622026B2 (en) Register writing control method in central processing unit
EP0317119B1 (en) Next microinstruction generator in a microprogram control unit