JPH01287749A - Test circuit for digital signal processor - Google Patents

Test circuit for digital signal processor

Info

Publication number
JPH01287749A
JPH01287749A JP63117058A JP11705888A JPH01287749A JP H01287749 A JPH01287749 A JP H01287749A JP 63117058 A JP63117058 A JP 63117058A JP 11705888 A JP11705888 A JP 11705888A JP H01287749 A JPH01287749 A JP H01287749A
Authority
JP
Japan
Prior art keywords
register
bus
output
data
selector
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
JP63117058A
Other languages
Japanese (ja)
Inventor
Kenzo Hasegawa
長谷川 賢造
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 JP63117058A priority Critical patent/JPH01287749A/en
Publication of JPH01287749A publication Critical patent/JPH01287749A/en
Pending legal-status Critical Current

Links

Landscapes

  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

PURPOSE:To output substantially the same test data as data on a bus with a small number of pins by fetching data selectively from an existent register which holds an arithmetic result in each arithmetic cycle and is connected to the bus. CONSTITUTION:A selector 23 is provided with the register 20 where the arithmetic result is held in each arithmetic cycle and the bus 19. This selector 23 is connected to the 1st pin T1 of an LSI chip and inputs a select signal SSEL and a selector 23 is connected to the 2nd pin T2 of the LSI chip and outputs data which is part of the output of the register corresponding to the select signal. Namely, the register 20 sends its output to the bus 21 each time arithmetic operation is performed and the output is substantially the same as the data on the bus 21. The selector 23 inputs the output of the register 20 and outputs it by m/n bit specified with the select signal SSEL at each other. Consequently, the number of pins of the LSI chip for the test can be decreased.

Description

【発明の詳細な説明】 〔概 要〕 ディジタルシグナルプロセッサ(DSP)のテスト回路
に関し、 DSPが形成されるLSIの寸法を縮小させ、且つ、テ
スト用のLSIチップのピン数を削減することを目的と
し、 演算サイクルの毎に演算結果が保持されるレジスタとバ
スとの間にセレクタを設け、該セレクタがLSIチップ
の第1のピンに接続されて選択信号を入力し、セレクタ
はまたLSIチップの第2のピンに接続され、選択信号
に応じた前記レジスタの出力の一部のデータを出力する
ように構成する。
[Detailed Description of the Invention] [Summary] Regarding a test circuit for a digital signal processor (DSP), the purpose is to reduce the dimensions of an LSI in which the DSP is formed and to reduce the number of pins of an LSI chip for testing. A selector is provided between the bus and the register in which the calculation result is held in each calculation cycle, and the selector is connected to the first pin of the LSI chip to input a selection signal, and the selector also connects to the first pin of the LSI chip. It is connected to a second pin and is configured to output part of the data output from the register according to the selection signal.

〔産業上の利用分野] 本発明はディジタルシグナルプロセッサ(DSP)に関
するものであり、特にLSI化され、特定の用途に最適
化されたカスタマ形DSPのテスト回路に関する。
[Industrial Field of Application] The present invention relates to a digital signal processor (DSP), and more particularly to a test circuit for a custom DSP that is integrated into an LSI and is optimized for a specific application.

DSPは一般に、例えば交換機用のフィルタリング処理
等に専用化されたカスタマ形DSPと、汎用的に作られ
た汎用形DSPとがある。カスタマ形DSPは、特定の
用途に対して信号処理速度の向上を図る一方、小形化、
低価格化を実現している。本発明は特に、か−るカスタ
マ形DSP、特にLSIカスタマ用DSPに関する。
DSPs generally include customer-type DSPs that are specialized for filtering processing for switching equipment, for example, and general-purpose DSPs that are made for general purposes. Custom-made DSPs aim to improve signal processing speed for specific applications, while also reducing size and
Achieving low prices. The present invention particularly relates to such a customer type DSP, especially a DSP for LSI customers.

(従来の技術、および、発明が解決しようとする課題) 第4図に従来のLSIカスタマ形DSPの構成を示す。(Prior art and problems to be solved by the invention) FIG. 4 shows the configuration of a conventional LSI customer type DSP.

第4図のDSPは、マイクロプログラムを格納している
マイクロマスクROM(以下μROM)4、μROM4
のアドレスを指示するプログラムカウンタC以下Pカウ
ンタ)1、PカウンタlからのアドレスによってμR,
OM4から出力されたマイクロ命令を収納する命令レジ
スタ5、命令レジスタ5内のデータROM (以下D−
ROM) 7のアドレスを指示するデータポインタ6、
乗数を格納するD−ROM7、データの作業領域を保存
しているRAM9、乗算器10、アキュムレータ11、
汎用レジスタ13、Aレジスタ14、Bレジスタ15お
よびバス19が図示の如く接続されている。
The DSP in FIG.
Program counter C or lower P counter) 1, which indicates the address of P counter L, μR,
The instruction register 5 stores the microinstructions output from the OM4, and the data ROM in the instruction register 5 (hereinafter referred to as D-
a data pointer 6 indicating the address of ROM) 7;
D-ROM 7 that stores multipliers, RAM 9 that stores data work areas, multiplier 10, accumulator 11,
A general-purpose register 13, an A register 14, a B register 15, and a bus 19 are connected as shown.

か−るDSPにおいても、種々のコンピュータ同様、構
成回路個別および、全体構成のテストが必要である。
Similar to various computers, such DSPs require testing of individual component circuits and the overall configuration.

汎用形DSPの試験の場合、外部に試験回路を接続する
ことにより、種々の試験が可能である。
When testing a general-purpose DSP, various tests can be performed by connecting an external test circuit.

しかしながら、カスタム形DSPの場合、外部試験回路
を接続するためのLSIチップのパッケージピンが不足
している、試験用プログラムを収納するに充分なメモリ
がない等により、汎用形DSPと同様の試験を行うこと
ができない。カスタム形DSPは、マイクロ命令語長を
縮小し、命令の単純化を図り、ハードウェアの簡略化を
図り、そしてRAMのアドレスを直接指定するようにし
ている。
However, in the case of custom DSPs, tests similar to general-purpose DSPs are not possible due to the lack of LSI chip package pins for connecting external test circuits, insufficient memory to store test programs, etc. can't do it. A custom DSP reduces the microinstruction word length, simplifies the instructions, simplifies the hardware, and directly specifies RAM addresses.

そこで、か−るカスタム形DSPにおいて、RAMへの
書込み、RAMからの続出を試験する一つの方法として
、μROMにRAMの全アドレスに対応するテストプロ
グラムを記憶させ、アドレスを順次変化させるものが知
られている。しかしながら、この方法は、テスト用のプ
ログラムが大となり、μROMのメモリ容量が大きくな
るという問題がある。
Therefore, in such a custom DSP, one known method for testing writing to RAM and continuous writing from RAM is to store a test program corresponding to all addresses in RAM in μROM and sequentially change the addresses. It is being However, this method has the problem that the test program becomes large and the memory capacity of the μROM becomes large.

他の試験方法としては、テスト用の命令デコーダを内部
に設け、外部からテスト命令を1つずつ与えて命令デコ
ーダで解読させて1命令ずつ実行して試験するものがあ
る。しかしながらこの方法は、テスト用命令デコーダを
設けなければならず、回路規模が大きくなり、LSI化
、低価格化上問題となっている。又、外部から1命令ず
つ与えるので、操作が厄介で、試験時間も相当かへると
いう問題がある。
Another test method is to provide an instruction decoder for testing internally, apply test instructions one by one from the outside, have the instruction decoder decode them, and execute the instructions one by one for testing. However, this method requires the provision of a test instruction decoder, which increases the circuit scale and poses a problem in terms of LSI integration and cost reduction. In addition, since each command is given from the outside, the operation is cumbersome and the test time is considerably increased.

特に、最近、DSPも16ビツトから32ビツトへと性
能が向上してきている。この場合、32ビツトの並列テ
ストデータをチップのピンを介して出力しようとすると
、テスト用に32ビンをも必要とし、ピン数の制限から
、DSPのテストが実質的に行なうことができないとい
う問題が発生してきている。
In particular, the performance of DSPs has recently improved from 16 bits to 32 bits. In this case, if you try to output 32-bit parallel test data through the pins of the chip, you will need 32 bins for testing, which makes it virtually impossible to test the DSP due to the limited number of pins. is occurring.

更に、DSPのLSI内にテスト回路を組み込むことは
前述の如<LSIの集積度、価格の問題ばかりでなく、
バスにテスト回路を接続することに伴って、DSPの処
理スピードが低下するという問題が生ずる。すなわち、
当該テスト回路をバスに接続することはバスの負荷を増
大させることになるからである。そのような意味では、
テスト用の入力レジスタ11、出力レジスタ12をバス
19に接続することは好ましくない。
Furthermore, incorporating a test circuit into the LSI of a DSP is not only a matter of LSI integration and cost, as mentioned above.
A problem that arises with connecting test circuits to the bus is that the processing speed of the DSP is reduced. That is,
This is because connecting the test circuit to the bus increases the load on the bus. In that sense,
It is not preferable to connect the test input register 11 and output register 12 to the bus 19.

本発明は上述した諸問題を解決することを目的とする。The present invention aims to solve the problems mentioned above.

すなわち、高ビツト化に対応可能で、しかもDSPの性
能を低下させず、LSIチップ寸法を増大させず、低価
格でDSP、特にLSI化カスタマ形DSPのテスト回
路を実現するものである。
That is, the present invention is intended to realize a test circuit for DSPs, especially LSI-based customer-type DSPs, which is compatible with higher bits, does not reduce the performance of the DSP, does not increase the size of the LSI chip, and is inexpensive.

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

本発明のDSPのテスト回路の原理ブロック図を第1図
に示す。
FIG. 1 shows a block diagram of the principle of a DSP test circuit according to the present invention.

演算サイクルの毎に演算結果が保持されるレジスタ20
とバス19との間にセレクタ23を設けている。該セレ
クタ23はLSIチップの第1のピンTIに接続されて
選択信号S SELを入力し、またセレクタ23はLS
Iチップの第2のピンT2に接続され、選択信号に応じ
た前記レジスタの出力の一部のデータを出力するように
構成されている。
A register 20 in which calculation results are held every calculation cycle.
A selector 23 is provided between the bus 19 and the bus 19. The selector 23 is connected to the first pin TI of the LSI chip and inputs the selection signal SSEL, and the selector 23 is connected to the first pin TI of the LSI chip.
It is connected to the second pin T2 of the I-chip and is configured to output part of the data output from the register according to the selection signal.

上記レジスタ20はDSPとして既存のものである。従
ってセレクタ23が新たに設けられるにすぎない。また
セレクタ23はバスに接続されるのではなく、レジスタ
20に接続される。
The register 20 is an existing one for a DSP. Therefore, the selector 23 is simply newly provided. Further, the selector 23 is not connected to the bus but to the register 20.

レジスタ20のビット数がmの場合、n回でレジスタ2
0のデータをセレクタ23を介して出力しようとする場
合、第1のピンT1の数は(2’−1)=nとなる!木
、第2のピンT2の数はm/n本である。例えば、m=
32.n=4とすると、第1のピンの数は2本、第2の
ピンの数は8本である。これによりチップのピン数も少
なくてすむ。
If the number of bits in register 20 is m, register 2 is
When attempting to output data of 0 via the selector 23, the number of first pins T1 is (2'-1)=n! The number of second pins T2 is m/n. For example, m=
32. If n=4, the number of first pins is two and the number of second pins is eight. This also reduces the number of pins on the chip.

〔作 用〕[For production]

上記レジスタ20は演算の都度、その出力をバス21に
出力する。従って実質的にバス21上のデータと同じで
ある。セレクタ23はレジスタ20の出力を入力し、選
択信号S。Lで指定されたm/nビット毎、出力する。
The register 20 outputs its output to the bus 21 each time it performs an operation. Therefore, it is substantially the same as the data on bus 21. The selector 23 inputs the output of the register 20 and receives a selection signal S. Output every m/n bits specified by L.

〔実施例〕〔Example〕

第2図に本発明の実施例のテスト回路を有するDSPの
回路図を示す。
FIG. 2 shows a circuit diagram of a DSP having a test circuit according to an embodiment of the present invention.

第2図は、第4図のDSPに対応するものであるが、ア
キュムレータ11の出力とバス19との間にドライバ回
路24を接続し、アキュムレータ11とドライバ回路2
4との間にセレクタ23を接続している。セレクタ23
は選択信号S SE+、を外部から入力するための第1
のピンTI、汎用レジスタ13の結果SD?を外部に出
力するための第2のピンT2に接続されている。アキュ
ムレータ11のビット数が32ビツトで、1語 32ビ
ツトのデータを16ビツトずつ2回で読出す場合、第1
のピンT1は1本、第2のピンT2は16木、合計17
本のピンを使用する。1語 32ビツトのデータを8ビ
ツトずつ4回に分けて読出す場合、第1のピンTIは2
本、第2のピンT2は8本、合計10本のピンを使用す
る。
2 corresponds to the DSP of FIG. 4, but a driver circuit 24 is connected between the output of the accumulator 11 and the bus 19, and the accumulator 11 and the driver circuit 2 are connected.
A selector 23 is connected between 4 and 4. Selector 23
is the first signal for externally inputting the selection signal SSE+.
pin TI, general register 13 result SD? It is connected to the second pin T2 for outputting to the outside. If the number of bits in the accumulator 11 is 32 bits and one word of 32 bits of data is to be read out twice each time with 16 bits, the first
The second pin T1 is 1, and the second pin T2 is 16, total 17.
Use book pins. When reading one word of 32 bits of data in four 8 bits each, the first pin TI is set to 2.
A total of 10 pins, including 8 second pins T2, are used.

DSPの処理の例として、次式のアルゴリズムのディジ
タルフィルタリングを行う場合について述べる。
As an example of DSP processing, a case will be described in which digital filtering is performed using the following algorithm.

但し、X : フィルタリング結果 に、:フィルタリング係数 X、:入力データ フィルタリング係数k、がAレジスタ14に入力され、
入力データX1がBレジスタ15に入力され、その積が
乗算器IOで求められ、乗算結果がアキュムレータ11
で積和される。
However, X: filtering result, :filtering coefficient X, :input data filtering coefficient k, are input to the A register 14,
Input data
The products are summed.

ここで、DSPは、通常のマイクロプロセッサ等とは異
なり、各演算サイクルで常時、上記レジスタ14.15
.11と乗算器。IOを用いて上記フィルタリング処理
をしていることに特徴がある。アキュムレータ11の出
力はフィルタリング結果としてバス19に出力される。
Here, unlike a normal microprocessor, the DSP always uses the registers 14 and 15 in each calculation cycle.
.. 11 and a multiplier. The feature is that the above filtering process is performed using IO. The output of accumulator 11 is output to bus 19 as a filtering result.

従って、アキュムレータ11の出力をみることは、バス
19上のデータを読み出すことと同じである。それ故、
直接バス19からデータを出力することに代えて、アキ
ュムレータ11の出力を取り出してもバス19上のデー
タをテスト可能となる。
Therefore, viewing the output of accumulator 11 is the same as reading data on bus 19. Therefore,
Instead of directly outputting data from the bus 19, the data on the bus 19 can also be tested by taking out the output of the accumulator 11.

セレクタ23はデータを分割して出力することにより、
データ出力に使用するピン数を削減させている。
The selector 23 divides the data and outputs it.
The number of pins used for data output is reduced.

第3図に本発明の実施例のセレクタの回路図を示す。第
3図の回路は、1語32ビツトのデータDffl−”I
)oを8ビツトずつ4回に分けて選択出力する場合を示
す。第3図において、セレクタ23はデコーダ23a、
4個の選択ゲート回路23bl〜23b4および出力ゲ
ート回路23cから成る。デコーダ23aは2ビツトの
選択信号33!、を入力し、例えば5SEL=3の場合
、選択ゲート回路23b1を選択する信号を出力する。
FIG. 3 shows a circuit diagram of a selector according to an embodiment of the present invention. The circuit shown in FIG. 3 has 32 bits of data Dffl-”I
) The case is shown in which o is selectively output in four parts of 8 bits each. In FIG. 3, the selector 23 includes a decoder 23a,
It consists of four selection gate circuits 23bl to 23b4 and an output gate circuit 23c. The decoder 23a receives a 2-bit selection signal 33! , and if, for example, 5SEL=3, a signal for selecting the selection gate circuit 23b1 is output.

それぞれの選択ゲート回路は8個のANDゲートAl〜
A8から成る。
Each selection gate circuit consists of 8 AND gates Al~
Consists of A8.

選択ゲート回路23b1は、デコーダ23aからの選択
信号により、8ビツトのデータD31〜DZ3を出力ゲ
ート回路23cに出力する。出力ゲート回路23cは8
個のORゲート23cl 〜23c8から構成されてお
り、選択ゲート回路23b1〜23b4のいずれかの1
つから選択された8ビツトのデータを第2のピンT2を
介して外部に出力する。
The selection gate circuit 23b1 outputs 8-bit data D31 to DZ3 to the output gate circuit 23c in response to the selection signal from the decoder 23a. The output gate circuit 23c is 8
It is composed of OR gates 23cl to 23c8, and one of the selection gate circuits 23b1 to 23b4
The selected 8-bit data is outputted to the outside via the second pin T2.

第3図において、セレクタ23はアキュムレータ11と
同じクロックで動作するようにしている。
In FIG. 3, the selector 23 is operated with the same clock as the accumulator 11.

従って、1演算サイクルでは、アキュムレータIIの1
語32ビツトのデータのうち8ビツトのみ出力する。こ
れを4回くり返すことにより、32ビツトのデータが出
力される。
Therefore, in one calculation cycle, 1 of accumulator II
Outputs only 8 bits out of 32 bits of data. By repeating this four times, 32-bit data is output.

若し、1演算サイクルで32ビツトのデータを出力させ
る場合、セレクタ23には、アキュムレータ11のクロ
ックの4倍の周波数を持つクロックを用いればよい。
If 32 bits of data are to be output in one calculation cycle, a clock having a frequency four times that of the clock of the accumulator 11 may be used for the selector 23.

第2図の実施例ではアキュムレータ11からデータを取
り出すようにしているがアキュムレータ11に限らず、
1演算サイクルで必ず動作しバス19に接続されている
レジスタ、例えば汎用レジスタ13からデータを取り出
すようにしてもよい。
In the embodiment shown in FIG. 2, data is taken out from the accumulator 11, but it is not limited to the accumulator 11.
Data may be taken out from a register that always operates in one calculation cycle and is connected to the bus 19, for example, the general-purpose register 13.

〔発明の効果] 以上に述べたように本発明によれば、演算サイクルの毎
に演算結果が保持されバスに接続された既存のレジスタ
からデータを選択的に取り出すことにより、実質的にバ
ス上のデータと同じテストデータを少ないピン数で外部
に出力することができるという効果を奏する。また本発
明においては、か−るテスト機能によっても、DSPの
処理スピードを低下させず、またLSIチップサイズも
余り大きくさせないという効果を奏する。
[Effects of the Invention] As described above, according to the present invention, by selectively retrieving data from existing registers that hold calculation results and are connected to the bus in each calculation cycle, virtually no data can be stored on the bus. This has the effect that the same test data as the data can be output externally with a smaller number of pins. Further, in the present invention, even with such a test function, there is an effect that the processing speed of the DSP is not reduced and the LSI chip size is not increased too much.

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

第1図は本発明のディジタルシグナルプロセッサ(DS
P)のテスト回路の原理ブロック図、第2図は本発明の
実施例のDSPのテスト回路図、 第3図は本発明の実施例のセレクタ回路図、第4図は従
来のDSP回路図、である。 (符号の説明) 10・・・乗算器、    11・・・アキュムレータ
、13・・・汎用レジスタ、 14・・・Aレジスタ、  15・・・Bレジスタ、1
9・・・バス、     23・・・セレクタ、24・
・・ドライバ回路。
FIG. 1 shows a digital signal processor (DS) of the present invention.
P) is a principle block diagram of the test circuit, FIG. 2 is a DSP test circuit diagram according to an embodiment of the present invention, FIG. 3 is a selector circuit diagram according to an embodiment of the present invention, FIG. 4 is a conventional DSP circuit diagram, It is. (Explanation of symbols) 10... Multiplier, 11... Accumulator, 13... General purpose register, 14... A register, 15... B register, 1
9...Bus, 23...Selector, 24.
...Driver circuit.

Claims (1)

【特許請求の範囲】 1、LSI化されたディジタルシグナルプロセッサにお
いて、 演算サイクルの毎に演算結果が保持されるレジスタ(2
0)とバス(19)との間にセレクタ(23)を設け、
該セレクタ(23)がLSIチップの第1のピン(T1
)に接続されて選択信号(S_S_E_L)を入力し、
セレクタ(23)はまたLSIチップの第2のピン(T
2)に接続され、選択信号に応じた前記レジスタの出力
の一部のデータを出力するように構成されたことを特徴
とする、 ディジタルシグナルプロセッサのテスト回路。
[Claims] 1. In an LSI digital signal processor, a register (2
A selector (23) is provided between the bus (19) and the bus (19);
The selector (23) selects the first pin (T1) of the LSI chip.
) to input the selection signal (S_S_E_L),
The selector (23) also selects the second pin (T
2), and is configured to output part of the data output from the register according to a selection signal.
JP63117058A 1988-05-16 1988-05-16 Test circuit for digital signal processor Pending JPH01287749A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63117058A JPH01287749A (en) 1988-05-16 1988-05-16 Test circuit for digital signal processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63117058A JPH01287749A (en) 1988-05-16 1988-05-16 Test circuit for digital signal processor

Publications (1)

Publication Number Publication Date
JPH01287749A true JPH01287749A (en) 1989-11-20

Family

ID=14702386

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63117058A Pending JPH01287749A (en) 1988-05-16 1988-05-16 Test circuit for digital signal processor

Country Status (1)

Country Link
JP (1) JPH01287749A (en)

Similar Documents

Publication Publication Date Title
US4038643A (en) Microprogramming control system
JPS60151761A (en) Memory enabling nibbling and word addressing for accessing data apparatus continued for decimal computation
JP2840444B2 (en) Method for operating an arithmetic pipeline and data processing apparatus
US4539635A (en) Pipelined digital processor arranged for conditional operation
JP2816624B2 (en) Speed improved data processing system for performing square operation and method thereof
US4689765A (en) Groups of tag signals for data store in multi-plane set of buffers
US4837738A (en) Address boundary detector
US4028670A (en) Fetch instruction for operand address calculation
US6499046B1 (en) Saturation detection apparatus and method therefor
US6263424B1 (en) Execution of data dependent arithmetic instructions in multi-pipeline processors
JPS5838819B2 (en) Control file device for data processing systems
US5751999A (en) Processor and data memory for outputting and receiving data on different buses for storage in the same location
JPS59114677A (en) Vector processor
JPH01287749A (en) Test circuit for digital signal processor
US20020083106A1 (en) Dynamic popcount/shift circuit
US6003141A (en) Single chip processor with externally executed test function
US5446909A (en) Binary multiplication implemented by existing hardware with minor modifications to sequentially designate bits of the operand
US6266626B1 (en) ROM data verification circuit
JP2525492B2 (en) Programmable controller
JPH06103064A (en) Device and method for processing data
JP3441847B2 (en) Processor with data memory
JP3474384B2 (en) Shifter circuit and microprocessor
JP2577452B2 (en) Digital signal processor
JP2912067B2 (en) Speed control device and debug device
JPH01284934A (en) Digital signal processor