JPS6219929A - Dma controller - Google Patents

Dma controller

Info

Publication number
JPS6219929A
JPS6219929A JP15872285A JP15872285A JPS6219929A JP S6219929 A JPS6219929 A JP S6219929A JP 15872285 A JP15872285 A JP 15872285A JP 15872285 A JP15872285 A JP 15872285A JP S6219929 A JPS6219929 A JP S6219929A
Authority
JP
Japan
Prior art keywords
data
transfer
circuit
image data
memory
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
JP15872285A
Other languages
Japanese (ja)
Inventor
Toshio Terachi
寺地 俊雄
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 JP15872285A priority Critical patent/JPS6219929A/en
Publication of JPS6219929A publication Critical patent/JPS6219929A/en
Pending legal-status Critical Current

Links

Landscapes

  • Bus Control (AREA)
  • Digital Computer Display Output (AREA)

Abstract

(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。
(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.

Description

【発明の詳細な説明】 技術分野 本発明はDMA制御装置に関し、より詳細には画像デー
タを格納するメモリおよびCPU装置を有している画像
データ処理するシステムにおいて、2次元状の画像デー
タにおける一定のデータ転送およびビットシフト処理を
高速化するのに好適なりMA制御装置に関するものであ
る。
Detailed Description of the Invention Technical Field The present invention relates to a DMA control device, and more specifically, in a system for processing image data having a memory for storing image data and a CPU device. The present invention relates to an MA control device suitable for speeding up data transfer and bit shift processing.

従来技術 従来の2次元の画像データを処理するシステムでは1画
像信号を入力する装置、その画像データを格納するメモ
リ装置9画像データを基に画像を表示する装置それに各
種データを処理するCPU装置などを有して、入力した
画像データそのままの画像をCRT画面上に表示したり
、入力した画像データに対し再構成の処理を行った後に
表示している。
Prior Art A conventional system for processing two-dimensional image data includes a device for inputting one image signal, a memory device for storing the image data, a device for displaying an image based on the image data, a CPU device for processing various data, etc. The input image data is displayed on the CRT screen as it is, or after reconstruction processing is performed on the input image data.

画像データを再構成するときは、表示中の画像データを
格納するメモリに対し、元の画像データを格納するメモ
リから再構成に必要なデータを読出して書込むことによ
って行うが、これらの処理の殆どをCPU装置にて実行
しているために、システムスループットが低下していた
。
When reconstructing image data, data necessary for reconstruction is read from the memory that stores the original image data and written to the memory that stores the image data being displayed. Since most of the processing is executed on the CPU device, the system throughput is reduced.

例えば表示中の画像の一定をピッ1−の単位で別の画像
に変更する場合、CPU装置は読出してきた別の画像デ
ータの一定を指定のビット数シフトさせて表示中の画像
データへ組込むことを実行するが、CPU内部のレジス
タを多く使用する。処理が煩雑化しソフトウェアがコス
ト高、データ転送の処理時間が長くなっていた。また、
メモリを不連続なアドレスでアクセスして画像データの
続出/書込を行う場合には、CPU装置が転送用パラメ
ータを随時更新する必要があるので、このためにデータ
転送以外のソフトウェアも搭載していた。
For example, when changing a constant image being displayed to another image in units of 1-pips, the CPU device must shift the constant read image data by a specified number of bits and incorporate it into the image data being displayed. , but it uses a lot of registers inside the CPU. The processing was complicated, the software was expensive, and the processing time for data transfer was long. Also,
When accessing the memory at discontinuous addresses to read/write image data one after another, the CPU device needs to update the transfer parameters from time to time, so software other than data transfer is also installed for this purpose. Ta.

目     的 本発明の目的は、このような従来の問題を解決し、画像
データを格納するメモリおよびCPUを有している画像
データ処理システムにおいて、上記CPUの指示により
画像データの一定転送および画像データのピッ1〜シフ
トを行って転送処理の高速化、システムスループットを
向上させることのできるDMA制御装置を提供すること
にある。
An object of the present invention is to solve such conventional problems, and to provide an image data processing system that includes a memory for storing image data and a CPU, in which constant transfer of image data and image data processing are performed according to instructions from the CPU. An object of the present invention is to provide a DMA control device capable of speeding up transfer processing and improving system throughput by shifting from P1 to P1.

構成 本発明は上記の目的を達成させるため1本発明のDMA
制御装置に、画像データを格納するメモリおよびCPU
装置を有し、上記画像データを処理するシステムにおい
て、上記画像データを任意のビット数シフトするデータ
シフト手段(データシフト回路部61)と、上記CPU
装置が指定した上記メモリにおける一定ブロックの画像
データをDMA転送するブロック転送手段(ブロック転
送回路部60)とを具備することを特徴としたものであ
る。
Structure In order to achieve the above object, the present invention provides a DMA of the present invention.
Memory and CPU for storing image data in the control device
In a system for processing the image data, the system includes a data shift means (data shift circuit section 61) for shifting the image data by an arbitrary number of bits, and the CPU.
The apparatus is characterized by comprising block transfer means (block transfer circuit unit 60) for DMA transfer of a certain block of image data in the memory designated by the apparatus.

以下1本発明の一実施例に基づいて具体的に説明する。A detailed description will be given below based on one embodiment of the present invention.

第2図は本発明の一実施例を示す画像データ処理システ
ムの構成図である。同図において、1は画像信号を入力
する画像信号入力装置、2は元の画像データを格納する
ソースメモリ211表示中の画像データを格納するディ
スティネーション・メモリ22それにパラメータ領域2
3を有しているメモリ装置、3は本システムの全体を制
御するCPU装置、4は後述する方法で画像データのD
MA転送およびビットシフトをするDMA制御装置、5
は画像データで画像を表示する画像表示装置である。な
お、これらの各装置をアドレスバス。
FIG. 2 is a block diagram of an image data processing system showing an embodiment of the present invention. In the figure, 1 is an image signal input device that inputs an image signal, 2 is a source memory 211 that stores original image data, a destination memory 22 that stores image data that is being displayed, and a parameter area 2.
3 is a CPU device that controls the entire system, and 4 is a CPU device that controls the entire system.
DMA control device for MA transfer and bit shifting, 5
is an image display device that displays an image using image data. Note that each of these devices is called an address bus.

データバス、コントロール線でなるシステムバスにて接
続する。
Connect using a system bus consisting of a data bus and control lines.

今、例えば第3図に示すように画像表示装置5の表示画
面51上において、画像の一定52を52aの位置へ移
動した画像の表示、また、ある画像の一定53に別の画
像の一定54を組込んだ画像を表示する場合には、CP
U装置3がDMA制御装置4にデータ転送やデータのビ
ットシフトなどを行わせて実現する。すなわち、DMA
制御装置4は、後述する第一〜三の実施例の動作で、メ
モリ上において不連続な複数のデータでなるデータブロ
ックをCPU装置3の介在なしに指定エリアへデータ転
送したり、同様にCPU装置3の介在なしに画像データ
をビしトシフトさせてメモリ装置2内に書込む。
For example, on the display screen 51 of the image display device 5 as shown in FIG. When displaying an image that incorporates CP
This is realized by the U device 3 causing the DMA control device 4 to perform data transfer, data bit shifting, etc. That is, D.M.A.
In the operations of the first to third embodiments described later, the control device 4 transfers a data block consisting of a plurality of discontinuous data on the memory to a designated area without the intervention of the CPU device 3, and similarly transfers the data to a designated area without the intervention of the CPU device 3. Image data is bit-shifted and written into a memory device 2 without the intervention of a device 3.

始めに、本発明の第一の実施例を第4図〜第6図により
述べる。
First, a first embodiment of the present invention will be described with reference to FIGS. 4 to 6.

第4図はDMA制御装置4の構成図、第5図はパラメー
タ領域23の構成図、第6図は第4図の処理フローチャ
ートである。第4図において、11.14はそれぞれア
ドレス信号を入力、出力する110回路、12はソース
アドレスにオフセット設定回路13のオフセット値(ジ
ャンプさせる量)を加算する24ビット加算器、15は
転送終了信号発生回路16からの′転送終了′を受けた
ときデータのDMA転送を終了にするDMA回路、17
は転送ライン数を設定する転送ライン数設定回路である
。なお、転送ライン数は第3図に示すrr N #ライ
ンである。
FIG. 4 is a block diagram of the DMA control device 4, FIG. 5 is a block diagram of the parameter area 23, and FIG. 6 is a processing flowchart of FIG. In FIG. 4, 11 and 14 are 110 circuits that input and output address signals, 12 is a 24-bit adder that adds the offset value (jump amount) of the offset setting circuit 13 to the source address, and 15 is a transfer end signal. a DMA circuit 17 that terminates the DMA transfer of data when receiving 'transfer end' from the generation circuit 16;
is a transfer line number setting circuit that sets the number of transfer lines. Note that the number of transfer lines is rr N # lines shown in FIG.

DMA制御装置4のDMA回路15は、CPU装置3が
システムメモリ上のパラメータ領域23に対して、第5
図に示すようにソースメモリ21への゛ソースアドレス
′、ディスティネーション・メモリ22への′ディステ
ィネーション・アドレス′それに転送1ラインである′
バイ1−カウンl−’を24ビットで設定し、続いて初
期設定として転送ライン数設定回路17には′転送ライ
ン数′(メモリブロック数二N)を、オフセット設定回
路13には′オフセット値′(1ライン分のアドレス値
)を各々セットして、その後送出する ’5TARTコ
マンド′ を受信すると、以下のデータ転送を実施する
。
The DMA circuit 15 of the DMA control device 4 is configured so that the CPU device 3 controls the fifth parameter area 23 on the system memory.
As shown in the figure, there is a ``source address'' to the source memory 21, a ``destination address'' to the destination memory 22, and one line of transfer.
By 1-count l-' is set in 24 bits, and then, as an initial setting, 'transfer line number' (memory block number 2N) is input to the transfer line number setting circuit 17, and 'offset value' is input to the offset setting circuit 13. ' (address value for one line) and then receives the '5TART command' to be sent, the following data transfer is performed.

すなわち、DMA回路15は、先ずパラメータ領域23
の各パラメータを読取って内部レジスタに格納した後、
そのパラメータのソースアドレス(すなわち第3図の画
像の一定52の位置)でソースメモリ21からバイトカ
ウント分のデータを読出し、パラメータのディスティネ
ーション・アドレス(すなわち画像の一定52aの位置
)でディスティネーション・メモリ22へ書込む(ステ
ップ1o1)。なお、バイトカウンタには(転送1ライ
ン×1ライン)分のデータ量を設定するので、DMA回
路15は2次元転送エリア52の1ラインを転送する。
That is, the DMA circuit 15 first reads the parameter area 23.
After reading each parameter of and storing it in internal register,
The data corresponding to the byte count is read from the source memory 21 at the source address of the parameter (i.e., the fixed position 52 of the image in FIG. Write to the memory 22 (step 1o1). Note that since the data amount for (1 transfer line x 1 line) is set in the byte counter, the DMA circuit 15 transfers one line of the two-dimensional transfer area 52.

また、このデータ転送を以下’DMA1の転送′と呼ぶ
。
Further, this data transfer will be referred to as 'DMA1 transfer' hereinafter.

続いてDMA回路15は1次の1ラインのDMA1の転
送を行うためにパラメータ領域23内の両アドレス値を
更新する。すなわち、先ず、システムメモリ上のN−N
+4番地のデータ(ソースアドレス)を170回路11
に移し、24ビット加算器12にその移した値に対しオ
フセット設定回路13のオフセット値を加算させて■/
○回路14にセットさせた後、その加算値を再びシステ
ムメモリ上のN−N+4番地に書込む(ステップ103
)。なお、このデータ転送を以下’DMA2の転送′と
呼ぶ。
Subsequently, the DMA circuit 15 updates both address values in the parameter area 23 in order to perform the primary DMA1 transfer of one line. That is, first, N-N on the system memory
+4 address data (source address) to 170 circuits 11
, and the 24-bit adder 12 adds the offset value of the offset setting circuit 13 to the transferred value.
○After being set in the circuit 14, the added value is written again to address N-N+4 on the system memory (step 103).
). Note that this data transfer is hereinafter referred to as 'DMA2 transfer'.

上記の転送動作を繰返すことにより、更新したソースア
ドレスでデータを読出し、それを同様に更新したディス
ティネーション・アドレスで書込むことで(DMA、の
転送)、Nライン全てをDMA転送し処理終了にする(
ステップ102)。なお、転送処理を終了させるため、
転送終了信号発生回路16が、転送ライン数設定回路1
7の転送ライン数を1ラインを転送するごとにディクリ
メントして、II Oggになったとき、DMA回路1
5に ′転送終了信号′を出力しDMA転送を終らせる
。
By repeating the above transfer operation, data is read with the updated source address and written with the similarly updated destination address (DMA transfer), all N lines are DMA transferred and the process is completed. do(
Step 102). In addition, in order to finish the transfer process,
The transfer end signal generation circuit 16 is connected to the transfer line number setting circuit 1.
The number of transfer lines of 7 is decremented every time one line is transferred, and when it becomes II Ogg, the DMA circuit 1
5, outputs a 'transfer end signal' to end the DMA transfer.

このように、初期設定されたパラメータを更新しながら
転送ライン数分のデータを転送するので、不連続な状態
で続く一定量の画像データ(すなわちデータブロック)
をDMA制御装置4のみでデータ転送ができる。これに
よりCPU装Wt3は転送用のパラメータおよびオフセ
ット値などをセットし以降は何も関知しないので、CP
Uのスループットを向上させると共に、システムとして
マルチタスクが可能となる。また、画像メモリでの2次
元データの転送などに本DMA制御装置4は特に有効で
ある。
In this way, data for the number of transfer lines is transferred while updating the initially set parameters, so a certain amount of image data (i.e., data blocks) that continues in a discontinuous state is transferred.
Data transfer can be performed using only the DMA control device 4. As a result, the CPU Wt3 sets the transfer parameters, offset values, etc., and is not concerned with anything after that.
This improves the throughput of U and enables multitasking as a system. Further, the present DMA control device 4 is particularly effective for transferring two-dimensional data in an image memory.

次に、本発明の第二の実施例を第7図、第8図(a)〜
(i)により述べる。
Next, a second embodiment of the present invention is shown in FIGS. 7 and 8(a) to 8.
This is explained by (i).

第7図はDMA制御装置4の構成図、第8図(a)〜(
i)は第7図の動作を説明するための図である。第7図
において、31.34はソースデータを一時格納するラ
ッチ回路、32.35はそれぞれシフトコントロール回
路33.36の指示によりソースデータを右または左へ
ビットシフトするシフトレジスタ回路、37はディステ
ィネーション・データを生成するOR回路、38.39
はそれぞれMSB、LSB側の8ビットデータを一時格
納するバッファ回路、40は後述する方法によりデータ
をビットシフトおよび読出/書込処理をするDMA@路
、41はリードデータの取込み先を振分けるMRDC振
分は回路、42はライトデータの送出元を振分けるMW
TC振分は回路である。
FIG. 7 is a block diagram of the DMA control device 4, and FIG. 8(a) to (
i) is a diagram for explaining the operation of FIG. 7; In FIG. 7, 31 and 34 are latch circuits that temporarily store source data, 32 and 35 are shift register circuits that bit-shift source data to the right or left according to instructions from shift control circuits 33 and 36, respectively, and 37 is a destination.・OR circuit that generates data, 38.39
40 is a buffer circuit that temporarily stores 8-bit data on the MSB and LSB sides, 40 is a DMA @ path that performs bit shifting and read/write processing of data by the method described later, and 41 is an MRDC that distributes read data to a destination. The distribution is to the circuit, and 42 is the MW that distributes the source of the write data.
TC distribution is a circuit.

今、第3図に示すように画像表示部5の表示画面51上
において、例えば表示中の画像の一定53に別の画像の
一定54を表示させるような場合、DMA制御装置4の
DMA回路40は、CPU装置3から一定53に対応す
る画像データ(以降、ディスティネーション・データと
呼ぶ)、一定54に対応する画像データ(以降、ソース
データと呼ぶ)、転送バイト数それにシフトビット数が
指示されると、先ず、MRDC振分は回路41からメモ
リリード・コマンド(Isヒリード信号)を送出させて
、ソースメモリ21から指示された第8図(a)に示す
ソースデータ(So=37)をラッチ回路31に読出し
、シフトコントロール回路33にラッチ回路31の8ビ
ット出力を第8図(b)に示すようにMSB側で、かつ
、右へ3ビットシフトさせてシフトレジスタ回路32に
セットさせる。
Now, as shown in FIG. 3, on the display screen 51 of the image display unit 5, for example, when displaying a constant 54 of another image in place of a constant 53 of the currently displayed image, the DMA circuit 40 of the DMA control device 4 The image data corresponding to constant 53 (hereinafter referred to as destination data), the image data corresponding to constant 54 (hereinafter referred to as source data), the number of transfer bytes, and the number of shift bits are instructed by the CPU device 3. Then, the MRDC distribution first sends out a memory read command (Is read signal) from the circuit 41, and latches the source data (So=37) shown in FIG. 8(a) instructed from the source memory 21. The signal is read out to the circuit 31, and the shift control circuit 33 shifts the 8-bit output of the latch circuit 31 to the MSB side by 3 bits to the right as shown in FIG. 8(b), and sets the result in the shift register circuit 32.

なお、CPU装置3は図示してないマウスなどの位置指
示装置によってディスティネーション・データおよびソ
ースデータの(1バイト中の)あるビットが指定された
ときに動作を開始する。
Note that the CPU device 3 starts operating when a certain bit (in one byte) of destination data and source data is designated by a position pointing device such as a mouse (not shown).

その後、OR回路37にシフトレジスタ回路32.35
の両16ビット出力を論理和させて第8図(c)に示す
バイトにした後、MWTC振分は回路42からメモリラ
イト・コマンド(ISシライト信号)を送出させて、O
R回路37からのMSB側8ビットをバッファ回路38
を通してディスティネーション・メモリ22の指示され
たエリアに書込む。なお、この時点ではシフトレジスタ
回路35からの16ビット出力はa 11’″0″であ
る。また、最初のディスティネーション・データは、O
R回路37の16ビツ′ト出力のMSB側にあるので、
1st、ライト信号によりデータバッファ回路38をイ
ネーブル状態にする。これにより、1バイト目(SO”
S7)のシフトを含むデータ転送を終了する。
After that, the shift register circuits 32 and 35 are connected to the OR circuit 37.
After ORing both 16-bit outputs to create the byte shown in FIG. 8(c), the MWTC distribution causes the circuit 42 to send a memory write command (IS write signal),
The MSB side 8 bits from the R circuit 37 are transferred to the buffer circuit 38.
The data is written to the designated area of the destination memory 22 through. Note that at this point, the 16-bit output from the shift register circuit 35 is a11'"0". Also, the first destination data is O
Since it is on the MSB side of the 16-bit output of the R circuit 37,
1st, the data buffer circuit 38 is enabled by a write signal. As a result, the first byte (SO”
The data transfer including the shift in S7) is completed.

続いて、DMA回路40は、上記と同様にMRDC振分
は回路41からメモリリード・コマンド(2stリ一ド
信号)を送出させてソースメモリ21から指示された次
(2バイト目)の第8図(d)に示すソースデータ(8
8〜515)をラッチ回路34に読出し、シフトコント
ロール回路36にラッチ回路34の8ビット出力を第8
図(e)に示すようにLSB側で、かつ、右へ3ビット
シフトさせてシフトレジスタ回路35にセットさせる。
Subsequently, the DMA circuit 40 causes the circuit 41 to send out a memory read command (2nd read signal) for MRDC distribution in the same manner as described above, and reads the next (2nd byte) 8th byte instructed by the source memory 21. The source data (8
8 to 515) to the latch circuit 34, and the 8-bit output of the latch circuit 34 to the shift control circuit 36.
As shown in FIG. 3(e), the data is shifted 3 bits to the right on the LSB side and set in the shift register circuit 35.

その後同様にOR回路37にシフトレジスタ回路32.
35の面出力を論理和させて第8図(f)に示すバイト
にした後、MWTC振分は回路42からメモリライト・
コマンド(2stライト信号)を送出させて、OR回路
37からのLSB側8ビットをバッファ回路39を通し
てディスティネーション・メモリ22の指示された次の
エリアにディスティネーション・データとして書込む。
After that, similarly, the OR circuit 37 is connected to the shift register circuit 32.
After ORing the surface outputs of 35 to create the byte shown in FIG. 8(f), MWTC distribution is performed by memory write/
A command (2nd write signal) is sent, and the LSB side 8 bits from the OR circuit 37 are written into the next designated area of the destination memory 22 as destination data through the buffer circuit 39.

なお、この時点ではシフトレジスタ回路32からの16
ビツi〜出力は第8図(e)の内容(So=87)ある
、また、2バイト目のディスティネーション・データは
、OR回路37の16ビット出力のLSB側にあるので
、2stライト信号によりデータバッファ回路39をイ
ネーブル状態にする。
Note that at this point, 16 from the shift register circuit 32
The output from bit i has the contents (So=87) shown in FIG. The data buffer circuit 39 is enabled.

上記1バイト目の動作を3バイト目(816〜523)
に、上記2バイト目の動作を4バイト目(S24〜53
1)に、・・・・・・・・と順々に繰返す、すなわち、
1st/2stリ一ド信号を交互に切替えてソースデー
タを読出しビットシフトして論理和した後、  1.s
t、/2stライト信号も交互に切替えてディスティネ
ーション・メモリ22に書込む。この動作をCPU装置
3から指定されたバイト数のデータ全てをシフトしなが
ら転送する。
The operation of the first byte above is the third byte (816-523)
Then, the operation of the second byte is changed to the fourth byte (S24 to S53).
1), repeat in sequence, i.e.,
After alternating between the 1st and 2nd read signals, read out the source data, shift the bits, and perform ORing, 1. s
The t and /2st write signals are also alternately switched and written to the destination memory 22. This operation is performed by shifting and transferring all the data of the specified number of bytes from the CPU device 3.

このように、ソースデータを読出してシフトレジスタ回
路32.35でシフトし、その論理和データをディステ
ィネーション・メモリ22に再び書込むので、画像の再
構成をDMA制御装置4のみにて実行することが可能で
ある。これにより従来のCPU装置3によるデータ転送
に比べ転送時間を大巾に短縮できると共に、本システム
におけるスループットを向上する。
In this way, the source data is read out and shifted by the shift register circuits 32 and 35, and the logical OR data is written again to the destination memory 22, so image reconstruction can be executed only by the DMA control device 4. is possible. As a result, the transfer time can be greatly shortened compared to data transfer using the conventional CPU device 3, and the throughput of the present system can be improved.

次に、本発明の第三の実施例を第1図により述べる。Next, a third embodiment of the present invention will be described with reference to FIG.

第1図はDMA制御装置4の構成図である。同図におい
て、60は前述した第4図の回路および同じ機能を持つ
ブロック転送回路部、61は前述した第7図の回路およ
び同じ機能を持つデータシフト回路部、62は第7図の
回路ブロックを略図で示したデータシフト回路、63は
前述したDMA回路15,40の両機能を備えるDMA
回路である。
FIG. 1 is a block diagram of the DMA control device 4. As shown in FIG. In the figure, 60 is a block transfer circuit section having the same function as the circuit shown in FIG. 4 described above, 61 is a data shift circuit section having the same function as the circuit shown in FIG. 7 described above, and 62 is a circuit block shown in FIG. 7. A data shift circuit 63 is a DMA having both functions of the above-mentioned DMA circuits 15 and 40.
It is a circuit.

ここで前述の第一実施例によるブロック転送機能と前述
の第二実施例によるデータシフト機能とを組合せたこと
により、DMA制御装置4は2次元でなる画像データを
バイトあるいはワードバウンダリごとでないビット単位
でDMA転送(画像を再構成)することが可能となる。
By combining the block transfer function according to the first embodiment described above and the data shift function according to the second embodiment described above, the DMA control device 4 transfers two-dimensional image data in units of bits rather than bytes or word boundaries. It becomes possible to perform DMA transfer (image reconstruction).

上記を実現するためDMA制御装置4のDMA回路63
は、CPU装置3が初期設定したパラメータ領域23の
内容およびオフセット値などに従って、ソースメモリ2
1からソースアドレスの画像データを読出し、その(画
像の)データをビットシフトさせたいときにはデータシ
フト回路62に指定されたビット数をシフト(左右面シ
フト可)させた後、そのシフトしたデニタをディスティ
ネーション・アドレスでディスティネーション・メモリ
22へ書込む(第二実施例、第一実施例のDMAIの転
送を参照)。
To realize the above, the DMA circuit 63 of the DMA control device 4
is stored in the source memory 2 according to the contents and offset values of the parameter area 23 initialized by the CPU device 3.
If you want to read the image data at the source address from 1 and shift the bits of that (image) data, shift the specified number of bits in the data shift circuit 62 (left/right shift possible), and then shift the shifted data to the destination. write to the destination memory 22 using the destination address (see DMAI transfer in the second embodiment and the first embodiment).

この動作をDMA回路63は、リアルタイムで転送エリ
アへ(転送1ライン×1ライン)分のデータを転送し、
その転送終了後、転送に必要なパラメータ(ソースアド
レス、ディスティネーション・アドレス)を更新する(
第一実施例のDMA2の転送を参照)。パラメータを更
新後、2ライン目のデータ転送を1ライン目と同様な方
法で行い、Nライン全てDMA転送し処理を終了する。
In this operation, the DMA circuit 63 transfers (1 transfer line x 1 line) worth of data to the transfer area in real time,
After the transfer is complete, update the parameters (source address, destination address) necessary for the transfer (
(See DMA2 transfer in the first embodiment). After updating the parameters, data transfer for the second line is performed in the same manner as for the first line, all N lines are DMA transferred, and the process ends.

なお。In addition.

DMA転送の終了は転送終了信号発生回路16が転送ラ
イン数を1ライン転送ごとにディクリメントし、90″
に達したときDMA回路63に′転送終了信号′を送出
することで行う(第一実施例を参照)。
At the end of the DMA transfer, the transfer end signal generation circuit 16 decrements the number of transfer lines for each line transfer, and the transfer end signal generation circuit 16 decrements the number of transfer lines to 90''.
This is done by sending a 'transfer end signal' to the DMA circuit 63 when the transfer end signal is reached (see the first embodiment).

このように、データシフト回路部62で読出したソース
データをビットシフl−L、一方のブロック転送回路部
60にCRT画面上で対応している画像メモリのある領
域(2次元エリア)から別の領域へとデータ転送させる
ので、CPU装置3からの指示を受けたDMA制御装置
4が画像データの転送およびビットシフトを行うことが
できる。
In this way, the source data read out by the data shift circuit section 62 is bit shifted L-L, and one block transfer circuit section 60 is moved from a certain area (two-dimensional area) of the image memory corresponding to the CRT screen to another area. Therefore, the DMA control device 4 receiving instructions from the CPU device 3 can transfer the image data and perform bit shifting.

これによりCRT画面に対応させたピッ1一単位の再構
成処理が容易に実施可能になるとともに、ビット単位の
解像度で画像を移動できる。また、データ転送およびビ
ットシフトを本DMA制御装置4が自動的に行い、CP
U装置3と並列処理させることができ、スループットの
高いシステムを*築することが可能である。
This makes it possible to easily perform pixel-by-pixel reconstruction processing compatible with a CRT screen, and to move images with bit-by-bit resolution. In addition, the DMA control device 4 automatically performs data transfer and bit shifting, and
It is possible to perform parallel processing with the U device 3 and build a system with high throughput.

効   果 以上説明したように、本発明によれば1画像データを格
納するメモリおよびCPU装置を有している画像データ
処理システムにおいて、上記CPU装置の指示によりD
MA制御装置がデータシフト回路部にソースデータをビ
ットシフトさせ、ブロック転送回路部に画像データの一
定分をDMA転送させるので、データ転送およびビット
シフトの処理は高速化し、本システムのスループットは
向上する。
Effects As explained above, according to the present invention, in an image data processing system having a memory for storing one image data and a CPU device, D
Since the MA control device causes the data shift circuit section to bit shift the source data and causes the block transfer circuit section to DMA transfer a certain portion of the image data, data transfer and bit shift processing become faster, and the throughput of this system improves. .

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

第1図、第4図、第7図はそれぞれ本発明の第三、第一
、第二の実施例を示すDMA制御装置の構成図、第2図
は本発明での画像データ処理システムの構成図、第3図
は表示画面の表示を示す図、第5図はパラメータ領域の
構成図、第6図は第4図の処理フローチャート、第8図
(a)〜(i)は第7図の動作を説明するための図であ
る。 に画像信号入力装置、2:メモリ装置、3:CPU装置
、4:DMA制御装置、5:画像表示装置、11,14
:I10回路、12:24ビット加算器、13:オフセ
ット設定回路、15,40.63:DMA回路、16二
転送終了信号発生回路、17:転送ライン数設定回路、
21:ソースメモリ、22:ディスティネーション・メ
モリ、23:パラメータ領域、31,34:ラソチ回路
、32.35:シフトレジスタ回路、33.36:シフ
トコントロール回路、37:OR回路、38゜39:バ
ッファ回路、41:MRDC振分は回路、42 : M
WTC振分は回路、51:表示画面、52.52a、5
3,54:画像の一定、60ニブロック転送回路部、6
1:データシフト回路部、62:データシフト回路。
1, 4, and 7 are configuration diagrams of a DMA control device showing third, first, and second embodiments of the present invention, respectively, and FIG. 2 is a configuration diagram of an image data processing system according to the present invention. 3 is a diagram showing the display screen, FIG. 5 is a configuration diagram of the parameter area, FIG. 6 is the processing flowchart of FIG. 4, and FIGS. 8(a) to (i) are the diagrams of FIG. FIG. 3 is a diagram for explaining the operation. image signal input device, 2: memory device, 3: CPU device, 4: DMA control device, 5: image display device, 11, 14
: I10 circuit, 12: 24-bit adder, 13: Offset setting circuit, 15, 40.63: DMA circuit, 16 two-transfer end signal generation circuit, 17: Transfer line number setting circuit,
21: Source memory, 22: Destination memory, 23: Parameter area, 31, 34: Lasochi circuit, 32. 35: Shift register circuit, 33. 36: Shift control circuit, 37: OR circuit, 38° 39: Buffer Circuit, 41: MRDC distribution is a circuit, 42: M
WTC distribution is circuit, 51: Display screen, 52.52a, 5
3, 54: Constant image, 60 niblock transfer circuit, 6
1: Data shift circuit section, 62: Data shift circuit.

Claims (3)

【特許請求の範囲】[Claims] (1)画像データを格納するメモリおよびCPU装置を
有し、上記画像データを処理するシステムにおいて、上
記画像データを任意のビット数シフトするデータシフト
手段と、上記CPU装置が指定した上記メモリにおける
一定ブロックの画像データをDMA転送するブロック転
送手段とを具備することを特徴とするDMA制御装置。
(1) In a system that includes a memory for storing image data and a CPU device and processes the image data, a data shifting means for shifting the image data by an arbitrary number of bits, and a constant value in the memory designated by the CPU device. 1. A DMA control device comprising block transfer means for DMA transfer of block image data.
(2)前記データシフト手段は、前記画像データを右ま
たは左へビットシフトして16ビットのデータで出力す
る手段と、該16ビットの出力データを論理和する手段
と、前記画像データの取込み先を指定する手段と、上記
論理和手段の出力データを8ビットで前記メモリに格納
する手段とを備えることを特徴とする特許請求の範囲第
1項記載のDMA制御装置。
(2) The data shifting means includes means for bit-shifting the image data to the right or left and outputting it as 16-bit data, means for ORing the 16-bit output data, and a destination for importing the image data. 2. The DMA control device according to claim 1, further comprising means for specifying the output data of the logical sum means, and means for storing the output data of the logical sum means in the memory in 8 bits.
(3)前記ブロック転送手段は、不連続な状態にある画
像データ間のオフセット値を格納する手段と、該オフセ
ット値を基に前記メモリのアドレスを決定する手段と、
指定のデータ量を転送したときに‘転送終了信号’を出
力して前記DMA転送を終了にする手段とを備えること
を特徴とする特許請求の範囲第1項記載のDMA制御装
置。
(3) The block transfer means includes means for storing an offset value between image data in a discontinuous state, and means for determining an address of the memory based on the offset value;
2. The DMA control device according to claim 1, further comprising means for outputting a 'transfer end signal' to end the DMA transfer when a specified amount of data has been transferred.
JP15872285A 1985-07-18 1985-07-18 Dma controller Pending JPS6219929A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP15872285A JPS6219929A (en) 1985-07-18 1985-07-18 Dma controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP15872285A JPS6219929A (en) 1985-07-18 1985-07-18 Dma controller

Publications (1)

Publication Number Publication Date
JPS6219929A true JPS6219929A (en) 1987-01-28

Family

ID=15677912

Family Applications (1)

Application Number Title Priority Date Filing Date
JP15872285A Pending JPS6219929A (en) 1985-07-18 1985-07-18 Dma controller

Country Status (1)

Country Link
JP (1) JPS6219929A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63191224A (en) * 1987-02-04 1988-08-08 Nippon Telegr & Teleph Corp <Ntt> Bit order inverting circuit
KR20180030759A (en) 2016-09-16 2018-03-26 가부시키가이샤 다이후쿠 Distribution facility

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63191224A (en) * 1987-02-04 1988-08-08 Nippon Telegr & Teleph Corp <Ntt> Bit order inverting circuit
KR20180030759A (en) 2016-09-16 2018-03-26 가부시키가이샤 다이후쿠 Distribution facility

Similar Documents

Publication Publication Date Title
US5754191A (en) Method and apparatus for optimizing pixel data write operations to a tile based frame buffer
JP3940435B2 (en) Method and apparatus for performing direct memory access (DMA) byte swapping
EP0278526A2 (en) Graphics diplay controller having clipping function
JPH07219842A (en) Method, apparatus and circuit for transferring pixel data to a memory display interface
JPH0715706B2 (en) Memory controller
US4916746A (en) Image rotation circuit
JP2683489B2 (en) Data transfer control device
US4742343A (en) Digital stroke generator
JPH0478948A (en) Dma controller
JPH10307576A (en) Image display device
JPH06176141A (en) Data output device and data rotation method of data output device
JP3150416B2 (en) Display control device
JP2906406B2 (en) Display control circuit
JP2912765B2 (en) Display system
JPS6249570A (en) Picture processor
JPH10312356A (en) Data transfer device
JPS5870276A (en) Writing and reading of video memory
JP2867482B2 (en) Image processing device
JP2761220B2 (en) 3D graphic display system
JPS6219979A (en) Image processing system
GB2210760A (en) Image rotation circuit
JPH0863595A (en) Image rotation processing method and apparatus thereof
JPS61182089A (en) Method and apparatus for processing character
JPH023195B2 (en)
JPH0193868A (en) Data processor