JPH02242353A - Address arithmetic circuit - Google Patents

Address arithmetic circuit

Info

Publication number
JPH02242353A
JPH02242353A JP6280589A JP6280589A JPH02242353A JP H02242353 A JPH02242353 A JP H02242353A JP 6280589 A JP6280589 A JP 6280589A JP 6280589 A JP6280589 A JP 6280589A JP H02242353 A JPH02242353 A JP H02242353A
Authority
JP
Japan
Prior art keywords
register
memory
address
adder
output
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
JP6280589A
Other languages
Japanese (ja)
Inventor
Hiromi Komine
小峰 ひろみ
Norikazu Nakamura
中村 則和
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 JP6280589A priority Critical patent/JPH02242353A/en
Publication of JPH02242353A publication Critical patent/JPH02242353A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To arbitrarily set the number of words of a cyclically addressing memory by providing a first to a third registers 35, a comparator, and an adder 33. CONSTITUTION:For example, the value of a VP register 32a is updated by +1 each with a +1 adder 33a, and the incremented value is compared with the set value of a VPM register 35a by a pointer value comparator 36a. When they coincide with each other, the VP register 32a is reset, the operation of starting the newly updating by +1 each is repeated. The output updated by +1 each of the VP register 32a is added to the output of a Y register 31a by an address adder 34a, and the addition result is outputted as the effective address, and a memory 37a is accessed by this address. The memory 37a is addressed in such a manner to enable the memory 37a to hold data independently of the number of words of data. Thus, the number of words of the cyclically addressed memory 37a is arbitrarily set.

Description

【発明の詳細な説明】 〔概 要〕 ディジタル信号処理プロセッサ内に内蔵するメモリの実
効アドレスを演算する回路に関し、循環してアドレッシ
ングさせるメモリのワード数を任意に設定出来るアドレ
ッシング方式を存するアドレス演算回路を提供すること
を目的とし、メモリの記憶部分の指標を保持する第1の
レジスタと、第1の加算器を介して出力側を入力側に帰
還させ、第1の加算器にて+1ずつメモリのアドレスポ
インタ値を更新する第2のレジスタと、第1のレジスタ
の出力と第2のレジスタの出力とを加算しメモリの実効
アドレスとして出力する第2の加算器と、第2のレジス
タで循環してアドレスシフトさせる任意のワード数を設
定する第3のレジスタと、第3のレジスタの設定値と第
2のレジスタの出力上を比較する比較器とを具備して構
成する。
[Detailed Description of the Invention] [Summary] An address calculation circuit that has an addressing method that can arbitrarily set the number of words of the memory to be addressed in a circular manner, regarding a circuit that calculates the effective address of a memory built in a digital signal processor. The output side is fed back to the input side via a first register that holds the index of the storage part of the memory and a first adder, and the first adder returns the memory by +1. a second register that updates the address pointer value of the register; a second adder that adds the output of the first register and the output of the second register and outputs the result as an effective address of the memory; The third register is configured to set an arbitrary number of words for address shifting, and a comparator is configured to compare the set value of the third register with the output of the second register.

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

本発明は、ディジタル信号処理プロセ・ンサ内Gこ内蔵
するメモリの実効アドレスを演算する回路Gこ関する。
The present invention relates to a circuit for calculating an effective address of a memory included in a digital signal processing processor.

例えば、ディジタル信号処理ブロセ・ンサを用し1て伝
送機器等で使用するフィルター計算を行う19のタップ
更新を行う場合、データを順次シフトさせずインデック
スレジスタを用I/1てアドレスを+1ずつ増加させて
計算を行うが、この場合限られた容量しかないメモリを
有効に使用するためのアドレッシング方式を有するアド
レス演算回路力(必要となる。
For example, when updating 19 taps for calculating filters used in transmission equipment using a digital signal processing processor, instead of sequentially shifting the data, use an index register and increase the address by +1 by I/1. However, in this case, an address arithmetic circuit with an addressing method to effectively use the limited memory capacity is required.

〔従来の技術〕[Conventional technology]

第3図はディジタル信号処理プロセンサの構成を説明す
る図、第4図はアドレス演算部の従来例を説明する図を
それぞれ示す。
FIG. 3 is a diagram illustrating the configuration of a digital signal processing processor, and FIG. 4 is a diagram illustrating a conventional example of an address calculation section.

第3図に示すディジクル信号処理プロセッサ6は、シー
ケンス制御部1とデコーダ部2とアドレス演算部3と演
算部4と入出力インタフェース部5とを具備して構成さ
れている。
The digital signal processor 6 shown in FIG. 3 includes a sequence control section 1, a decoder section 2, an address calculation section 3, a calculation section 4, and an input/output interface section 5.

上述のシーケンス制御部1は、プログラム・シーケンス
を制御する部分でプログラムカウンタ。
The above-mentioned sequence control unit 1 is a program counter that controls the program sequence.

プログラムメモリ6 インストラクシヨン・レジスタ等
を備え構成されている。
Program memory 6 is comprised of an instruction register, etc.

デコーダ部2は、デコーダと現在デコードしているコー
ドの次のコードをデコードする予見デコーダとを具備し
、命令実行に先立ち書き込み可能メモリ(RAM)のア
ドレス演算の制御を行ったり命令のサイクル数デコード
を行うと共に、データの転送・演算の制御を行うもので
あり、アドレス演算部3は、インデックスレジスタXY
、データを格納する書き込み可能メモリ(RAM)等を
具備し、データ格納用メモリ(RAM)のアドレスやプ
ログラムメモリの一部のテーブル・データとして用いる
時のアドレスを演算するものであり、 演算部4は、16ビツトのレジスタA、B、乗算器、テ
ンポラリ−レジスタ、演算ユニットALU及び26ビン
ト長アキユムレータ等を具備して演算処理を行うもので
あり、 入出力インタフェース部5は、入出力レジスタや人出力
制御部を具備し、ディジタル信号処理プロセッサが外部
とパラレルにデータを遺り取りする部分をなしている。
The decoder unit 2 is equipped with a decoder and a preview decoder that decodes the next code of the code currently being decoded, and controls the address calculation of a writable memory (RAM) prior to executing an instruction, and decodes the number of cycles of an instruction. The address calculation section 3 also controls data transfer and calculation.
, a writable memory (RAM) for storing data, etc., and calculates the address of the data storage memory (RAM) and the address when used as table data of a part of the program memory, and the calculation unit 4 is equipped with 16-bit registers A and B, a multiplier, a temporary register, an arithmetic unit ALU, a 26-bit length accumulator, etc., and performs arithmetic processing. It is equipped with an output control section, and a digital signal processing processor forms a part that receives and receives data in parallel with the outside.

第4図は上述のアドレス演算部3の実効アドレス演算部
分の一部の従来例を示すものでインデックスレジスタで
あるYレジスタ31aと、4ビツトのバーチャルシフト
ポインタレジスタである■Pレジスタ32aと、+1加
算器33aと、アドレス加算器34aと、メモリ(RA
M)37aとを具備して構成している。
FIG. 4 shows a conventional example of a part of the effective address calculation section of the address calculation section 3 described above, including a Y register 31a which is an index register, a P register 32a which is a 4-bit virtual shift pointer register, and a +1 Adder 33a, address adder 34a, memory (RA
M) 37a.

尚、Yレジスタ31aはデータの記憶場所を表示する指
標を格納するものであり、 VPレジスタ32aは仮想のデータ存在位置を+1ずつ
増加して16ワードを循環するものであり、 +1加算器33aはYレジスタ31aと組み合わせYレ
ジスタ31aを+1ずつ更新するものであり、 アドレス加算器34aはYレジスタ31aの出力とVP
レジスタ32aの出力とを加算して実効アドレス■とし
て出力するものであり、メモリ(RAM)37 aはア
ドレス加算器34aからの実効アドレス■に基づきデー
タを書き込み/読み出しするものである。
Note that the Y register 31a stores an index indicating the storage location of data, the VP register 32a increases the virtual data location by +1 and cycles through 16 words, and the +1 adder 33a The combination of the Y register 31a and the Y register 31a is updated by +1, and the address adder 34a outputs the output of the Y register 31a and the VP.
The output of the register 32a is added to output the effective address (2), and the memory (RAM) 37a writes/reads data based on the effective address (2) from the address adder 34a.

例えば、伝送機器等に用いられるフィルターの計算を行
う時のタップ更新の際、データを順次シフトさせること
を行わずインデックスレジスタであるYレジスタ31a
を用いてアドレスを1ずつ増加させて計算を行うことが
ある。
For example, when updating taps when calculating filters used in transmission equipment, etc., the Y register 31a, which is an index register, does not shift data sequentially.
Calculations may be performed by incrementing the address by 1 using .

この時、順次アドレスを増やして行(と限定した容量を
有するメモリ(RAM)37 aの容量が足りな(なっ
て仕舞うため、4ビ・ントのバーチャルシフトポインタ
レジスタであるVPレジスタ32aを用いてその出力を
Yレジスタ31aの出力とアドレス加算器34aで加算
させて、実効アドレス■を演算するようにしている。
At this time, the address is sequentially increased and the row (and the capacity of the memory (RAM) 37a having a limited capacity is insufficient) is used, so the VP register 32a which is a 4-bit virtual shift pointer register is used. The output is added to the output of the Y register 31a by an address adder 34a to calculate an effective address (2).

これにより、Yレジスタ31aの値から16ワ一ド分(
4ビツト分)のところで、又Yレジスタ31aの最初の
アドレスに戻り、v&環してアドレッシングを行わせる
ことが出来ることになる。
As a result, 16 words (
4 bits), the address returns to the first address of the Y register 31a, and addressing can be performed using v&circle.

(発明が解決しようとする課題〕 上述のように、4ビツトのVPレジスタ32aを用いて
Yレジスタ31aの値から16ワ一ド分(4ビツト分)
のところで循環してアドレッシングを行わせる場合、1
6ワ一ド分以上のデータを保持することが出来なく、メ
モリ(RAM)4こ16ワ一ド分以上のデータを保持す
る容量があっても有効に使用出来ないと言う問題点があ
った。
(Problem to be Solved by the Invention) As described above, 16 words (4 bits) are calculated from the value of the Y register 31a using the 4-bit VP register 32a.
When performing circular addressing at 1
There was a problem that it could not hold more than 6 words of data, and even if the memory (RAM) had the capacity to hold more than 16 words of data, it could not be used effectively. .

本発明は、i環してアドレ・ンシングさせるメモリのワ
ード数を任意に設定出来るアドレッシング方式を有する
アドレス演算回路を提供することを目的とする。
SUMMARY OF THE INVENTION An object of the present invention is to provide an address arithmetic circuit having an addressing method that can arbitrarily set the number of words of a memory to be addressed in i-rings.

〔課題を解決するための手段〕[Means to solve the problem]

第1図は本発明のアドレス演算部の原理を説明する図を
示す。
FIG. 1 shows a diagram illustrating the principle of the address calculation section of the present invention.

第1図に示す本発明におけるアドレス演算部30は第1
のレジスタ31と、8ビツトの第2のレジスタ32と、
8ビツトの第3のレジスタ35と、比較器36と、第1
の加算器33と第2の加算器34とを具備し、 上述の第1のレジスタ31と第1の加算器33及び第2
の加算器34は第4図で説明したのと同様な動作を行う
ものであり、 上述の第2のレジスタ32は、8ビツトのレジスタであ
り、メモリのポインタを+1ずつ更新して循環させるも
のであり、 第3のレジスタ35は、8ビツトのレジスタであり、メ
モリアドレスの循環範囲を任意に設定・保持するもので
あり、 比較Li36は、第2のレジスタ32の出力値と第3の
レジスタ35の設定内容とを比較し、一致した場合第2
のレジスタ32をリセットする信号を出力するものであ
り、 かかる手段を具備してメモリの実効アドレスを演算する
ことにより、本課題を解決するための手段とする。
The address calculation section 30 in the present invention shown in FIG.
an 8-bit second register 32,
8-bit third register 35, comparator 36, and first
The first register 31, the first adder 33, and the second adder 34 are provided.
The adder 34 performs the same operation as explained in FIG. 4, and the second register 32 mentioned above is an 8-bit register that updates and circulates the memory pointer by +1. The third register 35 is an 8-bit register that arbitrarily sets and holds the circulation range of memory addresses, and the comparison Li 36 compares the output value of the second register 32 with the output value of the third register. 35 settings, and if they match, the second
The device outputs a signal for resetting the register 32 of the device, and is a means for solving this problem by having such means and calculating the effective address of the memory.

〔作 用〕[For production]

循環してアドレッシングさせる任意のワード数を第3の
レジスタ35に設定し、第2のレジにり32からの仮想
シフトポインタと設定値とを比較器36で比較し、一致
した時第2のレジスタ32をリセットして第3のレジス
タ35に設定した任意のワード数分循環させアドレッシ
ングさせることにより、データのワード数に限定される
ことが無くなる。
An arbitrary number of words for circular addressing is set in the third register 35, and the virtual shift pointer from the second register 32 is compared with the set value by the comparator 36, and when they match, the second register 35 is set. By resetting 32 and performing addressing by circulating an arbitrary number of words set in the third register 35, it is no longer limited to the number of words of data.

〔実施例〕〔Example〕

以下本発明の要旨を第2図に示す実施例により具体的に
説明する。
The gist of the present invention will be specifically explained below with reference to an embodiment shown in FIG.

第2図は本発明のアドレス演算部の実施例を説明する図
を示す。尚、全図を通じて同一符号は同一対象物を示す
FIG. 2 is a diagram illustrating an embodiment of the address calculation section of the present invention. Note that the same reference numerals indicate the same objects throughout the figures.

第2図に示す本発明のアドレス演算部30aは第1図に
示す第1のレジスタ31としてYレジスタ31a2第2
のレジスタ32としてVPレジスタ32a1第3のレジ
スタ35としてVPMレジスタ35a、第1の加算器3
3として+1加算器33a、第2の加算器34としてア
ドレス加算器34a、比較器36としてポインタ値比較
器36aとで構成し、更にメモリ (RAM)37 a
を備えて構成した例である。
The address arithmetic unit 30a of the present invention shown in FIG. 2 serves as the first register 31 shown in FIG.
VP register 32a1 as the register 32, VPM register 35a as the third register 35, first adder 3
3, a +1 adder 33a, a second adder 34, an address adder 34a, a comparator 36, a pointer value comparator 36a, and a memory (RAM) 37a.
This is an example configured with the following.

尚、本実施例のアドレス演算部30aも基本的な機能は
第4図で説明したのと同様な働きをするものであり、第
3図で説明したディジタル信号処理プロセッサ6の一構
成部分をなしている。
The basic function of the address calculation section 30a of this embodiment is the same as that explained in FIG. 4, and it is a component of the digital signal processing processor 6 explained in FIG. ing.

本実施例のVPレジスタ32aは、8ビツト(256ワ
ード)用バニチャルシフトポインタレジスタであり、V
PMレジスタ35aも同様に8ビット(256ワード)
用レジスタをなすバーチャルシフトポインタマックスで
アドレッシングする範囲を任意に設定することが出来る
The VP register 32a of this embodiment is an 8-bit (256 word) virtual shift pointer register, and
Similarly, the PM register 35a is 8 bits (256 words).
The addressing range can be arbitrarily set using the virtual shift pointer MAX, which forms the register.

本実施例ではVPレジスタ32aの値を+1加算器33
aにて+1ずつ更新■し、その時の■Pレジスタ32a
の値はVPMレジスタ35aの設定値とポインタ値比較
器36aで比較される。
In this embodiment, the value of the VP register 32a is increased by +1 to the adder 33.
Update by +1 at ■P register 32a at that time.
The value is compared with the set value of the VPM register 35a by a pointer value comparator 36a.

ポインタ値比較器36aの出力■が不一致を示すもので
あれば、VPレジスタ32aは+1ずつの更新■を継続
し、ポインタ値比較器36aの出力■が一致を示すもの
となるとVPレジスタ32aはリセットされ、新たに+
1ずつの更新ωを開始する動作を繰り返す。
If the output ■ of the pointer value comparator 36a indicates a mismatch, the VP register 32a continues updating ■ by +1, and when the output ■ of the pointer value comparator 36a indicates a match, the VP register 32a is reset. and newly +
The operation of starting update ω one by one is repeated.

一方、■Pレジスタ32aの+1ずつの更新■された出
力は、Yレジスタ31aの出力とアドレス加算器34a
で加算され、実効アドレス■として出力し、この実効ア
ドレス■にてメモリ(RAM)37aをアクセスするこ
とになる。
On the other hand, the updated output of the P register 32a by +1 is the output of the Y register 31a and the address adder 34a.
is added and output as an effective address (2), and the memory (RAM) 37a is accessed using this effective address (2).

以上のようにメモリ(RAM)37 aに対するアドレ
ッシングを行うことにより、メモリ(RAM)37aで
はデータのワード数に無関係にデータを保持することが
可能となる。
By addressing the memory (RAM) 37a as described above, the memory (RAM) 37a can hold data regardless of the number of words of the data.

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

以上のような本発明によれば、循環してアドレッシング
させるメモリのワード数を任意に設定出来るアドレッシ
ング方式を有するアドレス演算回路を提供することが出
来る。
According to the present invention as described above, it is possible to provide an address arithmetic circuit having an addressing method in which the number of words of a memory to be addressed in a circular manner can be arbitrarily set.

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

第1図は本発明のアドレス演算部の原理を説明する図、 第2図は本発明のアドレス演算部の実施例を説明する図
、 第3図はディジタル信号処理プロセッサの構成を説明す
る図、 第4図はアドレス演算部の従来例を説明する図、をそれ
ぞれ示す。 図において、 1はシーケンス制御部、  2はデコーダ部、3.30
.30aはアドレス演算部、 4は演算部、 5は人出力インタフェース部、 6はディジタル信号処理プロセッサ、 31は第1のレジスタ、  31aはYレジスタ、32
は第2のレジスタ、  32aはVPレジスタ、33は
第1の加算器、  33aは+1加算器、34は第2の
加算器、 34aはアドレス加算器、35は第3のレジスタ、35
aはVPMレジスタ、36は比較器、36aはポインタ
値比較器、 37aはメモリ(RA M )、 をそれぞれ示す。 本発明のアドレス演算部の原理を説明する図第1図
FIG. 1 is a diagram explaining the principle of the address calculation section of the present invention, FIG. 2 is a diagram explaining an embodiment of the address calculation section of the invention, and FIG. 3 is a diagram explaining the configuration of a digital signal processing processor. FIG. 4 is a diagram illustrating a conventional example of an address calculation section. In the figure, 1 is a sequence control section, 2 is a decoder section, 3.30
.. 30a is an address calculation unit, 4 is a calculation unit, 5 is a human output interface unit, 6 is a digital signal processing processor, 31 is a first register, 31a is a Y register, 32
is the second register, 32a is the VP register, 33 is the first adder, 33a is the +1 adder, 34 is the second adder, 34a is the address adder, 35 is the third register, 35
a is a VPM register, 36 is a comparator, 36a is a pointer value comparator, and 37a is a memory (RAM). FIG. 1 is a diagram illustrating the principle of the address calculation section of the present invention.

Claims (1)

【特許請求の範囲】 ディジタル信号処理プロセッサに内蔵するメモリの記憶
部分の指標を保持する第1のレジスタ(31)と、 第1の加算器(33)を介して出力側を入力側に帰還さ
せ、前記第1の加算器(33)にて+1ずつ前記メモリ
のアドレスポインタ値を更新する第2のレジスタ(32
)と、 前記第1のレジスタ(31)の出力と前記第2のレジス
タ(32)の出力とを加算し前記メモリの実効アドレス
として出力する第2の加算器(34)と、 前記第2のレジスタ(32)で循環してアドレスシフト
させる任意のワード数を設定する第3のレジスタ(35
)と、 前記第3のレジスタ(35)の設定値と前記第2のレジ
スタ(32)の出力とを比較する比較器(36)とを具
備し、 前記比較器(36)の出力が一致信号の場合は前記第2
のレジスタ(32)をリセットして、前記第3のレジス
タ(35)の設定する任意のワード数分循環させてアド
レッシングすることを特徴とするアドレス演算回路。
[Claims] The output side is fed back to the input side via a first register (31) that holds an index of a storage part of a memory built into the digital signal processor and a first adder (33). , a second register (32) that updates the address pointer value of the memory by +1 in the first adder (33);
), a second adder (34) that adds the output of the first register (31) and the output of the second register (32) and outputs the result as an effective address of the memory; A third register (35) sets the arbitrary number of words to be rotated and shifted in the register (32).
), and a comparator (36) that compares the set value of the third register (35) and the output of the second register (32), and the output of the comparator (36) is a match signal. In the case of
An address arithmetic circuit characterized in that addressing is performed by resetting a register (32) of the third register (32) and circulating an arbitrary number of words set in the third register (35).
JP6280589A 1989-03-15 1989-03-15 Address arithmetic circuit Pending JPH02242353A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6280589A JPH02242353A (en) 1989-03-15 1989-03-15 Address arithmetic circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6280589A JPH02242353A (en) 1989-03-15 1989-03-15 Address arithmetic circuit

Publications (1)

Publication Number Publication Date
JPH02242353A true JPH02242353A (en) 1990-09-26

Family

ID=13210918

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6280589A Pending JPH02242353A (en) 1989-03-15 1989-03-15 Address arithmetic circuit

Country Status (1)

Country Link
JP (1) JPH02242353A (en)

Similar Documents

Publication Publication Date Title
JP2001516916A (en) Data processing device with digital signal processing capability
US6647484B1 (en) Transpose address mode in general purpose DSP processor
US7409607B2 (en) Memory address generating apparatus, processor having the same, and memory address generating method
JPH0145649B2 (en)
JPH10124310A (en) Arithmetic processor and microprocessor
US4954947A (en) Instruction processor for processing branch instruction at high speed
EP0173040B1 (en) Vector processing system
KR100254915B1 (en) Two-bit booth multiplier with reduced data path width
US7392276B2 (en) Efficient multiplication sequence for large integer operands wider than the multiplier hardware
EP0594969A1 (en) Data processing system and method for calculating the sum of a base plus offset
JPH02242353A (en) Address arithmetic circuit
JP2002215606A (en) Data processor
JPH0528431B2 (en)
JP2592979B2 (en) Integrated circuit device for signal processing
US10817288B2 (en) Combined instruction for addition and checking of terminals
KR930003410B1 (en) Data processing apparatus having high-sped reference of stack data
JPS5957339A (en) Register control circuit
JP2674747B2 (en) Signal processor
JPH037971B2 (en)
JPS60169940A (en) Microprogram control device
JPH0721760B2 (en) Digital arithmetic circuit
JPS63181030A (en) Accelerating system for arithmetic calculation in specific data pattern
JP2001034603A (en) Product-sum operation processor
JPS5965378A (en) Register connecting processing system of vector processor
JPH02204828A (en) Arithmetic processing unit