JPS5910084A - Data transfer device - Google Patents

Data transfer device

Info

Publication number
JPS5910084A
JPS5910084A JP11828682A JP11828682A JPS5910084A JP S5910084 A JPS5910084 A JP S5910084A JP 11828682 A JP11828682 A JP 11828682A JP 11828682 A JP11828682 A JP 11828682A JP S5910084 A JPS5910084 A JP S5910084A
Authority
JP
Japan
Prior art keywords
address
bits
memory
supplied
bit
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
JP11828682A
Other languages
Japanese (ja)
Inventor
Tadashi Takahashi
高橋 規
Kiyoshi Sato
清 佐藤
Kyoichi Shimizu
恭一 清水
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.)
Victor Company of Japan Ltd
Nippon Victor KK
Original Assignee
Victor Company of Japan Ltd
Nippon Victor KK
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 Victor Company of Japan Ltd, Nippon Victor KK filed Critical Victor Company of Japan Ltd
Priority to JP11828682A priority Critical patent/JPS5910084A/en
Publication of JPS5910084A publication Critical patent/JPS5910084A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Input (AREA)
  • Image Processing (AREA)
  • Digital Computer Display Output (AREA)

Abstract

PURPOSE:To shorten the transfer time and to improve the transfer efficiency, by transferring continuously and in one time the picture element data in a quadrangle enclosed by the lateral and longitudinal axes of a screen by a set-up of an address in one time. CONSTITUTION:When the picture element data in a quadrangle enclosed by the lateral and longitudinal axes of a screen is transferred, the lower (n) bits of an address of a memory 61 are changed successively from the lower (n) bits of a start address corresponding to an apex of the quadrangle through the lower (n) bits of an end address corresponding to the apex opposite to an apex of the tetragon. The successive change is repeated for the lower (n) bits of the address of the memory 61 every time the upper (q-n) bits of the address of the memory 61 are changed successively from the upper (q-n) bits of the start (or end) address through the upper (q-n) bits of the end (or start) address. Thus the address is supplied to the memory 61. In such a way, the picture element data can be transferred continuously and in one time by a set-up of the number of start addresses and picture element data.

Description

【発明の詳細な説明】 ≠刊コ#;≠ビットとに分割し、上位(CI−11)ビ
ットを順次変化させる毎に下位n寄=;孝ビットの順次
変化を繰り返させることにより、1回のアドレスのセッ
トアツプにより画面の横軸及び縦軸で囲まれる四辺形部
分の画素データを連続して1回で転送することができ、
転送時間を短縮して転送効率を改善することのできるデ
ータ転送装置を提供することを目的とする。
[Detailed description of the invention] By dividing into ≠ publication code; ≠ bits and repeating the sequential change of the lower n bits every time the upper (CI-11) bits are changed sequentially, By setting up the address, the pixel data of the quadrilateral area surrounded by the horizontal and vertical axes of the screen can be transferred continuously at one time.
An object of the present invention is to provide a data transfer device that can shorten transfer time and improve transfer efficiency.

一般にディジタル画像処理によりディスプレイ上に画像
を表示させる場合、アナログの映像信号をA−1)変換
してたとえば各画素毎に輝度2色度。
Generally, when displaying an image on a display using digital image processing, an analog video signal is A-1) converted to, for example, luminance and two chromaticities for each pixel.

探度全体で8ビツトのディジタル1g号とし、このディ
ジタル信号を順次メモリに4tき込み、必要に応じてこ
のメモリよシデイジタル信号を順次読み出してD−A変
換し、これによって得られるアナログの映像信号によっ
てディスプレイ上に画像の表示を行なうという処理が多
用される。ここで、1画面を第1図に示す如く縦方向に
IVI(2+1≦M≦2”) 、 mは正の整数)画素
、横方向にN(2°−1+1≦N≦2n、nけ正の整a
)画素に分割し、各画素の8ビツトのディジタル値(以
下[画素データDMN Jという)をメモリに書き込む
際には、メモリの0番地に画素データD!!、以下順に
り、Nまで画面の第1ライン上の画素データを1き込み
、次に(N−1)番地に画素データD2.  、以下j
1屓に第2ライン上の画素データを礪き込み、以下同様
にして画素データDMNの2次元の位置情報をメモリの
1次元のアドレスに変換している。このため、第1図の
斜線部Aの四辺形のi*j(i+jは正の整数で1≦1
≦M、1≦j≦N)個の画素データは、メモリ上では第
2図に示す如く、連続したjバイトの画素データがNバ
イト毎にi個のブロックに分断されて沓き込まれている
An 8-bit digital 1g signal is used for the entire search, 4t of digital signals are sequentially loaded into the memory, and if necessary, the digital signals are sequentially read out from this memory and converted from D to A, resulting in an analog video signal. The process of displaying images on a display is often used. Here, as shown in Figure 1, one screen has IVI (2+1≦M≦2'') pixels in the vertical direction, m is a positive integer, and N pixels (2°-1+1≦N≦2n, n positive) in the horizontal direction. arrangement a
) pixels, and when writing the 8-bit digital value of each pixel (hereinafter referred to as [pixel data DMNJ) into memory, the pixel data D! ! , and so on, the pixel data on the first line of the screen up to N is written 1 time, and then the pixel data D2 . , hereafter j
At the same time, the pixel data on the second line is stored, and the two-dimensional position information of the pixel data DMN is converted into a one-dimensional address in the memory in the same manner. Therefore, i*j (i+j is a positive integer, 1≦1) of the quadrilateral in the shaded area A in Figure 1.
≦M, 1≦j≦N) pixel data is stored in the memory by dividing j bytes of continuous pixel data into i blocks every N bytes, as shown in Figure 2. There is.

このメモリのデータ転送を行なうには転送時間を短縮す
るだめ寺直接メモリアクセス(以下r DMA Jとい
う)方式が用いられておシ、第1図に従来のDMA方式
を用いたデータ転送装置の一例のブロック系統図を示す
。同図中、1は中央処理装置(以下rcPtJJという
)であυ、2はたとえば64にバイトのメモリである。
To transfer data from this memory, a direct memory access (hereinafter referred to as rDMA) method is used to shorten the transfer time. Figure 1 shows an example of a data transfer device using the conventional DMA method. The block system diagram is shown below. In the figure, 1 is a central processing unit (hereinafter referred to as rcPtJJ), and 2 is a 64-byte memory, for example.

CPUIはプログラム中のメモリ2に関する入出力命令
の実行を開始すると同時に、転送データの16ビツトの
スタートアドレス及びロード命令をカウンタ3に供給し
てセットし、次に転送データの16ビツトのエンドアド
レス及びロード命令をレジスタ4に供給してセットする
。この後、CPU1はDMAスタート命令(DMAST
)をl)MA制御回路5に供給する。DMA制御回路5
はこれを受けて「】」と力るDMA要求M号(DMAR
EQ) をCPUIK供給し、CPU1はコレニヨッテ
「1」トナルDMA可能信号(DMAAcK)をDMA
制御回路5及びアドレスバスドライバ6に供給し、これ
と共に、DMA要求信号が「1」である期間データバス
6を放棄する。
At the same time as the CPU starts executing the input/output instructions regarding memory 2 in the program, it supplies and sets the 16-bit start address and load instruction of the transfer data to the counter 3, and then sets the 16-bit start address and load instruction of the transfer data. A load instruction is supplied to register 4 and set. After this, CPU1 issues a DMA start command (DMAST
) is supplied to l) the MA control circuit 5. DMA control circuit 5
In response to this, the DMA request number M (DMAR
EQ) is supplied to CPUIK, and CPU1 outputs the ``1'' tonal DMA enable signal (DMAAcK) to DMA.
The signal is supplied to the control circuit 5 and the address bus driver 6, and the data bus 6 is also abandoned during the period when the DMA request signal is "1".

DMA制御回路5はDMA可能信号が「1」となるとC
PU 1よりのクロックパルス(CLK)に同期したD
MAタイミングパルスを発生してカウンタ3に供給しこ
れをカウントアツプせしめる。
The DMA control circuit 5 outputs C when the DMA enable signal becomes “1”.
D synchronized with the clock pulse (CLK) from PU 1
An MA timing pulse is generated and supplied to the counter 3 to count up the counter.

カウンタ3はその16ビツトの計数値をアドレス信号と
してアドレスバスドライバ6及び比較器7の一方の入力
端子に供給する。このアドレスバスドライバ6はCPU
1より供給されるDMA可能信号が「1」である間、ア
ドレスカウンタ3よシの16ビツトのアドレス信号をア
ドレスバス8を介してメモリ2に供給する。また、比較
器7はカウンタ3よりのアドレス信号をレジスタ4より
常時供給されるエンドアドレスと比較し、両者が一致し
たとき一致信号(EQ)をDMA制御回路5に供給する
。この一致信号によってIJMA制御回路5の出力する
l)MA要求信号は「0」となり、これによってCPU
Iの出力するDMA可能信号は「0」となる。従って、
メモリ2にはスタートアドレスからエンドアドレスまで
の連続したアドレスが供給され、メモリ2のこのアドレ
スの部分の癲き込み又は読み出しが行なわれる。
The counter 3 supplies its 16-bit count value as an address signal to one input terminal of an address bus driver 6 and a comparator 7. This address bus driver 6 is a CPU
While the DMA enable signal supplied from address bus 8 is "1", a 16-bit address signal from address counter 3 is supplied to memory 2 via address bus 8. Further, the comparator 7 compares the address signal from the counter 3 with the end address constantly supplied from the register 4, and supplies a match signal (EQ) to the DMA control circuit 5 when the two match. Due to this coincidence signal, the l)MA request signal output from the IJMA control circuit 5 becomes "0", which causes the CPU to
The DMA enable signal output by I becomes "0". Therefore,
Continuous addresses from the start address to the end address are supplied to the memory 2, and the part of the memory 2 at these addresses is written into or read out.

ここで、IJMA転送はCPU1を介さずメモリ2と入
出力装置(図示せず)との間でデータ転送を行なうもの
であるが、DMA転送時間はスタートアドレス、エンド
アドレスのセットアツプ時間と、実際のメモリアクセス
タイムに大別きれ、CPtJtが8ピツトのマイクロプ
ロセッサであるときメモリアクセスタイムが1バイト当
り1μs程度であるのに対しセットアツプ時間は30〜
60μsを要する。第3図示の従来の装置では、1回の
DMA転送は連続したアドレスしかできず、第2図に示
す如くi個のブロックに分割されている場合の転送効率
を考えると、たとえばJ ” 2 + ’ ”500、
セットアツプ時間が50μsと仮定するとこの1000
バイトのデータ転送時間は2600 (=(2X1 +
 50 ) X 500))μSとなシセットアップ時
間がこのうちの約96%を占めて非常に転送効率が悪く
なるという欠点があった。
Here, IJMA transfer is a data transfer between the memory 2 and an input/output device (not shown) without going through the CPU 1, but the DMA transfer time is determined by the set-up time of the start address and end address, and the actual When CPtJt is an 8-bit microprocessor, the memory access time is approximately 1 μs per byte, while the setup time is approximately 30 to 30 μs per byte.
It takes 60 μs. In the conventional device shown in FIG. 3, one DMA transfer can only perform consecutive addresses, and considering the transfer efficiency when the blocks are divided into i blocks as shown in FIG. 2, for example, J ” 2 + ' ``500,
Assuming that the setup time is 50μs, this 1000
The data transfer time of bytes is 2600 (=(2X1 +
The setup time of 50) x 500) μS occupies about 96% of this time, resulting in a very poor transfer efficiency.

本発明は上記の欠点を除去したものであり、第4図以下
と共にその各実施例につき説明する。
The present invention eliminates the above-mentioned drawbacks, and each embodiment thereof will be described with reference to FIG. 4 and subsequent figures.

本発明は画素データを記憶するメモリのアドレスを画面
上の行と列とに対応した2次元のアドレスとして考え、
第1図の斜線部人の全画素データを1回のセットアツプ
で転送するものであり、たとえば、1画面を横(X)方
向256(−28)II!II素、縦(Y)方向256
画素に分割するとき、横方向を8ビツトのXアドレス、
縦方向を8ビツトのXアドレスとして扱い、Xアドレス
を下位8ビツト、Xアドレスを上位8ビツトとする16
ビツトのXXアドレスにて64 K (= 216)バ
イトのメモリをアクセスするものである。
The present invention considers memory addresses that store pixel data as two-dimensional addresses corresponding to rows and columns on the screen,
All pixel data of the shaded area in FIG. 1 is transferred in one set-up. For example, one screen is 256 (-28) II! in the horizontal (X) direction! II element, vertical (Y) direction 256
When dividing into pixels, the horizontal direction is an 8-bit X address,
The vertical direction is treated as an 8-bit X address, and the X address is the lower 8 bits and the X address is the upper 8 bits.16
A 64K (=216) byte memory is accessed using a bit XX address.

第4図は本発明になるデータ転送装置の第1実施例の回
路図を示す。同図中、10はCPU(図示せず)からの
8ビツトのアドレス信号が入来する入力端子であり、C
PUは入出力命令の実行と同時に16ビツトのスタート
アドレスの下位8ビツト(第1図のjoにあたシたとえ
ばrooooolooJ)を入力端子10に供給すると
共に、ロード命令(xs’i’p)を入力端子11に供
給する。ロード命令(XSTP )はインバータ1′2
で反転された後レジスタ13のロード端子に供給され、
上記スタートアドレスの下位8ビツトがレジスタ13に
ラッチされる。このレジスタ13はラッチきれた8ビツ
トの信号を4ビツトのカウンタ14a 、 14bより
なる8ビツトのカウンタ14に供給しておシ、インバー
タ12よりのロード命令(XSTP )はインバータ1
5、オア回路1?、インバータ17により僅かに遅延さ
れ更に反転されてカウンタ14のロード端子に供給芒れ
、カウンタ14にはスタートアドレスの下位8ビツトが
セットされる。この後、CPUはロード命令(XENP
)を入力端子18に供給すると共にエンドアドレスの下
位8ビツト(第1図のjlにあたりたとえばroooo
onIJ)を供給し、この8ビツトの信号はレジスタ1
9にラッチされる。次にCPUはロード命令(YS’l
”P)を入力端子20に供給すると共にスタートアドレ
スの上位8ビツト(第1 図+7) jo K 6たシ
たとえばrooooooo−1)砂供給してこれを4ビ
ツトのカウンタ21a 、 21bよりなる8ビツトの
カウンタ21にセットし、更にロード命令(YENP)
を入力端子22に供給すると共にエンドアドレスの上位
8ピツド(第1図の11にあたりたとえばrooooo
lol J)を供給してこれをレジスタ23にラッチさ
せる。この後、 CPUtriM5図(A)に示すD 
M A、 、< p−ト命令(DMA5 ’、[’ )
を入力端子24に供給する。
FIG. 4 shows a circuit diagram of a first embodiment of a data transfer device according to the present invention. In the figure, 10 is an input terminal to which an 8-bit address signal from the CPU (not shown) is input;
At the same time as the input/output instruction is executed, the PU supplies the lower 8 bits of the 16-bit start address (for example, roooooloooJ for jo in FIG. 1) to the input terminal 10, and also issues a load instruction (xs'i'p). It is supplied to the input terminal 11. Load command (XSTP) is inverter 1'2
After being inverted at , it is supplied to the load terminal of register 13,
The lower 8 bits of the start address are latched into the register 13. This register 13 supplies the latched 8-bit signal to an 8-bit counter 14 consisting of 4-bit counters 14a and 14b, and the load command (XSTP) from the inverter 12 is sent to the inverter 1.
5. OR circuit 1? , is slightly delayed and further inverted by the inverter 17, and is supplied to the load terminal of the counter 14, and the lower 8 bits of the start address are set in the counter 14. After this, the CPU issues a load instruction (XENP
) is supplied to the input terminal 18, and the lower 8 bits of the end address (for example, roooo
onIJ), and this 8-bit signal is sent to register 1.
It is latched to 9. Next, the CPU issues a load command (YS'l
"P) is supplied to the input terminal 20, and the upper 8 bits of the start address (for example, rooooooo-1) are supplied to the input terminal 20, and the upper 8 bits of the start address (for example, rooooooo-1) are supplied to the input terminal 20, and this is input to the 8-bit counter consisting of the 4-bit counters 21a and 21b. Set the counter 21, and then issue a load command (YENP).
is supplied to the input terminal 22, and the upper 8 bits of the end address (corresponding to 11 in FIG. 1, for example, roooooo
lol J) and causes it to be latched into register 23. After this, D shown in CPUtriM5 diagram (A)
M A, , < p-to instruction (DMA5', [')
is supplied to the input terminal 24.

このD M Aスタート向合(Dへ4A8T )はD 
M A制御回路25を構成し電源投入時等にクリアされ
ているフリップフロップ26のプリセット端子に供給さ
れ、このフリップフロッグ26はQ端子出力が「1」と
なるようプリセットされ、「l」となったQ端子出力が
第5図の)に示すDMA要求信号(1)&IAREQ 
)として出力端子27よりC’P Uに対して出力され
る。これによってCP Uけ実行中の処理が終了した佐
第5図0に示すD M A可能信号(DMAACK)を
11」として入力端子28に供給する。1だ、入力端子
29にはCPUより第5図(LJに示すクロックパルス
(CLK)が供給されておす、このクロックパルスはフ
リップフロップ30のクロック端子に供給される一方イ
ンバータ31で反転婆れて第5図(1mlに示す反転ク
ロック信号(CLK)ときれてフリップフロップ32の
クロック端子に供給されている。このl)MAA可能信
号フリップフロッグ26よシのDMA要求信号によシフ
リアされたフリップフロップ30のD端子に供給され、
このすぐ後のクロックパルス(CLK)の立上りからフ
リップフロップ30のQ出力であルl)MA要求信号(
DMAACK2) ハm 5 図(F ) K示す如く
「1」となる。このDMA要求信号はナンド回路33に
おいてインバータ34よりの反転クロック信号と合成は
れて第5図0に示すD M Aタイミングパルス(DM
ATIMINO)とされてナンド回路35の一方の入力
端子に供給される。また、フリップフロップ30のQ出
力は反転された後8ビツトのアドレスバスドライバ36
.3?夫々の制御入力端子に供給される。このアドレス
バスドライバ37.36はDMA要求信号(DMAAC
K 2 )が「1」となると夫々カウンタ21,14よ
り供給される計数値を上位8ピツ) rooooool
l J 、下位8ビツトr 00000100 Jの計
16ビツトのアドレス信号r000000110000
0100 Jとして出力端子38よりメモリ(図示せず
)に供給する。
This D M A start opposite (4A8T to D) is D
It is supplied to the preset terminal of a flip-flop 26 that constitutes the M A control circuit 25 and is cleared when the power is turned on, and this flip-flop 26 is preset so that the Q terminal output becomes "1" and becomes "L". The Q terminal output is the DMA request signal (1) & IAREQ shown in Figure 5).
) is output from the output terminal 27 to the C'PU. As a result, when the process being executed by the CPU is completed, the DMA enable signal (DMAACK) shown in FIG. 5 is supplied to the input terminal 28 as 11''. 1, the input terminal 29 is supplied with a clock pulse (CLK) shown in FIG. The inverted clock signal (CLK) shown in FIG. 5 (1ml) is supplied to the clock terminal of the flip-flop 32. 30 is supplied to the D terminal,
From the rising edge of the clock pulse (CLK) immediately after this, the Q output of the flip-flop 30 is activated.
DMAACK2) Ham 5 becomes "1" as shown in Figure (F)K. This DMA request signal is synthesized with the inverted clock signal from the inverter 34 in the NAND circuit 33 to generate the DMA timing pulse (DM
ATIMINO) and is supplied to one input terminal of the NAND circuit 35. Further, the Q output of the flip-flop 30 is inverted and then sent to the 8-bit address bus driver 36.
.. 3? are supplied to respective control input terminals. This address bus driver 37, 36 receives a DMA request signal (DMAAC).
When K 2 ) becomes "1", the count values supplied from the counters 21 and 14 are divided into the top 8 bits) roooooool
l J, lower 8 bits r 00000100 J, total 16 bit address signal r000000110000
0100 J from the output terminal 38 to a memory (not shown).

39bとよりなる8ビツトの比較器39の一方の入力端
字に供給しており、この比較器39は他方の入力端子に
レジスタ19よりエンドアドレスの下位8ビツトを供給
されてこの内入力を比較し、一致したとき「1」となる
比較信号(XCMP)を発生してフリップフロップ32
及びナンド回路4oのに4ビツトの比較器418 、4
1bよりなる8ビツトの比較器41の一方の入力端子に
供給しており、この比較器41は他方の入力端子にレジ
スタ23よりエンドアドレスの上位8ビツトを供給され
てこの内入力を比較し、一致したとき「1」となる比較
信号(YCMP)を発生してナンド回路4oの他方の入
力端子に供給している。
The comparator 39 is supplied with the lower 8 bits of the end address from the register 19 to the other input terminal, and compares the inputs. A comparison signal (XCMP) which becomes "1" when a match is generated is generated and the flip-flop 32
and a 4-bit comparator 418, 4 in the NAND circuit 4o.
The comparator 41 is supplied with the upper 8 bits of the end address from the register 23 to the other input terminal, and compares the inputs thereof. A comparison signal (YCMP) which becomes "1" when there is a match is generated and supplied to the other input terminal of the NAND circuit 4o.

上記の状態では比較器39.41の比較信号は共Kr0
Jであり、従って、フリップフロップ32り兄〃す目コ
刀n1lJと1つておジ、このQ端子出力を供給はれて
いるナンド回路35はDMAタイミングパルス(I)M
A、T I M I MG )を出力し、これはインバ
ータ42で反転されて第5図(H)に示す))ラントア
ップ信号(XCN1’T、JP )ときれ、カウンタ1
/Iの計数入力端子に供給きれる。このため、カウンタ
14の計数値はカウントアツプされてその男1ビット(
XCNTI ) 、第2ビツト(XCNT2)。
In the above state, the comparison signals of comparators 39 and 41 are both Kr0.
Therefore, the flip-flop 32 is connected to the older brother n1lJ, and the NAND circuit 35 which supplies this Q terminal output outputs the DMA timing pulse (I)M.
A, T I M I MG ) is output, which is inverted by the inverter 42 and becomes the runt-up signal (XCN1'T, JP ) shown in FIG. 5(H), and the counter 1
/I can be supplied to the counting input terminal. Therefore, the count value of the counter 14 is counted up and the man's 1 bit (
XCNTI), second bit (XCNT2).

8(33ビツト(XCNT3)は夫々第5図(I)、(
J)、(K)に示す如く変化する。ここで、カウンタ1
4の計数値出力がrooooolllJとなると、第5
図(L)に示す比奴器39の比較信号(XCMP)は「
1」となり、第5図(M)に示すフリップフロップ32
のQラミA子出力(JJCMP)は「0」となってD 
M Aタイミングパルスはナンド回路35より出力され
なくなりカウンタ14のカウントアツプは中止される。
8 (33 bits (XCNT3) are shown in Figure 5 (I) and (
J) and (K). Here, counter 1
When the count value output of 4 becomes rooooollJ, the 5th
The comparison signal (XCMP) of the Hinakuki 39 shown in Figure (L) is “
1'', and the flip-flop 32 shown in FIG. 5(M)
The Q laminate A child output (JJCMP) becomes “0” and D
The MA timing pulse is no longer output from the NAND circuit 35, and the count-up of the counter 14 is stopped.

このとき、フリップフロップ32のQ端子出力は「1」
となり、このQ端子出力(DCλ4P)とクロックパル
ス(CI、K)とを供給されるナンド回路43の出力信
号である第5図(N)に示すロード信−q(、xt、u
)はIIJとなり、このロード信号(X」、υ)にオア
回路16.インバータ17を介して僅かに遅蝙をれ更に
反転されてカウンタ14a 、 i4bのロード端子に
供給され、これKよってカウンタ14にはレジスタ13
より供給されるスタートアドレスの下位8ピツトr 0
0000100 Jがセットさ江、比較器39の比較信
号(XCMP )は「0」となる。
At this time, the Q terminal output of the flip-flop 32 is "1"
The load signal -q(, xt, u) shown in FIG.
) becomes IIJ, and an OR circuit 16. Through the inverter 17, it is further inverted with a slight delay and is supplied to the load terminals of the counters 14a and i4b.
The lower 8 pits of the start address supplied by r 0
When 0000100J is set, the comparison signal (XCMP) of the comparator 39 becomes "0".

まだ、これと共に、ロード信号(xL7i5)はインバ
ータ44で反転されて第5図(0)に示すカウントアン
プ信号(YCNTUP )とされてカウンタ21の計数
入力端子に供給される。これによって、カウンタ21は
カウントアツプ妊れる。以上の動作によって横方向12
47分の画素データを転送するに必要なアドレス信号が
出力端子38よりメモリに供給される。
At the same time, the load signal (xL7i5) is inverted by the inverter 44 and supplied to the count input terminal of the counter 21 as a count amplifier signal (YCNTUP) shown in FIG. 5(0). This allows the counter 21 to count up. By the above operation, 12
Address signals necessary to transfer 47 minutes of pixel data are supplied to the memory from the output terminal 38.

このよりにして、カウンタ21の計数値は、カウントア
ツプ信号(YCNTUP )が供給される毎に、その第
1ビツト(YCNTl)、第2ピツト(YCNT2)第
3 ビット(YcN’ll”3)が大々第5図(P) 
、 (Q) 。
As a result, the count value of the counter 21 changes as the first bit (YCNTl), second bit (YCNT2), and third bit (YcN'll"3) each time the count up signal (YCNTUP) is supplied. Figure 5 (P)
, (Q).

(R)に示す如く変化し、上記と同様にしてト一方向1
ライン分ずつのアドレス信号がllfffl次出力され
る。
(R), and in the same way as above,
Address signals for each line are outputted in llffffl order.

このカウンタ21の計数値出力がr 00000101
 Jとなると第5図(8)に示す比較器41の比較信号
(YCMP)は「1」となる。この後、最後のアドレス
信号r0000010100000111Jが出力端子
38よシ出力されると共に、ナンド回路40の出力信号
は第5図(T)に示す如く「0」となり、更に、カウン
タ17にレジスタ13よシの8ビツトのアドレス信号が
セットされると同時に、このナンド回路40の出力信号
は「1」となる。これによってフリップフロップ26は
リセットされ、DMA要求信号(DMA几EQ)は「0
」となり、フリップフロップ30の出力するDMA可能
信号(DMAACK2)は「0」となってアドレスバス
ドライバ36.37は出力端子よりメモリにアドレス信
号を供給するのを停止し、データ転送が終了する。
The count value output of this counter 21 is r 00000101
J, the comparison signal (YCMP) of the comparator 41 shown in FIG. 5(8) becomes "1". Thereafter, the last address signal r0000010100000111J is output from the output terminal 38, and the output signal of the NAND circuit 40 becomes "0" as shown in FIG. At the same time as the 8-bit address signal is set, the output signal of this NAND circuit 40 becomes "1". As a result, the flip-flop 26 is reset and the DMA request signal (DMA EQ) becomes "0".
", the DMA enable signal (DMAACK2) output from the flip-flop 30 becomes "0", the address bus drivers 36 and 37 stop supplying address signals to the memory from their output terminals, and the data transfer ends.

このようにして、スタートアドレス、エンドアドレスを
1回セットアツプするだけで第1図の斜線部Aに示され
る画素データを連続して1回で転送することができ、た
とえば第1図においてj=21i=5001上21i=
プ時間が50μsと仮定するとこの1000−’イトの
データ転送時間は1050(=50+2X500 ) 
μsと従来の2600μsより大幅に短縮きれ、セット
アツプ時間の占める割合は0.5%以下となり、転送効
率が大幅に改善される。
In this way, by setting up the start address and end address once, the pixel data shown in the shaded area A in FIG. 1 can be transferred continuously at one time. For example, in FIG. 21i=5001 upper 21i=
Assuming that the backup time is 50 μs, the data transfer time for this 1000-'ite is 1050 (=50+2X500)
μs, which is significantly shorter than the conventional 2600 μs, and the ratio of setup time to less than 0.5%, greatly improving transfer efficiency.

第6図は本発明装置の第2実施、例のブロック系統図を
示す。同図中、CPU50は入出力命令の実行開始と共
に転送データの8ビツトの横方向画素数(第1図のjK
あたる)及び「1」であるロード命令をレジスタ51に
供給してこの横方向画素数をセットし、次にスタートア
ドレスの下位8ビツト(第1図のjoにあたる)及び「
1」であるロード命令をレジスタ52に供給してこのス
タートアドレスの下位8ビツトをセットする。このレジ
スタ52へのロード命令はオア回路53を介してレジス
タ51の8ビツトの出力信号を供給はれているカウンタ
54のロード端子及びレジスタ52の8ビツトの出力信
号を供給されているカウンタ55のロード端子に供給さ
れ、カウンタ54,55には夫々横方向画素数、スター
トアドレスの下位8ビツトがセットされる。次に、CP
U50は8ビツトの縦方向画素数(第1図のiにあたる
)及び「1」であるロード命令をカウンタ56に供給し
てこれをセットし、また、スタートアドレスの上位8ビ
ツト(第1図のioにあたる)及びロード命令をカウン
タ57に供給してこれをセットする。
FIG. 6 shows a block system diagram of a second embodiment of the apparatus of the present invention. In the figure, the CPU 50 starts executing the input/output command, and then calculates the number of 8-bit horizontal pixels of the transfer data (jK in Figure 1).
This number of pixels in the horizontal direction is set by supplying a load command which is "1" and "1" to the register 51, and then the lower 8 bits of the start address (corresponding to jo in FIG. 1) and "1" are supplied to the register 51.
1" is supplied to the register 52 to set the lower 8 bits of this start address. This load command to the register 52 is sent via the OR circuit 53 to the load terminal of the counter 54, which is supplied with the 8-bit output signal of the register 51, and to the load terminal of the counter 55, which is supplied with the 8-bit output signal of the register 52. The signal is supplied to the load terminal, and the number of pixels in the horizontal direction and the lower 8 bits of the start address are set in counters 54 and 55, respectively. Next, C.P.
U50 supplies the 8-bit vertical pixel count (corresponding to i in Figure 1) and a load command of "1" to the counter 56 to set it, and also supplies the upper 8 bits of the start address (corresponding to i in Figure 1) to the counter 56 and sets it. io) and a load instruction to the counter 57 to set it.

これらカウンタ55,57は夫々セットされた8ビツト
の計数値をアドレスバスドライバ58に供給する。
These counters 55 and 57 each supply the set 8-bit count value to the address bus driver 58.

この後、CPU50はDMAスタート命令(諒払ST)
をDMA制御回路58に供給する。I−) M A制御
回路59はこれを受けて「1」となるD bi A要求
信号(])MAREQ)をCPU50に供給し、CP 
U3Oはこれによって「1」となるDMA可能信号(国
晶へ)をD M A制御回路59及びアドレスバスドラ
イバ58に供給し、これと共に、DMA要求信号が「1
」である期間データバス60を放棄する。このアドレス
バスドライバ58はDMA可能信号が「1」である間、
アドレスカウンタ55よりの8ビツトの計数値を下位8
ビツトとし、アドレスカウンタ57よりの8ビツトの計
数値を上位8ビツトとした全16ビツトのアドレス信号
をメモリ61に供給する。また、DMA制御回路59は
、CPU50よりのJ)MA可能信号が「1」となると
CPU50より供給きれるクロックパルス(CLK)に
同期した1ハ】Aタイミングパルス(DMAT IN 
I NG )を発生してカウンタ54,55夫々の計数
人力端子に供給する。カウンタ55はDへ4Aタイミン
グパ・レスによってカウントアツプし、その8ビツトの
計数値をアドレスバスドライバ58に供給する。
After this, the CPU 50 issues a DMA start command (Ryota ST)
is supplied to the DMA control circuit 58. I-) The M A control circuit 59 receives this and supplies a D bi A request signal (]) MAREQ) which becomes "1" to the CPU 50.
U3O thereby supplies the DMA control circuit 59 and the address bus driver 58 with a DMA enable signal (to Kokusho) that becomes "1", and at the same time, the DMA request signal becomes "1".
”, the data bus 60 is abandoned for a period of time. While the DMA enable signal is "1", the address bus driver 58
The 8-bit count value from the address counter 55 is
A total of 16-bit address signals are supplied to the memory 61, with the 8-bit count value from the address counter 57 being the upper 8 bits. Furthermore, when the J)MA enable signal from the CPU 50 becomes "1", the DMA control circuit 59 generates a 1H]A timing pulse (DMAT IN) synchronized with the clock pulse (CLK) that is fully supplied from the CPU 50.
I NG ) is generated and supplied to the counting terminals of the counters 54 and 55, respectively. Counter 55 counts up D by 4A timing pulse and supplies the 8-bit count value to address bus driver 58.

また、カウンタ54はDMAタイミングパルスによって
カウントクーランし、その計数値がroooo 0OO
OJとなったとき、つまり横方向1ラインのアドレス信
号がメモリ61に供給されたとき「1」となる桁下げ信
号(BORROW)を発生してこれをカウンタ56,5
7夫々の計数入力端子に供給すると共ニ、オア回路53
を介してカウンタ54155夫々のロード端子に供耐す
る。これによって、カウンタ57はカウントアツプし、
その8ビツトの計数値をアドレスバスドライバ58に供
給し、また、カウンタ56はカウントダウンし、また、
カウンタ54.55夫々にはレジスタ51.52夫々の
8ビット出力信号が再びセットされ、次の1ラインのア
ドレス信号がメモリ61に供給きれる。このようにして
カウンタ56の計数値がroooo 0OOOJとなっ
たとき、つまり最後の1う・fンのアドレス信号がメモ
リ61に供給されたとき、カウンタ56は「°1」とな
る桁下は信号(BOILROVv )を発生してこれを
LIMA制御回路59に供給する。このカウンタ56よ
シの桁下げ信号が「1」となると、D M A制御回路
59はD M A要求信号を「0」とし、これによって
CPU50の出力するDMA可能イ8号HrOJとなシ
、アドレスバスドライバ58はメモリ61へのアドレス
信号の供給を停止し、データ転送が終了する。
Further, the counter 54 is cooled to count by the DMA timing pulse, and the count value is roooo 0OO
When OJ is reached, that is, when the address signal of one horizontal line is supplied to the memory 61, a carry down signal (BORROW) which becomes "1" is generated and this is sent to the counters 56 and 5.
7, and an OR circuit 53.
The load terminals of the counters 54155 are supplied through the counters 54155. As a result, the counter 57 counts up,
The 8-bit count value is supplied to the address bus driver 58, and the counter 56 counts down.
The 8-bit output signals of the registers 51 and 52 are set again in the counters 54 and 55, and the next line of address signals can be supplied to the memory 61. In this way, when the count value of the counter 56 becomes roooo 0OOOJ, that is, when the address signal of the last 1u/f is supplied to the memory 61, the counter 56 outputs a signal below the digit that is "°1". (BOILROVv) is generated and supplied to the LIMA control circuit 59. When the downshift signal from the counter 56 becomes "1", the DMA control circuit 59 sets the DMA request signal to "0", thereby causing the CPU 50 to output the DMA enabled No. 8 HrOJ. The address bus driver 58 stops supplying the address signal to the memory 61, and the data transfer ends.

この実施例においてもスタートアドレス及び画素データ
数を1回セットアツプするたけで第1図(5)の斜線部
Aに示される如き画素データを連続して1回で転送する
ことができる。
In this embodiment as well, by setting up the start address and the number of pixel data only once, pixel data as shown in the shaded area A in FIG. 1(5) can be continuously transferred at one time.

なお、上記実施例ではスタートアドレスを第1図の頂点
(lo、Jo)とし、エンドアドレスを頂点(j+、J
+)としたが、スタートアドレスは他のm点C’o +
J+) + (It + Jo) + (1+ +J+
)のいずれであっても良く、この場合エンドアドレスは
斜線部Aの四辺形の−の頂点であるスタートアドレスに
対向する頂点であり、各カウンタはこれに応じてカウン
トアツプもしくはカウントダウンさせれば良く、上記実
施例に限定されない。
In the above embodiment, the start address is the vertex (lo, Jo) in FIG. 1, and the end address is the vertex (j+, J
+), but the start address is another m point C'o +
J+) + (It + Jo) + (1+ +J+
), and in this case, the end address is the vertex opposite to the start address, which is the - vertex of the quadrilateral in the shaded area A, and each counter may be counted up or down accordingly. , but is not limited to the above embodiments.

なお、上記実施例ではアドレスをm=n=8゜q=16
としたが、これはm 4= nであっても良く、また、
95m −1−nであっても良く、上記実施例に限定は
れない。
In addition, in the above embodiment, the address is m=n=8゜q=16
However, this may be m 4 = n, and
95m -1-n, and is not limited to the above embodiment.

上述の如く、本発明になるデータ転送装置は、縦方向に
’l (mは正の整数)画素以下、横方向に2(nは正
の整数)画素以下に分割される1画面の画素データをq
(q≧m+n)ビットのアドレスでアクセスされるメモ
リに書き込み又は読み出しを行なわしめるデータ転送装
置において、画面の横軸及び縦軸で囲まれる四辺形の部
分の画素データを転送する際メモリのアドレスの下位n
ビットを四辺形の−のm点に対応するスタートアドレス
の下位nビットから−の頂点に対向する損声、に対応す
るエンドアドレスの下位nビット寸で順次変化させ、メ
モリのアドレスの上位(q−n)ビットをスタートアド
レス(又はエンドアドレス)の上位(q −n )ビッ
トからエンドアドレス(又はスタートアドレス)の上位
(q−n)ビットまで順次変化きせる毎に上記メモリの
アドレスの下位nビットの順次変化を繰り返させてメモ
リにアドレスを供給することにより画素データを転送す
るため複数ラインの画素データをスタートアドレス及び
エンドアドレス、または、スタートアドレス及び画素デ
ータ数の1回のセットアツプで連続して1回で転送する
ことができ、その転送時間を短縮することができ、また
、転送効率を改善することができる等の特長を有するも
のである。
As described above, the data transfer device according to the present invention has pixel data of one screen that is divided into 'l (m is a positive integer) pixels or less in the vertical direction and into 2 (n is a positive integer) pixels or less in the horizontal direction. q
In a data transfer device that writes to or reads from a memory that is accessed using (q≧m+n) bit addresses, the address of the memory is lower n
The bits are sequentially changed from the lower n bits of the start address corresponding to the m points of the quadrilateral to the lower n bits of the end address corresponding to the peak of the quadrilateral, and the upper n bits of the memory address (q -n) bits are sequentially changed from the upper (q −n) bits of the start address (or end address) to the upper (q−n) bits of the end address (or start address), the lower n bits of the above memory address are changed sequentially. In order to transfer pixel data by supplying addresses to the memory by repeating sequential changes, multiple lines of pixel data are consecutively set up with a start address and an end address, or a start address and the number of pixel data. It has the advantage that it can be transferred in one go, the transfer time can be shortened, and the transfer efficiency can be improved.

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

第1図は1画面を構成する画素データの配置を示す図、
第2図はメモリ上での第1図示の斜線部の画素データの
配置を模式的に示す図、第3図は従来のデータ転送装置
の一例のブロック系統図、第4図は本発明装置の第1実
施例の回路図、第5図(8)〜G)は第4図示の装置各
部の波形図、第6図は本発明装置の第2実施例のブロッ
ク系統図である。 10.11,18,20,22,24,28゜29・・
・入力端子、12,15,17,31,34゜42.4
4・・・インバータ、13,19.23゜51.52・
・・レジスタ、14,21.54〜57・・・カウンタ
、25.59・・・DMA制御回路、26゜30.32
・・・フリップフロップ、27.38・・・出力端子、
33.35.40.43・・・ナンド回路、36.37
.58・・・アドレスバスドライバ、39゜41・・・
比教器、53・・・オア回路、61・・・メモリ。 第1図 第2図
FIG. 1 is a diagram showing the arrangement of pixel data constituting one screen,
FIG. 2 is a diagram schematically showing the arrangement of pixel data in the shaded area shown in FIG. 1 on the memory, FIG. 3 is a block diagram of an example of a conventional data transfer device, and FIG. The circuit diagram of the first embodiment, FIG. 5(8) to G) are waveform diagrams of various parts of the device shown in FIG. 4, and FIG. 6 is a block system diagram of the second embodiment of the device of the present invention. 10.11, 18, 20, 22, 24, 28°29...
・Input terminal, 12, 15, 17, 31, 34°42.4
4... Inverter, 13, 19.23°51.52.
...Register, 14,21.54-57...Counter, 25.59...DMA control circuit, 26°30.32
...Flip-flop, 27.38...Output terminal,
33.35.40.43... NAND circuit, 36.37
.. 58...Address bus driver, 39°41...
Hikyoki, 53...OR circuit, 61...memory. Figure 1 Figure 2

Claims (1)

【特許請求の範囲】[Claims] 縦方向に2m(mは正の整数)画素以下、4V4方向に
2°(nは正の整数)画素以下に分割される1画面の画
素テークをq(q≧m+n)ビットのアドレスでアクセ
スされるメモリに書き込み又は説み出しを行なわしめる
データ転送装置において、画面の横軸及び縦軸で囲まれ
る四辺形の部分の画素データを転送する際該メモリのア
ドレスの下位nヒツトを該四辺形の−の頂点に対応する
スタートアドレスの下位nビットから該−の頂点に対向
する頂点に対応するエンドアドレスの下位nビットまで
順次便化略せ、該メモリのアドレスの上位(q−n)ビ
ットを該スタートアドレス(又はエンドアドレス)の上
位(q ll)ビットから該エンドアドレス(又はスタ
ートアドレス)の上位(q−n)ビットまで順次変化さ
せる毎に上記該メモリのアドレスの下位丁1ビットの順
次変化を繰り返させて該メモリにアドレスを供給するこ
とにより画素データを転送することを特徴とするデータ
転送装置。
A pixel take of one screen divided into 2 m (m is a positive integer) pixels or less in the vertical direction and 2° (n is a positive integer) pixels in the 4V4 direction is accessed with a q (q≧m+n) bit address. When transferring pixel data of a quadrilateral area surrounded by the horizontal and vertical axes of the screen in a data transfer device that writes or outputs data into a memory, the lower n addresses of the memory are transferred to the quadrilateral area. From the lower n bits of the start address corresponding to the vertex of - to the lower n bits of the end address corresponding to the vertex opposite to the vertex of -, the upper (q-n) bits of the memory address are Every time the upper (qll) bits of the start address (or end address) are changed sequentially to the upper (qn) bits of the end address (or start address), the lower 1 bit of the memory address is sequentially changed. A data transfer device characterized in that pixel data is transferred by repeatedly supplying an address to the memory.
JP11828682A 1982-07-07 1982-07-07 Data transfer device Pending JPS5910084A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP11828682A JPS5910084A (en) 1982-07-07 1982-07-07 Data transfer device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11828682A JPS5910084A (en) 1982-07-07 1982-07-07 Data transfer device

Publications (1)

Publication Number Publication Date
JPS5910084A true JPS5910084A (en) 1984-01-19

Family

ID=14732903

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11828682A Pending JPS5910084A (en) 1982-07-07 1982-07-07 Data transfer device

Country Status (1)

Country Link
JP (1) JPS5910084A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61228582A (en) * 1985-04-02 1986-10-11 Sharp Corp Picture processor
JPS61233869A (en) * 1985-04-08 1986-10-18 Sharp Corp Picture processor
JPS62139057A (en) * 1985-12-13 1987-06-22 Nec Corp Address control circuit
WO2000003381A1 (en) * 1998-07-09 2000-01-20 Seiko Epson Corporation Driver and liquid crystal device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5480651A (en) * 1977-12-12 1979-06-27 Agency Of Ind Science & Technol Video processor
JPS56119571A (en) * 1980-02-23 1981-09-19 Ricoh Co Ltd Memory addressing method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5480651A (en) * 1977-12-12 1979-06-27 Agency Of Ind Science & Technol Video processor
JPS56119571A (en) * 1980-02-23 1981-09-19 Ricoh Co Ltd Memory addressing method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61228582A (en) * 1985-04-02 1986-10-11 Sharp Corp Picture processor
JPS61233869A (en) * 1985-04-08 1986-10-18 Sharp Corp Picture processor
JPS62139057A (en) * 1985-12-13 1987-06-22 Nec Corp Address control circuit
WO2000003381A1 (en) * 1998-07-09 2000-01-20 Seiko Epson Corporation Driver and liquid crystal device

Similar Documents

Publication Publication Date Title
US4665551A (en) Apparatus and method for implementing transformations in digital image processing
JPS61249175A (en) Graphic processor
JPS6145369A (en) Digital image frame processor
JPS61249086A (en) Image display method and apparatus for adjacent display zone
JPS5910084A (en) Data transfer device
JPS63285682A (en) Electronic image processing method and circuit
US4835611A (en) Timing signal generator for a video signal processor
JPS6362083A (en) Projection data generation system
JPS59101089A (en) Memory circuit
JPH0520450A (en) Picture processor
JPH04130945A (en) Information processor
JPS6045458B2 (en) External memory control method for image terminal equipment
JPS62296278A (en) Image memory control system
JP2557630B2 (en) Image reduction device
JPS648337B2 (en)
JP3115634B2 (en) Image display device
JP2000020705A (en) Parallel image processing processor
JPH01270176A (en) Graphic display system allowed to deliver partial image
JPH0296878A (en) Picture processor
JPH0411283A (en) Patter converting device
JPS617769A (en) Image memory write control system
JPH02199972A (en) Picture display controller
JPH01305769A (en) Picture reducing device
JPH04195449A (en) Direct memory access transfer controller
JPH03137775A (en) Picture processing device