JPH02226363A - Address generation circuit - Google Patents

Address generation circuit

Info

Publication number
JPH02226363A
JPH02226363A JP1046229A JP4622989A JPH02226363A JP H02226363 A JPH02226363 A JP H02226363A JP 1046229 A JP1046229 A JP 1046229A JP 4622989 A JP4622989 A JP 4622989A JP H02226363 A JPH02226363 A JP H02226363A
Authority
JP
Japan
Prior art keywords
output
signal
switch
address
adder
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.)
Granted
Application number
JP1046229A
Other languages
Japanese (ja)
Other versions
JP2642731B2 (en
Inventor
Nobuaki Yonekura
米倉 伸明
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.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Electric Industry 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 Oki Electric Industry Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP1046229A priority Critical patent/JP2642731B2/en
Publication of JPH02226363A publication Critical patent/JPH02226363A/en
Application granted granted Critical
Publication of JP2642731B2 publication Critical patent/JP2642731B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Complex Calculations (AREA)

Abstract

PURPOSE:To reduce circuit scale in an address generation circuit and to reduce the size of a chip when an integrated circuit is formed by providing an adder and subtracter in a cell by one bit of address and generating the read address and write address of a memory cell array from one pointer. CONSTITUTION:At the time of up-counting operation, the output of an adder 74 is inputted through a switch 76 to a flip-flop (FF) 73 and the output of the FF 73 is inputted to the adder 74. In this case, the output of the FF 73 and the output of a subtracter 75 are alternatively outputted by a switch 78. At the time of down-counting operation, the output of the subtracter 75 is inputted through the switch 76 to the FF 73 and the output of the FF 73 is inputted to the subtracter 75. At such a time, the output of the adder is supplied to switch 77 to a switch 78 and the output of the FF 73 and the output of the adder 74 are outputted by the switch 78. Thus, the read address and write address are alternatively outputted by one pointer and the circuit scale is reduced.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は、集積回路(IC,LSI、VLSI等)で構
成されるディジタル信号処理回路等において、RAM 
(ランダム・アクセス・メモリ)等の半導体メモリ内に
設けられるアドレス発生回路に関するものである。
DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention is directed to a digital signal processing circuit configured with an integrated circuit (IC, LSI, VLSI, etc.).
The present invention relates to an address generation circuit provided in a semiconductor memory such as a random access memory (random access memory).

(従来の技術) 一般に、ディジタル信号処理においては、積和演算を行
うことが多く、その回路例を第2図に示す。
(Prior Art) Generally, in digital signal processing, sum-of-products operations are often performed, and an example of such a circuit is shown in FIG.

第2図は、積和演算回路の機能ブロック図である。この
回路では、例えば一定のサンプル周期毎に入力されたデ
ータDiをN個のシフトレジスタ1−1〜1−Hに格納
し、サンプル周期毎に、各シフトレジスタ出力と係数α
1〜αNとを乗算器2−1〜2−Nで乗算し、その乗算
結果を加算器3で加算して演算結果データDOを出力す
る。
FIG. 2 is a functional block diagram of the product-sum calculation circuit. In this circuit, for example, input data Di is stored in N shift registers 1-1 to 1-H at every fixed sampling period, and each shift register output and coefficient α are stored at each sampling period.
1 to αN are multiplied by multipliers 2-1 to 2-N, and the multiplication results are added by adder 3 to output operation result data DO.

この種の積和演算回路をRAMで構成した場合の構成例
を第3図に示す。
FIG. 3 shows an example of a configuration in which this type of product-sum operation circuit is configured using a RAM.

第3図は、従来のRAMの概略構成図である。FIG. 3 is a schematic configuration diagram of a conventional RAM.

このRAMは、第2図のシフトレジスタ1−1〜1−N
の機能を有するデータ格納用メモリセルアレイ10と、
そのメモリセルアレイ10に対するアドレスを発生する
アドレス発生回路11とを備えている。アドレス発生回
路11は、読出しアドレスAρを発生する第1のポイン
タ12と、書込みアドレスAwを発生する第2のポイン
タ13と、アドレスAρまたはAwを選択するセレタク
14とで構成され、そのセレクタ14の出力がメモリセ
ルアレイ10に接続されている。このRAMには、乗算
および加算機能を有する演算回路20が接続されている
This RAM is the shift register 1-1 to 1-N in FIG.
a data storage memory cell array 10 having the functions of
The memory cell array 10 includes an address generation circuit 11 that generates an address for the memory cell array 10. The address generation circuit 11 is composed of a first pointer 12 that generates a read address Aρ, a second pointer 13 that generates a write address Aw, and a selector 14 that selects an address Aρ or Aw. An output is connected to the memory cell array 10. An arithmetic circuit 20 having multiplication and addition functions is connected to this RAM.

以上の構成において、積和演算を行うには、第1のポイ
ンタ12から出力される読出しデータAIをセレクタ1
4を通してメモリセルアレイ10に与え、そのメモリセ
ルアレイ10から、(N1)番目に格納されているデー
タDAを読出して演算回路20に入力する。さらに、こ
のデータDAを、第2のポインタ13から出力される書
込みデータAwを用いてメモリセルアレイ100N番目
のアドレスに書込む。このような操作において、第1の
ポインタ12からはN、N−1,N2、・・・、1の順
序で読出しアドレスA、l!が出力されると共に、第2
のポインタ13からはN+1゜N、N−1,N−2,・
・・、2の順序で書込みデータAwが出力される。この
アドレス発生を高速、かつ容易な制御で行うため、従来
のアドレス発生回路11では、独立した2つのポインタ
12.13を備えている。
In the above configuration, in order to perform the product-sum operation, the read data AI output from the first pointer 12 is sent to the selector 1.
4 to the memory cell array 10, and the (N1)th stored data DA is read from the memory cell array 10 and inputted to the arithmetic circuit 20. Further, this data DA is written to the 100Nth address of the memory cell array using the write data Aw output from the second pointer 13. In such an operation, the read addresses A, l! are read from the first pointer 12 in the order of N, N-1, N2, . . . , 1! is output, and the second
From the pointer 13, N+1°N, N-1, N-2, .
. . , write data Aw is output in the order of 2. In order to generate this address at high speed and with easy control, the conventional address generation circuit 11 is provided with two independent pointers 12 and 13.

第4図は、第3図中のポインタの構成例を示す図である
FIG. 4 is a diagram showing an example of the configuration of the pointer in FIG. 3.

このポインタは、アップダウンカウンタで構成されてお
り、プログラムROM等で動作する制御回路30を備え
、その制御回路30から出力されるクロック信号CK、
ロード信号LD、及びアップ/ダウン切換信号U/D等
により、Kビットのセル31−1〜31−Kが制御され
る。セル31−1〜31−KにはプリセットデータPD
I〜PDKがそれぞれ入力され、そのセル31−1〜3
1−KからアドレスQAI〜QAKがそれぞれ出力され
る。
This pointer is composed of an up/down counter and includes a control circuit 30 that operates on a program ROM or the like, and a clock signal CK output from the control circuit 30,
The K-bit cells 31-1 to 31-K are controlled by the load signal LD, up/down switching signal U/D, and the like. Preset data PD is stored in cells 31-1 to 31-K.
I to PDK are respectively input, and the cells 31-1 to 31-3
Addresses QAI to QAK are output from 1-K, respectively.

第5図は第4図中の1ビット分のセルの構成例を示す回
路図である。
FIG. 5 is a circuit diagram showing an example of the configuration of a cell for one bit in FIG. 4.

このセルは、ロード信号LDにより切換えられるスイッ
チ40、アップ/ダウン切換信号U/Dにより切換えら
れるスイッチ41,42、信号反転用のインバータ43
,44、前段のキャリー信号(桁上げ信号)CIとスイ
ッチ42からの出力とを加算して和信号及び次段へのキ
ャリー信号COを出力する加算器45、及びフリップフ
ロラフ責以下、FFという)46で構成されている。
This cell includes a switch 40 that is switched by a load signal LD, switches 41 and 42 that are switched by an up/down switching signal U/D, and an inverter 43 for signal inversion.
, 44, an adder 45 that adds the carry signal (carry signal) CI of the previous stage and the output from the switch 42 and outputs a sum signal and a carry signal CO to the next stage, and a flip-flop function, hereinafter referred to as FF. ) 46.

このセルにおいて、アップカウント動作の場合は、アッ
プ/ダウン切換信号U/Dを例えば高レベル(以下、I
I HIIという)にすることにより、スイッチ40,
41.42が実線で示すように切換えられる。すると、
FF46の出力端子Qから出力されるアドレスQAは、
外部に出力されると共に、スイッチ42、加算器45及
びスイッチ41を経由してFF46の入力端子りへ帰還
される。従って、クロック信号CKの入力に従ってアド
レス(QA+1)がFF46の入力端子りへ入力される
ため、アップカウント動作が続けられる。
In this cell, in the case of up-count operation, the up/down switching signal U/D is set to a high level (hereinafter referred to as I
I HII), the switch 40,
41 and 42 are switched as shown by the solid line. Then,
The address QA output from the output terminal Q of FF46 is
The signal is output to the outside, and is also fed back to the input terminal of the FF 46 via the switch 42, adder 45, and switch 41. Therefore, the address (QA+1) is input to the input terminal of the FF 46 in accordance with the input of the clock signal CK, so that the up-count operation continues.

ダウンカウント動作の場合は、カップ/ダウン切換信号
U/Dを低レベル(以下、LI+という)にすることに
より、スイッチ41.42が破線で示すように切換えら
れる。すると、FF46の出力端子Qから出力されるア
ドレスQAは、インバータ44、スイッチ42、加算器
45、インバータ43及びスイッチ40を通してFF4
6の入力端子りへ帰還される。従って、クロック信号C
Kの入力に従ってアドレス(QA−1)がFF46の入
力端子りへ入力されるため、ダウンカウント動作が続け
られる。
In the case of down-count operation, by setting the cup/down switching signal U/D to a low level (hereinafter referred to as LI+), the switches 41 and 42 are switched as shown by broken lines. Then, the address QA output from the output terminal Q of the FF 46 is transmitted to the FF 4 through the inverter 44, the switch 42, the adder 45, the inverter 43, and the switch 40.
It is fed back to the input terminal of 6. Therefore, clock signal C
Since the address (QA-1) is input to the input terminal of the FF 46 in accordance with the input of K, the down-count operation continues.

(発明が解決しようとする課題〉 しかしながら、上記のアドレス発生口#111では、第
1および第2のポインタ12.13と、これら2つのポ
インタ12.13の出力を選択するセレタク14とを必
要するため、このアドレス発生回路11及びメモリセル
アレイ10等を用いてディジタル信号処理回路等を構成
すると、回路規模が大きくなって集積回路化に適さない
という問題があった。
(Problems to be Solved by the Invention) However, the above address generation port #111 requires first and second pointers 12.13 and a selector 14 that selects the outputs of these two pointers 12.13. Therefore, if a digital signal processing circuit or the like is constructed using the address generation circuit 11, memory cell array 10, etc., there is a problem that the circuit scale becomes large and is not suitable for integrated circuit implementation.

本発明は前記従来技術が持っていた課題として、回路規
模の大型化と、それによる集積回路化の不適合性の点に
ついて解決したアドレス発生回路を提供するものである
The present invention provides an address generation circuit that solves the problems of the prior art, such as the increase in circuit scale and the resulting incompatibility with integrated circuits.

(課題を解決するための手段) 本発明は前記課題を解決するために、複数のビットのア
ップダウンカウンタで構成されるアドレス格納用のポイ
ンタを備え、メモリセルアレイに対する読出しアドレス
及び書込みアドレスを発生するアドレス発生回路におい
て、前記アップダウンカウンタのアドレス1ビット分の
セルを少なくとも、クロック信号に同期して入力を取込
むFFと、前記FFの出力と第1の入力信号を加算して
和信号とキャリー信号を発生する加算器と、前記FFの
出力と第2の入力信号を減算して差信号とボロー信号を
発生する減算器と、前記和信号と前記差信号とを選択し
て前記FFの入力とする第1のスイッチと、前記和信号
と前記差信号とを前記第1のスイッチの逆相で選択する
第2のスイッチと、前記第2のスイッチの出力と前記F
Fの出力とを選択して出力信号とする第3のスイッチと
で、構成したものである。
(Means for Solving the Problems) In order to solve the above problems, the present invention includes an address storage pointer composed of a plurality of bits of up/down counters, and generates read addresses and write addresses for a memory cell array. In the address generation circuit, at least a FF receives input of cells corresponding to 1 bit of the address of the up/down counter in synchronization with a clock signal, and a sum signal and a carry by adding the output of the FF and a first input signal. an adder that generates a signal, a subtracter that subtracts the output of the FF and a second input signal to generate a difference signal and a borrow signal, and selects the sum signal and the difference signal and inputs the FF. a first switch that selects the sum signal and the difference signal in a phase opposite to that of the first switch; and an output of the second switch and the F
The third switch selects the output of F and outputs the signal as an output signal.

(作用) 本発明によれば、以上のようにアドレス発生回路を構成
したので、アップカウント動作の時は、加算器の出力が
第1のスイッチを介してFFへ入力され、そのFFの出
力が加算器へ入力される。
(Function) According to the present invention, since the address generation circuit is configured as described above, during up-count operation, the output of the adder is input to the FF via the first switch, and the output of the FF is Input to adder.

この際、減算器の出力は第2のスイッチを介して第3の
スイッチへ供給され、その第3のスイッチによってFF
の出力と減算器の出力とが交互に出力される。ダウンカ
ウント動作の時は、減算器の出力が第1のスイッチを介
してFFに入力され、そのFFの出力が減算器へ入力さ
れる。この時、加算器の出力は第2のスイッチを介して
第3のスイッチ側へ供給され、その第3のスイッチによ
ってFFの出力と加算器の出力とが出力される。これに
より、1つのポインタにより、読出しアドレスと書込み
アドレスが交互に出力される。従って、前記課題を解決
できるのである。
At this time, the output of the subtracter is supplied to the third switch via the second switch, and the third switch supplies the FF
The output of the subtracter and the output of the subtracter are output alternately. During a down-count operation, the output of the subtracter is input to the FF via the first switch, and the output of the FF is input to the subtracter. At this time, the output of the adder is supplied to the third switch via the second switch, and the third switch outputs the output of the FF and the output of the adder. As a result, one pointer outputs a read address and a write address alternately. Therefore, the above problem can be solved.

(実施例) 第1図(a>、(b)は本発明の実施例を示すアドレス
発生回路の構成図であり、同図(a)は全体構成図、及
び同図(b)は同図(a)中の1ビット分のセルの回路
図である。
(Embodiment) FIGS. 1(a) and 1(b) are configuration diagrams of an address generation circuit showing an embodiment of the present invention, in which FIG. 1(a) is an overall configuration diagram, and FIG. FIG. 4 is a circuit diagram of a cell for one bit in FIG.

第1図(a)に示すように、このアドレス発生回路50
は、データ格納用のメモリセルアレイ10に対する読出
しアドレスAρ及び書込みアドレスAwを発生する1つ
のにビットのポインタ51で構成されている。このにビ
ットのポインタ51は、アップダウンカウンタで構成さ
れており、プログムROM等で動作する制御回路52を
備え、その制御回路52がら出力されるクロック信号C
K、ロード信号LD、リードアドレス/ライトアドレス
切換信号R/W、及びアップダウン切換信号U/Dによ
り、Kビットのセル53−1〜53Kが制御される。セ
ル53−1〜53−Kにはプリセットデ゛−夕PDI〜
PDKがそれそ°れ入力サレ、そのセル53−1〜53
−KからアドレスQAI〜QAK、つまり読出しアドレ
スA、llまなは書込みアドレスAwが出力される。
As shown in FIG. 1(a), this address generation circuit 50
consists of a one-bit pointer 51 that generates a read address Aρ and a write address Aw for the memory cell array 10 for storing data. This bit pointer 51 is composed of an up/down counter, and is equipped with a control circuit 52 that operates on a program ROM or the like, and a clock signal C output from the control circuit 52.
K-bit cells 53-1 to 53K are controlled by K, load signal LD, read address/write address switching signal R/W, and up/down switching signal U/D. Cells 53-1 to 53-K contain preset data PDI.
The PDK inputs that cell 53-1 to 53.
-K outputs addresses QAI to QAK, that is, read address A, llman or write address Aw.

各セル53−1〜53−K(=53>は、第1図(b)
に示すように、プリセットデータPD入力用の端子60
、クロック信号CK入力用の端子、前段からのキャリー
信号(桁上げ信号)CIPを入力する端子62、前段か
らのボロー信号(桁下げ信号)CINを入力する端子6
3、アドレスQA出力用の端子64、次段へのボロー信
号CONを出力する端子65、次段へのキャリー信号c
OPを出力する端子66、ロード信号LD入力用の端子
67、リード/ライト切換信号R/W入力用の端子68
、及びアップ/ダウン切換信号U/D用の入力端子69
を有している。各端子67.68.69には、信号LD
、R/W、U/Dの逆相信号LD、R/W、U/Dをそ
れぞれ生成するインバータ70,71.72が接続され
ている。
Each cell 53-1 to 53-K (=53> is shown in FIG. 1(b)
As shown in the figure, a terminal 60 for inputting preset data PD
, a terminal for inputting the clock signal CK, a terminal 62 for inputting the carry signal (carry signal) CIP from the previous stage, a terminal 6 for inputting the borrow signal (carry down signal) CIN from the previous stage
3. Terminal 64 for outputting address QA, terminal 65 for outputting borrow signal CON to the next stage, carry signal c to the next stage
Terminal 66 for outputting OP, terminal 67 for inputting load signal LD, terminal 68 for inputting read/write switching signal R/W
, and input terminal 69 for up/down switching signal U/D.
have. Each terminal 67, 68, 69 has a signal LD
, R/W, and U/D, respectively, are connected to inverters 70, 71, and 72 that generate reverse phase signals LD, R/W, and U/D.

このセル53は、クロック端子Cに入力されるクロック
信号CKの立上がり時に入力端子り上の信号を取込んで
それを出力端子Qから出力するFF73と、キャリ一端
子CI上のキャリー信号CIPと入力端子A上の信号と
を加算して和信号及びキャリー信号を出力端子S、CO
から出力する加算器74と、ボロ一端子CI上のボロー
信号CINと入力端子A上の信号とを加算して差信号及
びボロー信号を出力端子S、COから出力する減算器7
5とを備えている。FF73の入力端子りは、スイッチ
76を介して端子60に接続されると共に、スイッチ7
6.77を介して加算器74及び減算器75の各出力端
子S、Sにそれぞれ接続されている。その加算器74及
び減算器75の各出力端子S、Sは、スイッチ78.7
9を介して端子64に接続され、その端子64が、スイ
ッチ79を介してFF73の出力端子Qに接続されると
共に加算器74及び減算器75の各入力端子A、Aにそ
れぞれ接続されている。加算器74及び減算器75の各
出力端子C○、COは、端子66.65にそれぞれ接続
されている。
This cell 53 has an FF 73 that takes in the signal on the input terminal at the rising edge of the clock signal CK input to the clock terminal C and outputs it from the output terminal Q, and a carry signal CIP on the carry terminal CI. Add the signal on terminal A and output the sum signal and carry signal to terminals S and CO.
and a subtracter 7 that adds the borrow signal CIN on the borrow terminal CI and the signal on the input terminal A and outputs a difference signal and a borrow signal from the output terminals S and CO.
5. The input terminal of the FF 73 is connected to the terminal 60 via the switch 76, and also connected to the terminal 60 via the switch 76.
6.77 to the respective output terminals S and S of the adder 74 and the subtracter 75, respectively. Each output terminal S, S of the adder 74 and subtracter 75 is connected to a switch 78.7.
9 to a terminal 64, and the terminal 64 is connected to the output terminal Q of the FF 73 via a switch 79, and to the input terminals A and A of an adder 74 and a subtracter 75, respectively. . The output terminals C○ and CO of the adder 74 and the subtracter 75 are connected to terminals 66 and 65, respectively.

スイッチ76.77.78.79は、信号切換え機能を
有し、例えばNチャネル型の電界効果トランジスタ(以
下、FETという)76a、77a、78b、79aと
Pチャネル型のFET76b、77b、78b、79b
とで、それぞれ構成されている。
The switches 76, 77, 78, and 79 have a signal switching function, and are, for example, N-channel field effect transistors (hereinafter referred to as FETs) 76a, 77a, 78b, 79a and P-channel FETs 76b, 77b, 78b, 79b.
They are each composed of

以上のような構成において、先ず第1図(b)の動作を
説明する。
In the above configuration, the operation shown in FIG. 1(b) will be explained first.

セル53を初期設定する場合、ロード信号LDを例えば
II HIIにする。すると、スイッチ76中のFET
76aがオンし、端子60上のプリセットデータPDが
FF7Bの入力端子りに入力される。ここで、FF73
のクロック端子Cにクロッり信号CKを入力すると、F
F73はクロック信号CKの立上がり時にプリセラI・
データPDを取込み、それを出力端子Qから出力する。
When initializing the cell 53, the load signal LD is set to, for example, II HII. Then, the FET in switch 76
76a is turned on, and the preset data PD on the terminal 60 is input to the input terminal of FF7B. Here, FF73
When the clock signal CK is input to the clock terminal C of the F
F73 activates the precertifier I at the rising edge of the clock signal CK.
It takes in data PD and outputs it from output terminal Q.

アップカウント動作の場合、ロード信号LDをII L
 IIにすると共に、アップ/ダウン切換信号U/Dを
例えば“Hllにする。すると、スイッチ76中のFE
T76aがオフすると共にFET76bがオンし、さら
にスイッチ77中のFET77aがオンすると共にFE
T77bがオフする。加算器74は、FF73の出力端
子Qからの出力と、下位ビットのセルからのキャリー信
号CIPとを加算し、和信号とキャリー信号を出力端子
S、COから出力する。和信号はFET77a、76b
を経由してFF73の入力端子りへ入力される。
In the case of up-count operation, the load signal LD is
II, and set the up/down switching signal U/D to, for example, "Hll. Then, the FE in the switch 76
When T76a turns off, FET76b turns on, and when FET77a in switch 77 turns on, FE
T77b turns off. The adder 74 adds the output from the output terminal Q of the FF 73 and the carry signal CIP from the lower bit cell, and outputs the sum signal and the carry signal from the output terminals S and CO. The sum signal is FET77a, 76b
It is input to the input terminal of FF73 via.

この状態でFF73のクロック端子Cヘクロツク信号C
Kを入力すると、FF73はクロック信号CKの立上が
り時に和信号を取込み、それを出力端子Qから出力する
。以下、順次クロック信号CKが入力される毎に、下位
ビットセルからのキャリー信号CIPとFF7Bの出力
とによってアラプカウント動作が続けられる。
In this state, the clock signal C to the clock terminal C of FF73
When K is input, the FF 73 takes in the sum signal at the rising edge of the clock signal CK and outputs it from the output terminal Q. Thereafter, every time the clock signal CK is inputted sequentially, the alarm count operation is continued using the carry signal CIP from the lower bit cell and the output of FF7B.

ダウンカウント動作の場合、アップ/ダウン切換信号U
/Dが11 L IIになり、スイッチ77.78中の
FET77b、78bがオンすると共に、FF77a、
78bがオフする。減算器75は、FF73の出力と、
下位ビットセルからのボロー信号CINとの差を求め、
差信号と上位ビットセルへのボロー信号とを出力端子S
、COから出力する。差信号は、FET77b、76b
を経由してFF73の入力端子りに入力される。この状
態で下F73ヘクロック信号CKを入力すると、FF7
3は差信号を取込み、それを出力端子Qから出力する。
In case of down count operation, up/down switching signal U
/D becomes 11 L II, FETs 77b and 78b in switches 77 and 78 are turned on, and FFs 77a and 78b are turned on.
78b turns off. The subtracter 75 outputs the output of the FF 73 and
Find the difference from the borrow signal CIN from the lower bit cell,
The difference signal and the borrow signal to the upper bit cell are output to the terminal S.
, output from CO. The difference signal is FET77b, 76b
It is input to the input terminal of FF73 via. In this state, when clock signal CK is input to lower F73, FF7
3 takes in the difference signal and outputs it from the output terminal Q.

以下、順次クロック信号CKが入力される毎に、下位ビ
ットセルからのボロー信号CINとFF73の出力とに
よってダウンカウント動作が続けられる。
Thereafter, each time the clock signal CK is inputted sequentially, the down-count operation is continued by the borrow signal CIN from the lower bit cell and the output of the FF 73.

次に、第1図(a)のアドレス発生回路50における全
体の動作を、第6図を参照しつつ説明する。なお、第6
図は第1図のタイミングチャートである。
Next, the overall operation of the address generation circuit 50 of FIG. 1(a) will be explained with reference to FIG. 6. In addition, the 6th
The figure is a timing chart of FIG. 1.

第1図(a)において、Kビットのセル531〜53−
Kにロードされたプリセラ1〜データPD1〜PDNを
例えばNとし、さらに説明の簡略化のために、各段のセ
ル53−1〜53−に内における各FF73の出力、各
加算器74の出力、及び各減算器75の出力もそれぞれ
Nで表わすものとする。
In FIG. 1(a), K-bit cells 531 to 53-
Preseller 1 to data PD1 to PDN loaded into K are, for example, N, and for the sake of simplicity, the outputs of each FF 73 and the output of each adder 74 in cells 53-1 to 53- of each stage are , and the output of each subtractor 75 are also represented by N.

先ず、アドレス発生回路50を構成するポインタ51か
ら、読出しアドレスAρと書込みアドレスAwを出力す
る場合のセル動作を説明する。
First, a cell operation when a read address Aρ and a write address Aw are outputted from the pointer 51 constituting the address generation circuit 50 will be described.

各セル53−1〜53−に内のFF7Bの出力端子Qか
らは、Nが出力されているものとすると、加算器74か
らは(N+1>、減算器75からは(N−1>がそれぞ
れ出力される。
Assuming that N is output from the output terminal Q of FF7B in each cell 53-1 to 53-, the adder 74 outputs (N+1>, and the subtracter 75 outputs (N-1>). Output.

ポインタ51をダウンカウンとして使用する場合には、
ロード信号LDがII L II、アップ/ダウン切換
信号U/DがパL′”となり、FET76a  77a
、78aがオフ状態、FET76b。
When using pointer 51 as a down counter,
The load signal LD becomes II L II, the up/down switching signal U/D becomes PA L''', and FET76a 77a
, 78a are off, FET 76b.

77b、78bがオン状態となる。各加算器74の出力
和信号は、FET78bを介して出力選択用スイッチ7
つ中のFET79b側へ入力される。このスイッチ79
中のFET79a、79bを、リード/ライト切換信号
R/Wによってクロック信号CKの中間点で切換えると
、端子64からはクロック信号CKの前半で読出しアド
レスAg用のFF7Bの出力、後半で書込みアドレスA
g用の加算器74の出力が得られる。即ち、最初にN番
地から読出し、(N+ 1 >番地へ書込み、次に(N
−1>番地から読出し、N番地へ書込み、以下順次、読
出しアドレスA、llと書込みアドレスAwが交互に得
られる。従って、例えば第2図のような積和演算等にお
いて、メモリセルアレイ10をシフトレジスタ1−1〜
1−Nとして使用する場合のアドレスの発生が容易に行
える。
77b and 78b are turned on. The output sum signal of each adder 74 is sent to the output selection switch 7 via a FET 78b.
The signal is input to the middle FET 79b side. This switch 79
When FETs 79a and 79b inside are switched at the midpoint of the clock signal CK by the read/write switching signal R/W, the terminal 64 outputs the output of FF7B for the read address Ag in the first half of the clock signal CK, and the write address A in the second half.
The output of the adder 74 for g is obtained. That is, first read from address N, write to address (N+ 1 >
-1>, read from address N, write to address N, and thereafter read addresses A, 11 and write address Aw are obtained alternately. Therefore, for example, in a product-sum operation as shown in FIG. 2, the memory cell array 10 is
Addresses can be easily generated when used as 1-N.

以上はポインタ51をダウンカウンタとして動作させた
時の説明であるが、アップカウンタとして動作させた時
は、減算器75の出力がFET78b、79bを介して
端子64へ出力され、ダウンカウンタとほぼ同様の動作
となる。
The above is an explanation when the pointer 51 is operated as a down counter, but when it is operated as an up counter, the output of the subtracter 75 is outputted to the terminal 64 via FETs 78b and 79b, which is almost the same as a down counter. The operation is as follows.

本実施例では、次のような利点を有しでいる。This embodiment has the following advantages.

アドレス発生用のポインタ51に加算器74及び減算器
75を設けたので、そのポインタ51から、メモリセル
アレイ10に対する読出しアドレスA、llと書込みア
ドレスAwを交互に出力できる。
Since the address generation pointer 51 is provided with an adder 74 and a subtracter 75, the read addresses A, 11 and the write address Aw for the memory cell array 10 can be alternately output from the pointer 51.

そのため、従来2つのポインタ12.13を必要として
いたところを、1つのポインタ51でアドレス発生回路
50を構成できるので、大幅な回路の削除が可能となり
、集積回路化を行った場合にはチップサイズを縮小でき
る。
Therefore, instead of conventionally requiring two pointers 12 and 13, the address generation circuit 50 can be configured with one pointer 51, making it possible to eliminate a large amount of circuitry, and reducing the chip size when integrated circuits are implemented. can be reduced.

なお、本発明は図示の実施例に限定されず、例えば第1
図のスイッチ76〜7つをアナログスイッチ等の他のス
イッチグトランジスタ等で構成したり、本発明を他のデ
ィジタル信号処理回路等のアドレス発生用に使用する等
、種々の変形が可能である。
Note that the present invention is not limited to the illustrated embodiment; for example, the first embodiment
Various modifications are possible, such as configuring the switches 76 to 7 in the figure with other switching transistors such as analog switches, or using the present invention for address generation in other digital signal processing circuits.

(発明の効果) 以上詳細に説明したように、本発明によれば、アドレス
1ビット分のセル内に、加算器及び減算器を設けなので
、1つのポインタから、メモリセルアレイの読出しアド
レスと書込みアドレスを発生させることができ、それに
よってアドレス発生回路における回路規模を小さくでき
、集積回路化の際のチップサイズの縮小化が期待できる
(Effects of the Invention) As explained in detail above, according to the present invention, since an adder and a subtracter are provided in a cell for one address bit, a read address and a write address of a memory cell array can be accessed from one pointer. can be generated, thereby reducing the circuit scale of the address generation circuit, and can be expected to reduce the chip size when integrated circuits are integrated.

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

第1図(a)、(b)は本発明の実施例を示すアドレス
発生回路の構成図、第2図は一般的な積和演算回路の構
成図、第3図は従来のRAMの構成図、第4図は第3図
中のポインタの構成図、第5図は第4図の中のセルの構
成図、第6図は第1図のタイミングチャートである。 10・・・・・・メモリセルアレイ、50・・・・・・
アドレス発生回路、51・・・・・・ポインタ、52・
・・・・・制御回路、53−1〜53−K・・・・・・
セル、73・・・・・・FF、74・・・・・・加算器
、75・・・・・・減算器、76〜79・・・・・・ス
イッチ、A、fl・・・・・・書込みアドレス、Aw・
・・・・・読出しアドレス、CK・・・・・・クロック
信号、CIP。 COP・・・・・・キャリー信号、CIN、CON・・
・・・・ボロー信号、R/W・・・・・・リード/ライ
ト切換信号、QA・・・・・・アドレス、U/D・・・
・・・アップ/ダウン切換信号。
FIGS. 1(a) and (b) are block diagrams of an address generation circuit showing an embodiment of the present invention, FIG. 2 is a block diagram of a general product-sum operation circuit, and FIG. 3 is a block diagram of a conventional RAM. , FIG. 4 is a block diagram of the pointer in FIG. 3, FIG. 5 is a block diagram of the cell in FIG. 4, and FIG. 6 is a timing chart of FIG. 10... Memory cell array, 50...
Address generation circuit, 51... Pointer, 52.
...Control circuit, 53-1 to 53-K...
Cell, 73...FF, 74...Adder, 75...Subtractor, 76-79...Switch, A, fl...・Write address, Aw・
...Read address, CK...Clock signal, CIP. COP... Carry signal, CIN, CON...
...borrow signal, R/W...read/write switching signal, QA...address, U/D...
...Up/down switching signal.

Claims (1)

【特許請求の範囲】 複数ビットのアップダウンカウンタで構成されるアドレ
ス格納用のポインタを備え、メモリセルアレイに対する
読出しアドレス及び書込みアドレスを発生するアドレス
発生回路において、 前記アップダウンカウンタのアドレス1ビット分のセル
は、 クロック信号に同期して入力を取込むフリップフロップ
と、 前記フリップフロップの出力と第1の入力信号を加算し
て和信号とキャリー信号を発生する加算器と、 前記フリップフロップの出力と第2の入力信号を減算し
て差信号とボロー信号を発生する減算器と、 前記和信号と前記差信号とを選択して前記フリップフロ
ップの入力とする第1のスイッチと、前記和信号と前記
差信号とを前記第1のスイッチの逆相で選択する第2の
スイッチと、 前記第2のスイッチの出力と前記フリップフロップの出
力とを選択して出力信号とする第3のスイッチとを、 備えたことを特徴とするアドレス発生回路。
[Scope of Claims] In an address generation circuit that includes an address storage pointer constituted by a multi-bit up/down counter and generates a read address and a write address for a memory cell array, The cell includes: a flip-flop that receives input in synchronization with a clock signal; an adder that adds the output of the flip-flop and a first input signal to generate a sum signal and a carry signal; and an output of the flip-flop. a subtracter that subtracts a second input signal to generate a difference signal and a borrow signal; a first switch that selects the sum signal and the difference signal to input the flip-flop; a second switch that selects the difference signal with a phase opposite to that of the first switch; and a third switch that selects the output of the second switch and the output of the flip-flop as an output signal. , an address generation circuit characterized by comprising:
JP1046229A 1989-02-27 1989-02-27 Address generation circuit Expired - Fee Related JP2642731B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1046229A JP2642731B2 (en) 1989-02-27 1989-02-27 Address generation circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1046229A JP2642731B2 (en) 1989-02-27 1989-02-27 Address generation circuit

Publications (2)

Publication Number Publication Date
JPH02226363A true JPH02226363A (en) 1990-09-07
JP2642731B2 JP2642731B2 (en) 1997-08-20

Family

ID=12741286

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1046229A Expired - Fee Related JP2642731B2 (en) 1989-02-27 1989-02-27 Address generation circuit

Country Status (1)

Country Link
JP (1) JP2642731B2 (en)

Also Published As

Publication number Publication date
JP2642731B2 (en) 1997-08-20

Similar Documents

Publication Publication Date Title
US5333119A (en) Digital signal processor with delayed-evaluation array multipliers and low-power memory addressing
US6202074B1 (en) Multiplierless digital filtering
JPH01245607A (en) Composite finite impulse response digital filter
JPH0744530A (en) Arithmetic device
JPS6165623A (en) Cmos selector circuit
JPH02226363A (en) Address generation circuit
US5293611A (en) Digital signal processor utilizing a multiply-and-add function for digital filter realization
US5146479A (en) Up/down counter for counting binary data stored in flip flops
JP2856064B2 (en) Digital filter
US6466505B1 (en) Flexible input structure for an embedded memory
US6175881B1 (en) Microcontroller having a memory, a dedicated multitask memory, and switching circuit for selectively connecting the multitask memory to the internal or external bus
KR100271629B1 (en) Up and down counter
JPH03204027A (en) Multiplication circuit
JP2806849B2 (en) Memory address controller
CA2020264C (en) Digital filter
JPH1145562A (en) Semiconductor storage device
JPS5811121B2 (en) digital sine wave synthesizer
JP3166781B2 (en) Adder circuit
JP3057728B2 (en) Semiconductor storage device
JPS63306718A (en) Serial access circuit
JPS62195924A (en) Counter circuit
JP2513432B2 (en) Adder circuit
JPH0514128A (en) Digital filter
JPH021616A (en) Programmable input/output circuit
JPH0695852A (en) Serial multiplier with adding function

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees