JPH02144772A - Magnification/reduction controller - Google Patents

Magnification/reduction controller

Info

Publication number
JPH02144772A
JPH02144772A JP63300032A JP30003288A JPH02144772A JP H02144772 A JPH02144772 A JP H02144772A JP 63300032 A JP63300032 A JP 63300032A JP 30003288 A JP30003288 A JP 30003288A JP H02144772 A JPH02144772 A JP H02144772A
Authority
JP
Japan
Prior art keywords
data
arithmetic
register
controller
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
JP63300032A
Other languages
Japanese (ja)
Inventor
Yoshiaki Iba
井場 芳明
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.)
Toshiba Corp
Original Assignee
Toshiba Corp
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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP63300032A priority Critical patent/JPH02144772A/en
Publication of JPH02144772A publication Critical patent/JPH02144772A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)

Abstract

PURPOSE:To easily and quickly calculate an approximate value by setting a complementary constant at the idle part of a higher rank bit. CONSTITUTION:When data are stored in a source register 2 via a data bus 1, a controller 3 interprets an instruction code received from outside and sets the value of a constant register 6. When the controller 3 receives an instruction to apply the logical arithmetic to 2 bits contiguous to the data stored in the register 2, the controller 3 decides the arithmetic to be applied to the data out of all logical arithmetic functions and sends a control signal to an arithmetic unit 4 to perform a logical arithmetic and to output the arithmetic result. The register 6 stores its holding data into a idle part if produced in a higher rank bit of a destination register 5.

Description

【発明の詳細な説明】 [発明の目的] (産業上の利用分野) この発明はイメージデータを縮小する際に用いて好適な
拡大縮小制御装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Object of the Invention] (Industrial Application Field) The present invention relates to an enlargement/reduction control device suitable for use in reducing image data.

(従来の技術) 一般にイメージデータを縮小するには間引き操作、拡大
するにはコピー操作が要求される。
(Prior Art) Generally, reducing image data requires a thinning operation, and enlarging it requires a copying operation.

具体的にデータを縮小するには、ビットパターンとそれ
に対する演算結果のテーブルを持ち、演算の対象となる
データのビットパターンをキーにテーブルを検索し、結
果を得た後、上位のビットに空きが生じた場合論理演算
を行って、この部分を0クリアしていたものである。
To specifically reduce data, have a table of bit patterns and operation results for them, search the table using the bit pattern of the data to be operated as a key, obtain the result, and then fill the upper bits with free space. When this occurred, a logical operation was performed and this part was cleared to 0.

(発明が解決しようとする課題) 上記の操作をソフトウェアで実現すると、処理が煩雑で
あり、時間がかる。従って、画像処理等高速性を要求さ
れるアプリケーションに採用するのは困難であった。ま
た、テーブル用に多量のメモリを必要とし、不経済であ
るといった欠点も合せ持っていた。
(Problems to be Solved by the Invention) If the above operations are implemented using software, the processing is complicated and takes time. Therefore, it has been difficult to employ it in applications that require high speed, such as image processing. It also had the disadvantage of requiring a large amount of memory for tables and being uneconomical.

この発明は上記事情に鑑みてなされたものであり、デー
タの縮小等をコンピュータの中央処理装置に組み込まれ
た演算機構によって高速に行う拡大縮小制御装置を提供
することを目的とする。
The present invention has been made in view of the above circumstances, and it is an object of the present invention to provide an enlargement/reduction control device that performs data reduction etc. at high speed using an arithmetic mechanism built into a central processing unit of a computer.

[発明の構成] (課題を解決するための手段) 本発明の拡大縮小制御装置は、演算の対象となるデータ
に対し、隣接する2ビット毎の論理演算を行う演算装置
と、外部より到来する論理演算指令を解読し、上記演算
装置に対し必要な論理演算ファンクションを指示すると
共に、上記演算の結果、上位ビットに空きが生じた際、
そこに補うべき定数を設定する制御装置とで構成される
[Structure of the Invention] (Means for Solving the Problems) The enlargement/reduction control device of the present invention includes an arithmetic device that performs a logical operation for every two adjacent bits on data to be arithmetic, and a It decodes the logic operation command and instructs the above-mentioned arithmetic unit to perform the necessary logic operation function, and when the upper bit becomes vacant as a result of the above-mentioned operation,
It is composed of a control device that sets constants to be supplemented therewith.

(作用) 上記構成において、演算の対象となるデータに対し、隣
接する2ビット毎の論理演算を行うことによりデータを
圧縮して上位の空いたビットにはOまたは1を補う演算
機能を演算装置に設けることにより、データのアンド(
a n d)縮小やオア(o r)縮小等を行う機能を
実現する。データのand縮小やor縮小等を中央処理
装置の演算機能として実現することにより、画像処理に
おけるデータの間引きや、ニュートン法等の近似計算に
おける近似値の算出が容易にかつ高速に行なえる等の効
果がある。
(Operation) In the above configuration, the arithmetic device has an arithmetic function that compresses the data by performing a logical operation on every two adjacent bits on the data to be arithmetic, and then adds O or 1 to the upper vacant bit. By providing the
a and d) functions such as reduction and OR reduction are realized. By realizing AND reduction and OR reduction of data as arithmetic functions of the central processing unit, data thinning in image processing and calculation of approximate values in approximate calculations such as Newton's method can be performed easily and quickly. effective.

(実施例) 以下、図面を使用して本発明実施例について詳細に説明
する。第1図は本発明の実施例を示すブロック図である
。図において、1はデータバスであり、データはここを
ビットパラレルに転送される。2はソースレジスタであ
り、演算の対象となるデータが格納される。3は制御装
置であり、外部から与えられた命令を解釈し、演算装置
で行うべき論理演算ファンクションを決定し制御する機
能と、後述するコンスタントレジスタの値を設定する機
能を有する。
(Example) Hereinafter, an example of the present invention will be described in detail using the drawings. FIG. 1 is a block diagram showing an embodiment of the present invention. In the figure, 1 is a data bus, and data is transferred bit-parallel here. Reference numeral 2 is a source register in which data to be subjected to an operation is stored. Reference numeral 3 denotes a control device, which has a function of interpreting instructions given from the outside, determining and controlling a logical operation function to be performed by the arithmetic device, and a function of setting a value of a constant register to be described later.

4は演算装置であり、ソースレジスタ2の各ビットのペ
アに対して制御装置3で指定された論理演算を行う。5
はデスティネーションレジスタであり、演算結果のデー
タが格納される。6はコンスタントレジスタであり、上
位の空きビットに入るべき値を保持している。
4 is an arithmetic unit which performs a logical operation specified by the control unit 3 on each pair of bits of the source register 2; 5
is a destination register, and the data of the operation result is stored. 6 is a constant register, which holds the value to be placed in the upper empty bit.

以下、本発明実施例の動作について詳細に説明する。演
算の対象となるデータはデータバス1を通り、ソースレ
ジスタ2に格納される。制御装置3は制御装置3の外部
から与えられる命令コードを解釈する。制御装置3はコ
ンスタントレジスタ6の値を変更する命令が与えられる
と、それに従いコンスタントレジスタ6の値を設定する
。制御装置3はソースレジスタ2のデータの隣接する2
ビットに論理演算を行う命令が与えられると、命令に従
い全ての論理演算ファンクションの中からデータに対し
て行うべき演算を決定して演算装置4に対し制御信号を
送出する。
Hereinafter, the operation of the embodiment of the present invention will be explained in detail. Data to be operated on passes through a data bus 1 and is stored in a source register 2. The control device 3 interprets command codes given from outside the control device 3. When the control device 3 receives an instruction to change the value of the constant register 6, it sets the value of the constant register 6 in accordance with the instruction. The control device 3 stores two adjacent data of the source register 2.
When a command to perform a logical operation on the bits is given, it determines the operation to be performed on the data from among all the logical operation functions according to the command and sends a control signal to the arithmetic unit 4.

ソースレジスタ2の各ビットのデータは隣接する2ビッ
ト毎に演算装置4に入力される。演算装置4は制御装置
3からの信号に従い指定された論理演算を入力されたビ
ットデータに対して行い、デスティネーションレジスタ
5の各ビットに対して結果を出力する。コンスタントレ
ジスタ6はデスティネーションレジスタ5の上位ビット
に空きが生じた場合にそこに補うべき値を保持している
The data of each bit of the source register 2 is input to the arithmetic unit 4 every two adjacent bits. The arithmetic unit 4 performs a specified logical operation on the input bit data according to the signal from the control unit 3 and outputs the result to each bit of the destination register 5. The constant register 6 holds a value to be filled in when the upper bit of the destination register 5 becomes vacant.

デスティネーションレジスタ5の各ビットには演算装置
4からの出力を下位ビットから格納し、上位のピントに
空きが生じるとこの部分にはコンスタントレジスタ6に
保持されているデータを格納する。
The output from the arithmetic unit 4 is stored in each bit of the destination register 5 starting from the lower bit, and when an empty space occurs in the upper focus, the data held in the constant register 6 is stored in this portion.

[発明の効果] 以上説明のように本発明によれば、データのand縮小
やor縮小等を中央処理装置の演算機能として実現する
ことにより、画像処理におけるデータの間引きや、ニュ
ートン法等の近似計算おける近似値の算出が容易にかつ
高速に行なえる等の効果がある。
[Effects of the Invention] As explained above, according to the present invention, by realizing AND reduction, OR reduction, etc. of data as an arithmetic function of a central processing unit, data thinning in image processing and approximation of Newton's method etc. This has the advantage that approximate values can be easily and quickly calculated.

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

第1図は本発明の実施例を示すブロック図である。 1・・・データバス、2・・・ソースレジスタ、3・・
・制御装置、4・・・演算装置、5・・・デスティネー
ションレジスタ、6・・・コンスタントレジスタ。 出願人代理人  弁理士 鈴江武彦
FIG. 1 is a block diagram showing an embodiment of the present invention. 1...Data bus, 2...Source register, 3...
- Control device, 4... Arithmetic device, 5... Destination register, 6... Constant register. Applicant's agent Patent attorney Takehiko Suzue

Claims (1)

【特許請求の範囲】[Claims] 演算の対象となるデータに対し、隣接する2ビット毎の
論理演算を行う演算装置と、外部より到来する論理演算
指令を解読し、上記演算装置に対し必要な論理演算ファ
ンクションを指示すると共に、上記演算の結果、上位ビ
ットに空きが生じた際、そこに補うべき定数を設定する
制御装置とを具備することを特徴とする拡大縮小制御装
置。
An arithmetic unit that performs a logical operation on each adjacent 2 bits on the data to be operated on, and an arithmetic unit that decodes the logical operation command that comes from the outside and instructs the arithmetic unit to perform the necessary logical operation function. 1. An enlargement/reduction control device comprising: a control device that sets a constant to fill in a vacant space in upper bits when a vacant space is generated in the upper bit as a result of an operation.
JP63300032A 1988-11-28 1988-11-28 Magnification/reduction controller Pending JPH02144772A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63300032A JPH02144772A (en) 1988-11-28 1988-11-28 Magnification/reduction controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63300032A JPH02144772A (en) 1988-11-28 1988-11-28 Magnification/reduction controller

Publications (1)

Publication Number Publication Date
JPH02144772A true JPH02144772A (en) 1990-06-04

Family

ID=17879887

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63300032A Pending JPH02144772A (en) 1988-11-28 1988-11-28 Magnification/reduction controller

Country Status (1)

Country Link
JP (1) JPH02144772A (en)

Similar Documents

Publication Publication Date Title
JPH04172535A (en) Popup control system for personal computer
JPH05265517A (en) Programmable controller with operator message transmitting function
JPH02144772A (en) Magnification/reduction controller
JPH02148223A (en) Register saving and restoring device
JPH0774989B2 (en) Code conversion circuit
JP3332606B2 (en) Microprocessor
JPH02300801A (en) Numerical controller
JPH0414124A (en) Keyboard device
JPH0330008A (en) Multi-keyboard system
JP4999361B2 (en) Processing equipment
JPH0548490B2 (en)
JPH0498319A (en) Digital circuit
JPS61187008A (en) Input method of ladder circuit
JPS63118839A (en) Advance control system for instruction address of instruction processor
JPS62290904A (en) Numerical controller
JPH02228722A (en) Output code determining method by combined key input
JPS6220033A (en) Interruption control system
JPS61148531A (en) Input device for arithmetic processing data
JPH01196619A (en) Key input control device
JPS6375830A (en) Command control system
JPS61223968A (en) Data controller for multi-microprocessor
JPH04124724A (en) Decimal arithmetic circuit
JPH0585013A (en) Printer
JPH01113806A (en) Sequence controller
JPH02178829A (en) Data processor