JPH05250252A - Address generating circuit - Google Patents

Address generating circuit

Info

Publication number
JPH05250252A
JPH05250252A JP4921992A JP4921992A JPH05250252A JP H05250252 A JPH05250252 A JP H05250252A JP 4921992 A JP4921992 A JP 4921992A JP 4921992 A JP4921992 A JP 4921992A JP H05250252 A JPH05250252 A JP H05250252A
Authority
JP
Japan
Prior art keywords
address register
register
start address
value
pointer
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
JP4921992A
Other languages
Japanese (ja)
Inventor
Hideyuki Odawara
秀幸 小田原
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 JP4921992A priority Critical patent/JPH05250252A/en
Publication of JPH05250252A publication Critical patent/JPH05250252A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To provide the address generating circuit which can generate plural cyclic addresses and can select the address to be used from plural cyclic addresses. CONSTITUTION:This circuit is provided with a comparing circuit 8 which compares values of start address registers 1 to 4 with those of current address registers 5 to 7, an adding circuit 10 which increments values of current address registers 5 to 7, a multiplexer 11 which determines values obtained by incrementing values of current address registers or values of start address registers 1 to 4 as values to be stored in current address registers 5 to 7 in accordance with the value of the comparing circuit 8, a pointer 12 which designates one of plural start address registers 1 to 4, and a pointer register 14 which designates places of start address registers to be used to the pointer 12.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、巡回アドレッシングが
可能なアドレス発生回路において、巡回アドレスの指定
を1番目から最後までと固定する必要がなく、任意の箇
所から任意の箇所までと指定することのできるアドレス
発生回路に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention In the present invention, in an address generating circuit capable of cyclic addressing, it is not necessary to fix the specification of cyclic addresses from the first to the last, and it is possible to specify from any position to any position. The present invention relates to an address generating circuit that can be used.

【0002】[0002]

【従来の技術】従来のアドレス発生回路では、巡回アド
レスを使用する場合、スタートアドレス、エンドアドレ
スおよびカレントアドレスの3種類のアドレスを格納す
るレジスタを使用し、各アドレスをレジスタに書き込
み、メモリーにアクセスすることにより巡回アドレスを
実行していた。
2. Description of the Related Art In a conventional address generation circuit, when a cyclic address is used, a register for storing three kinds of addresses of a start address, an end address and a current address is used, each address is written in the register, and a memory is accessed. By executing the cyclic address.

【0003】[0003]

【発明が解決しようとする課題】しかしながら上記従来
の構成では、巡回アドレスは一通りしか設定できないた
め、2つ以上の巡回アドレスを使用する場合には、プロ
グラムなどを用いてポインタ以外のところで演算してア
ドレスを決定しなければならないという課題を有してい
た。
However, in the above-mentioned conventional configuration, since only one cyclic address can be set, when two or more cyclic addresses are used, a program or the like is used to perform calculations other than at the pointer. There was a problem that the address had to be determined by using the address.

【0004】本発明は上記従来の課題を解決するもので
あり、巡回アドレスを使用するアドレスが2つ以上存在
しても、プログラムなどを用いず、n個の巡回アドレッ
シグを行うことができるアドレス発生回路を実現するこ
とを目的とする。
The present invention solves the above-mentioned conventional problems. Even if there are two or more addresses that use a cyclic address, n addresses can be cyclically addressed without using a program or the like. The purpose is to realize a generator circuit.

【0005】[0005]

【課題を解決するための手段】上記従来の課題を解決す
るために本発明に係るアドレス発生回路は以下のような
構成を有している。すなわちn個のスタートアドレスレ
ジスタと、n−1個のカレントアドレスレジスタと、前
記n個のスタートアドレスレジスタのうちのどのスター
トアドレスレジスタを使用するかを指定するポインタ
と、前記ポインタに何番目から何番目までのスタートア
ドレスレジスタを使用するかを指定するポインタレジス
タと、前記ポインタで指定されたスタートアドレスレジ
スタとカレントアドレスレジスタとの値を比較する比較
回路と、前記カレントアドレスレジスタの値をインクリ
メントする加算回路と、前記比較回路の値によりカレン
トアドレスレジスタにインクリメントした値を格納する
かスタートアドレスを格納するかを決定するマルチプレ
クサを有する。
In order to solve the above conventional problems, the address generating circuit according to the present invention has the following configuration. That is, n start address registers, n-1 current address registers, a pointer designating which start address register of the n start address registers is to be used, and what number of the start address register A pointer register that specifies whether to use the start address registers up to the second, a comparison circuit that compares the values of the start address register specified by the pointer and the current address register, and an addition that increments the value of the current address register. And a multiplexer for determining whether to store the incremented value or the start address in the current address register according to the value of the comparison circuit.

【0006】[0006]

【作用】上記構成により、n個の巡回アドレスがアドレ
スレジスタにデータを設定するだけで実現でき、またポ
インタレジスタを有しているため、n個の巡回アドレス
のうち、任意の箇所から任意の箇所の巡回アドレッシン
グも実現できる。
With the above structure, n cyclic addresses can be realized only by setting data in the address register, and since it has a pointer register, from n cyclic addresses to arbitrary positions. The cyclic addressing of can be realized.

【0007】[0007]

【実施例】以下、本発明の一実施例について図面を参照
しながら説明する。図1は本発明の一実施例に係るアド
レス発生回路の構成を示すブロック図である。図1に示
すアドレス発生回路は一例として、3個の巡回アドレス
が実現できるアドレス発生回路を示している。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing the configuration of an address generating circuit according to an embodiment of the present invention. As an example, the address generating circuit shown in FIG. 1 is an address generating circuit that can realize three cyclic addresses.

【0008】図1において、1、2、3、4は各々第
1、第2、第3、第4のスタートアドレスレジスタであ
る。5、6、7は各々第1、第2、第3のカレントアド
レスレジスタである。8はスタートアドレスレジスタ1
〜4とカレントアドレスレジスタ5〜7との値を比較す
る比較回路である。9は前記比較回路8の出力である。
10はカレントアドレスをインクリメントする加算回路
である。11は前記比較回路8の値によりカレントアド
レスレジスタ5〜7にカレントアドレスレジスタの値を
インクリメントした値を格納するか、スタートアドレス
レジスタ1〜4の値を格納するかを決定するマルチプレ
クサである。12は前記第1、第2、第3、第4のスタ
ートアドレスレジスタ1〜4のうちのどのスタートアド
レスレジスタを使用するかを指定するポインタである。
このポインタ12は第1のスタートアドレスレジスタ1
と第1のカレントアドレスレジスタ5、第2のスタート
アドレスレジスタ2と第2のカレントアドレスレジスタ
6、第3のスタートアドレスレジスタ3と第3のカレン
トアドレスレジスタ7とをセットで指す。13はアドレ
ス出力線である。14は前記ポインタ12に何番目から
何番目までのスタートアドレスレジスタを使用するかを
指定するポインタレジスタである。
In FIG. 1, reference numerals 1, 2, 3, and 4 are first, second, third, and fourth start address registers, respectively. Reference numerals 5, 6, and 7 are first, second, and third current address registers, respectively. 8 is the start address register 1
4 is a comparison circuit for comparing the values of the current address registers 5 to 7. Reference numeral 9 is an output of the comparison circuit 8.
An adder circuit 10 increments the current address. Reference numeral 11 is a multiplexer for determining whether to store the value obtained by incrementing the value of the current address register or the value of the start address register 1 to 4 in the current address register 5 to 7 according to the value of the comparison circuit 8. Reference numeral 12 is a pointer for designating which of the first, second, third and fourth start address registers 1 to 4 is to be used.
This pointer 12 is the first start address register 1
And the first current address register 5, the second start address register 2 and the second current address register 6, and the third start address register 3 and the third current address register 7 as a set. Reference numeral 13 is an address output line. Reference numeral 14 is a pointer register for designating which start address register is used for the pointer 12.

【0009】以上のように構成された本実施例に係るア
ドレス発生回路について、以下その動作を説明する。こ
こでは、例えば第1のスタートアドレスレジスタ1には
「0」、第2のスタートアドレスレジスタ2には
「2」、第3のスタートアドレスレジスタ3には
「4」、第4のスタートアドレスレジスタ4には
「7」、第1のカレントアドレスレジスタ5には
「0」、第2のカレントアドレスレジスタ6には
「3」、第3のカレントアドレスレジスタ7には「4」
が入力しており、ポインタレジスタ14は「1」から
「3」までを使用するように設定されている場合につい
て動作を説明する。
The operation of the address generating circuit according to this embodiment having the above structure will be described below. Here, for example, the first start address register 1 is "0", the second start address register 2 is "2", the third start address register 3 is "4", and the fourth start address register 4 is Is "7", the first current address register 5 is "0", the second current address register 6 is "3", and the third current address register 7 is "4".
Is input and the pointer register 14 is set to use "1" to "3", the operation will be described.

【0010】アドレス発生のタイミングになると、ポイ
ンタ12は第1のアドレスレジスタを指しているため第
1のスタートアドレスレジスタ1と第2のスタートアド
レスレジスタ2との間で巡回アドレスを行うことにな
る。ここで第1のカレントアドレスレジスタ5の値
「0」がアドレスとしてアドレス出力線13に出力され
る。また比較回路8では第2のスタートアドレスレジス
タ2の値「2」と、第1のカレントアドレスレジスタ5
の値「0」を加算回路10でインクリメントした値
「1」が比較される。このときは加算回路10の出力の
方が小さいため、この値「1」が第1のカレントアドレ
スレジスタ5に代入される。
At the timing of address generation, since the pointer 12 points to the first address register, the cyclic address is performed between the first start address register 1 and the second start address register 2. Here, the value “0” of the first current address register 5 is output to the address output line 13 as an address. Further, in the comparison circuit 8, the value “2” of the second start address register 2 and the first current address register 5
The value "1" obtained by incrementing the value "0" in the adding circuit 10 is compared. At this time, since the output of the adder circuit 10 is smaller, this value “1” is substituted into the first current address register 5.

【0011】次にポインタ12は第2のアドレスレジス
タを指すため、第2のスタートアドレスレジスタ2と第
3のスタートアドレスレジスタ3との間の巡回アドレス
となり、第2のカレントアドレスレジスタ6の値「3」
がアドレス出力線13に出力される。比較回路8では第
3のスタートアドレスレジスタ3の値「4」と第2のカ
レントアドレスレジスタ6の値「3」をインクリメント
した加算回路10の出力「4」が比較される。このと
き、両者は等しいので、第2のスタートアドレスレジス
タ2の値「2」が第2のカレントアドレスレジスタ6に
代入される。
Next, since the pointer 12 points to the second address register, it becomes a cyclic address between the second start address register 2 and the third start address register 3, and the value of the second current address register 6 " 3 "
Is output to the address output line 13. The comparison circuit 8 compares the value “4” of the third start address register 3 with the output “4” of the adder circuit 10 obtained by incrementing the value “3” of the second current address register 6. At this time, since both are the same, the value "2" of the second start address register 2 is substituted into the second current address register 6.

【0012】次にポインタ12は第3のアドレスレジス
タを指し、第3のスタートアドレスレジスタ3と第4の
スタートアドレスレジスタ4との間で巡回アドレスとな
り、第3のカレントアドレスレジスタ7の値「4」がア
ドレス出力線13に出力される。比較回路8では、第4
のスタートアドレスレジスタ4の値「7」と第3のカレ
ントアドレスレジスタ7の値「4」をインクリメントし
た加算回路10の出力「5」が比較される。このとき
は、両者の値が等しくないので加算回路10の出力
「5」が第3のカレントアドレスレジスタ7に代入され
る。
Next, the pointer 12 points to the third address register, becomes a cyclic address between the third start address register 3 and the fourth start address register 4, and the value "4" of the third current address register 7 Is output to the address output line 13. In the comparison circuit 8, the fourth
The value "7" of the start address register 4 and the output "5" of the adder circuit 10 obtained by incrementing the value "4" of the third current address register 7 are compared. At this time, since the two values are not equal, the output "5" of the adder circuit 10 is substituted into the third current address register 7.

【0013】ここでポインタレジスタ14は1から3ま
でを使用するよう設定されているため、ポインタ12は
第1のスタートアドレスレジスタ1を指し、第1のカレ
ントアドレスレジスタ5の値「1」がアドレス出力線1
3に出力される。比較回路8では、第2のスタートアド
レスレジスタ2の値「2」と第1のカレントアドレスレ
ジスタ5の値「1」をインクリメントした加算回路10
の出力「2」が比較される。このときは両者の値が等し
いので、第1のスタートアドレスレジスタ1の値「0」
が第1のカレントアドレスレジスタ5に代入される。
Since the pointer register 14 is set to use 1 to 3, the pointer 12 points to the first start address register 1 and the value "1" of the first current address register 5 is the address. Output line 1
3 is output. The comparison circuit 8 increments the value “2” of the second start address register 2 and the value “1” of the first current address register 5 by the addition circuit 10
The outputs "2" of are compared. At this time, both values are equal, so the value of the first start address register 1 is "0".
Is substituted into the first current address register 5.

【0014】以上を繰り返していくと、第1のカレント
アドレスレジスタ5の値は「0」−「1」−「0」−
「1」を繰り返し、第2のカレントアドレスレジスタ6
の値は「3」−「2」−「3」−「2」となり、第3の
カレントアドレスレジスタ7の値は「4」−「5」−
「6」−「4」となり、アドレス出力線13の出力は
「0」−「3」−「4」−「1」−「2」−「5」−
「0」−「3」−「6」−「1」−「2」−「4」と出
力され、3つの巡回アドレスが順に生成される。本実施
例においては、以上のように複数の巡回アドレスが実現
できる。
By repeating the above, the value of the first current address register 5 is "0"-"1"-"0"-
Repeat “1” to repeat the second current address register 6
Is "3"-"2"-"3"-"2", and the value of the third current address register 7 is "4"-"5"-
It becomes "6"-"4", and the output of the address output line 13 is "0"-"3"-"4"-"1"-"2"-"5"-.
"0"-"3"-"6"-"1"-"2"-"4" is output, and three cyclic addresses are sequentially generated. In this embodiment, a plurality of cyclic addresses can be realized as described above.

【0015】次にポインタレジスタ14の値が「2」か
ら「3」までであるとして、その他の条件は前記の例と
同一であるとすると、第1のスタートアドレスレジスタ
1の値には関係なく、「3」−「4」−「2」−「5」
−「3」−「6」−「2」−「4」の順にアドレス出力
線13の値が変わる。このため複数の巡回アドレスを組
んでおいて必要となる部分のみを選択して使用すること
が可能となる。
Next, assuming that the value of the pointer register 14 is from "2" to "3" and the other conditions are the same as in the above example, regardless of the value of the first start address register 1. , "3"-"4"-"2"-"5"
The value of the address output line 13 changes in the order of- "3"-"6"-"2"-"4". For this reason, it becomes possible to select and use only a necessary portion by forming a plurality of cyclic addresses.

【0016】[0016]

【発明の効果】本発明によれば、複数のスタートアドレ
スレジスタとカレントアドレスレジスタとにより、複数
の巡回アドレスをプログラムなどのソフトウェアなしで
実現でき、また巡回アドレスの何番目から何番目までを
使用するかを指定するポインタレジスタを設けることに
より、複数の巡回アドレスのうち任意の巡回アドレスの
組を選択することができる。
According to the present invention, a plurality of cyclic addresses can be realized without software such as a program by using a plurality of start address registers and a current address register, and the number of cyclic addresses up to what number is used. By providing a pointer register that specifies whether or not, it is possible to select an arbitrary set of cyclic addresses from a plurality of cyclic addresses.

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

【図1】本発明の一実施例に係るアドレス発生回路の構
成を示すブロック図
FIG. 1 is a block diagram showing a configuration of an address generation circuit according to an embodiment of the present invention.

【符号の説明】[Explanation of symbols]

1 第1のスタートアドレスレジスタ 2 第2のスタートアドレスレジスタ 3 第3のスタートアドレスレジスタ 4 第4のスタートアドレスレジスタ 5 第1のカレントアドレスレジスタ 6 第2のカレントアドレスレジスタ 7 第3のカレントアドレスレジスタ 8 比較回路 9 出力 10 加算回路 11 マルチプレクサ 12 ポインタ 13 アドレス出力線 14 ポインタレジスタ 1 1st start address register 2 2nd start address register 3 3rd start address register 4 4th start address register 5 1st current address register 6 2nd current address register 7 3rd current address register 8 Comparison circuit 9 Output 10 Addition circuit 11 Multiplexer 12 Pointer 13 Address output line 14 Pointer register

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 n個のスタートアドレスレジスタと、n
−1個のカレントアドレスレジスタと、前記n個のスタ
ートアドレスレジスタのうちのどのスタートアドレスレ
ジスタを使用するかを指定するポインタと、前記ポイン
タ部に何番目から何番目までのスタートアドレスレジス
タを使用するかを指定するポインタレジスタと、前記ポ
インタで指定されたスタートアドレスレジスタとカレン
トアドレスレジスタとの値を比較する比較回路と、前記
カレントアドレスレジスタの値をインクリメントする加
算回路と、前記比較回路の値によりカレントアドレスレ
ジスタにインクリメントした値を格納するかスタートア
ドレス値を格納するかを決定するマルチプレクサを有す
ることを特徴とするアドレス発生回路。
1. n start address registers, n
-1 current address register, a pointer designating which start address register of the n start address registers is used, and the start address register of which number is used in the pointer portion. Depending on the value of the comparison circuit, a pointer register that specifies whether or not, a comparison circuit that compares the values of the start address register and the current address register specified by the pointer, an addition circuit that increments the value of the current address register, An address generation circuit having a multiplexer for determining whether to store an incremented value or a start address value in a current address register.
JP4921992A 1992-03-06 1992-03-06 Address generating circuit Pending JPH05250252A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4921992A JPH05250252A (en) 1992-03-06 1992-03-06 Address generating circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4921992A JPH05250252A (en) 1992-03-06 1992-03-06 Address generating circuit

Publications (1)

Publication Number Publication Date
JPH05250252A true JPH05250252A (en) 1993-09-28

Family

ID=12824838

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4921992A Pending JPH05250252A (en) 1992-03-06 1992-03-06 Address generating circuit

Country Status (1)

Country Link
JP (1) JPH05250252A (en)

Similar Documents

Publication Publication Date Title
JPH0357500B2 (en)
JPH053032B2 (en)
JPS60233741A (en) Digital pattern generator
JPH05250252A (en) Address generating circuit
JP3089646B2 (en) PWM output circuit
US7064987B2 (en) Memory address generator with scheduled write and read address generating capability
JPS6148174B2 (en)
JPH06124586A (en) Semiconductor memory device
JPH06215559A (en) Page memory access system
KR100198816B1 (en) Random cord generator
JPS6336017B2 (en)
JPH06348491A (en) Data processor for minimizing overhead at the time of execution of do loop
JP3381284B2 (en) Parameter writing device
JP2003044266A (en) Digital waveform data recording circuit and recording method for digital waveform data
KR0170288B1 (en) Memory access apparatus and method
KR100236530B1 (en) Address generating circuit of a digital signal processor
JPS62143139A (en) Microprogram controller
JPS63123129A (en) Memory device
JPH01265358A (en) Bit reversing circuit
JPH10283254A (en) Integrated circuit provided with memory management system
JPH07174828A (en) Device to generate data train with optional length
JPH05120192A (en) Ram control circuit
JPH05314003A (en) Cache memory device
KR940015834A (en) Circular address designation device
KR20010045944A (en) Internal memory addressing apparatus of central processing unit