JPH0766349B2 - Shifter circuit - Google Patents

Shifter circuit

Info

Publication number
JPH0766349B2
JPH0766349B2 JP60092460A JP9246085A JPH0766349B2 JP H0766349 B2 JPH0766349 B2 JP H0766349B2 JP 60092460 A JP60092460 A JP 60092460A JP 9246085 A JP9246085 A JP 9246085A JP H0766349 B2 JPH0766349 B2 JP H0766349B2
Authority
JP
Japan
Prior art keywords
word
data
shifter
write
shift
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.)
Expired - Fee Related
Application number
JP60092460A
Other languages
Japanese (ja)
Other versions
JPS61250729A (en
Inventor
英巳 村田
茂 笠原
久雄 小林
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP60092460A priority Critical patent/JPH0766349B2/en
Publication of JPS61250729A publication Critical patent/JPS61250729A/en
Publication of JPH0766349B2 publication Critical patent/JPH0766349B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】 〔概要〕 ワード単位に読出される一連のデータを、指定された書
込み先アドレスに基づき、書込み先ワードに整列させる
シフタ回路であって、読出されたワード単位の一連のデ
ータを2組のレジスタに交互に格納し、格納するごとに
該データをシフタに並列転送した後、読出しアドレスお
よび書込みアドレスの差に応じて回転シフトを行わせ、
マルチプレクサにより回転シフト後の右側または左側の
ワード単位のデータを交互に取り出すように構成する。
DETAILED DESCRIPTION [Outline] A shifter circuit that aligns a series of data read in word units with a write destination word based on a designated write destination address. Data is alternately stored in two sets of registers, each time the data is stored, the data is transferred in parallel to the shifter, and then rotational shift is performed according to the difference between the read address and the write address.
The multiplexer is configured to alternately take out the right or left word unit data after the rotation shift.

以上により、一連のデータのワード単位の転送におい
て、1回の書込みアクセスで転送することができるデー
タが得られる。
As described above, in the transfer of a series of data in word units, data that can be transferred by one write access can be obtained.

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

本発明はビットマップメモリ等の書込み操作を行うシフ
タ回路の改良に関する。
The present invention relates to an improvement in a shifter circuit that performs a write operation on a bitmap memory or the like.

表示装置,プリンタ等では図形等を出力する場合、1画
面分のパターンデータに対応するメモリ(ビットマップ
メモリ)を設けて出力情報を格納し、それぞれの出力手
段に応じた読出し方式で出力している。
When a figure or the like is output on a display device, a printer, etc., a memory (bitmap memory) corresponding to the pattern data for one screen is provided to store the output information, and the output information is output by the reading method according to each output means. There is.

このビットマップメモリへのパターンデータの書込みは
高速化を図るためワード単位に行われているが、書込み
パターンデータをビットマップメモリの所定のワード内
アドレスに整列せしめる必要があり、シフタ回路が使用
されている。
The writing of the pattern data to the bitmap memory is performed in word units for the purpose of speeding up, but it is necessary to align the write pattern data with a predetermined word address in the bitmap memory, and a shifter circuit is used. ing.

しかし従来のシフタ回路では1ワードごとにシフトして
いたため連続パターンが得られず、書込み操作回数が増
大するとともに制御が複雑となる問題点があった。
However, in the conventional shifter circuit, there is a problem that a continuous pattern cannot be obtained because the shift is performed word by word, and the number of write operations increases and the control becomes complicated.

そのため高速且つ安価なシフタ回路が求められている。Therefore, a high-speed and inexpensive shifter circuit is required.

〔従来の技術〕[Conventional technology]

表示装置における表示移動処理を例として従来のシフタ
回路を説明する。
A conventional shifter circuit will be described by taking display movement processing in a display device as an example.

第2図(a)はCRT表示装置のビットマップメモリ1の
構成を表示画面と対応せしめて表したものである。図
中、01,02・・08はそれぞれ画面の水平方向第1ラスタ
の表示情報をビット対応で格納するワード構成のメモリ
を示したもので、垂直方向にも同様なメモリがラスタ分
設けられている。
FIG. 2 (a) shows the configuration of the bitmap memory 1 of the CRT display device in association with the display screen. In the figure, 01, 02, ... 08 each represent a word-structured memory that stores the display information of the horizontal first raster of the screen in bit correspondence. Similar memories are provided for the raster in the vertical direction. There is.

画面上領域2のパターンデータを領域3に移動,表示せ
しめる場合、移動元および移動先の先頭アドレスM,Nお
よび領域2の縦,横のサイズが指定される。
When the pattern data in the area 2 on the screen is moved and displayed in the area 3, the start addresses M and N of the source and destination and the vertical and horizontal sizes of the area 2 are designated.

上記指定によりビットマップメモリ1の移動元の領域2
のパターンデータが読出され、領域3のアドレスへの書
込み処理が行われるが、この読出し/書込み処理はワー
ド単位で行われるため、移動元と移動先のワード内アド
レスを一致させる必要が生じ、シフト操作が行われる。
Area 2 of the move source of bitmap memory 1 by the above specification
Pattern data is read out and the writing process to the address in the area 3 is performed. Since this read / write process is performed in word units, it is necessary to match the intra-word addresses of the movement source and the movement destination, and the shift is performed. The operation is performed.

上記シフト操作を第2図(b)に従い説明する。The shift operation will be described with reference to FIG.

領域2から領域3への移動処理は、先頭アドレスMより
水平方向に順次ワード単位にパターンデータを読取り、
シフト操作を行って領域3の該当アドレスに書込み、水
平方向の書込み終了後順次垂直方向に歩進して行われ
る。
In the movement processing from the area 2 to the area 3, the pattern data is sequentially read in word units from the head address M in the horizontal direction,
A shift operation is performed to write to the corresponding address in the area 3, and after the writing in the horizontal direction is completed, the operation is sequentially performed in the vertical direction.

第2図(b)は水平方向1ラインの領域2aを領域3aに移
動する場合の処理方法を示したもので、領域2aのワード
アドレスを先頭アドレスMより順次ワード0,ワード1,ワ
ード2、領域3aのワードアドレスを先頭アドレスNより
順次ワード0′,ワード1′で示し、第2図(b)−
(1)は領域2aの詳細図、(8)は領域3aの詳細図、
(2),(4),(6)はそれぞれワード0,1,2の内容
を読出したデータ、(3),(5),(7)は上記デー
タをシフトした状態を示している。
FIG. 2B shows a processing method for moving the area 2a of one line in the horizontal direction to the area 3a. Word addresses of the area 2a are sequentially word 0, word 1, word 2, from the head address M, The word address of the area 3a is sequentially shown by word 0'and word 1'from the head address N, and FIG. 2 (b)-
(1) is a detailed view of area 2a, (8) is a detailed view of area 3a,
(2), (4), and (6) show data in which the contents of words 0, 1, and 2 are read out, and (3), (5), and (7) show a state in which the above data is shifted.

(イ)まずワード0の内容を読取り〔第2図(b)−
(2)〕、アドレスM,Nのワード内のアドレス差をシフ
ト量〔第2図(b)の場合は4ビット〕として左シフト
する。
(A) First, the contents of word 0 are read [Fig. 2 (b)-
(2)], the address difference between the words of the addresses M and N is left-shifted with a shift amount [4 bits in the case of FIG. 2B].

(ロ)移動先ワード0′に上記情報をの部分をマスク
して書き込む。
(B) The above information is masked and written in the destination word 0 '.

(ハ)続いてワード1を読取り、4ビットシフト(回転
シフト)した後、回転シフト(ローテーション)した領
域の部分を移動先ワード0′に左側12ビットをマスク
して書込み、続いての情報をワード1′に書き込む。
(C) Next, after reading word 1, after performing a 4-bit shift (rotational shift), the region of the rotation-shifted (rotation) area is written in the destination word 0'with the left 12 bits masked, and the subsequent information is written. Write to word 1 '.

(ニ)上記方法により順次領域2aの情報をワード単位に
読取り、それぞれシフトした後領域3aに書き込む。
(D) The information in the area 2a is sequentially read word by word by the above method, and after shifting, the information is written in the area 3a.

上記手順を垂直方向に歩進して繰返し、指定の領域のパ
ターンデータを移動する。
The above procedure is stepped in the vertical direction and repeated to move the pattern data in the designated area.

〔発明が解決しようとする問題点〕[Problems to be solved by the invention]

上記説明したように、ビットマップメモリをワード単位
に読出しシフトした後移動先に書込む従来の方式は、書
込回数が増大するとともに複雑な制御が必要で、処理時
間の増大とともに高価になるという問題点を有してい
た。
As described above, the conventional method in which the bit map memory is read and shifted in word units and then written to the destination is increased in the number of times of writing and requires complicated control, which increases the processing time and becomes expensive. I had a problem.

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

上記従来の問題点は、第1図(a)に示すように、ワー
ド単位に読出された一連のデータをそれぞれ書込み先ワ
ードに整列させるシフタ回路であって、読出された該デ
ータがワード単位に交互に格納される2組のレジスタ
(A,B)と、上記2組のレジスタに格納された2ワード
のデータが並列に転送され、読出し元および書込み先ワ
ード内アドレスの差に応じて右または左に回転シフトす
るシフタ(10)と、回転シフト後の該シフタの2ワード
のデータのうちから、書込み先ワードデータとして、右
側または左側の1組のワードデータを交互に選択取り出
すマルチプレクサ(11)とを有するシフタ回路により解
決することができる。
The above-mentioned conventional problem is, as shown in FIG. 1 (a), a shifter circuit that aligns a series of data read in word units with write destination words, and the read data is written in word units. Two sets of registers (A, B) that are alternately stored and two words of data stored in the above two sets of registers are transferred in parallel, depending on the difference between the read source address and the write destination word address. A multiplexer (11) for alternately selecting and extracting a pair of right-side or left-side word data as write destination word data from the shifter (10) rotationally shifted to the left and the two-word data after the rotational shift. This can be solved by a shifter circuit having

〔作用〕[Action]

順次読出されたワード単位のデータはレジスタA,Bに交
互に格納される。そして、格納ごとに、シフタ10にその
2ワードのデータが並列に転送されるとともに、読出し
元および書込み先ワード内アドレスの差に応じて右また
は左に回転シフト(ローテーション)される。そして、
回転シフトされたシフタ10のうちから、右側または左側
の1ワードデータが交互に取り出される。
The sequentially read data in word units are alternately stored in the registers A and B. Then, for each storage, the data of the two words is transferred to the shifter 10 in parallel, and is rotationally shifted (rotated) to the right or left according to the difference between the addresses in the read source and write destination words. And
Right or left one-word data is alternately taken out of the shifter 10 that has been rotationally shifted.

以上により、書込み先ワードに整列した書込みデータが
得られる。このため、一連のデータをワード単位にビッ
トマップメモリ内で移動する場合等で読出し元および書
込み先のワード内アドレスが異なる場合、1回の読出し
および1回の書込みアクセスで転送することが可能とな
る。
As described above, the write data aligned with the write destination word is obtained. Therefore, when a series of data is moved word by word in the bit map memory, etc., when the read source address and the write destination address in the word are different, the data can be transferred by one read and one write access. Become.

〔実施例〕〔Example〕

本発明の実施例を図を用いて説明する。 An embodiment of the present invention will be described with reference to the drawings.

第1図(a)は本発明のブロック図、第1図(b)は動
作タイムチャート、第1図(c)は左シフト動作原理
図、第1図(d)は右シフト動作原理図である。
FIG. 1 (a) is a block diagram of the present invention, FIG. 1 (b) is an operation time chart, FIG. 1 (c) is a left shift operation principle diagram, and FIG. 1 (d) is a right shift operation principle diagram. is there.

〔動作原理〕〔Operating principle〕

第1図(c)(d)により左シフト,右シフトのそれぞ
れについて動作原理を説明する。
The operation principle of each of the left shift and the right shift will be described with reference to FIGS.

(1) 第1図(c)は左シフトの場合を示すもので、
A,Bはそれぞれ1ワードのレジスタ、10は2ワード幅で
所定量回転シフト(ローテーション)し、且つシフト後
の内容を2ワード出力するシフタ、11はマルチプレック
サである。
(1) Figure 1 (c) shows the case of left shift.
Each of A and B is a 1-word register, 10 is a shifter that rotates (rotates) a 2-word width by a predetermined amount, and outputs the contents after the shift by 2 words, and 11 is a multiplexer.

左シフトはまずワード0の内容をAレジスタに書込み、
続いてワード1をBレジスタに書込む。
To shift left, first write the contents of word 0 to the A register,
Then, word 1 is written into the B register.

A,Bレジスタ2ワードの内容を入力されたシフタ10は指
定方向に指定量シフタした後出力するが、マルチプレク
サ11はシフタ10の上位10aを選択出力する。
The shifter 10 to which the contents of the two words of the A and B registers are input shifts in the designated direction by the designated amount and then outputs the same. The multiplexer 11 selectively outputs the upper 10a of the shifter 10.

続いてAレジスタにワード2を書込み、第1図(c)の
ごとく所定量回転シフトした後、シフタ10の下位10bの
データを選択出力する。これにより、第1図(c)のワ
ード0′,ワード1′に示すように書込み先ワードに整
列したデータが得られる。なお、先頭ワード,最終ワー
ドの書込み時には、必要に応じて(例えばワード0′の
0〜4ビット)がマスクされるが、その間の他のワード
はマスクする必要はなく1回の書込みアクセスで書込む
ことができる。
Subsequently, word 2 is written in the A register, and after a predetermined amount of rotational shift as shown in FIG. 1 (c), the lower 10b data of the shifter 10 is selectively output. As a result, data aligned with the write destination word is obtained as shown by word 0'and word 1'in FIG. 1 (c). It should be noted that when writing the first word and the last word, if necessary (for example, 0 to 4 bits of word 0 ') are masked, it is not necessary to mask other words in the meantime, and only one write access is required. Can be crowded.

なお上記シフト方向,シフト量は移動元,移動先先頭ア
ドレスにより決定されるものである。
The shift direction and shift amount are determined by the source and destination head addresses.

(2) 第1図(d)は右シフトの場合を示すもので、
まずワード0をAレジスタに書込み、マルチプレクサ11
はシフタ10の上位10aを選択出力する。続いてワード1
をBレジスタに書込み、シフタ10の下位10bを選択出力
し、次にワード2をAレジスタに書込み、シフタ10aを
選択出力する。
(2) FIG. 1 (d) shows the case of right shift.
First write word 0 to register A, then multiplexer 11
Selects and outputs the upper 10a of the shifter 10. Then word 1
Is written in the B register, the lower 10b of the shifter 10 is selected and output, then the word 2 is written in the A register, and the shifter 10a is selected and output.

上記処理により第1図(c)(d)に示すように移動先
ワード0′,1′,2′に連続パターンデータを整列せしめ
ることが出来、書込み回数を削減することができる。
By the above processing, the continuous pattern data can be aligned in the destination words 0 ', 1', 2'as shown in FIGS. 1 (c) and (d), and the number of times of writing can be reduced.

〔構成〕〔Constitution〕

第1図(a)において、12はシフタ制御回路、13はフリ
ップフロップ、14,15はナンド回路である。
In FIG. 1A, 12 is a shifter control circuit, 13 is a flip-flop, and 14 and 15 are NAND circuits.

シフタ制御回路12はA,Bレジスタへ書込み指令を、また
移動元,移動先先頭アドレスによりシフト量およびシフ
ト方向を判別し、シフタ10にそのシフト量を,マルチプ
レクサ11に前述の選択信号をそれぞれ送出する機能を備
える。
The shifter control circuit 12 determines the shift amount and the shift direction based on the write command to the A and B registers and the move source and move destination head addresses, and sends the shift amount to the shifter 10 and the aforementioned selection signal to the multiplexer 11, respectively. It has a function to do.

なおフリップフロップ13、ナンド回路14,15はA,Bレジス
タの書込指令を送出する回路を構成ものである。
The flip-flop 13 and the NAND circuits 14 and 15 constitute a circuit that sends a write command to the A and B registers.

その他全図を通じ、同一記号は同一対象物を表す。Throughout all the other drawings, the same symbols represent the same objects.

〔動作説明〕 第1図(b)の動作タイムチャートにより各部の動作を
説明する。
[Description of Operation] The operation of each unit will be described with reference to the operation time chart of FIG.

(1) ビットマップメモリより1ワードごと読出され
た読出信号〔第1図(b)−(3)〕は書込指令(b)
−(1),(b)−(2)により交互にAレジスタおよ
びBレジスタに格納され、それぞれシフタ10に入力され
る。
(1) The read signal [FIG. 1 (b)-(3)] read word by word from the bit map memory is the write command (b).
-(1), (b)-(2) are alternately stored in the A register and the B register and input to the shifter 10, respectively.

(2) シフタ10はシフト量,シフト方向を指定するシ
フト指令により所定量シフトして2ワード並列に出力す
る。
(2) The shifter 10 shifts a predetermined amount according to a shift command designating a shift amount and a shift direction, and outputs it in parallel for two words.

(3) マルチプレクサ11により、シフタ10の上位10a
のシフト出力および下位10bのシフト出力を交互に選択
して移動先の書込信号(b)−(7)として出力する。
(3) By multiplexer 11, upper 10a of shifter 10
And the shift output of the lower 10b are alternately selected and output as the destination write signals (b)-(7).

なお(b)−(6)は左シフト時の選択信号を示したも
のである。
Note that (b) to (6) show selection signals at the time of left shift.

以上の処理により出力された書込信号(b)−(6)は
前述したごとく移動先ワードアドレスに書込まれる。
The write signals (b)-(6) output by the above processing are written in the destination word address as described above.

〔発明の効果〕〔The invention's effect〕

以上説明したように本発明によれば、書込み単位の2倍
の連続したパターンデータを所定量シフトするためシフ
ト後も連続したパターンデータの書込み情報が得られ、
書込み回数の削減により低コスト化とともに書込み操作
の高速化が可能となる。
As described above, according to the present invention, since the continuous pattern data twice as large as the write unit is shifted by the predetermined amount, the continuous pattern data write information can be obtained even after the shift.
By reducing the number of writing operations, it is possible to reduce the cost and speed up the writing operation.

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

第1図(a)は本発明のブロック図、 第1図(b)は動作タイムチャート、 第1図(c)は左シフト動作原理図、 第1図(d)は右シフト動作原理図、 第2図(a)はCRT表示装置のビットマップメモリを表
す図、 第2図(b)は従来のビットマップメモリ移動処理方式
を説明する図、 である。 1はビットマップメモリ、 10はシフタ 10aはシフタ10の上位、 10bはシフタ10の下位、 11はマルチプレクサ、 12はシフタ制御回路、 13はフリップフロップ、 14,15はナンド回路、 A,Bはレジスタ、 である。
1A is a block diagram of the present invention, FIG. 1B is an operation time chart, FIG. 1C is a left shift operation principle diagram, and FIG. 1D is a right shift operation principle diagram. FIG. 2 (a) is a diagram showing a bitmap memory of a CRT display device, and FIG. 2 (b) is a diagram illustrating a conventional bitmap memory moving processing method. 1 is a bitmap memory, 10 is a shifter 10a is an upper part of the shifter 10, 10b is a lower part of the shifter 10, 11 is a multiplexer, 12 is a shifter control circuit, 13 is a flip-flop, 14,15 is a NAND circuit, A and B are registers ,.

フロントページの続き (72)発明者 小林 久雄 神奈川県川崎市中原区上小田中1015番地 富士通株式会社内 (56)参考文献 特開 昭48−68209(JP,A) 特開 昭49−98537(JP,A)Front page continuation (72) Inventor Hisao Kobayashi 1015 Kamiodanaka, Nakahara-ku, Kawasaki-shi, Kanagawa Fujitsu Limited (56) References JP-A-48-68209 (JP, A) JP-A-49-98537 (JP, A)

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】ワード単位に読出された一連のデータをそ
れぞれ書込み先ワードに整列させるシフタ回路であっ
て、 読出された該データがワード単位に交互に格納される2
組のレジスタ(A,B)と、 上記2組のレジスタに格納された2ワードのデータが並
列に転送され、読出し元および書込み先ワード内アドレ
スの差に応じて右または左に回転シフトするシフタ(1
0)と、 回転シフト後の該シフタの2ワードのデータのうちか
ら、書込み先ワードデータとして、右側または左側の1
組のワードデータを交互に選択取り出すマルチプレクサ
(11)と を有することを特徴とするシフタ回路。
1. A shifter circuit for arranging a series of data read in word units into write destination words, wherein the read data are alternately stored in word units.
A pair of registers (A, B) and the two-word data stored in the above two sets of registers are transferred in parallel, and the shifter rotates right or left according to the difference between the read-source and write-destination word addresses. (1
0) and 1 word on the right side or the left side as the write destination word data from the 2-word data of the shifter after the rotation shift.
And a multiplexer (11) for alternately selecting and extracting a set of word data.
JP60092460A 1985-04-30 1985-04-30 Shifter circuit Expired - Fee Related JPH0766349B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60092460A JPH0766349B2 (en) 1985-04-30 1985-04-30 Shifter circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60092460A JPH0766349B2 (en) 1985-04-30 1985-04-30 Shifter circuit

Publications (2)

Publication Number Publication Date
JPS61250729A JPS61250729A (en) 1986-11-07
JPH0766349B2 true JPH0766349B2 (en) 1995-07-19

Family

ID=14054975

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60092460A Expired - Fee Related JPH0766349B2 (en) 1985-04-30 1985-04-30 Shifter circuit

Country Status (1)

Country Link
JP (1) JPH0766349B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01131920A (en) * 1987-11-17 1989-05-24 Nec Corp Parallel-parallel conversion circuit
US6986023B2 (en) * 2002-08-09 2006-01-10 Intel Corporation Conditional execution of coprocessor instruction based on main processor arithmetic flags

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS4868209A (en) * 1971-12-20 1973-09-18
JPS4998537A (en) * 1973-01-22 1974-09-18
JPS52136533A (en) * 1976-05-10 1977-11-15 Fujitsu Ltd Byte alignment system

Also Published As

Publication number Publication date
JPS61250729A (en) 1986-11-07

Similar Documents

Publication Publication Date Title
US5283867A (en) Digital image overlay system and method
US5095422A (en) Information transferring method and apparatus for transferring information from one memory area to another memory area
JPH0766349B2 (en) Shifter circuit
JPS6057593B2 (en) Character pattern processing method
JPS62299892A (en) Access system for character generator memory
JP3092154B2 (en) Digital drawing equipment
JPS5936316B2 (en) Printing or display device
JPS5835592A (en) Display picture divider
JP2740197B2 (en) Bitmap drawing device
JPH04199238A (en) Memory access system
JPH04225453A (en) Data processor
JPH0426137B2 (en)
JPH0795346B2 (en) Image processing device
JPS63243990A (en) Character transmission system
JPH011075A (en) Image processing device
JPS607274B2 (en) display device
JPS6035072B2 (en) Character pattern generation circuit
JPH01270176A (en) Graphic display system allowed to deliver partial image
JPH0640260B2 (en) Storage device
JPH0318716B2 (en)
JPS6167085A (en) Writing controller for screen memory
JPH07320053A (en) Image rotation processor
JPS6294891A (en) Display unit
JPS62269993A (en) Information output unit
JPH01106281A (en) Image data processor

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees