JPH06266576A - Semiconductor ic - Google Patents
Semiconductor icInfo
- Publication number
- JPH06266576A JPH06266576A JP5052627A JP5262793A JPH06266576A JP H06266576 A JPH06266576 A JP H06266576A JP 5052627 A JP5052627 A JP 5052627A JP 5262793 A JP5262793 A JP 5262793A JP H06266576 A JPH06266576 A JP H06266576A
- Authority
- JP
- Japan
- Prior art keywords
- circuit
- test
- output
- rom
- signal
- 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
Links
Landscapes
- Test And Diagnosis Of Digital Computers (AREA)
- Microcomputers (AREA)
- For Increasing The Reliability Of Semiconductor Memories (AREA)
- Tests Of Electronic Circuits (AREA)
Abstract
(57)【要約】
【目的】 中央演算処理回路および記憶回路の機能テス
トを速く行うことができ、かつ製造コストの低い半導体
集積回路を提供する。
【構成】 外部インストラクション入力信号BおよびR
OM期待値入力信号Cが試験兼用端子37を介してイン
ストラクションサイクルの半分の周期においてそれぞれ
時分割で入力される。外部インストラクション入力信号
Bは、ラッチ回路51でクロック信号φ2に同期して、
インストラクションサイクル間ラッチされ、ROM期待
値入力信号Cは、ラッチ回路51でクロックφ1に同期
してインストラクションサイクル間ラッチされる。カウ
ンタ35からROM34にアドレス信号を与えることに
よって、ROM34から出力される出力値と、前述の期
待値とを比較回路45において比較し、その判定結果を
ROM判定出力信号Fとして出力する。
(57) [Summary] [Object] To provide a semiconductor integrated circuit capable of performing a functional test of a central processing unit and a memory circuit at a high speed and having a low manufacturing cost. [Structure] External instruction input signals B and R
The OM expected value input signal C is input in a time-sharing manner in each half cycle of the instruction cycle via the test-purpose terminal 37. The external instruction input signal B is synchronized with the clock signal φ2 by the latch circuit 51,
Latched during the instruction cycle, the expected ROM value input signal C is latched during the instruction cycle by the latch circuit 51 in synchronization with the clock φ1. By giving an address signal from the counter 35 to the ROM 34, the output value output from the ROM 34 is compared with the above-mentioned expected value in the comparison circuit 45, and the determination result is output as the ROM determination output signal F.
Description
【0001】[0001]
【産業上の利用分野】本発明は、中央演算処理回路およ
び記憶回路を含み、これらの回路の機能試験に必要な回
路を内蔵した半導体集積回路に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a semiconductor integrated circuit including a central processing unit and a memory circuit and incorporating circuits necessary for functional testing of these circuits.
【0002】[0002]
【従来の技術】半導体集積回路は、一般に製品として出
荷する前に、仕様に記されている機能を満足しているか
どうかを確認するために各種機能試験を実施している。2. Description of the Related Art Generally, a semiconductor integrated circuit is subjected to various functional tests before being shipped as a product in order to confirm whether or not the functions described in the specifications are satisfied.
【0003】図5は、従来の半導体集積回路1およびそ
の機能試験を行うための試験装置2の電気的構成を示す
ブロック図である。半導体集積回路1は、中央演算処理
回路(以下「CPU」と略称する)3、読出し専用メモ
リ(以下「ROM」と略称する)4などを含み、その機
能試験の方法について以下に説明する。FIG. 5 is a block diagram showing an electrical configuration of a conventional semiconductor integrated circuit 1 and a test apparatus 2 for performing a functional test thereof. The semiconductor integrated circuit 1 includes a central processing unit (hereinafter abbreviated as “CPU”) 3, a read-only memory (hereinafter abbreviated as “ROM”) 4, and the like, and a method of functional testing thereof will be described below.
【0004】CPU2の機能試験には、外部インストラ
クション信号によるCPU機能試験(以下「外部インス
トラクション試験」と略称する)などがある。この試験
を行う場合、まず試験用入力回路6から外部インストラ
クション入力端子TI1〜TIn(総称するときは参照
符7を用いる)を介してCPU3へ外部インストラクシ
ョン信号が、すなわち命令コードがCPU3に与えられ
る。試験用入力回路6は、CPU3のインストラクショ
ンサイクル(命令コードに基づいて処理を行う単位周
期)に同期して、命令コードを与えるため、発振回路8
からのクロック信号φ1,クロック信号φ2をクロック
出力端子から入力して同期をとっている。The function test of the CPU 2 includes a CPU function test using an external instruction signal (hereinafter abbreviated as "external instruction test") and the like. When performing this test, first, an external instruction signal, that is, an instruction code is given to the CPU 3 from the test input circuit 6 to the CPU 3 via the external instruction input terminals TI1 to TIn (reference numeral 7 is used for generic name). Since the test input circuit 6 gives the instruction code in synchronization with the instruction cycle of the CPU 3 (a unit cycle of processing based on the instruction code), the oscillation circuit 8
The clock signals φ1 and φ2 from are input from the clock output terminals for synchronization.
【0005】次にCPU3に命令コードが与えられる
と、その命令コードに対応する出力値がCPU3からデ
ータバス9bを介して比較回路11に与えられる。ラン
ダムアクセスメモリ(以下「RAM」と略称する)12
は、予め複数の命令コードに対応する出力値を期待値と
して記憶しており、その中から対応する期待値がCPU
3によって読出され、比較回路11に出力される。した
がって、比較回路11は、その期待値を予めラッチし
て、CPU3から出力された出力値とを比較し、両方の
値が一致しているか否かの判定を行い、その判定結果を
CPU判定信号として出力端子19を介して試験装置2
へ出力する。このようにして試験装置2は、予め定めら
れた複数の命令コードに対して前述の外部インストラク
ション試験を繰返し、その判定結果に基づいてCPU3
の機能の判定を行う。Next, when an instruction code is given to the CPU 3, an output value corresponding to the instruction code is given from the CPU 3 to the comparison circuit 11 via the data bus 9b. Random access memory (hereinafter abbreviated as "RAM") 12
Stores, in advance, output values corresponding to a plurality of instruction codes as expected values.
3 is read out and output to the comparison circuit 11. Therefore, the comparison circuit 11 latches the expected value in advance, compares it with the output value output from the CPU 3, determines whether or not both values match, and outputs the determination result to the CPU determination signal. As the test device 2 via the output terminal 19 as
Output to. In this way, the test apparatus 2 repeats the above-mentioned external instruction test for a plurality of predetermined instruction codes, and based on the judgment result, the CPU 3
The function of is judged.
【0006】また、ROM4の機能試験にはROM−D
UMP試験などがある。この試験を行う場合、カウンタ
15は、発振回路8から出力されるクロック信号φ2に
同期して、インストラクションサイクルの周期毎に順次
カウント値をインクリメントし、そのカウント値を順次
アドレス信号としてアドレスバス10aを介してROM
4に与える。A ROM-D is used for the functional test of the ROM4.
There is a UMP test etc. When performing this test, the counter 15 sequentially increments the count value for each cycle of the instruction cycle in synchronization with the clock signal φ2 output from the oscillation circuit 8, and uses the count value as a sequential address signal on the address bus 10a. Through ROM
Give to 4.
【0007】次にROM4は、そのアドレス信号が与え
られると、アドレス信号に対応する出力値がデータバス
9c、出力端子TRD1〜TRDn(総称するときは参
照符16を用いる)を介して試験装置2の比較回路17
へ出力する。比較回路17には、予め前述のROM4の
出力値に対応する期待値が格納されており、ROM4の
出力値とその期待値とを比較し、両方の値が一致してい
るか否かの判定を行う。このようにして、試験装置2は
予め定められた範囲のアドレスに対して、前述のROM
−DUMP試験を繰返し、その判定結果に基づいて、R
OM4の機能の判定を行う。When the address signal is applied to the ROM 4, the test device 2 outputs the output value corresponding to the address signal via the data bus 9c and the output terminals TRD1 to TRDn (reference numeral 16 is used for generic name). Comparing circuit 17
Output to. An expected value corresponding to the output value of the ROM 4 described above is stored in advance in the comparison circuit 17, and the output value of the ROM 4 is compared with the expected value to determine whether or not both values match. To do. In this way, the test apparatus 2 operates on the above-mentioned ROM for the addresses in the predetermined range.
-The DUMP test is repeated, and based on the judgment result, R
The function of OM4 is judged.
【0008】以上のようにして、同一インストラクショ
ンサイクル内でCPU3の外部インストラクション試験
とROM4のDUMP試験とを同時に実施していた。As described above, the external instruction test of the CPU 3 and the DUMP test of the ROM 4 are simultaneously performed within the same instruction cycle.
【0009】図6は、図5で示される外部インストラク
ション入力端子7およびROM出力端子16の詳細を示
す図である。外部インストラクション入力端子7および
ROM出力端子16は、それぞれn個の端子TI1〜T
Inおよび端子TRD1〜TRDnで形成される。FIG. 6 is a diagram showing details of the external instruction input terminal 7 and the ROM output terminal 16 shown in FIG. The external instruction input terminal 7 and the ROM output terminal 16 have n terminals TI1 to T, respectively.
It is formed of In and terminals TRD1 to TRDn.
【0010】図7は、図6で示される外部インストラク
ション信号I1〜InとROM出力データRD1〜RD
nとを両方入出力できる試験用端子T1〜Tnの回路図
である。このように試験用端子を兼用とすると、図7で
示される試験用端子の数は、図6で示される試験用端子
の数に比較して、1/2に削減することができる。FIG. 7 shows the external instruction signals I1 to In and the ROM output data RD1 to RD shown in FIG.
FIG. 7 is a circuit diagram of test terminals T1 to Tn capable of inputting and outputting both of n and n. If the test terminals are also used in this way, the number of test terminals shown in FIG. 7 can be reduced to 1/2 as compared with the number of test terminals shown in FIG.
【0011】図8は、図7に示される試験用端子T1〜
Tnを、図5に示される半導体集積回路1に適用し、機
能試験を行ったときのタイムチャートである。この場合
は、外部インストラクション信号の入力端子とROM出
力データ信号の出力端子とを兼用しているので、外部イ
ンストラクション信号によるCPU機能試験とROM出
力データによるROM機能試験とを同時にすることがで
きない。したがって、試験用端子T1〜Tnにおいてク
ロック信号φ2に同期するインストラクションサイクル
(原振クロックX1の2周期分)毎に、外部インストラ
クション信号とROM出力データとを交互に入出力し
て、外部インストラクション試験とROM−DUMP試
験とを交互に実施する。FIG. 8 shows the test terminals T1 to T1 shown in FIG.
6 is a time chart when Tn is applied to the semiconductor integrated circuit 1 shown in FIG. 5 and a functional test is performed. In this case, since the input terminal for the external instruction signal and the output terminal for the ROM output data signal are also used, the CPU function test by the external instruction signal and the ROM function test by the ROM output data cannot be performed at the same time. Therefore, the external instruction signal and the ROM output data are alternately input / output at each of the instruction cycles (two cycles of the original oscillation clock X1) at the test terminals T1 to Tn in synchronization with the clock signal φ2 to perform the external instruction test. The ROM-DUMP test is alternately performed.
【0012】[0012]
【発明が解決しようとする課題】従来の半導体集積回路
においては、前述のように外部インストラクション信号
による外部インストラクション試験とROMの出力デー
タによるROM−DUMP試験とを同時に行う場合、そ
の試験を交互に行う場合に比べて、試験用の入出力端子
が大幅に増加する。したがって、半導体集積回路の製造
コストが増加する。In the conventional semiconductor integrated circuit, when the external instruction test by the external instruction signal and the ROM-DUMP test by the output data of the ROM are simultaneously performed as described above, the tests are alternately performed. Compared with the case, the number of test input / output terminals is significantly increased. Therefore, the manufacturing cost of the semiconductor integrated circuit increases.
【0013】また、試験用の入出力端子を減少させるた
めに、入出力端子を兼用して外部インストラクション試
験とROM−DUMP試験とを交互に行うと、試験時間
が大幅に増加する。If the external instruction test and the ROM-DUMP test are alternately performed with the input / output terminals also used in order to reduce the input / output terminals for the test, the test time is significantly increased.
【0014】本発明の目的は、内蔵する中央演算処理回
路および記憶回路の機能テストを速く行うことができ、
かつ製造コストが低い半導体集積回路を提供することで
ある。An object of the present invention is to enable functional tests of the built-in central processing circuit and storage circuit to be performed quickly.
Another object of the present invention is to provide a semiconductor integrated circuit with low manufacturing cost.
【0015】[0015]
【課題を解決するための手段】本発明は、外部から与え
られる命令コードに基づいて、予め定める周期で動作を
実行する中央演算処理回路と、前記予め定める周期でデ
ータの読出しが行われる記憶回路と、機能試験時に、前
記中央演算処理回路から出力される演算処理結果と、予
め記憶されているデータとを比較して、適否を判定する
第1の比較回路と、機能試験時に、前記記憶回路から読
出されるデータと、外部の試験装置から与えられる期待
値データとを比較して、適否を判定する第2の比較回路
と、前記外部の試験装置から前記予め定める周期未満の
周期で交互に与えられる命令コードと期待値データと
を、前記予め定める周期の間保持して前記中央演算処理
回路および記憶回路にそれぞれ与える入力回路とを含む
ことを特徴とする半導体集積回路である。According to the present invention, there is provided a central processing circuit for executing an operation in a predetermined cycle based on an instruction code given from the outside, and a memory circuit for reading data in the predetermined cycle. And a first comparison circuit for judging suitability by comparing the arithmetic processing result output from the central arithmetic processing circuit with the data stored in advance during the functional test, and the storage circuit during the functional test. A second comparison circuit for comparing the data read from the external test device with expected value data given from an external test device to determine suitability; and alternately from the external test device at a cycle shorter than the predetermined cycle. An input circuit which holds a given instruction code and expected value data for the predetermined period and gives them to the central processing unit and the memory circuit, respectively. It is a body integrated circuit.
【0016】[0016]
【作用】以上のように本発明に従えば、中央演算処理回
路は、外部から与えられる命令コードに基づいて、予め
定める周期で動作を実行し、記憶回路は、その予め定め
る周期でデータの読出しが行われる。機能試験を行う場
合、第1の比較回路は、中央演算処理回路から出力され
る演算処理結果と、予め記憶されているデータとを比較
して、適否を判定し、第2の比較回路は、記憶から読出
されるデータと、外部の試験装置から与えられる期待値
データとを比較して、適否を判定する。このとき、入力
回路は、外部の試験装置から前記の予め定める周期未満
の周期で、交互に与えられる命令コードと期待値データ
とを、前記予め定める周期の間保持して中央演算処理回
路および記憶回路に与える。したがって、中央演算処理
回路の機能試験と記憶回路の機能試験とを同じ入力端子
を兼用して信号を入力して、同時に機能試験を行うこと
ができ、入力端子の数も増加しない。As described above, according to the present invention, the central processing unit executes the operation at a predetermined cycle based on the instruction code given from the outside, and the memory circuit reads the data at the predetermined cycle. Is done. When performing a functional test, the first comparison circuit compares the arithmetic processing result output from the central arithmetic processing circuit with prestored data to determine suitability, and the second comparison circuit The suitability is judged by comparing the data read from the memory with the expected value data given from the external test apparatus. At this time, the input circuit holds the instruction code and the expected value data, which are alternately given from the external test device in a cycle shorter than the predetermined cycle, for the predetermined cycle and stores the central processing circuit and the memory. Give to the circuit. Therefore, the function test of the central processing unit and the function test of the memory circuit can be simultaneously input with a signal by using the same input terminal, and the function test can be simultaneously performed, and the number of input terminals does not increase.
【0017】また、第2の比較回路を設けることによっ
て、第2の比較回路から外部へ出力する信号は、判定結
果の信号だけでよいので、出力端子の数を大幅に減少す
ることができる。Further, by providing the second comparison circuit, the signal output from the second comparison circuit to the outside may be only the signal of the determination result, so that the number of output terminals can be greatly reduced.
【0018】[0018]
【実施例】図1は、本発明の一実施例の半導体集積回路
31およびその機能試験を行うための試験装置32の電
気的構成を示すブロック図である。半導体集積回路31
は、中央演算処理回路(以下「CPU」と略称する)3
3、読出し専用メモリ(以下「ROM」と略称する)3
4などを含み、その機能試験について以下に説明する。1 is a block diagram showing an electrical configuration of a semiconductor integrated circuit 31 and a test apparatus 32 for performing a functional test of the semiconductor integrated circuit 31 according to an embodiment of the present invention. Semiconductor integrated circuit 31
Is a central processing unit (hereinafter abbreviated as “CPU”) 3
3, read-only memory (hereinafter abbreviated as "ROM") 3
4, etc., and the functional test thereof will be described below.
【0019】CPU32の機能試験には、外部インスト
ラクション信号によるCPU機能試験(以下「外部イン
ストラクション試験」と略称する)などがあり、ROM
34の機能試験にはROM−DUMP試験などがある。
この実施例においては、前述の外部インストラクション
試験とROM−DUMP試験とを図2に示されるタイム
チャートに基づいて同時に行う。The function test of the CPU 32 includes a CPU function test by an external instruction signal (hereinafter abbreviated as "external instruction test") and the like. ROM
The functional test of 34 includes a ROM-DUMP test and the like.
In this embodiment, the external instruction test and the ROM-DUMP test described above are simultaneously performed based on the time chart shown in FIG.
【0020】試験装置32の試験用入力装置36から、
外部試験入力信号Aが、試験兼用端子TP1〜TPn
(総称するときは参照符37を用いる)に入力される。
外部試験入力信号Aは、図2で示されるように外部イン
ストラクション入力信号BとROM期待値入力信号Cと
がそれぞれの半分の周期において、時分割で合成されて
いる。インストラクションサイクル(CPUなどが命令
コードに基づいて処理を行う単位時間)t1毎に、クロ
ック信号φ2の立上がりに同期して時間t3において外
部インストラクション信号A1が出力され、クロック信
号φ1の立上がりに同期して時間t4においてROM期
待値入力信号A2が出力される。クロック信号φ1、ク
ロック信号φ2は、クロック原振信号Xに基づいて生成
され、発振回路38から出力される。発振回路38から
試験用入力回路36には、クロック信号φ1,φ2が出
力され、試験用入力回路36は、このクロック信号φ
1,φ2に基づいて外部試験入力信号Aを生成する。From the test input device 36 of the test device 32,
The external test input signal A is the test dual-purpose terminals TP1 to TPn.
(Reference numeral 37 is used for generic name).
In the external test input signal A, as shown in FIG. 2, the external instruction input signal B and the ROM expected value input signal C are time-divided in each half cycle. At every instruction cycle (unit time in which the CPU or the like performs processing based on the instruction code) t1, the external instruction signal A1 is output at time t3 in synchronization with the rise of the clock signal φ2, and in synchronization with the rise of the clock signal φ1. The ROM expected value input signal A2 is output at time t4. The clock signal φ1 and the clock signal φ2 are generated based on the clock original signal X and output from the oscillation circuit 38. Clock signals φ1 and φ2 are output from the oscillator circuit 38 to the test input circuit 36, and the test input circuit 36 outputs the clock signals φ1 and φ2.
An external test input signal A is generated based on 1, φ2.
【0021】図3で示されるように試験兼用端子TP1
〜TPnは、外部試験入力信号A、通常入出力信号Pを
兼用して入出力することができる。外部インストラクシ
ョン信号の命令コードおよびROM期待値入力信号のデ
ータなどは、nビットで構成されているので、その信号
が入出力する試験兼用端子37の数はn個になる。As shown in FIG. 3, the test combined terminal TP1
.About.TPn can be input / output by also using the external test input signal A and the normal input / output signal P. Since the instruction code of the external instruction signal and the data of the ROM expected value input signal are composed of n bits, the number of the test combined terminals 37 to which the signal is input and output is n.
【0022】試験兼用端子TP1〜TPnに入力された
試験用入力信号Aに含まれる外部インストラクション信
号A1は、ラッチ回路51においてクロック信号φ2に
よってラッチされ、外部インストラクション入力信号B
が生成される。また、試験用入力信号Aに含まれるRO
M期待値入力信号A2は、ラッチ回路52においてクロ
ック信号φ1によってラッチされ、ROM期待値入力信
号Cが生成される。この外部インストラクション信号B
とROM期待値入力信号Cは、図2で示されるように、
それぞれクロック信号φ2、クロック信号φ1に同期し
て、インストラクションサイクルの周期t1毎に出力さ
れる。The external instruction signal A1 included in the test input signal A input to the dual-purpose test terminals TP1 to TPn is latched by the clock signal φ2 in the latch circuit 51, and the external instruction input signal B is output.
Is generated. In addition, RO included in the test input signal A
The M expected value input signal A2 is latched by the clock signal φ1 in the latch circuit 52, and the ROM expected value input signal C is generated. This external instruction signal B
And the ROM expected value input signal C, as shown in FIG.
The signals are output in every cycle t1 of the instruction cycle in synchronization with the clock signal φ2 and the clock signal φ1, respectively.
【0023】次に、外部インストラクション信号Bは、
データバス39aを介してCPU33に入力され、すな
わちCPU33に命令コードが与えられる。CPU33
に命令コードが与えられると、その命令コードに対応す
る出力値がデータバス39bを介して比較回路41に与
えられる。ランダムアクセスメモリ(以下「RAM」と
略称する)42は、予め複数の命令コードに対応する出
力値を期待値として記憶しており、その中から対応する
期待値がCPU33によって読出され、比較回路41に
出力される。したがって、比較回路41は、その出力さ
れた期待値をラッチし、CPU33から出力された出力
値とを比較し、両方の値が一致しているか否かの判定を
行い、その判定結果をCPU判定出力信号として出力端
子46を介して試験装置32に出力する。このようにし
て試験装置32は予め定められた複数の命令コードに対
して前述の外部インストラクション試験を繰返し、その
判定結果に基づいてCPU33の機能の判定を行う。Next, the external instruction signal B is
It is input to the CPU 33 via the data bus 39a, that is, an instruction code is given to the CPU 33. CPU33
When the instruction code is applied to the comparator, an output value corresponding to the instruction code is applied to the comparison circuit 41 via the data bus 39b. A random access memory (hereinafter abbreviated as “RAM”) 42 stores output values corresponding to a plurality of instruction codes in advance as expected values, and the expected values corresponding thereto are read out by the CPU 33, and the comparison circuit 41. Is output to. Therefore, the comparison circuit 41 latches the output expected value, compares it with the output value output from the CPU 33, determines whether or not both values match, and determines the determination result by the CPU. The output signal is output to the test apparatus 32 via the output terminal 46. In this way, the test apparatus 32 repeats the above-described external instruction test for a plurality of predetermined instruction codes, and determines the function of the CPU 33 based on the result of the determination.
【0024】次にROM期待値入力信号Cは、比較回路
45へ出力される。また、カウンタ35は、発振回路3
8から出力されるクロック信号φ2に同期して、順次カ
ウント値をインクリメントし、そのカウント値を順次ア
ドレス信号としてアドレスバス10aを介してROM3
4に与える。ROM34は、アドレス信号が与えられる
と、そのアドレス信号に対応する内部ROMデータDが
データバス39cを介して比較回路45へ出力される。
したがって、比較回路45は、ROM期待値入力信号C
の値と内部ROMデータDの値との比較を行い、両方の
値が一致しているか否かの判定を行い、その判定結果を
ROM判定出力信号として出力端子47を介して試験装
置32に出力する。Next, the ROM expected value input signal C is output to the comparison circuit 45. In addition, the counter 35 includes the oscillation circuit 3
In synchronization with the clock signal φ2 output from the ROM 8, the count value is sequentially incremented, and the count value is used as a sequential address signal via the address bus 10a in the ROM 3
Give to 4. When the address signal is applied to the ROM 34, the internal ROM data D corresponding to the address signal is output to the comparison circuit 45 via the data bus 39c.
Therefore, the comparison circuit 45 outputs the ROM expected value input signal C
Value is compared with the value of the internal ROM data D to determine whether or not both values match, and the determination result is output as a ROM determination output signal to the test apparatus 32 via the output terminal 47. To do.
【0025】このようにして、試験装置2は、予め定め
られた範囲のアドレスに対して、前述の機能試験を繰返
し、その判定結果に基づいて、ROM43の機能の判定
を行う。In this way, the test apparatus 2 repeats the above-mentioned function test with respect to the address in the predetermined range, and judges the function of the ROM 43 based on the judgment result.
【0026】ROM期待値入力信号Cと内部ROMデー
タDは、図2で示されるように、同じ周期(インストラ
クションサイクルt1)であるけれども、ROM期待値
入力信号の位相は、内部ROMデータDの位相より時間
t3、すなわちインストラクションサイクルt1の1/
2周期分遅れている。したがって、インストラクション
サイクルt1毎に、時間t4においてのみROM期待値
入力信号Cの値と内部ROMデータDの値とを比較する
ことができる。また、比較回路45では、比較回路45
においてデータの値を比較した結果、データの値が一致
した場合は、ROM判定出力信号Fをハイレベルで出力
し、一致しない場合は、ROM判定出力信号をローレベ
ルで出力する。また、ROMテストストローブ信号G
は、ROM判定出力信号が安定するタイミングで出力さ
れ、ROMデータストローブ信号Gに同期して、判定回
路出力信号Fのレベルを判断すると、正確な比較回路4
5の判定結果を得ることができる。Although the ROM expected value input signal C and the internal ROM data D have the same cycle (instruction cycle t1) as shown in FIG. 2, the phase of the ROM expected value input signal is the phase of the internal ROM data D. Time t3, that is, 1 / of the instruction cycle t1
Two cycles behind. Therefore, the value of the ROM expected value input signal C and the value of the internal ROM data D can be compared only at the time t4 for each instruction cycle t1. In the comparison circuit 45, the comparison circuit 45
If the data values match as a result of the comparison, the ROM determination output signal F is output at a high level, and if they do not match, the ROM determination output signal F is output at a low level. Also, ROM test strobe signal G
Is output at the timing when the ROM determination output signal stabilizes, and when the level of the determination circuit output signal F is determined in synchronization with the ROM data strobe signal G, the accurate comparison circuit 4
The determination result of 5 can be obtained.
【0027】図4は、比較回路45の電気回路図であ
る。比較回路45は、EX.NORゲート61〜6nお
よびANDゲート70から構成される。n個のEX.N
ORゲート61〜6nは、nビットから成る内部ROM
データDとROM期待値入力信号Cとを、対応する各ビ
ット毎に比較を行う。内部ROMデータDとROM期待
値入力Cの対応する各ビットにおける値が等しい場合、
すなわち、いずれの信号もローレベルまたはハイレベル
のとき、比較回路45の出力Eはハイレベルになる。FIG. 4 is an electric circuit diagram of the comparison circuit 45. The comparison circuit 45 uses the EX. It is composed of NOR gates 61 to 6n and an AND gate 70. n EX. N
The OR gates 61 to 6n are n-bit internal ROMs.
The data D and the ROM expected value input signal C are compared for each corresponding bit. When the values in the corresponding bits of the internal ROM data D and the expected ROM value input C are equal,
That is, when both signals are low level or high level, the output E of the comparison circuit 45 becomes high level.
【0028】したがって、内部ROMデータDとROM
期待値入力信号Cの対応するすべてのビットの値が等し
い場合は、ANDゲート70の入力はすべてハイレベル
になるので、ANDゲート70の出力、すなわち、RO
M判定出力信号Fはハイレベルとなる。また、内部RO
MデータDとROM期待値入力信号Cとの対応するビッ
トの値が1つでも異なると、ANDゲート70出力はロ
ーレベルになるので、ROM判定出力信号Fはローレベ
ルになる。Therefore, the internal ROM data D and the ROM
When the values of all corresponding bits of the expected value input signal C are equal, the inputs of the AND gate 70 are all at the high level, so that the output of the AND gate 70, that is, RO
The M determination output signal F becomes high level. Also, internal RO
If even one of the corresponding bit values of the M data D and the ROM expected value input signal C differs, the output of the AND gate 70 becomes low level, and the ROM determination output signal F becomes low level.
【0029】[0029]
【発明の効果】以上のように本発明によれば、記憶回路
の期待値入力と、中央演算処理回路への命令コードを時
分割して、同一の入力端子へ予め定める周期未満の周期
で、交互に入力を行い、その予め定める周期毎にそれぞ
れラッチすることによって、記憶回路および中央演算処
理回路の機能試験を同時に実行することができる。した
がって、この機能試験にかかる時間を大幅に短縮するこ
とができる。また、期待値入力と命令コードとを入力す
る端子を兼用することによって、入力端子の数も増加し
ない。As described above, according to the present invention, the expected value input of the memory circuit and the instruction code to the central processing unit are time-divided, and the same input terminal is cycled with a cycle shorter than a predetermined cycle. By alternately inputting and latching at each predetermined cycle, it is possible to simultaneously perform the functional tests of the memory circuit and the central processing unit. Therefore, the time required for this functional test can be significantly reduced. In addition, the number of input terminals does not increase by also using the terminals for inputting the expected value and the instruction code.
【0030】さらに、記憶回路の機能試験において、記
憶回路からの出力値と期待値とを比較する第2の比較回
路を内部に設けることによって、その判定結果のみを外
部に出力すればよいので、出力端子も大幅に削減するこ
とができる。Further, in the functional test of the memory circuit, the second comparison circuit for comparing the output value from the memory circuit with the expected value is provided inside, so that only the judgment result is output to the outside. Output terminals can also be significantly reduced.
【0031】したがって、本発明の半導体集積回路を用
いることによって、内蔵する中央演算処理回路および記
憶回路の機能テストを速く行うことができ、かつ半導体
集積回路の製造コストを低減することができる。Therefore, by using the semiconductor integrated circuit of the present invention, it is possible to quickly perform a functional test of the central processing unit and the memory circuit incorporated therein and to reduce the manufacturing cost of the semiconductor integrated circuit.
【図1】本発明の一実施例の半導体集積回路31および
その機能試験を行うための試験装置2の電気的構成を示
すブロック図である。FIG. 1 is a block diagram showing an electrical configuration of a semiconductor integrated circuit 31 and a test apparatus 2 for performing a functional test thereof according to an embodiment of the present invention.
【図2】図1で示される半導体集積回路31の機能試験
におけるタイムチャートである。FIG. 2 is a time chart in a functional test of the semiconductor integrated circuit 31 shown in FIG.
【図3】図1で示される試験兼用端子37を含む入力回
路の回路図である。3 is a circuit diagram of an input circuit including a test-purpose terminal 37 shown in FIG.
【図4】図1で示される比較回路45の電気回路図であ
る。FIG. 4 is an electric circuit diagram of a comparison circuit 45 shown in FIG.
【図5】従来の半導体集積回路1およびその機能試験を
行うための試験装置2の電気的構成を示すブロック図で
ある。FIG. 5 is a block diagram showing an electrical configuration of a conventional semiconductor integrated circuit 1 and a test apparatus 2 for performing a functional test thereof.
【図6】図5で示される外部インストラクション入力端
子7とROM出力端子16を示す回路図である。6 is a circuit diagram showing an external instruction input terminal 7 and a ROM output terminal 16 shown in FIG.
【図7】従来の試験用端子T1〜Tnを含む入力回路の
回路図である。FIG. 7 is a circuit diagram of an input circuit including conventional test terminals T1 to Tn.
【図8】従来の図7の試験端子を含む半導体集積回路の
機能試験におけるタイムチャートである。8 is a time chart in the functional test of the conventional semiconductor integrated circuit including the test terminal of FIG.
31 半導体集積回路 32 試験装置 33 CPU 34 ROM 35 カウンタ 36 試験用入力回路 37 試験兼用端子 38 発振回路 39 データバス 40 アドレスバス 42 RAM 41,45 比較回路 31 semiconductor integrated circuit 32 test device 33 CPU 34 ROM 35 counter 36 test input circuit 37 test shared terminal 38 oscillator circuit 39 data bus 40 address bus 42 RAM 41, 45 comparison circuit
Claims (1)
て、予め定める周期で動作を実行する中央演算処理回路
と、 前記予め定める周期でデータの読出しが行われる記憶回
路と、 機能試験時に、前記中央演算処理回路から出力される演
算処理結果と、予め記憶されているデータとを比較し
て、適否を判定する第1の比較回路と、 機能試験時に、前記記憶回路から読出されるデータと、
外部の試験装置から与えられる期待値データとを比較し
て、適否を判定する第2の比較回路と、 前記外部の試験装置から前記予め定める周期未満の周期
で交互に与えられる命令コードと期待値データとを、前
記予め定める周期の間保持して前記中央演算処理回路お
よび記憶回路にそれぞれ与える入力回路とを含むことを
特徴とする半導体集積回路。1. A central arithmetic processing circuit for executing an operation at a predetermined cycle based on an instruction code given from the outside, a memory circuit for reading data at the predetermined cycle, and a central circuit at the time of a functional test. A first comparison circuit that compares the operation processing result output from the operation processing circuit with prestored data to determine suitability; and data read from the storage circuit during a functional test.
A second comparison circuit for comparing the expected value data given from an external test device to determine suitability, and an instruction code and an expected value alternately given from the external test device in a cycle shorter than the predetermined cycle. A semiconductor integrated circuit, comprising: an input circuit that holds data and data for the predetermined period and supplies the data to the central processing unit and the storage circuit.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP5052627A JP2901828B2 (en) | 1993-03-12 | 1993-03-12 | Semiconductor integrated circuit |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP5052627A JP2901828B2 (en) | 1993-03-12 | 1993-03-12 | Semiconductor integrated circuit |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH06266576A true JPH06266576A (en) | 1994-09-22 |
| JP2901828B2 JP2901828B2 (en) | 1999-06-07 |
Family
ID=12920057
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP5052627A Expired - Fee Related JP2901828B2 (en) | 1993-03-12 | 1993-03-12 | Semiconductor integrated circuit |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2901828B2 (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6163862A (en) * | 1997-12-01 | 2000-12-19 | International Business Machines Corporation | On-chip test circuit for evaluating an on-chip signal using an external test signal |
| US7120035B2 (en) | 2002-05-06 | 2006-10-10 | O2Micro International Limited | Inverter controller |
-
1993
- 1993-03-12 JP JP5052627A patent/JP2901828B2/en not_active Expired - Fee Related
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6163862A (en) * | 1997-12-01 | 2000-12-19 | International Business Machines Corporation | On-chip test circuit for evaluating an on-chip signal using an external test signal |
| US7120035B2 (en) | 2002-05-06 | 2006-10-10 | O2Micro International Limited | Inverter controller |
Also Published As
| Publication number | Publication date |
|---|---|
| JP2901828B2 (en) | 1999-06-07 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| KR100493028B1 (en) | Circuit and method of generating mode register set(MRS) code in semiconductor memory device | |
| JP2901828B2 (en) | Semiconductor integrated circuit | |
| JPH10105426A (en) | Semiconductor integrated circuit | |
| EP1160668B1 (en) | Semiconductor integrated circuit and method of testing semiconductor integrated circuit | |
| JP3198997B2 (en) | Microcomputer and burn-in test method thereof | |
| US7062659B2 (en) | Apparatus for protecting code ROM data in code ROM test | |
| JP2552103B2 (en) | Semiconductor integrated circuit | |
| JPH05250900A (en) | Semiconductor integrated circuit with test function | |
| JPH0587885A (en) | Generation of inspection series | |
| JP2618669B2 (en) | Test mode setting circuit for semiconductor integrated circuit device | |
| JP2001228936A (en) | Microcomputer with internal reset signal generation circuit | |
| JP3605997B2 (en) | Semiconductor device | |
| US6389575B1 (en) | Data integrity checking apparatus | |
| JP2806026B2 (en) | Memory test circuit | |
| JP2897740B2 (en) | Test mode setting circuit | |
| JP2002350509A (en) | Semiconductor device | |
| JPS63108600A (en) | Semiconductor device | |
| JPH06150698A (en) | Semiconductor integrated circuit | |
| JP3260662B2 (en) | Logic simulation method | |
| JP2808303B2 (en) | IC device test equipment | |
| JPH10227842A (en) | Test pattern generator | |
| JP2891008B2 (en) | Setup time verification method | |
| JP2002100200A (en) | Semiconductor integrated circuit verification signal generation apparatus, semiconductor integrated circuit verification apparatus including the same, semiconductor integrated circuit verification signal generation method, and semiconductor integrated circuit verification method including the same | |
| JPS6116099B2 (en) | ||
| JPS601659B2 (en) | Memory protection method |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| LAPS | Cancellation because of no payment of annual fees |