JPS62249282A - Image memory - Google Patents
Image memoryInfo
- Publication number
- JPS62249282A JPS62249282A JP9358886A JP9358886A JPS62249282A JP S62249282 A JPS62249282 A JP S62249282A JP 9358886 A JP9358886 A JP 9358886A JP 9358886 A JP9358886 A JP 9358886A JP S62249282 A JPS62249282 A JP S62249282A
- Authority
- JP
- Japan
- Prior art keywords
- data
- address
- image
- memory
- bits
- 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
Links
Landscapes
- Image Input (AREA)
Abstract
Description
【発明の詳細な説明】
〔発明の技術分野〕
本発明はメモリに係り、特に画像データを記憶する画像
メモリに関する。DETAILED DESCRIPTION OF THE INVENTION [Technical Field of the Invention] The present invention relates to a memory, and more particularly to an image memory for storing image data.
マイクロプロセッサの発展により、画像データの複雑な
処理が可能となった。例えば得られた図形の表示画像に
おける回転等があげられる。The development of microprocessors has made it possible to perform complex processing of image data. For example, rotation in the displayed image of the obtained figure can be mentioned.
前述の図形の画像データは例えば各ドツトの白や黒を′
″0″や′″11で表す1ビツトのデータであり、複数
ドツト単位でメモリに記憶している(カラーや階調を有
する場合には複数ビットを1ドア)に割り当てている)
。第10図は画像データ(256ドツト×256ドツト
)を記憶するメモリの構成図である。■アドレスは1ワ
ード(16ビツト)より成り、画像の横方向(X方向画
像)のドツトを16ドツト、縦方向(Y方向画像)を1
ドツトで1ワードとして画像の位置に対応するように格
納している。画像の左上ドツトより右側に16ドツトで
区切りその16ドツトのデータ(16ビツト)を画像ア
ドレス“0OOH”に、また次の右側16ドツトを画像
アドレスXGを“0010″に格納している。The image data of the above-mentioned figure is, for example, the white and black of each dot.
It is 1-bit data represented by "0" or ""11, and is stored in memory in units of multiple dots (in the case of colors or gradations, multiple bits are assigned to one door).
. FIG. 10 is a block diagram of a memory that stores image data (256 dots x 256 dots). ■The address consists of 1 word (16 bits), 16 dots in the horizontal direction (X-direction image) of the image, and 1 dot in the vertical direction (Y-direction image).
One word of dots is stored so as to correspond to the position of the image. The image is divided into 16 dots to the right of the upper left dot, and the data of the 16 dots (16 bits) is stored in the image address "0OOH", and the next 16 dots on the right are stored in the image address XG "0010".
横方向は256ドツトであるので、16アドレス(アド
レスの最下位4ビツト)が1行分のアドレスである。そ
して、Y方向画像アドレス(YG)を1ドツトの行単位
で” 0OOH″から1010H″・・とじて格納して
いる(尚、@”の中のHは16進を表す)。Since there are 256 dots in the horizontal direction, 16 addresses (the lowest 4 bits of the address) are the addresses for one row. The Y-direction image address (YG) is stored in rows of one dot as "0OOH" to 1010H" (the "H" in "@" represents hexadecimal).
従来、前述したメモリに格納したデータを読出す時には
順次アドレス000、アドレス001・・・アドレス0
10、アドレス021・・・の順に読出すことにより、
正位置すなわち回転しない画像データ(回転させていな
い場合)を得ることができる。Conventionally, when reading data stored in the memory mentioned above, address 000, address 001, . . . address 0 are sequentially read out.
By reading in the order of 10, address 021...
It is possible to obtain image data in the normal position, that is, unrotated image data (when not rotated).
一方、例えば表示画面上に表示した時の位置から90°
右回転した画像データを得る時には、左下側の1ドツト
に対応するビットを上方向に読出していた。すなわち、
16ビツト中のMSB(B15)を表示画面の左側とし
たならば、アドレスFFO〜アドレスFOOの16ワー
ドを順次読出すとともにその16ワードの各ビット15
(B15)を1ワードとして構成し、その得られた1ワ
ードが画面上の左上の1ワード(アドレス000)とし
ている。On the other hand, for example, 90 degrees from the position when displayed on the display screen.
When obtaining right-rotated image data, the bit corresponding to one dot on the lower left side is read upward. That is,
If the MSB (B15) of the 16 bits is placed on the left side of the display screen, 16 words from address FFO to address FOO are sequentially read out, and each bit 15 of the 16 words is read out.
(B15) is configured as one word, and the obtained one word is one word (address 000) at the upper left on the screen.
そして次にはアドレスEFO〜アドレスEOOの16ワ
ードを読出すとともにその16ワードの各ビット15(
B15)を1ワードとして次の1ワード(アドレス00
1)としている。縦一列を読出した後には、同じアドレ
スFFO〜FOOの16ワードを読出して、その16ワ
ードのビット14(B14)を1ワードとしている。さ
らに16列が読出した後にはアドレスEFO〜EOOの
16ワードのビット15(B15)より同様に1ワード
としている。このような16ワードの読出しと1ビツト
の選択によって、90°右回転した画像データを得てい
る。Next, 16 words from address EFO to address EOO are read out, and each bit 15 (
B15) as one word and the next one word (address 00
1). After reading out one vertical column, 16 words at the same addresses FFO to FOO are read out, and bit 14 (B14) of the 16 words is set as one word. After further 16 columns have been read, one word is similarly read from bit 15 (B15) of 16 words of addresses EFO to EOO. By reading out 16 words and selecting 1 bit in this manner, image data rotated to the right by 90° is obtained.
前述した従来の90°の回転においては、1ワ一ド単位
でデータを読出すにもかかわらず、読出した1ワード内
の1ビツトのデータが有効のビットとなる。換言するな
らば、読出した16ビツト中、15ビツトが無効のデー
タとなる。また、書込む場合には書込む為の16ビツト
のデータを1ビット単位で分割するとともに、目的の位
置の1ワードを読出して1ピント変換し、再度書込むと
いう動作を行っている。即ち、16ビツトでの読出しや
書込み機能を有するにもかかわらず、その中の処理は1
ビツトで行われており、処理が遅くなるという問題を有
している。特に書込みの時には一度読出した後書込むた
め、さらに処理に時間を有するという問題があった。In the conventional 90° rotation described above, although data is read in units of one word, one bit of data within one read word becomes a valid bit. In other words, 15 bits out of the 16 bits read are invalid data. Further, when writing, the 16-bit data for writing is divided into 1-bit units, and 1 word at the target position is read out, 1 pinpoint conversion is performed, and the data is written again. In other words, although it has 16-bit read and write functions, the processing within it is only 1
This is done using bits, which has the problem of slow processing. Particularly in writing, since the data is read once and then written, there is a problem in that it takes additional processing time.
前述したメモリを順次横方向に直接アクセスして、CR
T等の表示装置にビデオ信号として出力するような場合
には、メモリのアクセスを前述したように動作する回路
を用いて行う。しかしながら、横方向の読出しスピード
と縦方向の読出しスピードとが異なり、また得られたワ
ードのドツト単位での処理が異なる(横方向は1ワード
読出すたびにパラレルイン−シリアルアウトのレジスタ
を用いて処理し、縦方向は1ワード読出すたびに目的の
ビットを選択して出力する)為、回路が複雑となる問題
を有していた。Directly access the memory described above sequentially in the horizontal direction, and
In the case of outputting the video signal to a display device such as T, etc., memory access is performed using a circuit that operates as described above. However, the read speed in the horizontal direction and the read speed in the vertical direction are different, and the processing of the obtained word in units of dots is different (in the horizontal direction, a parallel in-serial out register is used each time one word is read out). (in the vertical direction, the target bit is selected and output every time one word is read out), which has the problem of complicating the circuit.
本発明は、上記従来の欠点に鑑み、横方向からのメモリ
をアクセスする場合にも、また縦方向からメモリをアク
セスする場合にも、目的とした複数のドツトデータを同
時に出力する画像メモリを提供することを目的とした。In view of the above conventional drawbacks, the present invention provides an image memory that simultaneously outputs a plurality of targeted dot data both when accessing the memory from the horizontal direction and when accessing the memory from the vertical direction. The purpose was to.
本発明は上記目的を達成するために、nxnドツトの画
像データの複数ドツトを1アドレスとした単位で記憶す
るメモリにおいて、前記画像データのドツトの横方間の
行あるいは縦方向の列の少なくとも一方に対応して、前
記メモリの横方向の行あるいは縦方向の列の少なくとも
一方を順次1ドツト分シフトして記憶することを特徴と
した。In order to achieve the above object, the present invention provides a memory that stores a plurality of dots of image data of nxn dots in units of one address. In response to this, at least one of the horizontal rows and vertical columns of the memory is sequentially shifted by one dot and stored.
以下、図面を用いて本発明の詳細な説明する。 Hereinafter, the present invention will be explained in detail using the drawings.
第1図は本発明のメモリ配置図である。図中、各ドツト
に対応するワク内の上部はメモリアドレスを下部はその
アドレス内のピント位置を表している。基本画像のY座
標(YK)が“00”で、基本画像のX座標(XK)が
OOの時をメモリのアドレスADD″oooo ’″の
ドツト15(Dl5)に割当てである。そして順次基本
画像のX座標(X K)方向に16ビツト単位で16ア
ドレス(FH;Hは16進)分順次歩進させるとともに
その間のドツトをピント15〜ビア)0(DI5〜Do
)に割当ている。また基本画像のY座標(YK)が“0
1”では、基本画像のY座標(YK)に対応する基本画
像の横1行を1ワ一ド単位で前述した基本画像のY座標
(Y K)が“00″の場合のドツト対応を1ビツト分
シフトした形で割り当てである。FIG. 1 is a memory layout diagram of the present invention. In the figure, the upper part of the box corresponding to each dot represents a memory address, and the lower part represents a focus position within that address. When the Y coordinate (YK) of the basic image is "00" and the X coordinate (XK) of the basic image is OO, it is assigned to dot 15 (Dl5) of the memory address ADD "oooo '". Then, the basic image is sequentially stepped in the X coordinate (XK) direction by 16 addresses (FH; H is hexadecimal) in 16-bit units, and the dots in between are focused (15 to via) 0 (DI5 to Do).
). Also, the Y coordinate (YK) of the basic image is “0”
1", the dot correspondence when the Y coordinate (YK) of the basic image described above is "00" is set to 1 horizontal line of the basic image corresponding to the Y coordinate (YK) of the basic image in units of 1 word. The assignment is shifted by a bit.
すなわち、基本画像のY座標(YK)が@01′″では
アドレスADD“oioo”のドツトO(MO)を、そ
してその右側のビット15〜ビツト1(D15〜DI)
を1ビツト分シフトして構成している。さらに基本画像
のY座標(YK)のアドレスが歩進するたびに16ビツ
ト単位で1ビツト分シフトするようにしている。In other words, if the Y coordinate (YK) of the basic image is @01'', dot O (MO) of address ADD "oioo", and bits 15 to 1 (D15 to DI) on the right side.
It is constructed by shifting 1 bit. Further, each time the Y coordinate (YK) address of the basic image increments, it is shifted by 1 bit in units of 16 bits.
換言するならば、基本画像のY座標(YK)が“00”
の時にはアドレスADD“oooo”のビット15〜と
ット0(015〜DO)、アドレスADD“oooi
”のピント15〜ビツト0(D15〜Do)、アドレス
ADD″0002″のビット15〜ビツト0(D15〜
DO) ・・・とじ、基本画像のY座標(Y K)が
101”の時にはアドレスA D D ” 0100”
のビット0 (DO)つづいてビット15〜ビフト1
(D15〜D1)、アドレス0101のビット0(DO
)つづいてビット15〜ビフト1(D15〜D1)、ア
ドレス0102のビット0(Do) ・・・とじてい
る。さらに、基本画像のY座標(YK)が102”の時
にはアドレスADD10200″のビフ)1.OCDI
〜DO)つづいてビット15〜ビツト2(DI5〜D2
)アドレスADD”0201”のドツト1.O(Dl、
Do)、つづいてビット15〜とット2(D15〜D2
) ・・・のように順次基本画像のY座標が歩進する
為に16ビツト単位でシフトすなわち回転シフトして割
当てている。In other words, the Y coordinate (YK) of the basic image is “00”
When , bits 15 to 0 (015 to DO) of address ADD “oooo”, address ADD “ooooi”
” focus 15 to bit 0 (D15 to Do), address ADD ``0002'' bit 15 to bit 0 (D15 to Do)
DO)...If the Y coordinate (YK) of the basic image is 101", the address is ADD "0100".
bit 0 (DO) followed by bit 15 to bit 1
(D15-D1), bit 0 of address 0101 (DO
) Next, bits 15 to 1 (D15 to D1), bit 0 (Do) of address 0102, and so on are closed. Furthermore, when the Y coordinate (YK) of the basic image is 102", the address ADD10200" is 1. OCDI
~DO) Then bits 15 to 2 (DI5 to D2)
) Dot 1 of address ADD “0201”. O(Dl,
Do), followed by bits 15 to 2 (D15 to D2).
)... In order to sequentially increment the Y coordinate of the basic image, the Y coordinate is shifted in units of 16 bits, that is, rotationally shifted and assigned.
前述したような割当てにより、基本画像の横方向や縦方
向の16ビツト単位での読出し時には常にその16ビツ
ト内のビット値(D15〜Do)は異なる。これにより
、16ビツト単位での縦方向や横方向のアクセスが可能
となる。尚、横方向の時には同一アドレスでアクセスし
、縦方向の時にはビット単位で異なるメモリをアクセス
する。Due to the above-mentioned allocation, when a basic image is read out in units of 16 bits in the horizontal and vertical directions, the bit values (D15 to Do) within the 16 bits are always different. This allows vertical and horizontal access in units of 16 bits. Note that in the horizontal direction, the same address is accessed, and in the vertical direction, different memories are accessed bit by bit.
第2図は本発明の第1の実施例の回路構成図である。フ
レームメモリ (M15〜MO)は各々1ピントの入出
力端子I10を有し、16ビントのデータ(D15〜D
o)を入出力するメモリを構成している。尚、図中結線
部の斜線の数はビット数を表している。各フレームメモ
リM15〜MOはアドレス値(Y7〜YO,X3〜XO
)が加わるアドレス入力端子と、ブロック値(BLK6
〜BLKO)が加わるブロック入力端子とを有する。FIG. 2 is a circuit diagram of the first embodiment of the present invention. The frame memories (M15 to MO) each have a 1-pin input/output terminal I10, and 16-bit data (D15 to D
o) constitutes a memory for inputting and outputting. Note that the number of diagonal lines in the connecting portion in the figure represents the number of bits. Each frame memory M15~MO has an address value (Y7~YO, X3~XO
) is added to the address input terminal and the block value (BLK6
~BLKO) is added to the block input terminal.
フレームメモリ(M15〜MO)は複数画面を記憶する
容量を有′しており、この複数画面を指示する端子が、
ブロック値(B L K 6〜BLKO)が加わるブロ
ック入力端子である。このブロック値(BLK6〜BL
KO)によって目的のブロックすなわち画面のページが
指定される。The frame memory (M15 to MO) has the capacity to store multiple screens, and the terminal for specifying the multiple screens is
This is a block input terminal to which block values (BLK 6 to BLKO) are added. This block value (BLK6~BL
KO) specifies the target block, that is, the page of the screen.
基本画像のY座標(YK)の上位ビット(YK7〜YK
4)とX座標XKの上位4ビツト(XK7〜XK4)は
それぞれセレクタSLIの入力端子AとセレクタSL2
の入力端子B、セレクタSLIの入力端子Bとセレクタ
SLlの入力端子Aに加わる。セレクタSLI、SL2
は入力端子A、Bに加わるデータを選択して出力端子C
にデータを出力する回路であり、この選択は選択端子S
ELに加わる垂直水平切換信号H/Vによって決定され
る。垂直水平切換信号H/VがLレベル″O″の時には
セレクタSL1、SL2は入力端子Aに加わるデータを
選択して出力端子Cに出力し、Hレベル@1″の時にそ
の逆に入力端子Bに加わるデータを選択して出力端子C
に出力する。以下では、先ず選択信号H/ VがLレベ
ルの信号である時について説明する。この時には前述の
セレクタSLIは基本画像のY座標の上位4ビツトYK
7〜YK4を選択し、セレクタSL2は基本画像のX座
標の上位4ピツ)XK7〜XK4を選択し、各出力端子
Cに出力する。The upper bits of the Y coordinate (YK) of the basic image (YK7 to YK
4) and the upper 4 bits (XK7 to XK4) of the X coordinate XK are input terminal A of selector SLI and selector SL2, respectively.
, input terminal B of selector SLI, and input terminal A of selector SLl. Selector SLI, SL2
selects the data applied to input terminals A and B and outputs it to output terminal C.
This is a circuit that outputs data to the selection terminal S.
It is determined by the vertical/horizontal switching signal H/V applied to EL. When the vertical/horizontal switching signal H/V is at L level "O", selectors SL1 and SL2 select the data applied to input terminal A and output it to output terminal C, and vice versa when it is at H level @1". Select the data to be added to output terminal C
Output to. In the following, first, the case where the selection signal H/V is an L level signal will be explained. At this time, the aforementioned selector SLI selects the upper 4 bits of the Y coordinate of the basic image, YK.
7 to YK4 are selected, and the selector SL2 selects the top four pixels of the X coordinate of the basic image (XK7 to XK4) and outputs them to each output terminal C.
セレクタSLIの出力端子Cは排他的論理和群EORG
2を介して選択した基本画像YKの上位4ビツトYK7
〜YK4)を信号YS3〜YSOとしてフレームメモリ
M15〜MOのアドレス値Y7〜Y3が加わる端子に出
力する。排他的論理和群EORC;2の一方の入力には
垂直水平切換信号H/Vが加わっているので、排他的論
理和群EORG2はバッファとして動作し、セレクタS
L1の出力論理は反転されずに、前述したフレームメモ
リM15〜MOの端子に加わる。セレクタSL2の出力
端子は選択した基本画像XKの上位4ビツト (XK7
〜XK4)をフレームメモリM15〜MOのアドレス値
X3〜XOが加わる端子に出力する。一方、基本画像の
Y座標(YK)の下位4ピツ)(YK3〜YKO)は排
他的論理和群EORGIを介してアドレスデコーダのA
DRRのデコード入力値YA3〜YAOが加わる端子と
デコーダDRHのデコード入力値YB3〜YBOを入力
する端子に加わる。排他的論理和群EORGIの一方の
ゲートには垂直水平切換信号H/Vが加わり、他方には
それぞれ基本画像のアドレスYKの下位4ビツト (Y
K3〜YKO)が加わっている。よって、垂直水平切換
信号H/VがLレベルの時には排他的論理和群EORG
1は非反転回路すなわち単なるバッファとして動作する
。アドレスデコーダADRRは前述した排他的論理和群
EORCIの出力がアドレス値YB3〜YBOとして加
わる他に垂直水平切換信号H/ Vがアドレスデコーダ
ADRRの端子Sに加わっており、これらの信号によっ
てメモリM15〜MOのアドレス値Y7〜YOが加わる
端子の下位4ビツトに対し特定のデコード値QF3〜Q
FO,・・・QO3〜QOOを出力する。Output terminal C of selector SLI is exclusive OR group EORG
The upper 4 bits of the basic image YK selected through 2
~YK4) are output as signals YS3 to YSO to terminals to which address values Y7 to Y3 of frame memories M15 to MO are added. Since the vertical/horizontal switching signal H/V is applied to one input of exclusive OR group EORC;2, exclusive OR group EORG2 operates as a buffer and selector S
The output logic of L1 is not inverted and is applied to the terminals of the frame memories M15 to MO mentioned above. The output terminal of selector SL2 outputs the upper 4 bits of the selected basic image XK (XK7
~XK4) are output to terminals to which address values X3 to XO of frame memories M15 to MO are added. On the other hand, the lower 4 bits (YK3 to YKO) of the Y coordinate (YK) of the basic image are sent to A of the address decoder via the exclusive OR group EORGI.
It is applied to a terminal to which decoded input values YA3 to YAO of DRR are applied and to a terminal to which decoded input values YB3 to YBO of decoder DRH are inputted. The vertical/horizontal switching signal H/V is applied to one gate of the exclusive OR group EORGI, and the lower 4 bits (Y
K3~YKO) has been added. Therefore, when the vertical/horizontal switching signal H/V is at L level, exclusive OR group EORG
1 operates as a non-inverting circuit, that is, a simple buffer. In the address decoder ADRR, in addition to the output of the exclusive OR group EORCI mentioned above being added as address values YB3 to YBO, a vertical/horizontal switching signal H/V is also applied to the terminal S of the address decoder ADRR, and these signals cause the memories M15 to M15 to A specific decode value QF3~Q is applied to the lower 4 bits of the terminal to which the MO address values Y7~YO are added.
FO, . . . outputs QO3 to QOO.
第3図はアドレスデコーダADRRの入出力データ図表
である。第3図(a)は垂直水平切換信号H/ VがL
L/へ7L/(すなわちH/V−0)の時の、第3図(
b)は垂直水平切換信号H/VがHレベル(H/V−1
)の時のそれぞれの入出力データ図表である。前述した
ように垂直水平切換信号H/VがLの時には、第3図(
a)のように出力データが決定され各フレームメモリM
15〜MOに加わるアドレス値Y3〜YOすなわち各デ
コード出力QF3〜QF O,・・・QO3〜QOOは
デコード入力値YB3〜YBOと同じとなってフレーム
メモリM15〜MOに加わる。FIG. 3 is an input/output data chart of address decoder ADRR. Figure 3(a) shows that the vertical/horizontal switching signal H/V is L.
Figure 3 (at the time of 7L/ (i.e. H/V-0) to L/
In b), the vertical/horizontal switching signal H/V is at H level (H/V-1
) is the input/output data chart for each time. As mentioned above, when the vertical/horizontal switching signal H/V is L, as shown in Fig. 3 (
The output data is determined as shown in a) and each frame memory M
The address values Y3-YO added to frame memories M15-MO, that is, the respective decoded outputs QF3-QFO, .
前述した各値(ブロック値B6〜BOとアドレス値Y7
〜YO,X3〜XO)がフレームメモリM15〜MOに
加わることにより、各フレームメモリM15〜MOはそ
の値に対応したデータDI5〜Doを出力あるいは入力
する。なお、各フレームメモリM15〜MOには前述し
た他にリード・ライト信号R/Wが加わっており、この
リード・ライト信号R/WがLの時にはリード、Hレベ
ルの時にはライト動作と各メモリM15〜MOはなる。Each of the above-mentioned values (block values B6 to BO and address value Y7
~YO, X3-XO) are added to the frame memories M15-MO, each frame memory M15-MO outputs or inputs data DI5-Do corresponding to the value. In addition, a read/write signal R/W is added to each frame memory M15 to MO in addition to the above-mentioned one, and when this read/write signal R/W is at L level, a read operation is performed, and when it is at an H level, a write operation is performed, and each memory M15 ~MO becomes.
すなわち、Lレベルの時には記憶したデータを出力し、
Hレベルの時には加わるデータを入力する。アドレス値
Y7〜YO,X3〜XOは第1図における横方向に対し
16ビツト分をアクセスするのと同じであり、例えばリ
ードの時には横方向に対し16ビツト分が同時に読出さ
れる。In other words, when it is at L level, it outputs the stored data,
When the level is H, data to be added is input. Address values Y7 to YO and X3 to XO are the same as accessing 16 bits in the horizontal direction in FIG. 1, and for example, when reading, 16 bits in the horizontal direction are read simultaneously.
第1図に示したように本発明の実施例においては、横方
向に対する16ビツトは常に縦方向に対して1ビツトづ
つシフトする構成となっている。このシフトを補正し、
加わる基本画像のX座標、Y座標に対し対応する位置に
するのがビットシフト回路BSCである。このビットシ
フト回路BSCにより、位置に対応したデータDB15
〜DBOを得ることができる。As shown in FIG. 1, in the embodiment of the present invention, the 16 bits in the horizontal direction are always shifted by 1 bit in the vertical direction. Correcting this shift,
The bit shift circuit BSC sets the position corresponding to the X and Y coordinates of the basic image to be added. By this bit shift circuit BSC, data DB15 corresponding to the position is
~DBO can be obtained.
デコーダDRRには前述したYK3〜YKOが排他的論
理和群EORGIの出力が加わっている。The output of the exclusive OR group EORGI of YK3 to YKO described above is added to the decoder DRR.
垂直水平切換信号H/VがLレベルの時にはこの排他的
論理和群EORGIは非反転すなわちバッファとして動
作するので、デコーダDRRには基本画像のY座標(Y
K)の下位4ピツ)(YK3〜YKO)が加わる。デコ
ーダDRRは加わった値(アドレス値)VB3〜YBO
をデコードする回路である。例えば4ビツトのアドレス
値YB3〜YBOが“0000″の時には出力SDOが
“1″となり、他は“0”となり、”0001”の時に
は出力SDIが′1′″、他はO”となるように入力し
た値に対応する出力のみを“1”とした、一方、ビット
シフト回路BSCは16個のビットシフト回路BSCQ
〜13SC15より成り、前述のデコード値に対応した
シフト量を有するように構成されている。すなわちビッ
トシフト回路B5C0は0シフト(入出力(データ)D
15〜DOと入出力DB15〜DBOは1対1で対応)
、ビットシフト回路B ’S C1は入出力(データ)
DOが入出力DB15に、入出力(データ)D15〜D
1が入出力DB14〜DBOに対応、同様に順次ビット
シフト回路B5C2〜B5Cl3はシフトして対応して
いる。When the vertical/horizontal switching signal H/V is at the L level, this exclusive OR group EORGI is not inverted, that is, it operates as a buffer, so the decoder DRR receives the Y coordinate (Y
K)'s bottom four pits) (YK3 to YKO) will be added. Decoder DRR is the added value (address value) VB3~YBO
This is a circuit that decodes the . For example, when the 4-bit address value YB3 to YBO is "0000", the output SDO becomes "1", the others become "0", when it is "0001", the output SDI becomes "1", and the others become O". On the other hand, the bit shift circuit BSC has 16 bit shift circuits BSCQ.
~13SC15, and is configured to have a shift amount corresponding to the decoded value described above. In other words, bit shift circuit B5C0 shifts 0 (input/output (data) D
15~DO and input/output DB15~DBO have a one-to-one correspondence)
, bit shift circuit B'S C1 is input/output (data)
DO is input/output DB15, input/output (data) D15-D
1 corresponds to the input/output DB14 to DBO, and similarly, the bit shift circuits B5C2 to B5Cl3 sequentially shift and correspond.
このビットシフト回路BSCによって、第1図に示した
各フレームメモリM15〜MOのドツトに対応する位置
が割当られる。なお、ビットシフト回路B5C0−B5
Cl 5はそれぞれ16個の双方向バッファによって構
成されており、前述したシフト量はこの双方向バッファ
の結線によって決定されるとともに、リード・ライト信
号R/Wでその方向が制御される。This bit shift circuit BSC allocates positions corresponding to the dots in each of the frame memories M15 to MO shown in FIG. In addition, bit shift circuits B5C0-B5
Each of the Cl 5's is composed of 16 bidirectional buffers, and the above-mentioned shift amount is determined by the connections of the bidirectional buffers, and the direction thereof is controlled by the read/write signal R/W.
以上述べた動作により、垂直水平切換信号H/ VがL
レベル(“0”)の時には、第4図に示したように各ド
ツトが配置されたごとく、外部よりアクセスすることに
より第1図に示したメモリ配置のデータをアクセスする
ことができる。なお、出力は16ビツト単位で行なわれ
るので基本画像のX座標(XK)の下位4ビツト、XK
3〜XKOは必要ない。Due to the operation described above, the vertical/horizontal switching signal H/V becomes L.
When the level is "0", the dots are arranged as shown in FIG. 4, and the data in the memory arrangement shown in FIG. 1 can be accessed by external access. Note that output is performed in units of 16 bits, so the lower 4 bits of the X coordinate (XK) of the basic image,
3~XKO is not necessary.
次に垂直水平切換信号H/VがHレベルの時について説
明する。この時にはまずセレクタSLI。Next, the case when the vertical/horizontal switching signal H/V is at H level will be explained. At this time, first selector SLI.
SL2は入力端子Bより入力したデータを選択して出力
端子Cに出力する。すなわちセレクタSLIの出力端子
Cには基本画像のX座標XKの上位4ビツトXK7〜X
K4が出力される。この出力は排他的論理和群EORG
2に加わるが、この時排他的論理和群E O’RG 2
の一方の入力に垂直水平切換信号H/ VのHレベルが
加わっているので、セレクタSLIによって選択され出
力端子Cより出力された基本画像のX座標XKの上位4
ビフトXK7〜XK4は反転すなわちインバートされる
。この反転動作により、フレームメモリM15〜MOの
アドレス値Y7〜Y4は基本画像のX座標の上位4ビツ
トXK7〜XK4の反転した値となる。例えば基本画像
をアクセスする如く、左上端より右方向にアクセスした
時には、順次F。SL2 selects data input from input terminal B and outputs it to output terminal C. That is, the output terminal C of the selector SLI has the upper 4 bits XK7 to X of the X coordinate XK of the basic image.
K4 is output. This output is the exclusive OR group EORG
2, but in this case the exclusive disjunction group E O'RG 2
Since the H level of the vertical/horizontal switching signal H/V is added to one input of the
Bifts XK7-XK4 are reversed or inverted. Due to this inversion operation, the address values Y7 to Y4 of the frame memories M15 to MO become values obtained by inverting the upper four bits XK7 to XK4 of the X coordinate of the basic image. For example, when accessing from the upper left corner to the right, such as when accessing a basic image, F is sequentially accessed.
E、・・・0. F、 E、 ・・・0・・・0と
入力が変化する。一方、基本画像のY庫裏YKの下位4
ピッ1−YK3〜YKOは排他的論理和群EORGIに
加わっており、この排(也的論理和群EORG1の一方
の入力にも前述したと同様に垂直水平切換信号H/Vが
加わっている。よってこの排他的論理和群EORG1に
よって基本画像のY座標YKの下位4ビフ1−YK3〜
YKOは反転されてアドレス値YB3〜YBOとしてア
ドレスデコーダADRRとデコーダDRRに加わる。ア
ドレスデコーダADRRは垂直水平切換信号H/vによ
って出力するデータを切換え、第3図(blに示すよう
にアドレス値YB3〜YBOを変換して各フレームメモ
リM15〜MOにデコード値QF3〜QFO,・・・Q
O3〜QOOを出力する。例えば基本画像の左上端をア
クセスした時には、排他的論理和群EORGIによって
基本画像のY座標YKの下位4ピツ)YK3〜YKOが
反転(1111″)されてアドレスデコーダに加わる。E,...0. The input changes as F, E, ...0...0. On the other hand, the bottom 4 of Y Kuri YK in the basic image
P1-YK3 to YKO are added to the exclusive OR group EORGI, and the vertical/horizontal switching signal H/V is also applied to one input of this exclusive OR group EORG1 as described above. Therefore, by this exclusive OR group EORG1, the lower 4 Biff1-YK3~ of the Y coordinate YK of the basic image
YKO is inverted and applied to address decoder ADRR and decoder DRR as address values YB3 to YBO. The address decoder ADRR switches the output data using the vertical/horizontal switching signal H/v, converts the address values YB3 to YBO as shown in FIG. 3 (bl), and stores the decoded values QF3 to QFO, .・・Q
Outputs O3 to QOO. For example, when the upper left end of the basic image is accessed, the lower four bits (YK3 to YKO) of the Y coordinate YK of the basic image are inverted (1111'') by the exclusive OR group EORGI and added to the address decoder.
“111ヒが加わった時にはアドレスデコーダADRR
は各フレームメモリM15〜MOに対し、” oooo
”、 ”1111”、 ”1110”、“0ill
l ″。“When 111 Hi is added, the address decoder ADRR
"oooo" for each frame memory M15 to MO
”, “1111”, “1110”, “0ill
l''.
“0110”、”0101”、 ”oioo”、
”ooit”。“0110”, “0101”, “oioo”,
“ooit”.
0001″を加える。また、セレクタSL2は基本画像
のY座標YKの上位4ビツトYK7〜YK4を選択して
フレームメモリM15〜MOのドツト値X3〜XOとし
て加えるので、前述した左上端をアクセスした時にはフ
レームメモリM15〜MOにはそれぞれFOOH,FF
0T(−FIOH(Hは16進を表わす。同図において
はHは略している。)が加わる。フレームメモリM15
〜MOへのこのアドレス値Y7〜YO,X3〜XOが加
わることにより、第1図における左下端より上側に向っ
て16ビツト分のデータが各フレームメモリM15〜M
Oより出力される。このデータは基本画像の左下端より
上側に対して16ビツト分のデータであるが、その順序
はシフトしている。これを補正し、第1図に示すように
DI4〜DO。0001''. Also, the selector SL2 selects the upper 4 bits YK7 to YK4 of the Y coordinate YK of the basic image and adds them as dot values X3 to XO of the frame memories M15 to MO, so when the above-mentioned upper left corner is accessed, Frame memories M15 to MO each have FOOH and FF.
0T (-FIOH (H represents hexadecimal. H is omitted in the figure) is added. Frame memory M15
By adding these address values Y7 to YO and X3 to XO to ~MO, 16 bits of data are stored in each frame memory M15 to M from the lower left end in FIG.
Output from O. This data is 16 bits of data from the lower left end of the basic image to the upper side, but the order is shifted. This is corrected and DI4-DO is performed as shown in FIG.
D15の時にするのが、ビットシフト回路BSCである
。前述したように垂直水平切換信号H/Vがハイレベル
の時には、基本画像のY座標YKの下位4ビツトが排他
的論理和群EORG1によって反転されてデコーダDR
R(YB3〜YBO)に加わるので、ビットシフト回路
B5Cl3に接続しているデコード出力5D15がHレ
ベルとなってビットシフト回路BSCのイネーブル端子
EにHレベルを加えビットシフト回路B5Cl3を動作
させる。このビットシフト回路B5Cl3の入出力(デ
ータ)D15は入出力DBOに対応し、入出力(データ
)DO−DI4は入出力DBI〜DB15に対応してい
るので、このビットシフト回路B5Cl 5によって、
入出力DB15〜DI30は基本画像の左下端より上側
に順次16ビツトを切出したものに対応する。そして、
次に基本画像のX座標XKの上位4ビツトが順次変化し
た時には、前述した動作と同様に順次縦方向にフレーム
メモリM15〜MOを読出すとともに、ビットシフト回
路BSCで特定ビットシフトされる。The bit shift circuit BSC operates at D15. As mentioned above, when the vertical/horizontal switching signal H/V is at a high level, the lower 4 bits of the Y coordinate YK of the basic image are inverted by the exclusive OR group EORG1 and sent to the decoder DR.
R (YB3 to YBO), the decode output 5D15 connected to the bit shift circuit B5Cl3 becomes H level, and the H level is applied to the enable terminal E of the bit shift circuit BSC to operate the bit shift circuit B5Cl3. The input/output (data) D15 of this bit shift circuit B5Cl3 corresponds to input/output DBO, and the input/output (data) DO-DI4 corresponds to input/output DBI to DB15, so this bit shift circuit B5Cl5 allows
Input/output DB15 to DI30 correspond to 16 bits sequentially cut out above the lower left end of the basic image. and,
Next, when the upper 4 bits of the X coordinate XK of the basic image change sequentially, the frame memories M15 to MO are sequentially read out in the vertical direction in the same manner as described above, and a specific bit is shifted by the bit shift circuit BSC.
第2図に示した本発明の実施例においては、ビットシフ
ト回路BSCは双方向バッファであり、その方向はリー
ド・ライト信号R/Wで変化する。In the embodiment of the invention shown in FIG. 2, the bit shift circuit BSC is a bidirectional buffer whose direction changes with the read/write signal R/W.
よって前述した基本画像のX座標ならびに基本画像のY
座標が加わり、メモリをアクセスした時、リード・ライ
ト信号R/WがLレベルである時フレームメモリM15
〜MOのリード、Hレベルである時ライトとなる。また
、垂直水平切換信号H/Vによって垂直方向へのアクセ
スあるいは水平方向のアクセスとなるので、垂直水平切
換信号H/VがLレベルの時には、正常位置(回転させ
ない)でのリードとライトが行なわれ、垂直水平切換信
号H/VがHレベルの時には、リード時で基本画像が右
凹°回転したデータを得ることができる。また、ライト
時には垂直水平切換信号H/VがLレベルの時に書込ん
だデータに対し左90°回転したデータがフレームメモ
リに書込まれる。Therefore, the X coordinate of the basic image mentioned above and the Y coordinate of the basic image
When coordinates are added and the memory is accessed, when the read/write signal R/W is at L level, the frame memory M15
~ MO read and write when at H level. Also, since vertical access or horizontal access is performed depending on the vertical/horizontal switching signal H/V, when the vertical/horizontal switching signal H/V is at L level, reading and writing are performed at the normal position (not rotated). When the vertical/horizontal switching signal H/V is at H level, it is possible to obtain data in which the basic image is rotated concavely to the right during reading. Furthermore, during writing, data rotated 90° to the left with respect to the data written when the vertical/horizontal switching signal H/V is at L level is written in the frame memory.
以上の動作により、垂直水平切換信号H/VのLレベル
によって右匍°回転した時の画像データを読出すことが
でき、Hレベルによって左頒度回転した画像データを書
込むことができる。また、1回の書込みや読出しで両方
向とも16ビツトを同時に得ることができ、従来と比ベ
メモリのアクセスが速(なる。Through the above-described operations, the image data when the vertical/horizontal switching signal H/V is rotated by an L level to the right can be read out, and the H level can be used to write image data when the image is rotated by an angle to the left. In addition, 16 bits can be obtained in both directions at the same time in one write or read operation, making memory access faster than in the past.
第5図は本発明の第2の実施例の回路構成図である。画
像メモリCHGは第2図に示した回路構成と同様の回路
でり、ブロック値BLK5〜BLKO1垂直水平切換信
号H/ V、アドレス値Y7〜YO,X3〜XO,リー
ド・ライト信号R/Wが加わる端子と、リード時にはデ
ータDB15〜DBOが出力されライト時にはデータD
B15〜DBOが入力される端子を有している。FIG. 5 is a circuit diagram of a second embodiment of the present invention. The image memory CHG has a circuit configuration similar to that shown in Fig. 2, and the block values BLK5 to BLKO1 vertical/horizontal switching signals H/V, address values Y7 to YO, X3 to XO, and read/write signals R/W. The input terminal and data DB15 to DBO are output when reading, and data D is output when writing.
It has terminals to which B15 to DBO are input.
第2図の回路構成すなわち画像メモリCHGでは基本画
像に対し右(資)°回転したデータの読出しと左90°
回転したデータの書込みしか行うことができなかった。In the circuit configuration shown in Figure 2, the image memory CHG reads out data rotated by 90 degrees to the right with respect to the basic image, and 90 degrees to the left.
Only rotated data could be written.
第5図の回路は(社)゛ステップすなわち十匍”、
180”、 270°右回転(270°。The circuit in Figure 5 is ``step'',
180”, 270° clockwise rotation (270°.
180°、90°左回転)した基本画像の続出や書込み
を行うことを可能とした回路である。±(資)°回転し
た画像を得ることができるならば、画像メモIJ CH
Gのアドレス値を反転し、必要な時にデータのビットを
スワップ(MSBとLSBを全ビット入換える)するこ
とにより、任意の回転画像や表裏反転画像を得ることが
できる。This circuit makes it possible to successively print and write basic images rotated by 180° or 90° to the left. If it is possible to obtain a rotated image of ±(capital)°, image memo IJ CH
By inverting the address value of G and swapping the data bits (exchanging all MSB and LSB bits) when necessary, it is possible to obtain any rotated image or reversed image.
このアドレス値の反転を行うのが排他的論理和群EOR
G3.EORG4であり、データのビットスワップを行
うのが、データスワップ回路WSCである。The exclusive OR group EOR performs the inversion of this address value.
G3. EORG4 is a data swap circuit WSC that performs data bit swapping.
排他的論理和群EORG3の一方の入力には反転制御信
号YINVが加わり、他方の入力にはY座標のアドレス
値YA7〜YAOが加わる。反転制御信号YINVが“
1”すなわちI(レベルの時にはアドレス値YA7〜Y
AOを反転し、画像メモリCHGヘアドレス値YKとし
て加える。また、反転制御信号YTNvが“0”すなわ
ちLレベルの時にはその出力は非反転(論理が反転しな
い)でそのままアドレス値YA7〜YAOを画像メモ+
J CHGのアドレス値YKとして加える。The inversion control signal YINV is applied to one input of the exclusive OR group EORG3, and the address values YA7 to YAO of the Y coordinate are applied to the other input. The inversion control signal YINV is “
1", that is, I (at level, address value YA7~Y
AO is inverted and added to the image memory CHG as address value YK. Also, when the inversion control signal YTNv is "0", that is, at L level, its output is not inverted (the logic is not inverted) and the address values YA7 to YAO are sent to the image memo +
Add as address value YK of JCHG.
排他的論理和群EORG4の一方の入力には反転制御信
号XINVが加わり、他方の入力にはX座標のアドレス
値XA7〜XA4(上位4ビツトのみ:下位は16ビツ
ト並列で読出されるので必要ない)が加わる。反転制御
信号XINVが“1”の時にはアドレス値XA7〜XA
4を反転し、画像メモリCHGへアドレス値XKを加え
る。また反転制御信号XINVが“0”の時にはその出
力は非反転で、そのままアドレス値XA7〜XA4を画
像メモリCHGのアドレス値XKとして加える。前述し
た排他的論理和群EORG3゜BORG4によってアド
レス値YA7〜YAO。The inversion control signal XINV is applied to one input of the exclusive OR group EORG4, and the other input receives the X-coordinate address values XA7 to XA4 (upper 4 bits only; lower 16 bits are not necessary as they are read in parallel). ) is added. When the inversion control signal XINV is “1”, the address values XA7 to XA
4 is inverted and the address value XK is added to the image memory CHG. Further, when the inversion control signal XINV is "0", its output is non-inverted, and the address values XA7 to XA4 are directly added as the address value XK of the image memory CHG. Address values YA7 to YAO are generated by the exclusive OR group EORG3°BORG4 described above.
XA7〜XA4を反転あるいは非反転して画像メモリC
HGに加えることができる。Image memory C by inverting or non-inverting XA7 to XA4
Can be added to HG.
一方、データスワップ回路WSCは161B1単位での
2相の双方向バッファWSC1,WSC2を有し、双方
向バッファ群WSCIは画像メモリC1(Gの入出力D
B15〜DBOをデータDD15〜DDOに対応して接
続されている。また、双方向バッファ群WSC2は画像
メモリCHGのデータDBO〜DB15をデータDD1
5〜DDOに対応して接続している。双方向バッファ群
WSCIのイネプル端子E(動作制御を行なう端子)に
はインバータINVを介してデータスワップ信号WSが
加わり、双方向バッファ群WSC2には、データスワッ
プ信号WSが直接加わっている。各双方向バッファ群W
SCI。On the other hand, the data swap circuit WSC has two-phase bidirectional buffers WSC1 and WSC2 in units of 161B1, and the bidirectional buffer group WSCI has the input/output D of the image memory C1 (G).
B15 to DBO are connected corresponding to data DD15 to DDO. Further, the bidirectional buffer group WSC2 transfers data DBO to DB15 of the image memory CHG to data DD1.
5 - Connected in accordance with DDO. The data swap signal WS is applied to the input terminal E (terminal for controlling operation) of the bidirectional buffer group WSCI via the inverter INV, and the data swap signal WS is directly applied to the bidirectional buffer group WSC2. Each bidirectional buffer group W
S.C.I.
WSe2はイネーブル端子Eに“1” (Hレベル)が
加わった時に動作するものであるので、データスワップ
信号が“11の時に画像メモリCHGの入出力DB15
〜DBOとデータDD15〜データDDOを対応させ、
すなわち、データをビット単位で上下にスワップさせ、
10″の時には、1対1に対応させて入出力を制御する
。尚、双方向バッファ群WSCI、WSC2にはリード
・ライト信号R/Wが加わっており、リード(“O”)
の時にはデータI)815〜DBOをデータDD15〜
DDO又はデータDDO−DD15に対応させて出力し
、ライト(“1″)の時にはデータDD15〜DDOを
データDB15〜DBOあるいはデータDBO〜DB1
5に対応させて画像メモリCHGに加える。WSe2 operates when “1” (H level) is applied to the enable terminal E, so when the data swap signal is “11”, the input/output DB15 of the image memory CHG is activated.
-Make correspondence between DBO and data DD15 - data DDO,
In other words, swap the data bit by bit up and down,
10'', input/output is controlled in a one-to-one correspondence. Note that the read/write signal R/W is applied to the bidirectional buffer groups WSCI and WSC2, and the read (“O”)
When , data I) 815~DBO is changed to data DD15~
It is output in correspondence with DDO or data DDO-DD15, and when writing (“1”), data DD15-DDO is output as data DB15-DBO or data DBO-DB1.
5 and added to the image memory CHG.
第6図は垂直水平切換信号H/V、反転制御信号YIN
V、XINV、データスワップ信号WSにおける読出し
時に得られる画像と書込み時に書込まれる画像の位置関
係を表わした図表である。Figure 6 shows the vertical/horizontal switching signal H/V and the inversion control signal YIN.
3 is a chart showing the positional relationship between an image obtained during reading and an image written during writing in V, XINV, and data swap signals WS.
尚、リード時の回転動作は正常位基本画像が書込まれて
いる時に読出される画像の位置状態を、またライト時に
は、書込んだデータを各信号VINV、XINV、WS
、H/Vが共に″0″状態で読出した場合の画像の位置
状態を表わしている。In addition, the rotation operation at the time of reading uses the position state of the image read when the missionary basic image is written, and the written data at the time of writing, using the signals VINV, XINV, and WS.
, H/V are both in the "0" state.
先ず垂直水平切換信号H/Vが“0”の場合を説明する
。反転制御信号YINV、XINV、データスワップ信
号WSが共に′″O″である時には、読出し、書込時に
正常位の基本画像を得、また書込むことができる。すな
わち回転しないデータの読出し、書込みが可能となる。First, the case where the vertical/horizontal switching signal H/V is "0" will be explained. When the inversion control signals YINV, XINV and the data swap signal WS are both ``O'', a normal basic image can be obtained and written during reading and writing. In other words, it is possible to read and write data without rotation.
その逆に反転制御信号YINVが“13の時には、アド
レス値YA7〜YAOが排他的論理和群EORC3によ
って反転するので、リード、ライト時共に上下逆の裏面
画像を得る。尚、書込み時には、正常の位置の基本画像
が書込まれている時には上下逆の裏面の画像が読出せ、
その逆に基本画像が入力している時には基本画像の上下
逆の裏面を書込むことができる。On the other hand, when the inversion control signal YINV is "13", the address values YA7 to YAO are inverted by the exclusive OR group EORC3, so an upside-down back image is obtained both during reading and writing. When the basic image of the position is written, the image of the upside down back side can be read,
Conversely, when a basic image is being input, it is possible to write the reverse side of the basic image upside down.
反転制御信号YINVが“O”で反転制御信号XINV
とデータスワップ信号WSが”1”の時には左右逆の裏
面の書込みと読出しができる。反転制御信号YINV、
XINVとデータスワップ信号WSが全て“1”の時に
は、X座標、Y座標が左右、上下に反転し、データスワ
ップ信号によってデータスワップするので、リード、ラ
イト時、共に180°回転した基本画像を読出せ、また
書込むことができる。When the inversion control signal YINV is “O”, the inversion control signal XINV
When the data swap signal WS is "1", writing and reading can be performed on the reverse side of the left and right sides. inverted control signal YINV,
When XINV and data swap signal WS are all "1", the X and Y coordinates are reversed horizontally and vertically, and the data is swapped by the data swap signal, so when reading and writing, the basic image rotated by 180 degrees is read. You can publish and write again.
一方、垂直水平切換信号H/Vが“1”の時には、他の
信号YINV、XTNV、WSが共に“0″である場合
前述した様に、右90°回転したデータを読出せ、左9
0”回転した画像データを書込むことができる。垂直水
平切換信号H/Vは前述した様に加わるアドレス値に対
応して右90”回転したデータを出力したり、取込んだ
りする制御を行なうものであり、この信号H/Vが“1
″で前述した反転制御信号YINVが“1”、反転制御
信号XINVとデータスワップ信号WSが“0”の時に
は上下逆の裏面の右90°回転した画像データを読出す
ことができ、また上下逆の裏面の左90゜回転した画像
データを書込むことができる。同時に垂直水平切換信号
H/ Vが“1”で反転制御信号YINVが“O”、反
転制御信号XINV、データスワフブ信号“1”の時に
は左右逆の裏面の右90”回転して画像データを読出せ
、また、左右逆の裏面の左90”回転した画像データを
書込むことができる。また、垂直水平切換信号H/V反
転制御信号YINV、XINVデータスワフブ信号WS
が共に“1”の時には右270°回転の画像データを読
出せ、左270°回転の画像データを書込むことができ
る。On the other hand, when the vertical/horizontal switching signal H/V is "1", if the other signals YINV, XTNV, and WS are all "0", data rotated 90 degrees to the right can be read out, and data rotated 90 degrees to the left can be read.
Image data rotated by 0" can be written. The vertical/horizontal switching signal H/V controls outputting or importing data rotated 90" to the right in accordance with the address value added as described above. and this signal H/V is “1”.
When the above-mentioned inversion control signal YINV is “1” and the inversion control signal It is possible to write image data rotated 90 degrees to the left on the back side of the disc.At the same time, when the vertical/horizontal switching signal H/V is "1", the inversion control signal YINV is "O", the inversion control signal XINV, and the data swap signal "1". Sometimes, it is possible to read image data by rotating the back side 90" to the right when the left and right sides are reversed, and it is also possible to write image data that is rotated 90" to the left from the back side when the left and right sides are reversed.In addition, the vertical/horizontal switching signal H/V reversal control Signal YINV, XINV data swap signal WS
When both are "1", image data rotated by 270 degrees to the right can be read, and image data rotated by 270 degrees to the left can be written.
前述した様な各種信号に目的の値を加えることにより、
リード時もライト時も表面面と裏画面での0°、90°
、180°、 270”回転した画像を得ることがで
きる。尚第6図中動作の掴が「=」はこれ以外のデータ
であり、そのほとんどは上下あるいは左右方向16ビツ
ト単位でデータが入れ換っている画像データとなってい
る。By adding the desired value to the various signals mentioned above,
0° and 90° on the front and back screens when reading and writing
, 180°, and 270" images can be obtained. In Figure 6, the "=" symbol indicates other data, and most of the data is interchanged in units of 16 bits in the vertical or horizontal direction. The image data is as follows.
前述した本発明の実施例は、表ならびに裏画面の各4方
向への回転データを書込また読出しを行う回路である。The embodiment of the present invention described above is a circuit that writes and reads rotation data in each of four directions on the front and back screens.
実際の画像データを回転処理する場合には、裏画面を用
いることはまれでありそのほとんどはおもて画面の回転
処理である。第7図は本発明の第3の実施例の回転構成
図であり、表面面の4方向(0°、90°、180°、
270°)の回転画像を読出し、また書込むことができ
る。When rotating actual image data, the back screen is rarely used, and most of the rotation processing is performed on the front screen. FIG. 7 is a rotation configuration diagram of the third embodiment of the present invention, and shows the rotation in four directions (0°, 90°, 180°,
270°) rotated images can be read and written.
第5図に示した本発明の実施例の回路構成図においては
画像メモリCHG内に有する排他的論理和群EORG2
をその入力側に設け、また、排他的論理和群EORG3
.EORG4とによって反転され、さらにまた反転され
てもとの論理にもどるという様な構成となっている。こ
の論理をまとめ、さらに裏面を出力しない様にしたのが
、第7図の本発明の第3の実施例の回転構成である。尚
、第2図、第5図における本発明の第1.第2の実施例
と同一動作の回路は、同一符号を符して説明を略す。In the circuit configuration diagram of the embodiment of the present invention shown in FIG.
is provided on its input side, and exclusive OR group EORG3
.. The configuration is such that it is inverted by EORG4, and then inverted again to return to the original logic. The rotation configuration of the third embodiment of the present invention shown in FIG. 7 is a combination of this logic and a configuration in which the back side is not output. Note that the first aspect of the present invention in FIGS. 2 and 5. Circuits that operate in the same manner as in the second embodiment are designated by the same reference numerals and explanations will be omitted.
回転制御信号FDIRQ、FDIRIは、リード時には
、格納している基本画像を90°、180°。The rotation control signals FDIRQ and FDIRI rotate the stored basic image by 90° and 180° when reading.
270 °左回転して読出し、ライト時には、90°。270° counterclockwise rotation for reading and 90° for writing.
180°、 270 ’右回転して書込む状態を制御す
る信号である。This is a signal that controls the state of writing by rotating clockwise by 180 degrees and 270'.
回転制御信号FDIRQは、セレクタSL3゜SL4の
選択端子SELに加わっている。セレクタSL3の入力
端子A、Bにはアドレス値YA7〜YA4.XA7〜X
A4が、またセレクタSL3の入力端子A、Bにはアド
レス値XA7〜XA4.YA7〜YA4が加わっている
ので、この回転制御信号FDIRQが′0″の時にはセ
レクタSL3は入力端子Aに加わるアドレス値YA7〜
YA4を選択し、セレクタSL4は入力端子Aに加わる
アドレス値YA7〜YA4を選択して、それぞれ排他的
論理和群EORG5゜EORG6の一方の入力に加える
。排他的論理和群EORG5の他方の入力には回転制御
信号FDIRIが加わっているので、この回転制御信号
FDIRIがaO”の時にはセレクタSL3の出力を非
反転で、@1″の時にはセレクタSL3の出力を反転し
、アドレス値YA7〜YA4としてフレームメモリM1
5〜MOに加える。排他的論理和EORの入力は前述し
た回転制御信号FDIRQ、FDIRIが加わっている
。The rotation control signal FDIRQ is applied to selection terminals SEL of selectors SL3 to SL4. Address values YA7 to YA4 . are input to input terminals A and B of selector SL3. XA7~X
A4, and input terminals A and B of selector SL3 have address values XA7 to XA4. Since YA7 to YA4 are added, when this rotation control signal FDIRQ is '0'', selector SL3 selects the address values YA7 to YA7 applied to input terminal A.
Selector SL4 selects address values YA7 to YA4 to be applied to input terminal A and applies them to one input of exclusive OR groups EORG5 and EORG6, respectively. Since the rotation control signal FDIRI is applied to the other input of the exclusive OR group EORG5, when the rotation control signal FDIRI is aO'', the output of the selector SL3 is non-inverted, and when it is @1'', the output of the selector SL3 is is inverted and stored in frame memory M1 as address values YA7 to YA4.
5-Add to MO. The aforementioned rotation control signals FDIRQ and FDIRI are added to the input of exclusive OR EOR.
セレクタSL4の出力は排他的論理和群EORG6の一
方の入力に出力する。排他的論理和群IEORG6の他
方の入力は排他的論理和EORの出力が加わっているの
で、回転制御信号FDTRO,FDIRIが61″、′
0”あるいは0”、′1”の時には選択した信号を反転
し、“0”、′O!あるいは“1”、′1”の様に同じ
レベルである時には非反転しく同じ論理)、フレームメ
モリM15〜MOに出力する。第8図は回転制御信号F
DIRI、FDIRQとアドレス値Y7〜Y4、X3〜
XOの関係を表す図である。The output of selector SL4 is output to one input of exclusive OR group EORG6. Since the output of the exclusive OR EOR is added to the other input of the exclusive OR group IEORG6, the rotation control signals FDTRO and FDIRI are 61″, ′
The selected signal is inverted when it is "0" or "0" or "1", and is not inverted when it is at the same level like "0", "O!" or "1" or "1" (same logic), frame memory. Output to M15-MO. Figure 8 shows the rotation control signal F.
DIRI, FDIRQ and address values Y7~Y4, X3~
It is a figure showing the relationship of XO.
回転制御信号FDIR1,FDIRO/l<O″。Rotation control signal FDIR1, FDIRO/l<O″.
mO”の時にはフレームメモリM15〜MOに加わるア
ドレス値Y7〜Y4は入力アドレス値YA7〜YA4、
アドレス値X3〜XOは入力アドレス値YA7〜YA4
となる。回転制御信号FDIRI、FDIRQが“0”
、′1”の時にはアドレス値Y7〜Y4はアドレス値Y
A7〜YA4.アドレス値Y7〜Y4はアドレス値YA
7〜YA4の反転値(第8図においては記号の上部に−
を付しである)となる0回転制御信号FDIRI、FD
IRQが“l″ IIQ”の時にはアドレス値Y7〜Y
4はアドレス値YA7〜YA4の反転値、アドレス値X
3〜XOはアドレス値YA7〜YA4の反転値となる。mO”, address values Y7 to Y4 added to frame memories M15 to MO are input address values YA7 to YA4,
Address values X3 to XO are input address values YA7 to YA4
becomes. Rotation control signals FDIRI and FDIRQ are “0”
, when '1', address values Y7 to Y4 are address value Y
A7-YA4. Address values Y7 to Y4 are address values YA
7 to YA4 inversion value (- in Figure 8 above the symbol)
The zero rotation control signals FDIRI and FD are
When IRQ is "l"IIQ", address value Y7~Y
4 is the inverted value of address values YA7 to YA4, address value X
3 to XO are inverted values of address values YA7 to YA4.
回転制御信号FDIR1,FDIRQが“1°、“1”
の時にはアドレス値Y7〜Y4はアドレス値YA7〜Y
A4の反転値、アドレス値X3〜XOはアドレス値YA
7〜YA4となる。Rotation control signals FDIR1 and FDIRQ are “1°,” “1”
When , address values Y7 to Y4 are address values YA7 to Y
Inverted value of A4, address values X3 to XO are address values YA
7 to YA4.
一方、回転制御信号FD r Rlは排他的論理和群E
ORG7の一方の入力に加わっている。そして、排他的
論理和群EORC7の他方の入力には、アドレス値YA
3〜YAOが加わっているので、その出力は回転制御信
号FDIRIが“0”の時には非反転となり、′1”の
時には反転となって、アドレスデコーダADRRとデコ
ーダDRRの各アドレス値YB3〜YBOとして加わる
。On the other hand, the rotation control signal FD r Rl is the exclusive OR group E
It is connected to one input of ORG7. The other input of the exclusive OR group EORC7 has an address value YA.
Since 3 to YAO are added, the output is non-inverted when the rotation control signal FDIRI is "0", and is inverted when it is '1', and is output as each address value YB3 to YBO of address decoder ADRR and decoder DRR. join.
アドレスデコーダADRRとフレームメモリM15〜M
Oの接続、ならびにデコーダとビットシフト回路BSC
の接続、さらにはフレームメモIJ M 15〜MOと
ビットシフト回路BSCの接続は前述した第2図の接続
と同様である。尚アドレスデコーダの端子Sには回転制
御信号FDIRQが加わっており、この信号によって、
前述と同様に第3図(al、 (b)に表わすデコード
データが選択される。Address decoder ADRR and frame memory M15-M
O connection, decoder and bit shift circuit BSC
The connections between the frame memos IJM15-MO and the bit shift circuit BSC are the same as those shown in FIG. 2 described above. Note that a rotation control signal FDIRQ is applied to the terminal S of the address decoder, and this signal causes the
Similarly to the above, the decoded data shown in FIGS. 3(al) and (b) are selected.
ビットシフト回路BSCとデータスワップ回路WSCと
は接続しており、排他的論理和EORの出力によって1
対1でビットが選択されるか、或いはLSBとMSB側
が順次入れ換わる即ちビット位置単位で、スワップされ
て選択されるかが決定する。また、リード・ライト信号
R/Wはデータスワップ回路WSCI、WSC2の方向
制御端子、ビットシフト回路B5C0−B5Cl 5の
方向制御端子ならびにフレームメモリM15〜MOのリ
ード・ライト端子に加わっている。リード・ライト信号
R/Wが1”の時にはデータスヮ。The bit shift circuit BSC and the data swap circuit WSC are connected, and the output of the exclusive OR EOR causes 1
It is determined whether the bits are selected on a pair-to-one basis, or whether the LSB and MSB sides are sequentially swapped, that is, swapped and selected in units of bit positions. Further, the read/write signal R/W is applied to the direction control terminals of the data swap circuits WSCI and WSC2, the direction control terminals of the bit shift circuits B5C0 to B5Cl5, and the read/write terminals of the frame memories M15 to MO. When the read/write signal R/W is 1", the data is switched.
プ回路WSCI、WSC2とビットシフト回路B5C0
−BSC15は外部装置からフレームメモリM15〜M
O側へデータを送るように方向が決定し、フレームメモ
リM15〜MOデータを取込む。また、その逆にリード
・ライト信号R/WがO″の時にはフレームメモリM1
5〜MOは記憶しているデータを出力するとともに、デ
ータスワップ回路WSCI、WSC2とビットシフト回
路はフレームメモリM15〜MOから出力されるデータ
を外部装置へ出力するように方向を決定する。Step circuits WSCI, WSC2 and bit shift circuit B5C0
-BSC15 is connected to frame memories M15 to M from an external device.
The direction is determined to send data to the O side, and data from the frame memories M15 to MO are taken in. Conversely, when the read/write signal R/W is O'', the frame memory M1
5-MO output the stored data, and the data swap circuits WSCI, WSC2 and the bit shift circuit determine the direction of the data output from the frame memories M15-MO to be output to an external device.
回転制御信号FDIR1,FDIRQが共にO″の時に
は、第5図に示す回路において、反転制御信号YINV
、XINV、データスワップ信号WSS!l直水平切換
信号!(/Vが共に“0”の時の状態と同じとなる。す
なわち、フレームメモリM15〜MOのアドレス値Y7
〜YOはアドレス値YA7〜YAOとなり、アドレス値
X3〜XOはアドレス値XA7〜XA4となる。また、
フレームメモリM15〜MOの入出力データD15〜D
Oはビットシフト回路BSCでワード(16ビツト)単
位でアドレス値YA3〜YAO分シフトして外部装置の
入出力データDB15〜DBOに対応している。また、
データスワップ回路ws−ciには排他的論理和EOR
の出力(“O”)がインバータINVで反転して、“1
″となって加わっているので、入出力(データ)DBO
〜DB15と入出力DDO−DD15は1対1で対応し
ている。よって、第1図に示した基本のメモリ配置と同
様のメモリアクセスとなる。When the rotation control signals FDIR1 and FDIRQ are both O'', the inverted control signal YINV is output in the circuit shown in FIG.
, XINV, data swap signal WSS! l Direct/horizontal switching signal! (The state is the same as when both /V are "0". In other words, the address value Y7 of frame memories M15 to MO
~YO becomes address values YA7 to YAO, and address values X3 to XO become address values XA7 to XA4. Also,
Frame memory M15-MO input/output data D15-D
O is a bit shift circuit BSC which shifts address values YA3 to YAO in units of words (16 bits) to correspond to input/output data DB15 to DBO of the external device. Also,
Exclusive OR EOR for data swap circuit ws-ci
The output (“O”) is inverted by the inverter INV and becomes “1”.
”, so the input/output (data) DBO
~DB15 and input/output DDO-DD15 have a one-to-one correspondence. Therefore, memory access is similar to the basic memory arrangement shown in FIG.
回転制御信号FDIRI、FDIRQが“0”。Rotation control signals FDIRI and FDIRQ are “0”.
1″である時には、第8図に示すようにアドレス値Y7
〜Y4はアドレス値XA7〜XA4、アドレス値X3〜
XOはYA7〜YA4となる。そして、アドレスデコー
ダには排他的論理和群EOR1を介して反転しない(排
他的論理和群の方には“0”が加わっている)アドレス
値YA3〜YAOが加わり、第3図世)に表わすアドレ
スデコードされてフレームメモリに加わる。よって、基
本画像の右上部より順次縦−列分のフレームメモリM1
5〜MOがアクセスされる。また、この場合、データス
ワップ回路WSC2の端子Eに排池的論理和EORの出
力(“1”)が加わっているので、入出力データDD1
5〜DDOがビットシフト回路BSCの入出力データD
BO〜DB15に対応する。前述したようにフレームメ
モリM15〜MO内の縦−列分の16ビツトが読出され
るが、読出されたビット位置は下から上方向への順で1
ワードを構成しているので、このデータスワップ回路W
SC2によってその上下関係が反転している。この動作
により、回転制御信号FDIRI、FDIRQが′0”
、11″の時には右(社)°回転してメモリをアクセス
するので、リード時には左頒°回転したデータを読出し
ライト時には右匍°回転したデータを書込むことができ
る。1'', address value Y7 as shown in FIG.
~Y4 is address value XA7~XA4, address value X3~
XO becomes YA7 to YA4. Then, the address values YA3 to YAO that are not inverted (“0” is added to the exclusive OR group) are added to the address decoder via the exclusive OR group EOR1, and the address values YA3 to YAO are added as shown in Figure 3). The address is decoded and added to the frame memory. Therefore, the frame memory M1 for vertical columns is sequentially stored from the upper right corner of the basic image.
5-MO is accessed. In addition, in this case, since the output (“1”) of the exclusive OR EOR is added to the terminal E of the data swap circuit WSC2, the input/output data DD1
5~DDO is the input/output data D of the bit shift circuit BSC
Corresponds to BO to DB15. As mentioned above, 16 bits for each column in frame memories M15 to MO are read out, and the read bit positions are 1 in order from bottom to top.
Since it constitutes a word, this data swap circuit W
The vertical relationship is reversed by SC2. This operation causes the rotation control signals FDIRI and FDIRQ to become '0''.
, 11'', the memory is accessed by rotating it clockwise. Therefore, when reading, it is possible to read data that has been rotated to the left, and when writing, it is possible to write data that has been rotated to the right.
回転制御信号FDIR1,FDIROが′II′。Rotation control signals FDIR1 and FDIRO are 'II'.
“Ooである時には第8図に示すようにフレームメモリ
M15〜MOに加わるアドレス値Y7〜Y4はアドレス
値YA7〜YA4の反転値、アドレスMtY3〜YOは
アドレス値YA7〜YA4の反転値が加わる。すなわち
、Y座標のアドレス値YA7〜YA4.X座標のアドレ
ス値XA7〜XA4は共に反転してフレームメモリに加
わる。When "Oo," as shown in FIG. 8, address values Y7-Y4 added to frame memories M15-MO are inverted values of address values YA7-YA4, and addresses MtY3-YO are added inverted values of address values YA7-YA4. That is, the Y coordinate address values YA7 to YA4 and the X coordinate address values XA7 to XA4 are both inverted and added to the frame memory.
この時アドレスデコーダADRRの端子Sには0”が加
わり、アドレス値YA3〜YAOも排他的論理和群EO
RG7で反転して加わっているので、メモリのアクセス
は第1図に示す右下端より横−行となる。デコーダDR
Rには反転したデータが加わっているので、同様に右下
端より横−行に対して読出したシフト分シフトする。す
なわち、基本画像を逆の順で読出した状態となっている
。右下端から逆の順で読出した時には1ワードの16ビ
ツトは基本画像を読出したビット順であるので、この時
にはデータスワップ回路WSC2の端子Eに“1”が加
わって、ビットのMSBとLSBを逆にしている。これ
によって、右下端より横方向に16ビツト単位で読出す
と共にビット位置をMSBとLSBとを反転するので、
ちょうど基本画像を180°回転(右回転も左回転も同
じ)した書込みや読出しとなる。At this time, 0'' is added to the terminal S of the address decoder ADRR, and the address values YA3 to YAO are also exclusive OR group EO.
Since the data is inverted and added at RG7, memory access is performed horizontally from the lower right end as shown in FIG. Decoder DR
Since inverted data is added to R, it is similarly shifted from the lower right end by the shift read for the horizontal row. In other words, the basic images are read out in the reverse order. When reading in the reverse order from the lower right end, the 16 bits of one word are in the bit order in which the basic image was read, so at this time "1" is added to terminal E of the data swap circuit WSC2, and the MSB and LSB of the bits are It's the other way around. As a result, the data is read in 16-bit units horizontally from the lower right corner, and the bit positions are inverted between MSB and LSB.
Writing and reading are performed by rotating the basic image by 180 degrees (clockwise rotation and counterclockwise rotation are the same).
回転制御信号FDIRI、FDIRQが共に11″であ
る時には、第8図に示すようにフレームメモリM15〜
MOに加わるアドレス値Y7〜Y4はアドレス値XA7
〜XA4の反転した値、アドレス値X3〜XOはアドレ
ス値YA7〜YA4となる。また排他的論理和群EOR
G7の一方の入力も“1′が加わるので、アドレス値Y
A3〜YAOも反転するとともにアドレスデコーダAD
RRとデコーダDRRに加わる。アドレスデコーダAD
RRの端子Sには、同じく11”が加わるので、第3図
(b)に示すように各フレームメモリM15〜MO単位
で下位アドレスY3〜YOに異なるアドレス値が加わる
ようになっており、このアクセスによって左下端より縦
−列分のメモリのアクセスとなる。この時にはこのアク
セスは丁度基本画像の左下端より上方向に読出したと同
様となる。またピントシフト回路BSCも反転したアド
レス値YA3〜YAOで、順次読出す時のシフト量が変
化している。この時にはデータスワップ回路WSCIの
端子Eに11”が加わるので、ビットシフト回路BSC
の入出力(データ)DI315〜DBOが外部装置の入
出力DD15〜DDOに対応している。これによって、
左下端よリ16ビツト単位で順次縦方向の読出しや書込
みが行われる。すなわち、換言するならば左270°回
転の読出しと右90°回転の書込みが行なわれる。When the rotation control signals FDIRI and FDIRQ are both 11'', the frame memories M15 to M15 as shown in FIG.
Address values Y7 to Y4 added to MO are address value XA7
The inverted values of ~XA4, address values X3~XO, become address values YA7~YA4. Also, the exclusive disjunction group EOR
Since “1” is added to one input of G7, the address value Y
A3 to YAO are also inverted and the address decoder AD
It joins RR and decoder DRR. address decoder AD
Similarly, 11" is added to the terminal S of RR, so different address values are added to the lower addresses Y3 to YO for each frame memory M15 to MO, as shown in FIG. 3(b). The access results in an access to the memory corresponding to the vertical column from the lower left edge.At this time, this access is exactly the same as reading upward from the lower left edge of the basic image.Furthermore, the focus shift circuit BSC also uses the inverted address values YA3 to YAO. Therefore, the shift amount when sequentially reading is changing. At this time, 11" is added to the terminal E of the data swap circuit WSCI, so the bit shift circuit BSC
The input/output (data) DI315 to DBO correspond to the input/output DD15 to DDO of the external device. by this,
Reading and writing in the vertical direction is performed sequentially in 16-bit units starting from the lower left end. That is, in other words, reading by rotating 270 degrees to the left and writing by rotating 90 degrees to the right are performed.
第9図は本発明の実施例によるメモリの読出しあるいは
書込みで得られる回転画像の表示例である。例えば第7
図に示すように、回転制御信号FDrR1,FDIRQ
をそれぞれ(a) ” O” 。FIG. 9 is a display example of a rotated image obtained by reading or writing to a memory according to an embodiment of the present invention. For example, the seventh
As shown in the figure, rotation control signals FDrR1, FDIRQ
(a) “O” respectively.
O”、(b)O″、11′″、(e)“1”、′0”、
(d+″1”、“1′″として書込み、回転制御信号F
DIRI、FD r ROを共に10″として読出した
時にそれぞれ第9図(al〜(d+に示す0°+ 90
” +180°3270 °右回転した画像データを
得ることができる。この回転は書込み時ばかりでな(読
出し時にも同様に回転制御信号FDIRI。O", (b) O", 11'", (e) "1", '0",
(Write as d+"1", "1'", rotation control signal F
When both DIRI and FD r RO are read as 10'', the 0°+90 shown in FIG. 9 (al~(d+)
” It is possible to obtain image data rotated clockwise by +180°3270°.This rotation is performed not only during writing (the rotation control signal FDIRI is also applied during reading).
FDIRQを変化させれば、同様の回転画像を得ること
ができる。なお、読出しの時には書込み時とは逆にそれ
ぞれ基本画像に対し90”、 180°。A similar rotated image can be obtained by varying FDIRQ. Note that when reading, the angles are 90" and 180° relative to the basic image, respectively, contrary to when writing.
270°左回転した画像データが得られる。また、基本
画像を加える時の回転制御信号FD I R1゜FDI
RQをO”、“0′″、としない時には基本画像を加え
た時の回転制御信号FD f R1゜FDIRQの値が
基本画像記憶位置となる。これは前述した第2図、第5
図の本発明の実施例においても同様である。Image data rotated 270 degrees to the left is obtained. Also, the rotation control signal FD I R1゜FDI when adding the basic image
When RQ is not set to O" or "0'", the value of the rotation control signal FD f R1° FDIRQ when the basic image is added becomes the basic image storage position.
The same applies to the embodiment of the present invention shown in the figure.
以上、本発明のメモリ配置とそのメモリを駆動する回路
を実施例を用いて説明したが、本発明は、第1図に示し
たメモリ配置に限らず、列単位でのシフl−量を3ビッ
ト単位でシフトする等、奇数単位でシフトして配置した
り、他の乱数的な配置で割り当てる等も可能である。The memory arrangement of the present invention and the circuit for driving the memory have been described above using embodiments. However, the present invention is not limited to the memory arrangement shown in FIG. It is also possible to arrange by shifting in units of odd numbers, such as shifting in units of bits, or assigning in other random number arrangements.
例えば、16ビ・7トで縦方向と横方向に分割し、その
分割した16 X 16ビツトの領域内で縦方向や横方
向に16ビツト単位で読出した時に同一ビットが存在し
ないように乱数的に配置すればよい、なお、この場合に
は、アドレスデコーダADRRとデコーダDRRも同様
に配置した乱数的なデコードを行うようにしな(ではな
らない。For example, if the data is divided into 16 bits and 7 bits in the vertical and horizontal directions, then the divided 16 x 16 bit area is divided into random numbers so that there are no identical bits when read in units of 16 bits in the vertical and horizontal directions. Note that in this case, address decoder ADRR and decoder DRR should also be arranged in the same way to perform random number decoding.
本発明の実施例では、セレクタで横方向と縦方向のアド
レスを選択してメモリに加えているが、これに限らず、
例えばアドレスデコーダに横方向や縦方向のアドレスを
加え、垂直水平切換信号H/ Vによって、アドレスデ
コーダ値を選択して加える様にしても、同様にメモリの
横方向や縦方向のアクセスが可能となる。In the embodiment of the present invention, the horizontal and vertical addresses are selected by the selector and added to the memory, but the invention is not limited to this.
For example, by adding horizontal and vertical addresses to the address decoder and selecting and adding address decoder values using the vertical/horizontal switching signal H/V, it is possible to access the memory in the horizontal and vertical directions in the same way. Become.
以上、述べたように本発明はアドレスとして単位で記憶
し、n×nドットの画像データの複数ドツトを基本画像
に対し、フレームメモリに割り当てるビットを横方向の
行あるいは縦方向の列に対応して1ドツト分シフトして
記憶するようにしたものであり、本発明によれば横方向
からメモリをアクセスする場合にもまた縦方向からメモ
リをアクセスする場合にも、目的とした複数のドツトデ
ータを同様に格納しまた読出すことが可能な画像メモリ
を得ることができる。As described above, the present invention stores bits in units of addresses as addresses, and assigns bits to frame memory for multiple dots of n×n dot image data to correspond to horizontal rows or vertical columns. According to the present invention, a plurality of target dot data can be stored by shifting the data by one dot. An image memory can be obtained in which it is possible to similarly store and read out images.
第1図は本発明のメモリ配置図、
第2図は本発明の第1の実施例の回路構成図、第3図(
a)、 (b)はアドレスデコーダの入出力データ図表
、
第4図はアクセス時のメモリ配置図、
第5図は本発明の第2の実施例の回路構成図、第6図は
リード・ライト時の得られる画像の位置関係を表わす図
表、
第7図は本発明の第3の実施例の回路構成図、第8図は
回転制御信号とアドレス値の関係を表わす図表、
第9−図(alは回転なしの画像データ、第9図(b)
は90°右回転の画像データ、第9図(C)は180°
右回転の画像データ、第9図+d)は270°右回転の
画像データ、第10図は従来のメモリへのデータの格納
を説明する図である。
EORGl 〜EORG7− ・−排他的論理和群、S
LI〜SL、4・・・セレクタ、
DRR・・・デコーダ、
BSC(BSCO−BSCI 5)
・・・ビットシフト回路、
ADRR・・・アドレスデコーダ、
M15〜MO・・・フレームメモリ、
CHG・・・画像メモリ、
INV・・・インバータ、
WSC(WSCI、WSC2)
・・・データスワップ回路。
特許出願人 カシオ計算機株式会社
同 上 カシオ電子工業株式会社4本画像のX厘
本票(×K)
本腐町后のメLり配置図
第1図
木林哨の12の叉彪伊16回蚤槍八図
第5図
関係4乙り寸図炙
第8図
回章ム’areaイ未デー9 デO°
ちEす1シj鈎グ象、テーク(a)
(b)
lδO0石回転の画イ救テ゛−ダ 2グ。
、右d町転。画イ象予・・−り(c)
((j)第9図FIG. 1 is a memory layout diagram of the present invention, FIG. 2 is a circuit configuration diagram of the first embodiment of the present invention, and FIG.
a) and (b) are address decoder input/output data diagrams, Figure 4 is a memory layout diagram during access, Figure 5 is a circuit configuration diagram of the second embodiment of the present invention, and Figure 6 is a read/write diagram. FIG. 7 is a circuit diagram of the third embodiment of the present invention; FIG. 8 is a diagram showing the relationship between rotation control signals and address values; FIG. al is image data without rotation, Fig. 9(b)
is image data rotated clockwise by 90 degrees, and Fig. 9 (C) is image data rotated 180 degrees.
Image data rotated to the right; FIG. 9+d) is image data rotated clockwise by 270°; FIG. 10 is a diagram illustrating storage of data in a conventional memory. EORGl ~EORG7- ・-Exclusive OR group, S
LI~SL, 4...Selector, DRR...Decoder, BSC (BSCO-BSCI 5)...Bit shift circuit, ADRR...Address decoder, M15~MO...Frame memory, CHG... Image memory, INV...Inverter, WSC (WSCI, WSC2)...Data swap circuit. Patent Applicant Casio Computer Co., Ltd. Same as above Casio Electronics Co., Ltd. 4 images of X-print book slip (×K) Map of the back of Honfu Town Figure 1 12 squares of Kirin-cho 16 times of flea Illustration 8 of spears, illustration 5, relation 4 illustration
Chi Esu 1 Sij Hook Elephant, Take (a)
(b) Image rescuer of lδO0 stone rotation 2g. , turn right d town. Picture image... (c)
((j) Figure 9
Claims (1)
スとした単位で記憶するメモリにおいて、前記画像デー
タのドットの横方向の行あるいは縦方向の列の少なくと
も一方に対応して、前記メモリの横方向の行あるいは縦
方向の列の少なくとも一方を順次1ドット分シフトして
記憶することを特徴とした画像メモリ。 2)前記シフトは前記画像データを複数ドット単位で回
転シフトすることを特徴とした特許請求の範囲第1項記
載の画像メモリ。 3)n×nドットの画像データの複数ドットを1アドレ
スとした単位で記憶するメモリと、 前記画像データのドットの横方向の行あるいは縦方向の
列の少なくとも一方に対応して、前記メモリの横方向の
行あるいは縦方向の列の少なくとも一方のデータをシフ
トして前記メモリに加えるシフト回路とを有することを
特徴とした画像メモリ。 4)前記シフト回路は前記画像データのドットの横方向
の行アドレスあるいは縦方向の列アドレスの少なくとも
一方が加わり、前記縦方向の列アドレスあるいは横方向
の行アドレスの少なくとも一方によって前記複数ドット
の画像データをシフトすることを特徴とした特許請求の
範囲第3項記載の画像メモリ。[Scope of Claims] 1) In a memory that stores a plurality of dots of n×n dots of image data in units of one address, the memory corresponds to at least one of a horizontal row or a vertical column of dots of the image data. An image memory characterized in that at least one of a horizontal row or a vertical column of the memory is sequentially shifted by one dot and stored. 2) The image memory according to claim 1, wherein the shift rotationally shifts the image data in units of a plurality of dots. 3) a memory that stores n×n dots of image data in units of one address; An image memory comprising: a shift circuit for shifting data in at least one of a horizontal row or a vertical column and adding the shifted data to the memory. 4) The shift circuit adds at least one of the horizontal row address or the vertical column address of the dots of the image data, and adjusts the image of the plurality of dots according to at least one of the vertical column address or the horizontal row address. 4. The image memory according to claim 3, wherein data is shifted.
Priority Applications (3)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP9358886A JPS62249282A (en) | 1986-04-23 | 1986-04-23 | Image memory |
DE19873713627 DE3713627A1 (en) | 1986-04-23 | 1987-04-23 | IMAGE STORAGE CIRCUIT, IN PARTICULAR FOR USE IN ROTATING IMAGE DATA |
US07/590,532 US5068904A (en) | 1986-04-23 | 1990-09-28 | Image memory circuit for use in a rotation of image data |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP9358886A JPS62249282A (en) | 1986-04-23 | 1986-04-23 | Image memory |
Publications (1)
Publication Number | Publication Date |
---|---|
JPS62249282A true JPS62249282A (en) | 1987-10-30 |
Family
ID=14086448
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP9358886A Pending JPS62249282A (en) | 1986-04-23 | 1986-04-23 | Image memory |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPS62249282A (en) |
-
1986
- 1986-04-23 JP JP9358886A patent/JPS62249282A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR970011222B1 (en) | Method and apparatus for arranging access of vram to provide accelerated writing of vertical lines to an output display | |
JPH03290765A (en) | Method of rotating bit map-image at 90 degree | |
JPS6235679B2 (en) | ||
JPS60153088A (en) | Memory data shifter | |
JPH077260B2 (en) | Image data rotation processing apparatus and method thereof | |
US5068904A (en) | Image memory circuit for use in a rotation of image data | |
JPH11144451A (en) | Semiconductor storage device | |
US5095422A (en) | Information transferring method and apparatus for transferring information from one memory area to another memory area | |
JPH0425554B2 (en) | ||
JPS62249282A (en) | Image memory | |
JP2016186541A (en) | Storage device, display driver, electro-optical device, and electronic apparatus | |
JPS62249283A (en) | dynamic memory drive circuit | |
JPS62249284A (en) | memory drive circuit | |
JP2812292B2 (en) | Image processing device | |
JPH11306343A (en) | Rotational processing device for two-dimensional data | |
JPS6037930B2 (en) | information storage device | |
JPH05113928A (en) | Image memory device | |
JPH061449B2 (en) | Image memory for image editing | |
JPH10307576A (en) | Image display device | |
JPH0651751A (en) | Image display device | |
JPH07320053A (en) | Image rotation processor | |
JPS58138163A (en) | Picture signal rotating system | |
JPS58116860A (en) | Longitudinal and lateral converting circuit for image array of image memory system | |
JP3427586B2 (en) | Data processing device and storage device | |
JPS6141183A (en) | Digital memory |