JPH10326267A - Microcomputer and microcomputer test method - Google Patents
Microcomputer and microcomputer test methodInfo
- Publication number
- JPH10326267A JPH10326267A JP9134172A JP13417297A JPH10326267A JP H10326267 A JPH10326267 A JP H10326267A JP 9134172 A JP9134172 A JP 9134172A JP 13417297 A JP13417297 A JP 13417297A JP H10326267 A JPH10326267 A JP H10326267A
- Authority
- JP
- Japan
- Prior art keywords
- instruction
- stp
- wit
- standby
- microcomputer
- 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
Landscapes
- Debugging And Monitoring (AREA)
- Test And Diagnosis Of Digital Computers (AREA)
- Microcomputers (AREA)
Abstract
(57)【要約】
【課題】 テストパターンの“L”レベルの外部割り込
み入力のデバッグ作業には多大な時間がかかる。
【解決手段】 自己復帰ビット21に“1”が書き込ま
れた場合に、WIT命令またはSTP命令のテストと判
断して、WIT/STP制御回路部22およびポート制
御回路部23の機能により、WIT状態またはSTP状
態から自動復帰するようにし、VLSIテスターからの
“L”レベルの外部割り込み入力を不要にしたテストパ
ターンを用いることができ、テストパターンのデバッグ
作業の負担を軽減できる。
(57) [Problem] It takes a lot of time to debug an external interrupt input of “L” level of a test pattern. SOLUTION: When "1" is written to a self-return bit 21, it is judged that a test of a WIT instruction or an STP instruction is performed, and a function of a WIT / STP control circuit unit 22 and a port control circuit unit 23 causes a WIT state. Alternatively, it is possible to use a test pattern that automatically returns from the STP state and does not require an external interrupt input of “L” level from the VLSI tester, thereby reducing the burden of debugging the test pattern.
Description
【0001】[0001]
【発明の属する技術分野】この発明は、試験装置により
供給されたテストパターンに応じてテストされるマイク
ロコンピュータおよびマイクロコンピュータのテスト方
法に関するものである。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a microcomputer which is tested in accordance with a test pattern supplied by a test apparatus, and to a microcomputer test method.
【0002】[0002]
【従来の技術】図4は従来のマイクロコンピュータの待
機制御回路を示す回路図であり、図において、1はスト
ップ命令(以下、STP命令と言う)の実行時にリセッ
トするフリップフロップであり、このフリップフロップ
1は、STP命令の実行時に源クロック制御回路(図示
せず)を制御するものである。2はウエイト命令(以
下、WIT命令と言う)の実行時にリセットするフリッ
プフロップであり、このフリップフロップ2は、WIT
命令の実行時に内部クロック制御回路(図示せず)を制
御するものである。3はフリップフロップ2と同様なフ
リップフロップであるが、このフリップフロップ3は、
STP命令の実行時に内部クロック制御回路を制御する
ものである。2. Description of the Related Art FIG. 4 is a circuit diagram showing a standby control circuit of a conventional microcomputer. In the figure, reference numeral 1 denotes a flip-flop which is reset when a stop instruction (hereinafter, referred to as an STP instruction) is executed. Step 1 controls a source clock control circuit (not shown) when the STP instruction is executed. Reference numeral 2 denotes a flip-flop which is reset when a wait instruction (hereinafter, referred to as a WIT instruction) is executed.
It controls an internal clock control circuit (not shown) when executing an instruction. 3 is a flip-flop similar to the flip-flop 2, but this flip-flop 3
This controls the internal clock control circuit when the STP instruction is executed.
【0003】4はウオッチドッグタイマ(以下、WDT
と言う)とリセット信号との論理和を採るオアゲートで
あり、このオアゲート4によりWDTとリセット信号の
うちのどちらかの信号が“H”レベルであればフリップ
フロップ3をセットするものである。5は割り込み禁止
フラグと割り込み要求信号の論理積を採るアンドゲー
ト、6はアンドゲート5の出力とリセット信号との論理
和を採るオアゲートであり、これらアンドゲート5およ
びオアゲート6により、リセット時、または、割り込み
要求があり、且つ割り込みが許可されている時にフリッ
プフロップ1,2をセットするものである。[0003] Reference numeral 4 denotes a watch dog timer (hereinafter, WDT).
The OR gate takes the logical sum of the reset signal and the OR signal. If either of the WDT and the reset signal is at "H" level by the OR gate 4, the flip-flop 3 is set. Reference numeral 5 denotes an AND gate that takes the logical product of the interrupt disable flag and the interrupt request signal, and 6 denotes an OR gate that takes the logical sum of the output of the AND gate 5 and the reset signal. The flip-flops 1 and 2 are set when there is an interrupt request and the interrupt is permitted.
【0004】7はフリップフロップ2とフリップフロッ
プ3の出力の論理積を採るアンドゲート、8はアンドゲ
ート7の出力と内部源クロックの論理積を採り、内部ク
ロックとするアンドゲートである。また、図5は従来の
マイクロコンピュータのポート回路を示す回路図であ
り、図において、11はポート端子、12はトライステ
ートバッファである。[0004] Reference numeral 7 denotes an AND gate which takes the logical product of the outputs of the flip-flop 2 and the flip-flop 3, and 8 denotes the AND gate which takes the logical product of the output of the AND gate 7 and the internal source clock and uses it as an internal clock. FIG. 5 is a circuit diagram showing a port circuit of a conventional microcomputer. In the figure, reference numeral 11 denotes a port terminal, and 12 denotes a tristate buffer.
【0005】次に動作について説明する。マイクロコン
ピュータ(以下、マイコンと言う)のテストは、VLS
Iテスターと呼ばれる集積回路検査装置で行われてい
る。VLSIテスターにはマイコンの各端子に対応する
チェックピンが存在し、様々な動作モードでテストパタ
ーンと呼ばれるプログラムを走らせ、そのプログラムに
対するマイコンの出力値をチェックしている。テストパ
ターンは、主にテストパターンジェネレータ(以下、T
PGと言う)によって作成されるが、その元となってい
るのがマイコンのロジックシミュレーションである。つ
まり、ロジックシミュレーションでの各命令実行体系が
そのままTPGを使ってテストパターンに変換されてい
る。Next, the operation will be described. Microcomputer (hereinafter referred to as “microcomputer”) tests are performed by VLS
It is performed by an integrated circuit inspection device called an I tester. The VLSI tester has check pins corresponding to each terminal of the microcomputer, runs a program called a test pattern in various operation modes, and checks the output value of the microcomputer for the program. The test pattern is mainly a test pattern generator (hereinafter, T
PG), which is based on the logic simulation of the microcomputer. That is, each instruction execution system in the logic simulation is directly converted into a test pattern using TPG.
【0006】図4において、割り込み禁止フラグを割り
込み許可、即ち、“L”レベルに設定してテストパター
ン上のWIT命令を実行すると、フリップフロップ2に
より内部クロックが、また、STP命令を実行すると、
フリップフロップ1,3により源クロックと内部クロッ
クの両方が停止する。割り込み禁止フラグが“L”レベ
ルに設定されているので、WIT命令では、テストパタ
ーンによるVLSIテスターからの“L”レベル入力の
外部割り込みがあれば、フリップフロップ2がセットさ
れ内部クロックの動作を再開し、割り込み処理を経たW
IT状態から復帰する。また、STP命令では、源クロ
ックの動作を再開し、WDTによる発振安定を待った後
に割り込み処理を行い、STP状態から復帰する。In FIG. 4, when an interrupt disable flag is set to enable an interrupt, that is, set to "L" level and a WIT instruction on a test pattern is executed, an internal clock is generated by a flip-flop 2 and when an STP instruction is executed,
The flip-flops 1 and 3 stop both the source clock and the internal clock. Since the interrupt disable flag is set to “L” level, if there is an external interrupt of “L” level input from the VLSI tester according to the test pattern in the WIT instruction, the flip-flop 2 is set and the operation of the internal clock is resumed W after interrupt processing
Return from the IT state. In addition, in the STP instruction, the operation of the source clock is restarted, and after waiting for oscillation stabilization by the WDT, an interrupt process is performed, and the operation returns from the STP state.
【0007】なお、図5において、VLSIテスターか
らの入力の際には、トライステートバッファ12をオフ
し、ポート端子11からWIT命令およびSTP命令を
入力する。また、VLSIテスターへの出力の際には、
トライステートバッファ12をオンし、内部回路からの
出力値をポート端子11から出力する。テストパターン
には、動作中のマイコン各端子の状態および入出力され
る信号レベルを全て記述してあり、実チップがその通り
の動作をすれば『GO』、異なる動作をして出力値が1
つでもテストパターンと異なれば『NG』と判定してい
る。In FIG. 5, upon input from the VLSI tester, the tri-state buffer 12 is turned off, and a WIT instruction and an STP instruction are input from the port terminal 11. When outputting to the VLSI tester,
The tri-state buffer 12 is turned on, and the output value from the internal circuit is output from the port terminal 11. In the test pattern, the state of each terminal of the microcomputer during operation and the signal level to be input / output are all described. If the actual chip performs the same operation, "GO";
If any one is different from the test pattern, it is determined to be "NG".
【0008】[0008]
【発明が解決しようとする課題】従来のマイクロコンピ
ュータは以上のように構成されているので、マイクロコ
ンピュータが製品上問題のない動作をしていても、VL
SIテスターからの“L”レベルの外部割り込み入力の
タイミングのずれ等でテストパターンと合致した動作を
しなければ『NG』となる現象が起こる。これによる問
題を避けるために、通常はテストパターンのデバッグを
行い、テストパターンとのミスマッチで『NG』となら
ないようにしている。しかしながら、このデバッグ作業
には多大な時間がかかるため、開発工期短縮の妨げにな
るなどの課題があった。Since the conventional microcomputer is configured as described above, even if the microcomputer operates without any problem on the product, the VL
If the operation does not match the test pattern due to the timing shift of the external interrupt input of “L” level from the SI tester, a phenomenon of “NG” occurs. In order to avoid a problem due to this, the test pattern is usually debugged so that "NG" is not caused by a mismatch with the test pattern. However, since this debugging operation takes a lot of time, there are problems such as hindering shortening of the development period.
【0009】この発明は上記のような課題を解決するた
めになされたもので、待機状態を自動的に自己解除し、
待機状態を解除するためのテストパターンの外部割り込
み入力を不要にして、テストパターンのデバッグ作業の
負担を軽減できるマイクロコンピュータおよびマイクロ
コンピュータのテスト方法を得ることを目的とする。SUMMARY OF THE INVENTION The present invention has been made to solve the above problems, and automatically cancels a standby state by itself.
It is an object of the present invention to provide a microcomputer and a microcomputer test method which can reduce the load of test pattern debugging work by eliminating the need for an external interrupt input of a test pattern for canceling a standby state.
【0010】[0010]
【課題を解決するための手段】請求項1記載の発明に係
るマイクロコンピュータは、待機命令のテスト時のみに
特定値を保持する特定値保持部と、待機命令に応じて周
辺機能を待機状態にすると共に、その待機命令が成され
且つ特定値保持部に特定値が保持されている場合に待機
状態解除信号を出力する待機制御部と、特定値保持部に
特定値が保持されている場合にポート端子からの外部入
力を遮断し、待機制御部からの待機状態解除信号に応じ
て割り込み信号を出力するポート制御部と、その割り込
み信号に応じて待機制御部に待機状態からの復帰を指示
する割り込み制御部とを備えたものである。According to a first aspect of the present invention, a microcomputer holds a specific value only when a standby instruction is tested, and sets a peripheral function in a standby state according to the standby instruction. And a standby control unit that outputs a standby state release signal when the standby instruction is issued and the specific value is held in the specific value holding unit, and when the specific value is held in the specific value holding unit. A port control unit that interrupts an external input from a port terminal and outputs an interrupt signal in response to a standby state release signal from the standby control unit, and instructs the standby control unit to return from the standby state according to the interrupt signal. And an interrupt control unit.
【0011】請求項2記載の発明に係るマイクロコンピ
ュータは、待機状態解除信号を任意の時間経過後に出力
する遅延時間制御部を備えたものである。According to a second aspect of the present invention, there is provided a microcomputer including a delay time control unit for outputting a standby state release signal after an elapse of an arbitrary time.
【0012】請求項3記載の発明に係るマイクロコンピ
ュータは、試験装置の外部入力または中央演算処理装置
から特定値保持部に特定値を入力するようにしたもので
ある。According to a third aspect of the present invention, a specific value is input to a specific value holding unit from an external input of a test apparatus or a central processing unit.
【0013】請求項4記載の発明に係るマイクロコンピ
ュータのテスト方法は、マイクロコンピュータに供給す
るテストパターンには待機状態からの解除を示す信号を
除くテストパターンを用いるようにしたものである。According to a fourth aspect of the present invention, in the microcomputer test method, a test pattern excluding a signal indicating release from the standby state is used as a test pattern supplied to the microcomputer.
【0014】[0014]
【発明の実施の形態】以下、この発明の実施の一形態を
説明する。 実施の形態1.図1はこの発明の実施の形態1によるマ
イクロコンピュータを示す回路図であり、図において、
11はポート端子、12はトライステートバッファであ
る。また、21はWIT命令およびSTP命令のテスト
時のみに中央演算処理装置(以下、CPUと言う)によ
り“1”(特定値)が書き込まれる自己復帰ビット(特
定値保持部)、22はWIT命令およびSTP命令に応
じて周辺機能をWIT状態およびSTP状態にすると共
に、それらWIT命令またはSTP命令が成され、且つ
自己復帰ビット21に“1”が保持されている場合にW
IT/STP状態解除信号を出力するWIT/STP制
御回路部(待機制御部)である。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS One embodiment of the present invention will be described below. Embodiment 1 FIG. FIG. 1 is a circuit diagram showing a microcomputer according to Embodiment 1 of the present invention.
11, a port terminal; and 12, a tri-state buffer. Reference numeral 21 denotes a self-recovery bit (specific value holding unit) into which "1" (specific value) is written by a central processing unit (hereinafter referred to as CPU) only when testing a WIT instruction and an STP instruction. And the peripheral functions are set to the WIT state and the STP state in accordance with the STP instruction, and when the WIT instruction or the STP instruction is executed and "1" is held in the self-return bit 21, W
A WIT / STP control circuit unit (standby control unit) that outputs an IT / STP state release signal.
【0015】23は自己復帰ビット21に“1”が保持
されている場合に、即ち、テスト時にポート端子11か
らの外部入力を遮断し、WIT/STP制御回路部22
からのWIT/STP状態解除信号に応じて割り込み信
号Aを出力するポート制御回路部(ポート制御部)であ
る。なお、このポート制御回路部23は、通常時におい
ては、単純にポート端子11とのポート入出力信号を通
過させるものである。24はそのポート制御回路部23
からの割り込み信号Aに応じて、WIT/STP制御回
路部22にWIT状態およびSTP状態からの復帰を指
示する割り込み制御回路部(割り込み制御部)である。Reference numeral 23 denotes a case where "1" is held in the self-recovery bit 21, that is, the external input from the port terminal 11 is cut off during the test, and the WIT / STP control circuit 22
A port control circuit unit (port control unit) that outputs an interrupt signal A in response to a WIT / STP state release signal from the CPU. It should be noted that the port control circuit section 23 simply passes a port input / output signal to / from the port terminal 11 in normal times. 24 is the port control circuit unit 23
An interrupt control circuit unit (interrupt control unit) that instructs the WIT / STP control circuit unit 22 to return from the WIT state and the STP state in response to an interrupt signal A from the CPU.
【0016】次に動作について説明する。マイコンのテ
ストは、VLSIテスターと呼ばれる集積回路検査装置
で行われている。VLSIテスターにはマイコンの各端
子に対応するチェックピンが存在し、様々な動作モード
でテストパターンと呼ばれるプログラムを走らせ、その
プログラムに対するマイコンの出力値をチェックしてい
る。テストパターンは、主にTPGによって作成される
が、その元となっているのがマイコンのロジックシミュ
レーションである。つまり、ロジックシミュレーション
での各命令実行体系がそのままTPGを使ってテストパ
ターンに変換されている。Next, the operation will be described. The test of the microcomputer is performed by an integrated circuit inspection device called a VLSI tester. The VLSI tester has check pins corresponding to each terminal of the microcomputer, runs a program called a test pattern in various operation modes, and checks the output value of the microcomputer for the program. The test pattern is mainly created by the TPG, and the source is a logic simulation of the microcomputer. That is, each instruction execution system in the logic simulation is directly converted into a test pattern using TPG.
【0017】図1において、WIT命令またはSTP命
令のテストの直前にCPUにより自己復帰ビット21に
“1”を書き込み、テストパターン上のWIT命令また
はSTP命令を実行する場合を想定する。CPUがWI
T命令またはSTP命令を実行すると、WIT/STP
制御回路部22は、マイコンの各周辺機能をWIT状態
またはSTP状態にする。この時、自己復帰ビット21
に“1”が書き込まれているので、ポート制御回路部2
3はアクティブになり、ポート端子11からの外部入力
を遮断する。また、WIT/STP制御回路部22は、
自己復帰ビット21に“1”が書き込まれているので、
ポート制御回路部23にWIT/STP状態解除信号を
出力する。ポート制御回路部23は、このWIT/ST
P状態解除信号の入力に応じてWIT命令またはSTP
命令の実行後に、“L”レベルの割り込み信号Aを出力
する。In FIG. 1, it is assumed that the CPU writes "1" to the self-recovery bit 21 immediately before the test of the WIT instruction or the STP instruction and executes the WIT instruction or the STP instruction on the test pattern. CPU is WI
When the T instruction or STP instruction is executed, WIT / STP
The control circuit unit 22 sets each peripheral function of the microcomputer to the WIT state or the STP state. At this time, the self-return bit 21
Is written in the port control circuit unit 2
3 becomes active and shuts off the external input from the port terminal 11. The WIT / STP control circuit unit 22
Since "1" is written in the self-return bit 21,
A WIT / STP state release signal is output to the port control circuit unit 23. The port control circuit unit 23 uses the WIT / ST
WIT instruction or STP according to input of P state release signal
After the execution of the instruction, an "L" level interrupt signal A is output.
【0018】この“L”レベルの割り込み信号Aを割り
込み制御回路部24は、“L”レベルの外部割り込み入
力と判断し、WIT/STP制御回路部22にWIT状
態またはSTP状態からの復帰を指示する。WIT状態
またはSTP状態からの復帰後は、さらに、WIT/S
TP制御回路部22がポート制御回路部23に対して信
号を出力し、ポート制御回路部23は“L”レベルから
元の“H”レベルの信号出力に戻す。なお、自己復帰ビ
ット21に“1”が書き込まれていない時は、ポート制
御回路部23がインアクティブなのでポート端子11
は、通常のポート入出力機能となる。The interrupt control circuit 24 determines that the "L" level interrupt signal A is an "L" level external interrupt input, and instructs the WIT / STP control circuit 22 to return from the WIT state or the STP state. I do. After returning from the WIT state or the STP state, WIT / S
The TP control circuit unit 22 outputs a signal to the port control circuit unit 23, and the port control circuit unit 23 returns the signal output from the “L” level to the original “H” level. When "1" is not written in the self-recovery bit 21, the port control circuit unit 23 is inactive and the port terminal 11 is inactive.
Is a normal port input / output function.
【0019】以上のように、この実施の形態1によれ
ば、自己復帰ビット21に“1”が書き込まれた場合
に、WIT命令またはSTP命令のテストと判断して、
WIT/STP制御回路部22およびポート制御回路部
23の機能により、WIT状態またはSTP状態から自
動復帰するようにしたので、従来技術でのVLSIテス
ターからの“L”レベルの外部割り込み入力を不要にし
たテストパターンを用いることができ、テストパターン
のデバッグ作業の負担を軽減できる。As described above, according to the first embodiment, when "1" is written to the self-recovery bit 21, it is determined that the test is the WIT instruction or the STP instruction.
By automatically returning from the WIT state or the STP state by the functions of the WIT / STP control circuit section 22 and the port control circuit section 23, there is no need to input an "L" level external interrupt from a VLSI tester in the prior art. The test pattern can be used, and the burden of debugging the test pattern can be reduced.
【0020】実施の形態2.図2はこの発明の実施の形
態2によるポート制御回路部の詳細を示す回路図であ
り、図において、31はWIT/STP制御回路部22
からのWIT/STP状態解除信号に応じて“H”レベ
ルを出力するフリップフロップ、32は自己復帰ビット
21に“1”が保持されている場合に、アクティブにす
るクロックドインバータである。その他の構成は、図1
と同様なのでその重複する説明を省略する。Embodiment 2 FIG. 2 is a circuit diagram showing details of a port control circuit unit according to a second embodiment of the present invention. In the figure, reference numeral 31 denotes a WIT / STP control circuit unit 22.
A flip-flop 32 that outputs an "H" level in response to a WIT / STP state release signal from the CPU, and 32 is a clocked inverter that is activated when the self-return bit 21 holds "1". Other configurations are shown in FIG.
Since it is the same as that described above, the duplicate description is omitted.
【0021】次に動作について説明する。図2におい
て、WIT命令またはSTP命令のテストの直前にCP
Uにより自己復帰ビット21に“1”を書き込むと、ク
ロックドインバータ32はアクティブになる。また、W
IT/STP制御回路部22からのWIT/STP状態
解除信号が入力されるまでは、フリップフロップ31は
クロックドインバータ32に“L”レベルを出力してい
る。従って、クロックドインバータ32の出力は“H”
レベルにプルアップされている。この時点では、割り込
み制御回路部24には“H”レベルが出力されている。Next, the operation will be described. In FIG. 2, immediately before the test of the WIT instruction or the STP instruction, the CP
When "1" is written to the self-return bit 21 by U, the clocked inverter 32 becomes active. Also, W
Until the WIT / STP state release signal is input from the IT / STP control circuit unit 22, the flip-flop 31 outputs the “L” level to the clocked inverter 32. Therefore, the output of the clocked inverter 32 is "H".
Has been pulled up to the level. At this point, the “H” level is output to the interrupt control circuit unit 24.
【0022】WIT命令またはSTP命令を実行する
と、WIT/STP制御回路部22からWIT/STP
状態解除信号がフリップフロップ31に出力されるた
め、フリップフロップ31は“H”レベルを出力する。
従って、クロックドインバータ32は“H”レベルから
“L”レベルの割り込み信号Aに変化し、この“L”レ
ベルの割り込み信号Aを割り込み制御回路部24は、
“L”レベルの外部割り込み入力と判断し、WIT/S
TP制御回路部22にWIT状態またはSTP状態から
の復帰を指示する。WIT状態またはSTP状態からの
復帰後は、さらに、WIT/STP制御回路部22がフ
リップフロップ31に対して“L”レベルを出力し、フ
リップフロップ31は“L”レベルから元の“H”レベ
ルの信号出力に戻す。なお、自己復帰ビット21に
“1”が書き込まれていない時は、クロックドインバー
タ32がインアクティブなのでポート端子11は、通常
のポート入出力機能となる。When the WIT instruction or STP instruction is executed, the WIT / STP control
Since the state release signal is output to flip-flop 31, flip-flop 31 outputs an "H" level.
Accordingly, the clocked inverter 32 changes from the “H” level to the “L” level interrupt signal A, and the interrupt control circuit 24 sends the “L” level interrupt signal A to the
Judge as "L" level external interrupt input, WIT / S
It instructs the TP control circuit unit 22 to return from the WIT state or the STP state. After returning from the WIT state or the STP state, the WIT / STP control circuit unit 22 further outputs an “L” level to the flip-flop 31, and the flip-flop 31 changes from the “L” level to the original “H” level. To the signal output of When "1" is not written in the self-recovery bit 21, the clocked inverter 32 is inactive, so that the port terminal 11 has a normal port input / output function.
【0023】以上のように、この実施の形態2によれ
ば、自己復帰ビット21に“1”が書き込まれた場合
に、WIT命令またはSTP命令のテストと判断して、
WIT/STP制御回路部22およびフリップフロップ
31,クロックドインバータ32の機能により、WIT
状態またはSTP状態から自動復帰するようにしたの
で、従来技術でのVLSIテスターからの“L”レベル
の外部割り込み入力を不要にしたテストパターンを用い
ることができ、テストパターンのデバッグ作業の負担を
軽減できる。As described above, according to the second embodiment, when "1" is written to the self-return bit 21, it is determined that the test is the WIT instruction or the STP instruction.
The functions of the WIT / STP control circuit 22, the flip-flop 31, and the clocked inverter 32 enable
Since the automatic return from the state or the STP state is performed, it is possible to use a test pattern which does not require the input of an “L” level external interrupt from the VLSI tester in the related art, thereby reducing the burden of debugging the test pattern. it can.
【0024】実施の形態3.図3はこの発明の実施の形
態3によるWIT/STP制御回路部の詳細を示す回路
図であり、図において、1はSTP命令の実行時にリセ
ットするフリップフロップであり、このフリップフロッ
プ1は、STP命令の実行時に源クロック制御回路(図
示せず)を制御するものである。2はWIT命令の実行
時にリセットするフリップフロップであり、このフリッ
プフロップ2は、WIT命令の実行時に内部クロック制
御回路(図示せず)を制御するものである。3はフリッ
プフロップ2と同様なフリップフロップであるが、この
フリップフロップ3は、STP命令の実行時に内部クロ
ック制御回路を制御するものである。Embodiment 3 FIG. FIG. 3 is a circuit diagram showing details of a WIT / STP control circuit unit according to a third embodiment of the present invention. In the figure, reference numeral 1 denotes a flip-flop that resets when an STP instruction is executed. It controls a source clock control circuit (not shown) when executing an instruction. Reference numeral 2 denotes a flip-flop that resets when the WIT instruction is executed. The flip-flop 2 controls an internal clock control circuit (not shown) when the WIT instruction is executed. Reference numeral 3 denotes a flip-flop similar to the flip-flop 2, but the flip-flop 3 controls the internal clock control circuit when the STP instruction is executed.
【0025】4はWDTとリセット信号との論理和を採
るオアゲートであり、このオアゲート4によりWDTと
リセット信号のうちのどちらかの信号が“H”レベルで
あればフリップフロップ3をセットするものである。5
は割り込み禁止フラグと割り込み要求信号の論理積を採
るアンドゲート、6はアンドゲート5の出力とリセット
信号との論理和を採るオアゲートであり、これらアンド
ゲート5およびオアゲート6により、リセット時、また
は、割り込み要求があり、且つ割り込みが許可されてい
る時にフリップフロップ1,2をセットするものであ
る。7はフリップフロップ2とフリップフロップ3の出
力の論理積を採るアンドゲート、8はアンドゲート7の
出力と内部源クロックの論理積を採り、内部クロックと
するアンドゲートである。以上、従来技術として示した
図4と同様である。An OR gate 4 takes the logical sum of the WDT and the reset signal. The OR gate 4 sets the flip-flop 3 when either the WDT or the reset signal is at "H" level. is there. 5
Is an AND gate that takes the logical product of the interrupt disable flag and the interrupt request signal, and 6 is an OR gate that takes the logical sum of the output of the AND gate 5 and the reset signal. The flip-flops 1 and 2 are set when there is an interrupt request and the interrupt is permitted. Reference numeral 7 denotes an AND gate that calculates the logical product of the outputs of the flip-flop 2 and the flip-flop 3, and reference numeral 8 denotes an AND gate that calculates the logical product of the output of the AND gate 7 and the internal source clock and uses the logical product as the internal clock. The above is the same as FIG. 4 shown as the prior art.
【0026】また、41はWIT命令とSTP命令の論
理和を採るオアゲート、42は自己復帰ビット21から
の信号とオアゲート41の出力信号との論理積を採るア
ンドゲートである。43はクロック源をカウントし、任
意の時間経過後にWIT/STP状態解除信号を出力す
るカウンタ(遅延時間制御部)、44はそのカウンタ4
3を使用するかしないかを選択する選択回路、45はC
PUにより“0”または“1”が設定され、選択回路4
4を切り替える選択ビット、46はカウンタ43のカウ
ントソースを内部クロック源または外部クロック源に切
り替える切替回路である。Reference numeral 41 denotes an OR gate which takes the logical sum of the WIT instruction and the STP instruction, and reference numeral 42 denotes an AND gate which takes the logical product of the signal from the self-return bit 21 and the output signal of the OR gate 41. 43 is a counter (delay time control unit) that counts clock sources and outputs a WIT / STP state release signal after an elapse of an arbitrary time.
3 is a selection circuit for selecting whether or not to use 3;
The PU sets “0” or “1”, and the selection circuit 4
A selection bit 46 for switching 4 is a switching circuit for switching the count source of the counter 43 to an internal clock source or an external clock source.
【0027】次に動作について説明する。図3におい
て、WIT命令またはSTP命令のテストの直前にCP
Uにより自己復帰ビット21に“1”を書き込んだ状態
で、テストパターン上のWIT命令を実行すると、フリ
ップフロップ2により内部クロックが、また、STP命
令を実行すると、フリップフロップ1,3により源クロ
ックと内部クロックの両方が停止する。この時、WIT
命令またはSTP命令によりオアゲート41が“H”レ
ベルを出力し、また、自己復帰ビット21の“1”とそ
のオアゲート41の“H”レベルの出力により、アンド
ゲート42から“H”レベルが出力される。Next, the operation will be described. In FIG. 3, immediately before the test of the WIT instruction or the STP instruction, the CP
When the WIT instruction on the test pattern is executed with “1” written to the self-return bit 21 by U, the internal clock is output by the flip-flop 2, and when the STP instruction is executed, the source clock is output by the flip-flops 1 and 3. And the internal clock both stop. At this time, WIT
The OR gate 41 outputs an "H" level by the instruction or the STP instruction, and the "H" level is output from the AND gate 42 by the "1" of the self-return bit 21 and the "H" level output of the OR gate 41. You.
【0028】この信号が、WIT/STP状態解除信号
になる。また、割り込み制御回路部24からのWIT状
態またはSTP状態からの復帰信号は、割り込み要求と
してアンドゲート5に入力され、フリップフロップ1〜
3をセットする。これにより、内部クロック制御回路お
よび源クロック制御回路に信号が出力され、マイコンは
WIT状態およびSTP状態から復帰する。同時に割り
込みにより“L”レベルになったポート制御回路部23
の出力を“H”レベルに戻すため、フリップフロップ
1,2からの信号がポート制御回路部23へも伝達され
る。This signal becomes the WIT / STP state release signal. A return signal from the WIT state or the STP state from the interrupt control circuit unit 24 is input to the AND gate 5 as an interrupt request, and the flip-flops 1 to
Set 3 As a result, a signal is output to the internal clock control circuit and the source clock control circuit, and the microcomputer returns from the WIT state and the STP state. At the same time, the port control circuit unit 23 which has become “L” level due to the interrupt
Is returned to the “H” level, the signals from the flip-flops 1 and 2 are also transmitted to the port control circuit unit 23.
【0029】さらに、選択ビット45に“1”を設定し
ておくと、WIT命令またはSTP命令が実行された時
に、アンドゲート42から出力された信号が選択回路4
4により切り替えられカウンタ43に入力される。カウ
ンタ43は、任意の値に設定できるので、WIT命令時
は内部クロック源を切替回路46で選択してダウンカウ
ントを行い、オーバーフロー信号をポート制御回路部2
3に出力する。これにより、WIT命令実行から任意の
時間後に復帰が可能となる。また、STP命令を実行す
る場合は、内部クロックが全て停止してしまうので、切
替回路46で外部クロック源を選択することによりカウ
ンタ43を用いることができる。Further, if the selection bit 45 is set to "1", the signal output from the AND gate 42 when the WIT instruction or the STP instruction is executed
4 and is input to the counter 43. Since the counter 43 can be set to an arbitrary value, at the time of a WIT instruction, the internal clock source is selected by the switching circuit 46 to count down, and the overflow signal is output to the port control circuit unit 2.
Output to 3. As a result, it is possible to return after an arbitrary time from the execution of the WIT instruction. When the STP instruction is executed, all the internal clocks are stopped, so that the counter 43 can be used by selecting an external clock source by the switching circuit 46.
【0030】以上のように、この実施の形態3によれ
ば、カウンタ43を任意の値に設定することにより、W
IT命令またはSTP命令実行から任意の時間後に復帰
が可能となり、WIT命令中またはSTP命令中のポー
ト出力値をチェックするプログラムにおいて有効とな
る。なお、上記実施の形態1から実施の形態3では、C
PUにより自己復帰ビット21に“1”を書き込んだ
が、VLSIテスター(試験装置)の外部入力により、
任意の端子へ特定の電圧レベル(例えば、VCCレベル
の2倍等)を入力して、自己復帰ビット21に“1”を
書き込んでも良い。As described above, according to the third embodiment, by setting the counter 43 to an arbitrary value, W
It is possible to return after an arbitrary time from the execution of the IT instruction or the STP instruction, and this is effective in a program for checking the port output value during the WIT instruction or the STP instruction. In the first to third embodiments, C
Although "1" is written to the self-return bit 21 by the PU, the external input of the VLSI tester (test device)
A specific voltage level (for example, twice the VCC level) may be input to an arbitrary terminal, and “1” may be written to the self-recovery bit 21.
【0031】[0031]
【発明の効果】以上のように、請求項1記載の発明によ
れば、待機命令のテスト時のみに特定値を保持する特定
値保持部と、待機命令に応じて周辺機能を待機状態にす
ると共に、その待機命令が成され且つ特定値保持部に特
定値が保持されている場合に待機状態解除信号を出力す
る待機制御部と、特定値保持部に特定値が保持されてい
る場合にポート端子からの外部入力を遮断し、待機制御
部からの待機状態解除信号に応じて割り込み信号を出力
するポート制御部と、その割り込み信号に応じて待機制
御部に待機状態からの復帰を指示する割り込み制御部と
を備えるように構成したので、従来技術での外部割り込
み入力を不要にしたテストパターンを用いることがで
き、テストパターンのデバッグ作業の負担を軽減できる
効果がある。As described above, according to the first aspect of the present invention, a specific value holding unit that holds a specific value only when a standby instruction is tested, and a peripheral function is set to a standby state according to the standby instruction. A standby control unit for outputting a standby state release signal when the standby instruction is issued and the specific value is held in the specific value holding unit; and a port when the specific value is held in the specific value holding unit. A port control unit that shuts off external input from the terminal and outputs an interrupt signal in response to a standby state release signal from the standby control unit, and an interrupt that instructs the standby control unit to return from the standby state in response to the interrupt signal Since the control unit and the control unit are provided, it is possible to use a test pattern which does not require an external interrupt input in the related art, and has an effect of reducing a load of a test pattern debugging operation.
【0032】請求項2記載の発明によれば、待機状態解
除信号を任意の時間経過後に出力する遅延時間制御部を
備えるように構成したので、遅延時間制御部を任意の値
に設定することにより、待機状態から任意の時間後に復
帰が可能となり、待機状態中のポート出力値をチェック
することができる効果がある。According to the second aspect of the present invention, since the delay time control section for outputting the standby state release signal after an elapse of an arbitrary time is provided, the delay time control section can be set to an arbitrary value. It is possible to return from the standby state after an arbitrary time, and it is possible to check the port output value during the standby state.
【0033】請求項3記載の発明によれば、試験装置の
外部入力または中央演算処理装置から特定値保持部に特
定値を入力するように構成したので、特定値保持部の特
定値をマイクロコンピュータの外部または内部から入力
することができる効果がある。According to the third aspect of the present invention, the specific value is input from the external input of the test apparatus or the central processing unit to the specific value holding unit. There is an effect that can be input from outside or inside.
【0034】請求項4記載の発明によれば、マイクロコ
ンピュータに供給するテストパターンには待機状態から
の解除を示す信号を除くテストパターンを用いるように
構成したので、テストパターンのデバッグ作業の負担を
軽減できる効果がある。According to the fourth aspect of the present invention, since the test pattern supplied to the microcomputer is configured to use the test pattern excluding the signal indicating the release from the standby state, the burden of debugging the test pattern is reduced. There is an effect that can be reduced.
【図1】 この発明の実施の形態1によるマイクロコン
ピュータを示す回路図である。FIG. 1 is a circuit diagram showing a microcomputer according to a first embodiment of the present invention.
【図2】 この発明の実施の形態2によるポート制御回
路部の詳細を示す回路図である。FIG. 2 is a circuit diagram showing details of a port control circuit unit according to a second embodiment of the present invention.
【図3】 この発明の実施の形態3によるWIT/ST
P制御回路部の詳細を示す回路図である。FIG. 3 is a WIT / ST according to a third embodiment of the present invention.
FIG. 4 is a circuit diagram illustrating details of a P control circuit unit.
【図4】 従来のマイクロコンピュータの待機制御回路
を示す回路図である。FIG. 4 is a circuit diagram showing a standby control circuit of a conventional microcomputer.
【図5】 従来のマイクロコンピュータのポート回路を
示す回路図である。FIG. 5 is a circuit diagram showing a port circuit of a conventional microcomputer.
21 自己復帰ビット(特定値保持部)、22 WIT
/STP制御回路部(待機制御部)、23 ポート制御
回路部(ポート制御部)、24 割り込み制御回路部
(割り込み制御部)、43 カウンタ(遅延時間制御
部)。21 Self-return bit (specific value holding unit), 22 WIT
/ STP control circuit section (standby control section), 23 port control circuit section (port control section), 24 interrupt control circuit section (interrupt control section), 43 counter (delay time control section).
Claims (4)
する特定値保持部と、待機命令に応じて周辺機能を待機
状態にすると共に、その待機命令が成され且つ上記特定
値保持部に特定値が保持されている場合に待機状態解除
信号を出力する待機制御部と、上記特定値保持部に特定
値が保持されている場合にポート端子からの外部入力を
遮断し、上記待機制御部からの待機状態解除信号に応じ
て割り込み信号を出力するポート制御部と、そのポート
制御部からの割り込み信号に応じて上記待機制御部に待
機状態からの復帰を指示する割り込み制御部とを備えた
マイクロコンピュータ。A specific value holding unit for holding a specific value only at the time of a test of a standby instruction, a peripheral function being put into a standby state in response to the standby instruction, the standby instruction being issued, and the specific value holding unit being A standby control unit that outputs a standby state release signal when a specific value is held, and an external input from a port terminal when the specific value is held in the specific value holding unit, and the standby control unit A port control unit that outputs an interrupt signal in response to a standby state release signal from the CPU, and an interrupt control unit that instructs the standby control unit to return from the standby state in response to an interrupt signal from the port control unit. Microcomputer.
出力する遅延時間制御部を備えたことを特徴とする請求
項1記載のマイクロコンピュータ。2. The microcomputer according to claim 1, further comprising a delay time control unit that outputs a standby state release signal after an elapse of an arbitrary time.
装置から特定値保持部に特定値を入力することを特徴と
する請求項1または請求項2記載のマイクロコンピュー
タ。3. The microcomputer according to claim 1, wherein a specific value is input to a specific value holding unit from an external input of the test apparatus or a central processing unit.
1項記載のマイクロコンピュータに供給するテストパタ
ーンには待機状態からの解除を示す信号を除くテストパ
ターンを用いることを特徴とするマイクロコンピュータ
のテスト方法。4. The microcomputer according to claim 1, wherein a test pattern excluding a signal indicating release from a standby state is used as a test pattern supplied to the microcomputer according to any one of claims 1 to 3. Computer testing method.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP9134172A JPH10326267A (en) | 1997-05-23 | 1997-05-23 | Microcomputer and microcomputer test method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP9134172A JPH10326267A (en) | 1997-05-23 | 1997-05-23 | Microcomputer and microcomputer test method |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH10326267A true JPH10326267A (en) | 1998-12-08 |
Family
ID=15122136
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP9134172A Pending JPH10326267A (en) | 1997-05-23 | 1997-05-23 | Microcomputer and microcomputer test method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH10326267A (en) |
-
1997
- 1997-05-23 JP JP9134172A patent/JPH10326267A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US6857084B1 (en) | Multiprocessor system and method for simultaneously placing all processors into debug mode | |
| US7644310B2 (en) | Semiconductor IC incorporating a co-debugging function and test system | |
| US6996747B2 (en) | Program counter trace stack, access port, and serial scan path | |
| US9037911B2 (en) | Debug state machines and methods of their operation | |
| US9262293B2 (en) | Debug apparatus and methods for dynamically switching power domains | |
| JPH05100905A (en) | System having hardware support break-point function and method of providing said function | |
| US6691268B1 (en) | Method and apparatus for swapping state data with scan cells | |
| US20030100133A1 (en) | System-on-chip breakpoint synchronization | |
| US20180083633A1 (en) | Methods and circuits for preventing hold time violations | |
| JP2005316559A (en) | Debugging circuit and debugging control method | |
| US6167365A (en) | Method of initializing CPU for emulation | |
| US6877113B2 (en) | Break determining circuit for a debugging support unit in a semiconductor integrated circuit | |
| CN100388215C (en) | Debug Support Unit and Debug Method Using Multiple Asynchronous Clocks on Chip Hardware | |
| EP4404065A1 (en) | Reset circuitry providing independent reset signal for trace and debug logic | |
| JP6602278B2 (en) | Semiconductor device | |
| JPH04296112A (en) | Register circuit | |
| JP3205841B2 (en) | Data processing device | |
| CN109062394B (en) | State control circuit and method for CPU cluster | |
| EP0943994B1 (en) | Method of initializing CPU for emulation | |
| JPH0320710B2 (en) | ||
| CN117950929A (en) | Universal testing method and device based on gate control function | |
| CN100375096C (en) | Detection system and method for hardware description language circuit | |
| KR100557918B1 (en) | Error Correction Device Using Joint Test Access Group | |
| JPH0322146A (en) | Microprogram control device | |
| JPH04337882A (en) | Output port |