JPH0562796B2 - - Google Patents

Info

Publication number
JPH0562796B2
JPH0562796B2 JP61118768A JP11876886A JPH0562796B2 JP H0562796 B2 JPH0562796 B2 JP H0562796B2 JP 61118768 A JP61118768 A JP 61118768A JP 11876886 A JP11876886 A JP 11876886A JP H0562796 B2 JPH0562796 B2 JP H0562796B2
Authority
JP
Japan
Prior art keywords
memory
address signal
binary tree
signal
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.)
Expired - Lifetime
Application number
JP61118768A
Other languages
Japanese (ja)
Other versions
JPS62274333A (en
Inventor
Yasushi Aoki
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.)
NEC Corp
Original Assignee
Nippon Electric 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 Nippon Electric Co Ltd filed Critical Nippon Electric Co Ltd
Priority to JP61118768A priority Critical patent/JPS62274333A/en
Publication of JPS62274333A publication Critical patent/JPS62274333A/en
Publication of JPH0562796B2 publication Critical patent/JPH0562796B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Executing Machine-Instructions (AREA)
  • Complex Calculations (AREA)

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はデイジタル信号処理回路に関し、特に
バイナリ・ツリー・サーチを行なうデイジタル信
号処理回路に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a digital signal processing circuit, and more particularly to a digital signal processing circuit that performs a binary tree search.

〔従来の技術〕[Conventional technology]

従来、この種のデイジタル信号処理は、デイジ
タル信号処理用プロセツサで行なわれ、ROM等
のメモリーに記憶されたバイナリ・ツリー・サー
チを行なうプログラムにより、各種レジスタ間の
転送、データメモリーのアクセス、四則演算、分
岐及び条件分岐等を行なう命令で実行されてい
た。
Conventionally, this type of digital signal processing has been performed by a digital signal processing processor, and a binary tree search program stored in memory such as ROM is used to perform transfers between various registers, access data memory, and perform four arithmetic operations. , branches, conditional branches, etc.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

上述した従来のバイナリ・ツリー・サーチを行
なう方法は、バイナリ・ツリー・サーチのための
プログラムをメモリ内に記憶させておかなければ
ならないので、メモリの多くの容量を割当てなけ
ればならないという欠点があつた。
The conventional method of performing a binary tree search described above has the disadvantage that a large amount of memory must be allocated because the program for the binary tree search must be stored in memory. Ta.

また、プログラムによる制御であるため、条件
分岐と無条件分岐は不可避であるため、バイナ
リ・ツリー・サーチを行なう処理時間が長いとい
う欠点があつた。
Furthermore, because the control is performed by a program, conditional branches and unconditional branches are unavoidable, so there is a drawback that the processing time for performing a binary tree search is long.

〔問題点を解決するための手段〕[Means for solving problems]

本発明のデイジタル信号処理回路は、データバ
スから供給されるバイナリ・ツリー・サーチの対
象のサーチ対象データを格納するレジスタと、前
記バイナリ・ツリー・サーチの閾値および処理結
果を記憶するメモリと、前記メモリ読出用のアド
レス信号を格納するメモリポインタと、前記メモ
リから読出した前記閾値と前記レジスタから供給
される前記サーチ対象データとの相互の減算を行
ないこの減算結果得られる符号データを供給する
減算器と、予め定めた演算を指示する複数の状態
をそれぞれ数値で示す状態遷移信号と前記メモリ
ポインタの出力と前記符号データとの供給を受け
前記メモリポインタに供給する前記アドレス信号
を生成するメモリアドレス発生器と、前記メモリ
から読出した前記処理結果を前記データバスに出
力するバスドライバとを備えている。
The digital signal processing circuit of the present invention includes: a register for storing search target data of a binary tree search supplied from a data bus; a memory for storing a threshold value and a processing result of the binary tree search; a memory pointer that stores an address signal for memory reading; and a subtracter that mutually subtracts the threshold value read from the memory and the search target data supplied from the register, and supplies code data obtained as a result of this subtraction. and a memory address generator that generates the address signal to be supplied to the memory pointer after being supplied with a state transition signal indicating numerically a plurality of states instructing a predetermined operation, the output of the memory pointer, and the code data. and a bus driver that outputs the processing result read from the memory to the data bus.

〔実施例〕〔Example〕

次に、本発明の実施例について図面を参照して
説明する。
Next, embodiments of the present invention will be described with reference to the drawings.

第1図は、本発明の一実施例を示す回路構成図
である。
FIG. 1 is a circuit diagram showing an embodiment of the present invention.

レジスタ11は、データバス17からバイナ
リ・ツリー・サーチを行なうデータを受取り、こ
れを蓄積し、このデータを減算器15に与えるよ
うに構成されている。
Register 11 is configured to receive data for performing a binary tree search from data bus 17, store it, and provide this data to subtracter 15.

メモリ12は、バイナリ・ツリー・サーチの閾
値と、バイナリ・ツリー・サーチの処理結果とを
記憶しており、これらはメモリポインタ13に蓄
積されたアドレス信号により指定されて読み出さ
れ減算器15と、バスドライバ16とに夫々与え
るよう構成されている。
The memory 12 stores the threshold value of the binary tree search and the processing result of the binary tree search, and these are specified by the address signal stored in the memory pointer 13 and read out and sent to the subtracter 15. , bus driver 16, respectively.

メモリポインタ13は、メモリアドレス発生器
14で発生されたアドレス信号を受取つて蓄積
し、これをメモリ12の読出しの際のアドレスと
してメモリ12に与えるとともに、メモリアドレ
ス発生器14にその入力として与えるよう構成さ
れている。
The memory pointer 13 receives and stores the address signal generated by the memory address generator 14, and provides it to the memory 12 as an address when reading the memory 12, and also provides it to the memory address generator 14 as its input. It is configured.

メモリアドレス発生器14は、メモリポインタ
13のアドレス信号と、減算器15の符号出力
と、クロツク毎に発生しM1〜M4の4つの状態
のいずれかを示す状態遷移信号18とを入力して
アドレス信号を発生し、メモリポインタ12に与
えるよう構成されている。
The memory address generator 14 inputs the address signal of the memory pointer 13, the sign output of the subtracter 15, and a state transition signal 18 that is generated every clock and indicates one of the four states M1 to M4, and generates an address. It is configured to generate a signal and provide it to the memory pointer 12.

減算器15は、メモリ12からの閾値と、レジ
スタ11からのデータとを入力し、前者から後者
を減算した結果の符号を正(0を含む。以下同
じ)又は負の符号出力としてメモリアドレス発生
器14の入力に与えるよう構成されている。
The subtracter 15 inputs the threshold value from the memory 12 and the data from the register 11, and generates a memory address by subtracting the latter from the former and outputting the sign of the result as a positive (including 0; the same applies hereinafter) or a negative sign. It is configured to be applied to the input of the device 14.

バスドライバ16は、メモリ12からの処理結
果を入力し、これをデータバス17に出力として
与えるよう構成されている。
The bus driver 16 is configured to input the processing result from the memory 12 and provide it to the data bus 17 as an output.

第2図は、第1図に示した本発明の一実施例の
動作を示す動作フロー図である。
FIG. 2 is an operational flow diagram showing the operation of the embodiment of the present invention shown in FIG.

第2図において、それぞれ00、01、10、11で表
わされる状態遷移信号18の状態を示すM1〜M
14は、減算器15からの符号出力に応じてメモ
リポインタ13からのアドレス信号に対して加算
あるいは減算される。この状態遷移信号18は、
本実施例の回路を制御するデイジタル信号プロセ
ツサ(DSP)(図示省略)のプログラムコードを
デコードした信号であり、上記DSPのシステム
クロツク毎に発生する。状態M1はメモリアドレ
ス発生器14から出力されるアドレス信号の初期
値を設定すること、状態M2は上記アドレス信号
の値に2を上記符号に対応して加減算すること、
状態M3は上記アドレス信号の値に1を上記符号
に対応して加減算すること、状態M4は上記アド
レス信号の値に上記符号が負のとき7を減算また
は正のとき8を加算することをそれぞれ指示す
る。これらはM1,M2,M3,M4の順に状態
が遷移し、バイナリー・ツリー・サーチが実行さ
れる。
In FIG. 2, M1 to M indicate the states of the state transition signals 18, respectively represented by 00, 01, 10, and 11.
14 is added to or subtracted from the address signal from the memory pointer 13 according to the sign output from the subtracter 15. This state transition signal 18 is
This is a signal obtained by decoding the program code of a digital signal processor (DSP) (not shown) that controls the circuit of this embodiment, and is generated every system clock of the DSP. State M1 is to set the initial value of the address signal output from the memory address generator 14; state M2 is to add or subtract 2 to the value of the address signal in accordance with the sign;
State M3 adds or subtracts 1 to the value of the address signal in accordance with the sign, and state M4 subtracts 7 from the value of the address signal when the sign is negative or adds 8 when the sign is positive. Instruct. These states change in the order of M1, M2, M3, and M4, and a binary tree search is executed.

状態遷移信号18の状態がM1のとき、メモリ
アドレス発生器14は、初期値のアドレス信号と
して「0100」を発生し、これがメモリポインタ1
3に与えられる。メモリポインタ13は、これを
蓄積するとともに、これをメモリポインタのアド
レス信号21としてメモリ12に与え、メモリ1
2は、このアドレス信号で指定されるメモリの内
容をメモリの閾値22として読み出して、この閾
値T4を減算器15に与える。一方、レジスタ1
1はデータバス17から受取つて蓄積しているバ
イナリー・ツリー・サーチを実行するデータを読
み出して減算器15に与える。減算器15は、レ
ジスタ11からのデータからメモリ12からの閾
値T4を減算し、この減算結果の符号を正又は負
の符号出力23としてメモリアドレス発生器14
に与える。この際、この符号出力23が正の場合
は左へ分岐し、負の場合は右へ分岐する。
When the state of the state transition signal 18 is M1, the memory address generator 14 generates "0100" as the initial value address signal, which is the address signal of the memory pointer 1.
given to 3. The memory pointer 13 stores this and gives it to the memory 12 as the address signal 21 of the memory pointer.
2 reads out the contents of the memory designated by this address signal as a memory threshold value 22, and provides this threshold value T4 to the subtracter 15. On the other hand, register 1
1 reads out the stored data received from the data bus 17 to perform the binary tree search and supplies it to the subtracter 15. The subtracter 15 subtracts the threshold value T4 from the memory 12 from the data from the register 11, and outputs the sign of this subtraction result as a positive or negative sign output 23 to the memory address generator 14.
give to At this time, if the sign output 23 is positive, the process branches to the left, and if it is negative, the process branches to the right.

こゝで状態遷移信号18の状態はM1からM2
に遷移する。状態遷移信号18の状態がM2のと
き、メモリアドレス発生器14は、減算器15か
らの符号出力23と、メモリポインタのアドレス
信号21とを入力し、符号出力23が負の場合に
は、メモリポインタのアドレス信号21から2を
減じた「0010」をアドレス信号として発生し、正
の場合には、メモリポインタのアドレス信号21
に2を加えた「0110」をアドレス信号として発生
する。
Here, the state of the state transition signal 18 changes from M1 to M2.
Transition to. When the state of the state transition signal 18 is M2, the memory address generator 14 inputs the sign output 23 from the subtracter 15 and the memory pointer address signal 21, and when the sign output 23 is negative, the memory "0010", which is obtained by subtracting 2 from the pointer address signal 21, is generated as an address signal, and if it is positive, the memory pointer address signal 21
"0110", which is the sum of 2 and 2, is generated as an address signal.

このアドレス信号は、メモリポインタ13に与
えられ、メモリポインタ13はこれを蓄積すると
ともに、これをメモリポインタのアドレス信号と
してメモリ12に与える。
This address signal is given to the memory pointer 13, which stores it and gives it to the memory 12 as a memory pointer address signal.

このメモリポインタのアドレス信号は、前記の
メモリアドレス発生器14による発生の結果減算
器15の符号出力23が負であつた場合は
「0010」の値を持ち、24に分岐し正であつた場
合は「0110」の値を持ち27に分岐する。
The address signal of this memory pointer has a value of "0010" when the sign output 23 of the subtracter 15 is negative as a result of generation by the memory address generator 14, and branches to 24 when the sign output 23 is positive. has the value "0110" and branches to 27.

以後、メモリの閾値25又は28の読出し、レ
ジスタ11のデータからの減算、符号出力26又
は29、及び状態遷移信号18の状態のM2から
M3への遷移と前記の動作と同一の動作を繰返
す。但し状態遷移信号18の状態がM3のときに
は、メモリアドレス発生器14は、メモリポイン
タのアドレス信号24又は27に対し、符号出力
26又は29が負の場合は1を減じ、正の場合は
1を加えた値をアドレス信号として発生する。
Thereafter, the same operations as those described above are repeated, including reading the threshold value 25 or 28 of the memory, subtracting from the data in the register 11, outputting the sign 26 or 29, and transitioning the state of the state transition signal 18 from M2 to M3. However, when the state transition signal 18 is M3, the memory address generator 14 subtracts 1 from the memory pointer address signal 24 or 27 if the sign output 26 or 29 is negative, and subtracts 1 if it is positive. The added value is generated as an address signal.

次いで状態遷移信号18状態がM3からM4に
遷移したとき、メモリアドレス発生器14はメモ
リポインタのアドレス信号に対し、符号出力が負
の場合は7を加え、正の場合は8を加えた値をア
ドレス信号として発生する。このアドレス信号は
メモリポインタ13に蓄積され、更にメモリ12
に与えられて、メモリ12に記憶されているバイ
ナリー・ツリー・サーチの処理結果U0〜U7が
このアドレス信号の値に応じて読み出される。こ
のバイナリー・ツリー・サーチの処理結果U0〜
U7は、U0<U1<……<U7であり、これは
バスドライバ16の出力としてデータバス17に
与えられる。
Next, when the state of the state transition signal 18 transitions from M3 to M4, the memory address generator 14 adds 7 to the address signal of the memory pointer if the sign output is negative, and adds 8 if the sign output is positive. Generated as an address signal. This address signal is stored in the memory pointer 13 and further stored in the memory 12.
The binary tree search processing results U0 to U7 stored in the memory 12 are read out in accordance with the value of this address signal. The processing result of this binary tree search U0~
U7 is U0<U1<...<U7, and is given to the data bus 17 as the output of the bus driver 16.

前記のようにしてデータバス17から受取りレ
ジスタ11に蓄積されたデータに対するバイナ
リ・ツリー・サーチの処理結果を、バスドライバ
16の出力として、データバス17に得ることが
できる。
The processing result of the binary tree search on the data stored in the receiving register 11 from the data bus 17 as described above can be obtained on the data bus 17 as an output of the bus driver 16.

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

以上説明したように、本発明のデイジタル信号
処理回路をデイジタル信号処理用プロセツサの構
成回路とすることにより、バイナリ・ツリー・サ
ーチのためのプログラムのメモリ容量を少なくす
ることができるという効果がある。また、バイナ
リ・ツリー・サーチを行なう処理時間を短くする
ことができるという効果がある。
As explained above, by using the digital signal processing circuit of the present invention as a constituent circuit of a digital signal processing processor, there is an effect that the memory capacity of the program for binary tree search can be reduced. Another advantage is that the processing time for performing a binary tree search can be shortened.

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

第1図は本発明の一実施例を示す回路構成図、
第2図は本発明の一実施例の動作を示す動作フロ
ー図である。 11……レジスタ、12……メモリ、13……
メモリポインタ、14……メモリアドレス発生
器、15……減算器、16……バスドライバ、1
7……データバス、18……状態遷移信号。
FIG. 1 is a circuit configuration diagram showing an embodiment of the present invention;
FIG. 2 is an operational flow diagram showing the operation of one embodiment of the present invention. 11...Register, 12...Memory, 13...
Memory pointer, 14...Memory address generator, 15...Subtractor, 16...Bus driver, 1
7...Data bus, 18...State transition signal.

Claims (1)

【特許請求の範囲】 1 データバスから供給されるバイナリ・ツリ
ー・サーチの対象のサーチ対象データを格納する
レジスタと、 前記バイナリ・ツリー・サーチの閾値および処
理結果を記憶するメモリと、 前記メモリ読出用のアドレス信号を格納するメ
モリポインタと、 前記メモリから読出した前記閾値と前記レジス
タから供給される前記サーチ対象データとの相互
間の減算を行ないこの減算結果得られる符号デー
タを供給する減算器と、 予め定めた演算を指示する複数の状態をそれぞ
れ数値で示す状態遷移信号と前記メモリポインタ
の出力と前記符号データとの供給を受け前記メモ
リポインタに供給する前記アドレス信号を生成す
るメモリアドレス発生器と、 前記メモリから読出した前記処理結果を前記デ
ータバスに出力するバスドライバとを備えること
を特徴とするデイジタル信号処理回路。
[Scope of Claims] 1. A register that stores search target data of a binary tree search supplied from a data bus, a memory that stores a threshold value and a processing result of the binary tree search, and the memory readout. a memory pointer that stores an address signal for the search; a subtracter that performs subtraction between the threshold value read from the memory and the search target data supplied from the register and supplies code data obtained as a result of this subtraction; , a memory address generator that receives supply of a state transition signal each numerically indicating a plurality of states instructing a predetermined operation, the output of the memory pointer, and the code data and generates the address signal to be supplied to the memory pointer; and a bus driver that outputs the processing result read from the memory to the data bus.
JP61118768A 1986-05-22 1986-05-22 Digital signal processing circuit Granted JPS62274333A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61118768A JPS62274333A (en) 1986-05-22 1986-05-22 Digital signal processing circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61118768A JPS62274333A (en) 1986-05-22 1986-05-22 Digital signal processing circuit

Publications (2)

Publication Number Publication Date
JPS62274333A JPS62274333A (en) 1987-11-28
JPH0562796B2 true JPH0562796B2 (en) 1993-09-09

Family

ID=14744586

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61118768A Granted JPS62274333A (en) 1986-05-22 1986-05-22 Digital signal processing circuit

Country Status (1)

Country Link
JP (1) JPS62274333A (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2578270B2 (en) * 1991-07-30 1997-02-05 川崎製鉄株式会社 Content addressable memory

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5418249A (en) * 1977-07-11 1979-02-10 Nec Corp Retrieval device

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5418249A (en) * 1977-07-11 1979-02-10 Nec Corp Retrieval device

Also Published As

Publication number Publication date
JPS62274333A (en) 1987-11-28

Similar Documents

Publication Publication Date Title
JPS6351287B2 (en)
US5390306A (en) Pipeline processing system and microprocessor using the system
JPS58129552A (en) Processor
JP2559868B2 (en) Information processing device
JPH0772864B2 (en) Digital signal processor
JPH034936B2 (en)
JPH0562796B2 (en)
JPS6368931A (en) Data processing circuit
JPS5834037B2 (en) address calculation device
JPH0528431B2 (en)
JPS63111535A (en) Data processor
JPH06162067A (en) Device and method for controlling vector instruction
JPS60178539A (en) By-pass control system of information processor
JPH04211826A (en) Programmed arithmetic unit
JPS5862748A (en) Microprogram sequencer
JP3164690B2 (en) Address control device
JPH0755634Y2 (en) Arithmetic circuit
JPH0451304A (en) Arithmetic unit
JPS62111362A (en) Data processor
JP2001100991A (en) Digital signal processor
JPH04365170A (en) Digital signal processing semiconductor integrated circuit
JPH0246266U (en)
JPH0481925A (en) Digital signal processing circuit
JPH04245333A (en) Information processor
JPH05120005A (en) Processor having repeat instruction of preceding instruction