JPS63163542A - Test circuit - Google Patents
Test circuitInfo
- Publication number
- JPS63163542A JPS63163542A JP61309767A JP30976786A JPS63163542A JP S63163542 A JPS63163542 A JP S63163542A JP 61309767 A JP61309767 A JP 61309767A JP 30976786 A JP30976786 A JP 30976786A JP S63163542 A JPS63163542 A JP S63163542A
- Authority
- JP
- Japan
- Prior art keywords
- input signal
- circuit
- test
- change
- read
- 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
Links
- 238000012360 testing method Methods 0.000 title claims abstract description 31
- 238000010586 diagram Methods 0.000 description 5
- 230000000694 effects Effects 0.000 description 2
- 230000004044 response Effects 0.000 description 1
- 230000000630 rising effect Effects 0.000 description 1
- 230000007704 transition Effects 0.000 description 1
Landscapes
- Tests Of Electronic Circuits (AREA)
- Test And Diagnosis Of Digital Computers (AREA)
Abstract
Description
【発明の詳細な説明】
[産業上の利用分野]
本発明は制御プログラム内蔵のマイクロコンピュータに
係り、特にマイクロコンピュータのテスト回路に関する
。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a microcomputer with a built-in control program, and more particularly to a test circuit for a microcomputer.
[従来の技術]
従来、制御プログラムを内蔵したマイクロコンピュータ
に付いて、製品として出荷する前に、該マイクロコンピ
ュータが所定の装置に搭載され、制御プログラムに従っ
て機能させられたときの動作(以下、実動作という)を
予めテストするには、制御プログラムの進行に従って各
々の所定時刻に外部から入力信号を供給し、予定されて
いる実動作がなされるか否かを判断していた。[Prior Art] Conventionally, when a microcomputer with a built-in control program is installed in a predetermined device and operated in accordance with the control program, its operation (hereinafter referred to as actual operation) is known. In order to test the operation in advance, an input signal is supplied from the outside at each predetermined time as the control program progresses, and it is determined whether or not the planned actual operation is performed.
すなわち、第3図に示されているマイクロコンピュータ
はアドレス情報305に対応した読み出し専用メモリ3
00のアドレスからプログラム命令301を解読器30
2に転送し、解読器302はプログラム命令301に基
づき制御信号303を制御処理回路304に供給する。That is, the microcomputer shown in FIG.
The decoder 30 reads the program instruction 301 from the address 00.
2, and the decoder 302 supplies a control signal 303 to the control processing circuit 304 based on the program instruction 301.
制御処理回路304は制御信号303に基づき所定の動
作を実行すると共に、新たなアドレス情報305の生成
、書き換え可能記憶装置307の記憶内容の変更、その
読み取り、アンド回路309を介して入力端子320か
ら人力情報を読み取るための制御信号308の生成及び
出力端子330への出力情報の転送を実行していた。The control processing circuit 304 executes predetermined operations based on the control signal 303 , generates new address information 305 , changes the storage contents of the rewritable storage device 307 , reads the same, and outputs data from the input terminal 320 via the AND circuit 309 . Generation of a control signal 308 for reading human input information and transfer of output information to an output terminal 330 were executed.
したがって、上記マイクロコンピュータの実動作をテス
トするにはマイクロコンピュータを集積回路テスタ装置
に接続し、マイクロコンピュータにプログラム命令を順
次実行させる。かかるプログラム命令の実行中に制御処
理回路304が制御信号308を出力するタイミングに
合わせて集積回路テスタ装置から入力信号群を入力端子
320に供給し、その結果、出力端子330に得られる
出力信号群を集積回路テスタ装置で期待値と比較し、マ
イクロコンピュータが正常に機能しているか否かを判断
する。かかるマイクロコンピュータのテストで使用する
テストパターンの一例を第4図に示す。Therefore, in order to test the actual operation of the microcomputer, the microcomputer is connected to an integrated circuit tester and the microcomputer is caused to sequentially execute program instructions. During the execution of such program instructions, a group of input signals is supplied from the integrated circuit tester device to the input terminal 320 in synchronization with the timing at which the control processing circuit 304 outputs the control signal 308, and as a result, a group of output signals obtained at the output terminal 330. is compared with the expected value using an integrated circuit tester to determine whether the microcomputer is functioning normally. An example of a test pattern used in testing such a microcomputer is shown in FIG.
[発明が解決しようとする問題点コ
しかしながら、上記集積回路テスタ装置によるマイクロ
コンピュータのテスト方式においては、予めマイクロコ
ンピュータに供給すべきテストパターンを制御信号30
8が発生するタイミングを正確に把握して入力端子32
0に供給しなければならず、制御信号の発生する時刻を
逐一確認した上で実動作のテストパターンを作成するの
に膨大な手間を要するという問題点があった。[Problems to be Solved by the Invention] However, in the microcomputer testing method using the above-mentioned integrated circuit tester device, the test pattern to be supplied to the microcomputer in advance is transmitted through the control signal 30.
8 occurs and input terminal 32.
0, and it takes a huge amount of effort to check the times at which the control signals are generated and to create a test pattern for actual operation.
本発明の目的は上記問題点を解決し、実動作の確認が容
易なテスト回路を提供することである。An object of the present invention is to solve the above problems and provide a test circuit whose actual operation can be easily confirmed.
[問題点を解決するための手段]
本発明は外部から供給される入力信号に対してプログラ
ム命令に基づく所定の処理を実行しその処理結果を外部
に出力するマイクロコンピュータのテスト回路にして、
該テスト回路は所定の入力信号の変化を記憶する記憶回
路と、プログラム命令の実行にともない上記入力信号を
読み込むタイミングが発生すると上記記憶回路から入力
信号の変化を読み出す読み出し制御回路とを有すること
を特徴としている。[Means for Solving the Problems] The present invention provides a test circuit for a microcomputer that executes predetermined processing based on program instructions on input signals supplied from the outside and outputs the processing results to the outside.
The test circuit includes a storage circuit that stores changes in a predetermined input signal, and a readout control circuit that reads changes in the input signal from the storage circuit when a timing to read the input signal occurs as a program instruction is executed. It is a feature.
[作用コ
上記構成にかかるテスト回路は、記憶回路に所定の入力
信号の変化を記憶させておくと、プログラム命令の実行
にともない上記入力信号を読み込むタイミングが発生す
ると読み出し制御回路が記憶回路から入力信号の変化を
自動的に読み出す。[Operation] The test circuit according to the above configuration stores changes in a predetermined input signal in the storage circuit, and when the timing to read the input signal occurs as a program instruction is executed, the readout control circuit detects the input signal from the storage circuit. Automatically read out signal changes.
[実施例]
第1図は本発明の第1実施例を示すブロック図であり、
同図中、番号101乃至108は従来例の構成300乃
至308に対応する構成を示している。109はオアゲ
ート、110はシフトレジスタ、111.112はアン
ドゲート、113はオアゲート、114はインバータ、
120は入力信号の印可される端子、130は出力端子
、140はテスト信号が印可されるテスト端子である。[Embodiment] FIG. 1 is a block diagram showing a first embodiment of the present invention,
In the figure, numbers 101 to 108 indicate structures corresponding to the structures 300 to 308 of the conventional example. 109 is an OR gate, 110 is a shift register, 111.112 is an AND gate, 113 is an OR gate, 114 is an inverter,
120 is a terminal to which an input signal is applied, 130 is an output terminal, and 140 is a test terminal to which a test signal is applied.
集積回路テスタ装置によりマイクロコンピュータのテス
トを行うときには、テスト端子140に論理値「0」が
供給されるが、マイクロコンピュータを所定の装置に組
み込んで実使用するときにはテスト端子140に論理値
「1」が供給される。When a microcomputer is tested by an integrated circuit tester device, a logic value "0" is supplied to the test terminal 140, but when the microcomputer is incorporated into a predetermined device and used for actual use, a logic value "1" is supplied to the test terminal 140. is supplied.
この実使用時には入力読み取り信号108が論理値「1
」なら入力端子120からの信号「1」はアンドゲート
111とオアゲート113とを介して制御処理回路10
4に供給される。During this actual use, the input read signal 108 has a logic value of "1".
”, the signal “1” from the input terminal 120 is sent to the control processing circuit 10 via the AND gate 111 and the OR gate 113.
4.
これに対して、テスト端子140に論理値「0」の供給
されるテスト時にはアンド回路111の出力は常時、論
理値「0」になるものの、インバータ114の出力は論
理値rlJになるので、シフトレジスタ110の最上位
ピッ)110aの出力が論理値「1」なら、制御信号1
08が論理値「1」に移行したときにアンドゲート11
2はオアゲー)1’13を介して論理値「1」を制御処
理回路104に送出する。シフトレジスタ110はオア
回路109の立ち下がりでシフトされるので、テスト信
号140が論理値「1」から論理値「0」に変化するタ
イミングおよび制御信号108が論理値「1」から論理
値「0」に変化するタイミングでシフトレジスタ110
の記憶内容は順次シフトされる。On the other hand, during the test when the logical value "0" is supplied to the test terminal 140, the output of the AND circuit 111 always becomes the logical value "0", but the output of the inverter 114 becomes the logical value rlJ, so the shift If the output of the register 110 (top pin) 110a is a logical value "1", the control signal 1
AND gate 11 when 08 transitions to logical value “1”
2 (or game) sends a logic value "1" to the control processing circuit 104 via 1'13. Since the shift register 110 is shifted at the falling edge of the OR circuit 109, the timing at which the test signal 140 changes from the logical value "1" to the logical value "0" and the timing at which the control signal 108 changes from the logical value "1" to the logical value "0" ” at the timing when the shift register 110 changes to
The memory contents of are shifted sequentially.
したがって、第2図に示されているように、まずテスト
信号140を変化させつつ論理値のパターンを端子12
0に供給すると該論理値のパターンはシフトレジスタ1
10のビット110a乃至110dに順次シフトされつ
つ記憶される。Therefore, as shown in FIG.
0, the logical value pattern is shifted to shift register 1.
The data is sequentially shifted and stored into 10 bits 110a to 110d.
次に、制御プログラムが実行されてアドレス情報105
が「01番地」・・・「80番地」・・rFO番地」と
変化し、これにともない読みだし専用メモリ100から
読み出されるプログラム命令101が実行されて、例え
ば「80番地」のときに制御信号108が論理値rOJ
から論理値「1」に、そして再び論理値「0」に変化す
るとシフトレジスタ110の最上位ビットが読み出され
、アンドゲート112、オアゲート113を介して制御
処理回路104に供給される。同様にrFO番地」のと
き再び制御信号108が論理値「0」から論理値「1」
へ、その後再び論理値「0」に変化すると既にビット1
10bからビット110aにシフトされている論理値「
0」がビット110aからアンドゲート112とオアゲ
ート113とを介して制御処理回路104に転送される
。Next, the control program is executed and the address information 105 is
changes to "address 01"..."address 80"...address rFO", and accordingly, the program instruction 101 read from the read-only memory 100 is executed, and for example, when the address is "address 80", the control signal is 108 is the logical value rOJ
When the logic value changes from 1 to 1, and then to 0 again, the most significant bit of shift register 110 is read out and supplied to control processing circuit 104 via AND gate 112 and OR gate 113. Similarly, when the rFO address is selected, the control signal 108 changes from the logic value "0" to the logic value "1".
, then when the logic value changes to “0” again, the bit is already 1.
Logic value being shifted from bit 10b to bit 110a
0'' is transferred from bit 110a to control processing circuit 104 via AND gate 112 and OR gate 113.
以上説明してきたように1本実施例ではシフトレジスタ
110に記憶されている論理値のパターンが制御信号1
08の変化に応答して順次制御処理回路104に転送さ
れるので予め制御信号の出力されるタイミングを考慮し
てテストパターンを作成する必要がなくなり、極めて容
易に実動作のテストが可能になった。As explained above, in this embodiment, the logical value pattern stored in the shift register 110 is the control signal 1.
Since the signals are sequentially transferred to the control processing circuit 104 in response to changes in 08, there is no need to create a test pattern in advance by considering the timing at which the control signals will be output, making it possible to test the actual operation extremely easily. .
第5図は本発明の第2実施例の構成を示すブロック図で
ある。本実施例では第1実施例のシフトレジスタ110
に代えて随時読み出し書き込みメモリ410を使用した
ものである。メモリ410への書き込みにはテスト信号
540の立ち下がりを利用し、読み出しには読み出し信
号508の立ち上がりを利用している。FIG. 5 is a block diagram showing the configuration of a second embodiment of the present invention. In this embodiment, the shift register 110 of the first embodiment
Instead, a read/write memory 410 is used. The falling edge of the test signal 540 is used for writing to the memory 410, and the rising edge of the read signal 508 is used for reading.
[発明の効果コ
以上説明してきたように、本発明は入力信号の変化が入
力信号の読み込みのタイミング発生にともない自動的に
記憶回路から読み出されるので、読み込みのタイミング
の発生する時刻を逐一確認することなく実動作のテスト
パターンを作成できテストパターン作成が極めて容易に
なるという効果が得られる。[Effects of the Invention] As explained above, in the present invention, changes in the input signal are automatically read out from the memory circuit as the input signal read timing occurs, so the time at which the read timing occurs is checked one by one. The effect is that test patterns for actual operation can be created without any trouble, and test pattern creation becomes extremely easy.
第1図は本発明の第1実施例の構成を示すブロック図、
第2図は第1実施例の動作を示すタイミングチャート図
、
第3図は従来例の構成を示すブロック図、第4図は従来
例の動作を示すタイミングチャート図、
第5図は本発明の第2実施例の構成を示すブロック図で
ある。
111.112.511.512
・・・・・・・・アンドゲート、
113.513・・・・・・オアゲート、114.51
4・・・・・・インバータ、109・・・・・・・・・
・オアゲート(読み出し制御回路)、
110・・・・・・・・・・シフトレジスタ(記憶回路
)、
410・・・・・・・・・・随時読み出し書き込みメモ
リ
(読み出し制御回路、
記憶回路)。
特許出願人 日本電気株式会社
代理人 弁理士 桑 井 清 −
第3図FIG. 1 is a block diagram showing the configuration of the first embodiment of the present invention, FIG. 2 is a timing chart showing the operation of the first embodiment, FIG. 3 is a block diagram showing the configuration of the conventional example, and FIG. 4 5 is a timing chart showing the operation of the conventional example, and FIG. 5 is a block diagram showing the configuration of the second embodiment of the present invention. 111.112.511.512 ......And gate, 113.513...Or gate, 114.51
4...Inverter, 109...
- OR gate (read control circuit), 110......shift register (memory circuit), 410......anytime read/write memory (read control circuit, memory circuit). Patent applicant Kiyoshi Kuwai, agent for NEC Corporation and patent attorney - Figure 3
Claims (1)
基づく所定の処理を実行しその処理結果を外部に出力す
るマイクロコンピュータのテスト回路にして、該テスト
回路は所定の入力信号の変化を記憶する記憶回路と、プ
ログラム命令の実行にともない上記入力信号を読み込む
タイミングが発生すると上記記憶回路から入力信号の変
化を読み出す読み出し制御回路とを有することを特徴と
するテスト回路。A test circuit for a microcomputer that executes predetermined processing based on a program instruction on an input signal supplied from the outside and outputs the processing result to the outside, and the test circuit has a memory that stores changes in the predetermined input signal. 1. A test circuit comprising: a circuit; and a read control circuit that reads changes in the input signal from the storage circuit when a timing to read the input signal occurs as a program instruction is executed.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP61309767A JPS63163542A (en) | 1986-12-25 | 1986-12-25 | Test circuit |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP61309767A JPS63163542A (en) | 1986-12-25 | 1986-12-25 | Test circuit |
Publications (1)
Publication Number | Publication Date |
---|---|
JPS63163542A true JPS63163542A (en) | 1988-07-07 |
Family
ID=17997018
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP61309767A Pending JPS63163542A (en) | 1986-12-25 | 1986-12-25 | Test circuit |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPS63163542A (en) |
-
1986
- 1986-12-25 JP JP61309767A patent/JPS63163542A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US4402081A (en) | Semiconductor memory test pattern generating apparatus | |
JPH02133834A (en) | In-circuit emulator | |
JPH04178580A (en) | Self diagnostic device for semiconductor memory | |
JPH0157824B2 (en) | ||
JPS63163542A (en) | Test circuit | |
JPH033200A (en) | Semiconductor memory | |
JPH0512900A (en) | Semiconductor storage containing test function and its test method | |
JPS60181851A (en) | Partial writing control system | |
JP2824853B2 (en) | Pattern data writing method | |
JP4253715B2 (en) | Processor | |
KR100542699B1 (en) | Device to support ROM dump mode of microcontroller | |
KR19990079373A (en) | Debugging with Boundary Scan Standard Interface on Microcontrollers | |
US7475300B2 (en) | Test circuit and test method | |
JPH07220499A (en) | Pattern generator | |
JPS62293452A (en) | Memory ic diagnosing circuit | |
JPH0315948A (en) | Address bus test system | |
JPS6379136A (en) | Microprogram controller | |
JPS5838879B2 (en) | fail memory | |
JPH0289300A (en) | Semiconductor memory element | |
JPS61262945A (en) | Storage device | |
JPS6116099B2 (en) | ||
JPH0266668A (en) | Data tracing method for multi-processor bus | |
JPH02264347A (en) | Memory testing system | |
JPH01205799A (en) | Memory circuit testing machine | |
JPS5936853A (en) | Operation processor |