JPH01129366A - Master data forming device - Google Patents

Master data forming device

Info

Publication number
JPH01129366A
JPH01129366A JP28756387A JP28756387A JPH01129366A JP H01129366 A JPH01129366 A JP H01129366A JP 28756387 A JP28756387 A JP 28756387A JP 28756387 A JP28756387 A JP 28756387A JP H01129366 A JPH01129366 A JP H01129366A
Authority
JP
Japan
Prior art keywords
mask
data
bits
mask pattern
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
JP28756387A
Other languages
Japanese (ja)
Inventor
Kazuaki Sakaguchi
坂口 和明
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 JP28756387A priority Critical patent/JPH01129366A/en
Publication of JPH01129366A publication Critical patent/JPH01129366A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)

Abstract

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

Description

【発明の詳細な説明】 〔概 要〕 本発明はマスクデータ生成装置に関し、データ幅の大き
いシステムにおけるマスク処理の制御を簡素化すること
を目的とし、 所定データ長の書込み用データと、該書込み用データの
各ビットをマスクするか否かを示すビットからなる該所
定データ長のマスクパターンとを入力して、該マスクパ
ターンに応じたデータを出力するマスクデータ生成手段
と、前記マスクパターンにおいて上位何ビットをマスク
するかを指定する上位マスクビット数と、下位何ビット
をマスクするかを指定する下位マスクビット数とを入力
して対応するマスクパターンを出力するマスクパターン
生成手段とを有してなるように構成する。
[Detailed Description of the Invention] [Summary] The present invention relates to a mask data generation device, and aims to simplify the control of mask processing in a system with a large data width. a mask pattern of the predetermined data length consisting of bits indicating whether or not to mask each bit of the data for use, and outputting data according to the mask pattern; and a mask pattern generating means for inputting a number of upper mask bits specifying how many bits to mask and a number of lower mask bits specifying how many lower bits to mask and outputting a corresponding mask pattern. Configure it so that

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

本発明はマスクデータ生成装置に関する。 The present invention relates to a mask data generation device.

画像処理等の分野では画像中の特定の画素領域のデータ
に対してのみ処理を行ない他の部分については処理を行
なわないというマスク処理が用いられる。このようなマ
スク処理は、各画素に対応するビットからなるマスクパ
ターンを参照して行なわれる。しかし、処理の高速化、
およびメモリの大容量化に応じてシステムのデータ幅も
拡張されつつあるため、これに対応するマスクパターン
も長大なものとなって処理を複雑なものとしている。そ
のため、このようなデータ幅の大きいシステムにおける
マスク処理の制御を簡素化する技術が要望されている。
In the field of image processing and the like, mask processing is used in which only data in a specific pixel area in an image is processed and other parts are not processed. Such mask processing is performed with reference to a mask pattern consisting of bits corresponding to each pixel. However, faster processing,
As the data width of the system is also expanding in accordance with the increase in memory capacity, the mask patterns corresponding to this are also becoming longer, making processing complicated. Therefore, there is a need for a technique that simplifies the control of mask processing in such a system with a large data width.

〔従来の技術、および発明が解決しようとする問題点〕[Prior art and problems to be solved by the invention]

従来、例えば、画像メモリ内の領域のうち特定の部分の
みにデータを書き込み、他の部分はマスクするという場
合、このようなマスク領域の区分は、一般にメモリへの
書込みのバイト単位とは無関係のビット単位で設定され
るため、外部より、メモリの各ビットに対応したマスク
パターンを与えてやり、メモリへのデータ書込みは、該
マスクパターンを参照することにより行なわせるという
のが一般的であった。
Conventionally, for example, when writing data only to a specific part of an area in an image memory and masking other parts, such division of the mask area is generally independent of the byte unit of writing to memory. Since it is set bit by bit, it was common to give a mask pattern corresponding to each bit of the memory from the outside, and write data to the memory by referring to the mask pattern. .

しかし、メモリをアクセスするデータ幅が大きい場合に
は、書込みの度にデータ幅の大きいマスクパターンを与
えてやる必要があり、マスク処理のための制御が複雑に
なるという問題があった。
However, when the data width to access the memory is large, it is necessary to provide a mask pattern with a large data width each time a write is performed, which poses a problem in that control for mask processing becomes complicated.

本発明は上記の問題点に鑑み、なされたもので、データ
幅の大きいシステムにおけるマスク処理の制御を簡素化
するマスクデータ生成装置を提供することを目的とする
ものである。
The present invention has been made in view of the above problems, and an object of the present invention is to provide a mask data generation device that simplifies control of mask processing in a system with a large data width.

C問題点を解決するための手段〕 本発明のマスクデータ生成装置においては、新規に書込
もうとするデータの上位何ビットをマスクするかを指定
する上位マスクビット数と、下位何ビットをマスクする
かを指定する下位マスクビット数とを入力して対応する
マスクパターンを出力するマスクパターン生成手段を設
けた。
Means for Solving Problem C] In the mask data generation device of the present invention, the number of upper mask bits specifying how many upper bits of data to be newly written are to be masked, and the number of lower bits to be masked. Mask pattern generation means is provided for inputting the number of lower mask bits specifying whether to use the mask pattern and outputting a corresponding mask pattern.

〔作 用〕[For production]

、・、      マスクパターンのビット数をm、と
すると、上位マスクビット数を指定するに必要なビット
数、および下位ビット数を指定するに必要なビット数は
、それぞれlog、mであって合計21ogzmビット
のデータを入力すれば、マスクパターン生成手段により
mビットのマスクパターンが内部で生成される。従って
、m > 21ogzmが成立するデータ幅mのシステ
ムにおけるマスク処理の際には、より少ないビット数の
入力によってマスク処理を制御することができる。
,..., If the number of bits of the mask pattern is m, the number of bits required to specify the number of upper mask bits and the number of bits required to specify the number of lower bits are log and m, respectively, and the total is 21ogzm When bit data is input, an m-bit mask pattern is internally generated by the mask pattern generation means. Therefore, when performing mask processing in a system with a data width m where m > 21 ogzm holds, the mask processing can be controlled by inputting a smaller number of bits.

〔実施例〕〔Example〕

第3図は画像メモリにおけるマスクデータ書込みの様子
を示すものである。本図において、30は1枚の画面に
ビット・マツプ対応で対応するメモリ領域、31はメモ
リ領域30内で内容を更新しようとするデータの書込み
用領域、そして、領域30から書込み領域31を除いた
部分がデータの更新を禁止するように設定されるマスク
領域である。
FIG. 3 shows how mask data is written in the image memory. In this figure, 30 is a memory area that corresponds to one screen in a bit map manner, 31 is an area for writing data whose contents are to be updated in the memory area 30, and the area 30 excluding the writing area 31 is The masked area is set to prohibit updating of data.

第3図のメモリ領域へのデータの書込み(および読出し
)は、領域の一端から例えば、図中32あるいは33で
示されるように1バイト単位で行なわれる。このとき例
えばバイト領域32においては、32aで示される部分
(ビット)はマスク領域に位置するので更新を禁じられ
ており、32bで示される部分(ビット)は、書込み領
域31に位置するのでその内容は更新されることを要求
される。このとき、このバイト領域32の更新用に外部
より与えられる8ビツトのデータに対応して与えられる
マスクパターンは、例えば32aの部分ビットについて
0″、32bの部分のビットについては“1”をもって
構成される。なお、第3図において、バイト領域32は
上位ビット32aがマスクされる例、バイト領域33は
下位ビフ)33bがマスクされる例である。
Writing (and reading) data into the memory area of FIG. 3 is performed in 1-byte units from one end of the area, for example, as indicated by 32 or 33 in the figure. At this time, for example, in the byte area 32, the part (bit) indicated by 32a is located in the mask area and is therefore prohibited from being updated, and the part (bit) indicated by 32b is located in the write area 31, so its contents is required to be updated. At this time, the mask pattern given corresponding to the 8-bit data given externally for updating this byte area 32 is composed of, for example, 0" for the partial bits 32a and "1" for the bits 32b. In FIG. 3, the byte area 32 is an example in which the upper bits 32a are masked, and the byte area 33 is an example in which the lower bits 33b are masked.

第1図は、本発明によるマスクデータ生成装置の実施例
の構成図である。本図において、2はマージ回路、3は
メモリ、1は本発明により設けられた、前述のマスクパ
ターン生成手段に対応するマスクパターン生成回路であ
る。すなわち、マスクパターン生成回路1は、新規に書
込もうとするデータの上位何ビットをマスクするかを指
定する上位マスクピント数と、下位何ビットをマスクす
るかを指定する下位マスクビット数とを入力して対応す
るマスクパターンを出力するもので、例えば、高速のS
RAM (スタティックRAM)、あるいはROMによ
り実現できる。
FIG. 1 is a block diagram of an embodiment of a mask data generation device according to the present invention. In this figure, 2 is a merge circuit, 3 is a memory, and 1 is a mask pattern generation circuit provided according to the present invention and corresponds to the above-described mask pattern generation means. That is, the mask pattern generation circuit 1 determines an upper mask focus number that specifies how many upper bits of data to be newly written are to be masked, and a lower mask bit number that specifies how many lower bits are to be masked. It inputs and outputs the corresponding mask pattern. For example, high-speed S
This can be realized using RAM (static RAM) or ROM.

第1図において本発明のマスクデータ生成装置を構成す
るのは、上記マスクパターン生成回路1、およびマージ
回路2である。そして、メモリ3は、本発明により生成
されたマスクデータを書込む対象である。マージ回路2
は、外部から与えられる書込み用データ、マスクパター
ン生成回路1から出力されるマスクパターン、および、
上記メモリ3から読出したデータを入力とする。ここで
、メモリ3から読出したデータとは、メモリ3において
マージ回路2の出力データを書込もうとするアドレスに
既に保持されているデータである。上記の、マージ回路
2に入力される3種類のデータは、同一のビット数(デ
ータ幅)からなるものであって、3種類のデータの各ビ
ットは互いに対応する。
In FIG. 1, the mask pattern generation circuit 1 and the merge circuit 2 constitute the mask data generation device of the present invention. The memory 3 is a target for writing mask data generated according to the present invention. Merge circuit 2
are write data given from the outside, a mask pattern output from the mask pattern generation circuit 1, and
The data read from the memory 3 is input. Here, the data read from the memory 3 is data already held in the memory 3 at the address where the output data of the merge circuit 2 is to be written. The above three types of data input to the merge circuit 2 have the same number of bits (data width), and each bit of the three types of data corresponds to each other.

マージ回路2は、上記マスクパターンの各ビットの内容
に応じて、上記書込み用データの対応するピント、およ
び上記メモリ3から読出したデータの対応するビットの
うちいずれかのビットの内容を選択して出力し、該メモ
リ3に書込む。なお、本発明に無関係であるが、マージ
回路は一般に上記のビットの選択の後にECCコードの
付加を行なう機能をも有しているものであって公知のも
のである。
The merging circuit 2 selects the content of any one of the corresponding focus of the write data and the corresponding bit of the data read from the memory 3 according to the content of each bit of the mask pattern. Output and write into the memory 3. Although not related to the present invention, the merging circuit is generally known and has a function of adding an ECC code after selecting the bits described above.

第2図には、第1図のマスクパターン生成回路1のよう
なマスクパターン生成手段の入力データと出力データと
の対応が一例として示されている。
FIG. 2 shows an example of the correspondence between input data and output data of a mask pattern generation means such as the mask pattern generation circuit 1 of FIG. 1. In FIG.

第2図には、上段から上位マスクビット数および下位マ
スクビット数の各入力が、それぞれ3桁の2進数を示す
3ビツトで示され、下段には上段の各入力に対応する8
ビツトのマスクパターン出力の例が示されている。図中
“X′は“O”でも“1”でもよいことを示す。第2図
の例では、6ビツトの入力により8ビツトのマスクパタ
ーンを得ているが、データ幅が、さらに、増せば、入力
ビツト数を少なくする効果は一層大となる。例えは、1
6ビツトの出力を実現するには入力は21ogz16=
 8 (ビット)、32ピントの出力を実現するには入
力は21ogz32=10 (ビット)、64ビツトの
出力を実現するには入力は21ogz64 = 12(
ビット)でよいことになる。したがって第1図の構成に
よるマスクデータ生成装置によれば、マスク処理のため
の制御入力が簡素化され、その効果は、システムのデー
タ幅の拡張と共に顕著なものとなる。
In FIG. 2, each input of the number of upper mask bits and the number of lower mask bits from the top row is shown as 3 bits representing a 3-digit binary number, and the bottom row shows 8 bits corresponding to each input in the upper row.
An example of a bit mask pattern output is shown. In the figure, "X'" indicates that it can be either "O" or "1". In the example in Figure 2, an 8-bit mask pattern is obtained by inputting 6 bits, but if the data width increases further, , the effect of reducing the number of input bits becomes even greater.For example, if 1
To achieve 6-bit output, the input is 21ogz16=
To achieve an output of 8 (bits) and 32 pins, the input is 21ogz32 = 10 (bits), and to achieve an output of 64 bits, the input is 21ogz64 = 12 (
bit) would be fine. Therefore, according to the mask data generation device having the configuration shown in FIG. 1, the control input for mask processing is simplified, and the effect becomes more noticeable as the data width of the system is expanded.

〔発明の効果〕〔Effect of the invention〕

本発明のマスクデータ生成装置によれば、マスク処理の
ための制御入力が簡素化され、その効果はシステムのデ
ータ幅の拡張と共に顕著となる。
According to the mask data generation device of the present invention, control input for mask processing is simplified, and the effect becomes more noticeable as the data width of the system is expanded.

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

第1図は本発明によるマスクデータ生成装置の実施例の
構成図、 第2図はマスクパターン生成手段の入出力の1例を示す
図、そして 第3図は画像メモリにおけるマスクデータ書込みの説明
図である。 (符号の説明) 1・・・マスクパターン生成回路、 2・・・マージ回路、 3・・・メモリ、 30・・・メモリ領域、 31・・・書込み領域。
FIG. 1 is a block diagram of an embodiment of the mask data generation device according to the present invention, FIG. 2 is a diagram showing an example of input/output of the mask pattern generation means, and FIG. 3 is an explanatory diagram of mask data writing in the image memory. It is. (Explanation of symbols) 1...Mask pattern generation circuit, 2...Merge circuit, 3...Memory, 30...Memory area, 31...Writing area.

Claims (1)

【特許請求の範囲】 1、所定データ長の書込み用データと、該書込み用デー
タの各ビットをマスクするか否かを示すビットからなる
該所定データ長のマスクパターンとを入力して、該マス
クパターンに応じたデータを出力するマスクデータ生成
手段(2)と、前記書込み用データの上位何ビットをマ
スクするかを指定する上位マスクビット数と、下位何ビ
ットをマスクするかを指定する下位マスクビット数とを
入力して対応するマスクパターンを出力するマスクパタ
ーン生成手段(1)とを有してなることを特徴とするマ
スクデータ生成装置。 2、前記マスクデータ生成手段(2)は、前記の出力す
るデータを書込むべき位置に既に書込まれているデータ
と、前記書込み用データとを入力して、前記マスクパタ
ーンの各ビットの内容に応じて、該書込み用データの対
応するビット、あるいは、該既に記憶されているデータ
の対応するビットのいずれかを選択して出力する特許請
求の範囲第1項記載のマスクデータ生成装置。
[Claims] 1. Input write data of a predetermined data length and a mask pattern of the predetermined data length consisting of bits indicating whether or not to mask each bit of the write data; Mask data generation means (2) that outputs data according to the pattern, a number of upper mask bits that specifies how many upper bits of the write data are to be masked, and a lower mask that specifies how many lower bits of the write data are to be masked. 1. A mask data generation device comprising: mask pattern generation means (1) for inputting a number of bits and outputting a corresponding mask pattern. 2. The mask data generation means (2) inputs the data already written in the position where the output data is to be written and the write data, and generates the contents of each bit of the mask pattern. 2. The mask data generation device according to claim 1, which selects and outputs either the corresponding bit of the write data or the corresponding bit of the already stored data, depending on the write data.
JP28756387A 1987-11-16 1987-11-16 Master data forming device Pending JPH01129366A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP28756387A JPH01129366A (en) 1987-11-16 1987-11-16 Master data forming device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP28756387A JPH01129366A (en) 1987-11-16 1987-11-16 Master data forming device

Publications (1)

Publication Number Publication Date
JPH01129366A true JPH01129366A (en) 1989-05-22

Family

ID=17718961

Family Applications (1)

Application Number Title Priority Date Filing Date
JP28756387A Pending JPH01129366A (en) 1987-11-16 1987-11-16 Master data forming device

Country Status (1)

Country Link
JP (1) JPH01129366A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03198143A (en) * 1989-12-27 1991-08-29 Matsushita Electric Ind Co Ltd Bus interface device and read-modified-write control system
TWI712576B (en) * 2018-03-22 2020-12-11 日商黑崎播磨股份有限公司 Block mud

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03198143A (en) * 1989-12-27 1991-08-29 Matsushita Electric Ind Co Ltd Bus interface device and read-modified-write control system
TWI712576B (en) * 2018-03-22 2020-12-11 日商黑崎播磨股份有限公司 Block mud

Similar Documents

Publication Publication Date Title
JP2549601B2 (en) Register control circuit
JPH01129366A (en) Master data forming device
JP2502530B2 (en) Printer
JPH0421221B2 (en)
JPS59197083A (en) Crt display unit
KR880008140A (en) Integrated Circuits for Digital Signal Processing
JPH0120514B2 (en)
JP2624375B2 (en) IC memory
JPS58116579A (en) Graphic japanese character dot pattern output control system
KR900001530Y1 (en) Data transfer circuit between font rom and character generating ram
KR900005491B1 (en) Method of storing and restoring of character image
JP3285033B2 (en) Information processing system
JPS58139179A (en) Character display unit
JPH04305744A (en) Logical arithmetic unit
JPS6173189A (en) CRT display control circuit
JPH026995A (en) Display device
JPS6330985A (en) Straight line drawing system
JPS6232818B2 (en)
JPS6141186A (en) Simultaneous color data writing apparatus
JPH11144035A (en) Semiconductor memory device
JPS6318213B2 (en)
JPS60262282A (en) Image memory control system
JPH0573431A (en) Storage circuit
JPS63241647A (en) Microprocessor
JPH0120513B2 (en)