JPH01142934A - Information processing circuit - Google Patents

Information processing circuit

Info

Publication number
JPH01142934A
JPH01142934A JP62302234A JP30223487A JPH01142934A JP H01142934 A JPH01142934 A JP H01142934A JP 62302234 A JP62302234 A JP 62302234A JP 30223487 A JP30223487 A JP 30223487A JP H01142934 A JPH01142934 A JP H01142934A
Authority
JP
Japan
Prior art keywords
data
register
readable
memory
multiplier
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
JP62302234A
Other languages
Japanese (ja)
Inventor
Ichiro Yamane
一郎 山根
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP62302234A priority Critical patent/JPH01142934A/en
Publication of JPH01142934A publication Critical patent/JPH01142934A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To obtain data which is an integral multiple of data fast without lowering the efficiency of a ROM by providing a readable and writable register or memory where data is written, a circuit which calculates an integral multiple of data, and a readable register or memory where the integer multiple of the data is stored. CONSTITUTION:The magnifying rate of the data to be found is written in a writable register (MW) 7 previously. Then this data is inputted to a multiplier 9 through a control line 9 to determine the magnifying rate of the data to be found. Then the data is written in the readable and writable register (MRW) 5. This data is inputted to the multiplier 9 and the data obtained by multiplying the data by the magnifying rate set in the MW 7 is inputted to the readable register (MR) 6. This is only read out to obtain the target integer multiple of the data.

Description

【発明の詳細な説明】 産業上の利用分野 本発明は、データの整数倍を高速に得ることのできる情
報処理回路に関するものである。
DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention relates to an information processing circuit that can obtain integral multiples of data at high speed.

従来の技術 従来、メモリ上に配列を設定した時、配列変数をメモリ
上のアドレスに対応させるには、゛上記配列変数を加算
する加算回路又は、シフトさせるシフト回路によりメモ
リ上のアドレスに変換していた。
Conventional Technology Conventionally, when an array is set in memory, in order to make the array variable correspond to an address in memory, the array variable is converted to an address in memory using an addition circuit that adds the array variable or a shift circuit that shifts the array variable. was.

以下に、配列のアドレスの求め方について第5図および
第6図を参照して説明する。
The method of determining the address of the array will be explained below with reference to FIGS. 5 and 6.

第5図は、配列の各要素が3バイトを必要とした場合の
メモリの配列要素分配例であり、1は各配列要素のメモ
リ上のアドレス、2は各3バイトの配列要素、3は配列
の名称である。(以下、C(0)、C(1)、C(2)
、=、C(n>・・・・・・と記す)また、アドレス1
中の最初のBPはアドレスペースポインタであり、これ
を基準にしてメモリのアドレスが決定される。
Figure 5 is an example of memory array element distribution when each element of the array requires 3 bytes, where 1 is the address on the memory of each array element, 2 is each 3-byte array element, and 3 is the array element. It is the name of (hereinafter referred to as C(0), C(1), C(2)
,=,C (written as n>...) Also, address 1
The first BP is an address space pointer, and the memory address is determined based on this pointer.

今、例として、C(n)のアドレスBp+3nを求め、
ここにデータとしての定数量を入れる方法を第6図に示
したフローチャートを参照して説明する。
Now, as an example, find the address Bp+3n of C(n),
A method for inserting constant quantities as data here will be explained with reference to the flowchart shown in FIG.

まず、配列変数nをレジスタRφに取り込み、これに2
度加算を行い、3nを得る。次に、レジスタAφにアド
レスペースポインタBPを取り込む。そしてレジスタA
φとレジスタRφの和で示されるBp+3nをアドレス
して定数iを入れる。
First, take the array variable n into the register Rφ and add 2
Perform degree addition to obtain 3n. Next, address space pointer BP is taken into register Aφ. and register A
Address Bp+3n, which is the sum of φ and register Rφ, and input the constant i.

次に、スケールファクタをアドレッシングモードに持つ
場合を図式化したものを第7図に示す。
Next, FIG. 7 shows a diagrammatic representation of the case where the scale factor is used in the addressing mode.

これは、上記と同様に、配列変数nをレジスタRφに、
アドレスペースポインタBPをレジスタAφに読み込む
。、そしてレジスタAφと、レジスタRφのスケールフ
ァクタ(sf)倍との和で示されるアドレスへ定数iを
入れる。これで直接アドレッシングすることができる。
Similarly to the above, this means that the array variable n is placed in the register Rφ,
Read address space pointer BP into register Aφ. , and puts the constant i into the address indicated by the sum of the register Aφ and the scale factor (sf) times the register Rφ. This allows direct addressing.

発明が解決しようとする問題点 従来の加算を行う方法では、多くのプログラムステップ
数が必要となり複雑になる。また、スケールファクタ(
sf)をアドレッシングモードに持゛つ方法では、スケ
ールファクタ(sf)が2のn乗の値しかとれず、上記
3バイトの配列要素の例を実現することはできない。ま
た、このアドレッシングモードを実現するためには、ス
ケールファクタのためにオペランドをビット拡張せねば
らなず、ROM効率を下げてしまう問題点を有していた
Problems to be Solved by the Invention The conventional method of performing addition requires a large number of program steps and is complicated. Also, the scale factor (
sf) in the addressing mode, the scale factor (sf) can only take a value of 2 to the nth power, and the above example of a 3-byte array element cannot be realized. Furthermore, in order to realize this addressing mode, the operand must be bit-expanded for the scale factor, which has the problem of lowering ROM efficiency.

本発明は、上記従来の問題点を解決するもので、ROM
効率を下げることなく高速にデータを整数倍できる情報
処理回路を提供することを目的とするものである。
The present invention solves the above-mentioned conventional problems.
The object of the present invention is to provide an information processing circuit that can multiply data by an integer at high speed without reducing efficiency.

問題点を解決するための手段 本発明の情報処理回路は、データを書き込む読出しおよ
び書込み可能なレジスタ又はメモリと、前記データの整
数倍を求める回路と、前記データの整数倍を記憶する読
出し可能なレジスタ又はメモリを備えたものである。
Means for Solving the Problems The information processing circuit of the present invention includes a readable and writable register or memory for writing data, a circuit for obtaining an integral multiple of the data, and a readable register or memory for storing the integral multiple of the data. It is equipped with registers or memory.

作用 本発明の情報処理回路によれば、ROM効率を下げるこ
となく高速にデータの整数倍のデータを得ることができ
る。
Effect: According to the information processing circuit of the present invention, data that is an integer multiple of data can be obtained at high speed without reducing ROM efficiency.

実施例 本発明の情報処理回路の一実施例を第1図に示したブロ
ック図を参照しながら説明する。
Embodiment An embodiment of the information processing circuit of the present invention will be described with reference to the block diagram shown in FIG.

この回路ブロックは、データバス4に読出しおよび書込
み可能なレジスタ(以下MRWと記す)5と、読出し可
能なレジスタ(以下MRと記す)6と、書込み可能なレ
ジスタ(以下MWと記す)7が接続され、MW7は制御
線8を通じて乗算器9に接続され、またMRW5も制御
線10を通じて乗算器9に接続され、乗算器は制御線1
1を通じてMR6に接続された構造である。
In this circuit block, a readable and writable register (hereinafter referred to as MRW) 5, a readable register (hereinafter referred to as MR) 6, and a writable register (hereinafter referred to as MW) 7 are connected to a data bus 4. MW7 is connected to the multiplier 9 through the control line 8, MRW5 is also connected to the multiplier 9 through the control line 10, and the multiplier is connected to the multiplier 9 through the control line 10.
This structure is connected to MR6 through 1.

次にこの回路ブロックの動作を説明する。まず、あらか
じめMW7に求めるデータの倍率を書込んでおく。(又
は、乗算器9が同等に動作するための制御データでもよ
い)すると、このデータが制御線8を通して乗算器9に
入力され、求めるデータの倍率が決定される。なお、こ
の乗算器は簡易な特定の倍率しか求められないものであ
ってもかまわない。
Next, the operation of this circuit block will be explained. First, write the desired data magnification into MW7 in advance. (Or it may be control data for the multiplier 9 to operate in the same manner.) Then, this data is input to the multiplier 9 through the control line 8, and the magnification of the desired data is determined. Note that this multiplier may be one that can only obtain a simple specific magnification.

次に、MRW5にデータを書込む。すると、このデータ
は乗算器9に入力され、MW7に設定された倍率にデー
タを掛けたデータが、MR6に入力される。これを読出
すだけで目的の整数倍のデータが得られる。
Next, data is written to MRW5. Then, this data is input to the multiplier 9, and data obtained by multiplying the data by the magnification set in MW7 is input to MR6. Just by reading this, the desired integral multiple of data can be obtained.

次に、この回路を用いて、第5図に示したC(n)のア
ドレスBp+3nを求める方法を第2図に示したフロー
チャートを参照して説明する。
Next, a method for determining the address Bp+3n of C(n) shown in FIG. 5 using this circuit will be explained with reference to the flowchart shown in FIG.

このとき、MW7にはあらかじめ3倍の倍率が設定され
ている。
At this time, a magnification of 3x is set in advance for MW7.

まず、配列変数nをレジスタMRW5に取り込む。次に
、レジスタAφ(図示なし)にアドレスペースポインタ
BPを取り込む。すると、MR6には乗算器9により3
nのデータがセットされているので、あとは、目的のB
p+3nをアドレスして定数量を入れる。
First, array variable n is taken into register MRW5. Next, the address pace pointer BP is taken into the register Aφ (not shown). Then, MR6 receives 3 by multiplier 9.
Since the data of n has been set, all that is left is to set the target B.
Address p+3n and enter the constant quantity.

なお、第1図においてはMRW5を1個のみ設定したが
、第3図に示すように、データの一部で入力選択回路1
2を制御することによって、複数のM RW 5 a 
、 5 b 、 5 cから任意の1つのMRWを選び
、演算回路13により目的とする整数倍のデータをMR
6に入力してもよい。このようにすれば、MRWを限定
することなく、目的のデータの整数倍が得られる。
Although only one MRW5 is set in FIG. 1, as shown in FIG.
2, a plurality of M RW 5 a
, 5b, and 5c, and the arithmetic circuit 13 converts the desired integer multiple data into MR.
6 may be entered. In this way, integral multiples of the target data can be obtained without limiting the MRW.

また、別の実施例を第4図のブロック図に示す。この図
は、データバス4がMRW5とMR6a。
Another embodiment is shown in the block diagram of FIG. In this figure, the data bus 4 is MRW5 and MR6a.

6b、6ce 6dに接続され、M R6a −6b 
r6 c e 6 dのそれぞれがデータの2倍、3倍
、4倍、5倍にセットされるようにMRW5から制御線
14および加算器15a、15bを通じて接続された回
路ブロックである。
Connected to 6b, 6ce 6d, M R6a -6b
These circuit blocks are connected from the MRW5 through the control line 14 and adders 15a and 15b so that r6 c e 6 d are set to twice, three times, four times, and five times the data, respectively.

この回路よりデータの整数倍を得るには、まず、MRW
5に求めるデータを書込む。すると、そのデータはその
まま制御線14に乗り、M R6aには2倍のデータが
、MR6bには加算器15aを通して3倍のデータが、
以下同様に4倍のデータがMR6cに、5倍のデータが
MR6dに入る。あとは、MR6a〜6dより目的の倍
率のデータが入っているレジスタを選んで読出す。 こ
のようにすれば、あらかじめ倍率を設定してお(必要が
なくなる。
To obtain an integer multiple of data from this circuit, first, MRW
Write the required data in 5. Then, the data is transferred to the control line 14 as it is, twice the data is sent to MR6a, and three times the data is sent to MR6b through the adder 15a.
Similarly, 4 times the data is entered into MR6c, and 5 times the data is entered into MR6d. After that, the register containing the data of the desired magnification is selected from among the MRs 6a to 6d and read out. If you do this, there is no need to set the magnification in advance.

ここでは2倍から5倍のデータを求める例を示したが、
他の倍率についても同様に設定できる。
Here, we have shown an example of obtaining 2 to 5 times more data, but
Other magnifications can be set in the same way.

また、特定の倍率だけを求められるように回路を構成し
ても構わない。
Further, the circuit may be configured so that only a specific magnification can be obtained.

なお、実施例ではレジスタを使用したがレジスタのかわ
りにメモリを使用しても構わない。
Note that although registers are used in the embodiment, a memory may be used instead of the registers.

発明の効果 本発明の情報処理回路によれば、データを書き込む読出
しおよび書込み可能なレジスタ(又はメモリ)と前記デ
ータの整数倍を記憶する読出し可能なレジスタ(又はメ
モリ)を設けることによって、データの整数倍のデータ
をROM効率下げることなく高速に得ることができる。
Effects of the Invention According to the information processing circuit of the present invention, by providing a readable and writable register (or memory) for writing data and a readable register (or memory) for storing integral multiples of the data, data can be read and written. Integer multiple data can be obtained at high speed without reducing ROM efficiency.

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

第1図、第3図および第4図は本発明の実施例を示す回
路ブロック図、第2図は本発明を用いたけるフローチャ
ートである。 4・・・・・・データバス、5,5a、5b、5c・・
・・・・読出しおよび書込み可能なレジスタ(MRW)
、・6,6a、6b、6c、6d・・・・・・読出し可
能なレジスタ(MR) 、?・・・・・・書込み可能な
レジスタ(RW) 、8,10,11.14・・・・・
・制御線、9・・・・・・乗算器、12・・・・・・入
力選択回路、13・・・・・・演算回路、15a、15
b・・・・・・加算器。 代理人の氏名 弁理士 中尾敏男 ほか1名第3図 乙 第4図
1, 3, and 4 are circuit block diagrams showing embodiments of the present invention, and FIG. 2 is a flowchart in which the present invention can be used. 4...Data bus, 5, 5a, 5b, 5c...
...Readable and writable register (MRW)
, 6, 6a, 6b, 6c, 6d...readable register (MR), ? ...Writable register (RW), 8, 10, 11.14...
・Control line, 9... Multiplier, 12... Input selection circuit, 13... Arithmetic circuit, 15a, 15
b... Adder. Name of agent: Patent attorney Toshio Nakao and one other person Figure 3 Figure Otsu Figure 4

Claims (1)

【特許請求の範囲】[Claims] データを書き込む読出しおよび書込み可能なレジスタ又
はメモリと、前記データの整数倍を求める回路と、前記
データの整数倍を記憶する読出し可能なレジスタ又はメ
モリを備えたことを特徴とする情報処理回路。
An information processing circuit comprising: a readable and writable register or memory into which data is written; a circuit that obtains an integral multiple of the data; and a readable register or memory that stores the integral multiple of the data.
JP62302234A 1987-11-30 1987-11-30 Information processing circuit Pending JPH01142934A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62302234A JPH01142934A (en) 1987-11-30 1987-11-30 Information processing circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62302234A JPH01142934A (en) 1987-11-30 1987-11-30 Information processing circuit

Publications (1)

Publication Number Publication Date
JPH01142934A true JPH01142934A (en) 1989-06-05

Family

ID=17906564

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62302234A Pending JPH01142934A (en) 1987-11-30 1987-11-30 Information processing circuit

Country Status (1)

Country Link
JP (1) JPH01142934A (en)

Similar Documents

Publication Publication Date Title
EP0240032B1 (en) Vector processor with vector data compression/expansion capability
JP2008524723A (en) Evaluation unit for flag register of single instruction multiple data execution engine
KR20030055467A (en) A method for memory allocation using multi-level partition
US3973243A (en) Digital image processor
JPH01142934A (en) Information processing circuit
JP3333779B2 (en) Matrix arithmetic unit
JP5072558B2 (en) Data processing device
JP2595992B2 (en) Electronic musical instrument
JPH03240144A (en) Variable length data memory interface circuit
JP2885197B2 (en) Arithmetic processing device and arithmetic processing method
JPH07239843A (en) Parallel arithmetic processors
JPH04280331A (en) Access system to read-only list
JPS6225799Y2 (en)
JP2835366B2 (en) Address information generator for fast Fourier transform
JPS60169946A (en) Task control system
JPS63193524A (en) Apparatus for preparing pattern data for lsi lithography
JPH0283734A (en) Parallel processing system for digital signal processor
JPS59205674A (en) Matrix multiplication circuit for graphic display
JPS5860354A (en) Multiplying device
JPS61131137A (en) Continuous generating system of plural addresses
JPS5944656B2 (en) Integration method of digital differential analyzer
JPS6316785B2 (en)
JPH02204861A (en) Vector data processor
JPH0344347B2 (en)
JPH04242425A (en) Decimal multiplier