JPH01130232A - Microcomputer - Google Patents

Microcomputer

Info

Publication number
JPH01130232A
JPH01130232A JP62289913A JP28991387A JPH01130232A JP H01130232 A JPH01130232 A JP H01130232A JP 62289913 A JP62289913 A JP 62289913A JP 28991387 A JP28991387 A JP 28991387A JP H01130232 A JPH01130232 A JP H01130232A
Authority
JP
Japan
Prior art keywords
signal
test
microcomputer
unit
instruction
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
Application number
JP62289913A
Other languages
Japanese (ja)
Other versions
JPH0758473B2 (en
Inventor
Masaki Nasu
雅樹 那須
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP62289913A priority Critical patent/JPH0758473B2/en
Publication of JPH01130232A publication Critical patent/JPH01130232A/en
Publication of JPH0758473B2 publication Critical patent/JPH0758473B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Test And Diagnosis Of Digital Computers (AREA)
  • Microcomputers (AREA)

Abstract

PURPOSE:To facilitate the detection of a failure by inputting a processing request signal and a set value of a storage means so as to be switchable to an asynchronous operating means, so that its internal state can be outputted to the outside in a real time. CONSTITUTION:To a data bus 200 between an execution unit 120 and a bus control unit 130, a test use register 180 is connected, its test use signal line 181 and 182,and an LDRQ signal 140 and an STRQ signal 141 of the unit 120 are inputted to a selector 131 and 132, and a test use signal line 183 and a QFUL signal 142 of an instruction queue 110 are inputted to a selector 133. In such a state, at the time of a test mode, the signal lines 181-183 are inputted to the unit 130, the unit 130 is operated irrespective of a state of the queue 110 and the unit 120, and its internal state is outputted to the outside in a real time from an output signal 139.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、内部にテスト用の回路を含むマイクロコンピ
ュータに関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a microcomputer that includes a test circuit therein.

〔従来例〕[Conventional example]

一般にマイクロコンピュータは、製造工程1組立て工程
において発生する不良の検出を容易に行うことができる
様にテスト用の回路を内蔵している。従来、マイクロコ
ンピュータのテストを行う場合は、マイクロコンピュー
タに命令を実行させ、それと同時に内部データバス上に
流れるデータ等の内部情報をテスト用の回路を経由して
端子より外部に出力し、外部でこの出力値を期待値と照
合するという手法が行われている。
Generally, a microcomputer has a built-in test circuit so that defects occurring during the manufacturing process 1 (assembly process) can be easily detected. Conventionally, when testing a microcomputer, the microcomputer executes instructions and at the same time outputs internal information such as data flowing on the internal data bus from a terminal via a test circuit. A method is used to compare this output value with an expected value.

一方、マイクロコンピュータの性能に対する要求が高く
なるに伴なって、マイクロコンピュータ内部を複数のユ
ニットに分割し、パイプライン制御を用いた高度なマイ
クロコンピュータが近年増加している。
On the other hand, as demands for the performance of microcomputers become higher, the number of advanced microcomputers that divide the inside of the microcomputer into a plurality of units and use pipeline control has increased in recent years.

この種のマイクロコンピュータの動作を第3図のブロッ
ク図を参照して説明する。
The operation of this type of microcomputer will be explained with reference to the block diagram of FIG.

第3図に示すマイクロコンピュータ300は、外部のメ
モリより先読みした命令コードを蓄えておく命令キュー
110と、命令コードに基づき、データの演算、転送処
理を行う実行ユニ、yト120と、外部メモリとマイク
ロコンピュータ300との間のデータ、命令コードの転
送の制御を行うバス制御ユニット130とから構成され
、実行ユニッ)120.バス制御ユニット130は、メ
モリアクセスに伴うデータ転送を行うためのデータバス
200(以下、Dバスと記す。)により相互に接続され
ている。
The microcomputer 300 shown in FIG. 3 includes an instruction queue 110 that stores instruction codes read ahead from an external memory, an execution unit 120 that performs data arithmetic and transfer processing based on the instruction codes, and an external memory. and a bus control unit 130 that controls the transfer of data and instruction codes between the microcomputer 300 and the execution unit 120. The bus control units 130 are interconnected by a data bus 200 (hereinafter referred to as D bus) for transferring data associated with memory access.

また、マイクロコンピュータ300は入力端子として、
マイクロコンピュータ300が内部のテスト回路を動作
させるテストモードと、通常ノ命令実行を行う通常モー
ドのどちらのモードで動作するかを指定する動作モード
指定端子301を有し、又、テストモード時に実行ユニ
ット120の内部データバス上のデータを外部に出力す
る内部状態出力端子を有している。動作モード指定端子
301に0が入力した場合、マイクロコンピュータ30
0は通常モードで動作し、1が入力した場合、テストモ
ードで動作を行う。
In addition, the microcomputer 300 has input terminals such as
The microcomputer 300 has an operation mode designation terminal 301 that specifies whether the microcomputer 300 operates in a test mode in which the internal test circuit operates or in a normal mode in which normal instructions are executed. It has an internal status output terminal for outputting data on the 120 internal data buses to the outside. When 0 is input to the operation mode designation terminal 301, the microcomputer 30
0 operates in normal mode, and when 1 is input, it operates in test mode.

実行ユニッ)120は命令実行に伴い、外部メモリとの
データリード/ライトを行う場合、バス制御ユニット1
30にバスサイクルの起動を要求するリード/ライト要
求信号140,141  (以下それぞれLDRQ信号
、5TRQ信号と記す。)をアクティブにし、バス制御
ユニット130が要求したバスサイクルを起動するとイ
ンアクティブにする。また、実行ユニット120は命令
キュー110へ、命令コードの転送を要求する命令コー
ド要求信号143(以下QRD信号と記す。)を出力す
る。命令キュー110はQRD信号143がアクティブ
になると、命令コードをキュー出力バス210(以下Q
Oババス記す。)を経由して、実行ユニツ)120へ転
送する。また、命令キュー110は、バス制御ユニット
130へ、命令キュー110内の命令コードが一杯であ
ることを示すキューフル信号142(以下QFUL信号
と記す。)を出力し、バス制御ユニット130はQFU
L信号142がインアクティブの時に命令コードの先読
みを行い、命令バス220(以下エバスと記す。)を経
由して命令キュー110に命令コードを転送する。
The execution unit) 120 uses the bus control unit 1 when reading/writing data from/to external memory in conjunction with instruction execution.
Read/write request signals 140 and 141 (hereinafter referred to as the LDRQ signal and 5TRQ signal, respectively) requesting activation of a bus cycle at 30 are made active, and made inactive when the bus control unit 130 activates the requested bus cycle. Furthermore, the execution unit 120 outputs an instruction code request signal 143 (hereinafter referred to as a QRD signal) to the instruction queue 110 requesting transfer of an instruction code. When the QRD signal 143 becomes active, the instruction queue 110 sends the instruction code to the queue output bus 210 (hereinafter referred to as Q
O Babasu is written. ) to the execution unit ) 120. The instruction queue 110 also outputs a queue full signal 142 (hereinafter referred to as a QFUL signal) to the bus control unit 130 indicating that the instruction codes in the instruction queue 110 are full, and the bus control unit 130
When the L signal 142 is inactive, the instruction code is read ahead and transferred to the instruction queue 110 via the instruction bus 220 (hereinafter referred to as Ebus).

更に、バス制御ユニット130は、LDRQ信号140
,5TRQ信号141.QF’UL信号142の状態よ
りバス制御ユニット130が行う処理を決定する調停回
路135.調停回路135での選択に従いバスサイクル
信号を発生するタイミング発生回路136を有している
Furthermore, the bus control unit 130 controls the LDRQ signal 140
, 5TRQ signal 141. An arbitration circuit 135 that determines the processing to be performed by the bus control unit 130 based on the state of the QF'UL signal 142. It has a timing generation circuit 136 that generates a bus cycle signal according to the selection by the arbitration circuit 135.

調停回路135は、LDRQ信号140,5TRQ信号
141がアクティブまたはQFUL信号142がインア
クティブである場合に、外部メモリからのデータリード
、外部メモリへのデータライト、外部メモリからの命令
コードの読み出しく以下、それぞれMRD処理、MWR
処理、FET処理と記す。)の3種類の処理のうちどの
処理を行うかを選択する。複数の要求が有る場合は5T
RQ信号141.LDRQ信号140.QFUL信号1
42の順に優先順位付けをし、どの処理を行うかを選択
する。また、LDRQ信号140.5TRQ信号141
がインアクティブかつQFUL信号142がアクティブ
である場合には、バス制御ユニット130はバスサイク
ルを起動せず、アイドル状態を保つ。
When the LDRQ signal 140 and 5TRQ signal 141 are active or the QFUL signal 142 is inactive, the arbitration circuit 135 reads data from the external memory, writes data to the external memory, and reads instruction codes from the external memory. , MRD processing and MWR, respectively.
The processing is referred to as FET processing. ) Select which one of the three types of processing to perform. 5T if there are multiple requests
RQ signal 141. LDRQ signal 140. QFUL signal 1
42, and select which process to perform. In addition, LDRQ signal 140.5 TRQ signal 141
is inactive and QFUL signal 142 is active, bus control unit 130 does not initiate a bus cycle and remains idle.

次に、第4図のタイミングチャートに、マイクロコンピ
ュータ300の命令実行時の動作を示す。
Next, the timing chart of FIG. 4 shows the operation of the microcomputer 300 when executing an instruction.

第4図のタイミングチャートでは、マイクロコンピュー
タ300が命令1から命令6を実行させた場合の動作を
示している。尚、命令1,5はメモリ書き込みを行う命
令、命令2,6はメモリ読み出しを行う命令、命令3,
4は実行ユニット120内部だけで処理可能な命令であ
る。
The timing chart in FIG. 4 shows the operation when the microcomputer 300 executes instructions 1 to 6. Note that instructions 1 and 5 are instructions for writing to memory, instructions 2 and 6 are instructions for reading from memory, and instructions 3 and 6 are instructions for reading from memory.
4 is an instruction that can be processed only within the execution unit 120.

バス制御ユニット130内部の、調停回路135は、タ
イミングtl、t2.t6.t7゜t8.tllでは、
LDRQ信号140.STRQ信号141.QFUL信
号142がインアクティブである0であるため、調停回
路135はQFUL信号142を選択し、タイミング発
生回路136はFET処理のバスサイクルを起動し命令
コードの先読みを行う。
The arbitration circuit 135 inside the bus control unit 130 operates at timings tl, t2. t6. t7゜t8. In tll,
LDRQ signal 140. STRQ signal 141. Since the QFUL signal 142 is inactive, 0, the arbitration circuit 135 selects the QFUL signal 142, and the timing generation circuit 136 activates a bus cycle for FET processing and pre-reads the instruction code.

タイミングt3では、5TRQ信号141.QFUL信
号142がアクティブで、LDRQ信号140がインア
クティブであるため、調停回路135は5TRQ信号1
41を選択し、タイミング発生回路136はMWR処理
のバスサイクルを起動する。
At timing t3, 5TRQ signals 141. Since the QFUL signal 142 is active and the LDRQ signal 140 is inactive, the arbitration circuit 135
41, the timing generation circuit 136 starts a bus cycle for MWR processing.

タイミングt4では、LDRQ信号140.QFUL信
号142がアクティブで、5TRQ信号141がインア
クティブであるため、調停回路135はLDRQ信号1
40を選択し、タイミング発生回路136はMRD処理
のバスサイクルを起動する。
At timing t4, LDRQ signal 140. Since the QFUL signal 142 is active and the 5TRQ signal 141 is inactive, the arbitration circuit 135
40, the timing generation circuit 136 starts a bus cycle for MRD processing.

タイミングt9では、LDRQ信号140,5TRQ信
号141がアクティブで、QFUL信号142がインア
クティブであるため、調停回路135は、LDRQ信号
140,5TRQ信号141、QFUL信号142のう
ち、1番優先順位が高い5TRQ信号141を選択し、
タイミング発生回路136はMWR処理のバスサイクル
を起動する。
At timing t9, the LDRQ signal 140, 5TRQ signal 141 is active, and the QFUL signal 142 is inactive, so the arbitration circuit 135 selects the signal with the highest priority among the LDRQ signal 140, 5TRQ signal 141, and QFUL signal 142. 5TRQ signal 141 is selected,
The timing generation circuit 136 starts a bus cycle for MWR processing.

タイミングtloでは、LDRQ信号140がアクティ
ブで、5TRQ信号141.QFUL信号142がイン
アクティブであるため、調停回路135はLDRQ信号
140.QFUL信号142の内、LDRQ信号140
の法が優先順位が高いため、LDRQ信号140を選択
し、タイミング発生回路136はMRD処理のバスサイ
クルを起動する。
At timing tlo, LDRQ signal 140 is active and 5TRQ signals 141 . Since QFUL signal 142 is inactive, arbitration circuit 135 selects LDRQ signal 140 . Among the QFUL signals 142, the LDRQ signal 140
Since the method has a higher priority, the LDRQ signal 140 is selected, and the timing generation circuit 136 starts a bus cycle for MRD processing.

また、タイミングt5からt6の期間はLDRQ信号1
40,5TRQ信号141がインアクティブで、QFU
L信号142がアクティブであり、バスサイクル起動の
要求がないため、バスサイクルは起動されない。
Also, during the period from timing t5 to t6, LDRQ signal 1
40,5 TRQ signal 141 is inactive, QFU
Since the L signal 142 is active and there is no request to start a bus cycle, no bus cycle is started.

このように、バス制御ユニ、、 ) 130は、命令タ
イミングとは関係なく、バスサイクルが終了、又はアイ
ドルであるタイミングで、入力している要求信号をサン
プルし、最も優先順位の高い要求を選択して、対応する
処理を行う。
In this way, the bus control unit, ) 130 samples the input request signal at the end of the bus cycle or when the bus is idle, and selects the request with the highest priority, regardless of the instruction timing. and perform the corresponding processing.

次に、以上述べたマイクロフンピユータ300でテスト
を行う場合について説明する。
Next, a case in which a test is performed using the microcomputer 300 described above will be described.

まず、動作モード指定端子301を1に入力し、マイク
ロコンピュータ300をテストモードにする。この状態
でマイクロコンピュータ300に命令を実行させながら
、内部状態出力端子に出力される実行ユニット120内
部のバス上のデータを外部で観測し期待値と比較を行な
うことにより、マイクロコンピュータ300の動作のチ
エツクをおこなう。
First, the operating mode designating terminal 301 is input to 1 to put the microcomputer 300 into test mode. While causing the microcomputer 300 to execute instructions in this state, the data on the bus inside the execution unit 120 that is output to the internal status output terminal is observed externally and compared with the expected value, thereby controlling the operation of the microcomputer 300. Perform a check.

しかし、命令キュー110.バス制御ユニット130が
命令実行とは非同期に動作しているため、命令実行では
、バス制御ユニット130が要求をサンプルするタイミ
ングでのLDRQ信号140.5TRQ信号141.Q
FUL信号142の状態を直接制御することができない
。このため、以上述べた従来の命令実行によるテストで
は、バス制御ユニット130のテストに必要な組合わせ
条件を全て網羅することは非常に困難である。
However, instruction queue 110. Since the bus control unit 130 operates asynchronously with instruction execution, during instruction execution, the LDRQ signal 140.5TRQ signal 141 . Q
The state of FUL signal 142 cannot be directly controlled. For this reason, it is extremely difficult to cover all combinations of conditions necessary for testing the bus control unit 130 in the conventional instruction execution test described above.

C発明が解決しようとする問題点〕 以上述べたように、内部の各ユニットが非同期に動作ス
るマイクロコンピュータのテストを行う場合、各ユニッ
トが命令実行とは非同期に動作するため、命令実行では
各ユニットの動作を直接制御することができない。この
ため、マイクロコンピュータに命令を実行させ、その時
の内部データバス上に流れる内部状態を外部端子に出力
し、外部で観測を行うという従来のテスト手法では、チ
エツクを行う必要の有る全ての条件を命令実行により発
生させることは非常に困難であり、この結果、不良を見
逃す可能性があるという欠点を有している。
[Problems to be solved by invention C] As mentioned above, when testing a microcomputer in which each internal unit operates asynchronously, each unit operates asynchronously with respect to instruction execution. It is not possible to directly control the operation of each unit. For this reason, the conventional testing method of having a microcomputer execute an instruction, outputting the internal state flowing on the internal data bus at that time to an external terminal, and observing it externally, does not cover all the conditions that need to be checked. It is very difficult to generate this by executing an instruction, and as a result, it has the disadvantage that there is a possibility that a defect may be overlooked.

〔発明の従来技術に対する相違点〕[Differences between the invention and the prior art]

上述した従来のマイクロコンピュータのテスト回路2手
法に対し、本発明で社テストモード時に、命令実行とは
非同期に動作するテスト対象ユニツトに入力する各種信
号を、命令実行により設定可能なテスト用レジスタより
供給される信号に切替える機能と、ユニット内部の内部
状態を外部端子に出力する機能をマイクロコンピュータ
に付加している。この結果、テスト対象ユニットに入力
する信号値を直接制御できるため、チエツクが必要な条
件を設定することが極めて容易になると同時に、テスト
対象ユニット内部の動作を外部よりリアルタイムで把握
できるため、テスト対象ユニット内部で発生する不良の
検出を容易に出来る様になっている。
In contrast to the conventional microcomputer test circuit method 2 described above, in the present invention, various signals input to the unit under test, which operate asynchronously with instruction execution, are input from test registers that can be set by instruction execution in the microcomputer test mode. The microcomputer has the function of switching to the supplied signal and the function of outputting the internal state of the unit to an external terminal. As a result, the signal values input to the unit under test can be directly controlled, making it extremely easy to set the conditions that need to be checked. This makes it easy to detect defects that occur inside the unit.

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

本発明によるマイクロコンピュータは、相互に非同期に
動作を行う非同期動作手段が相互に命令実行に伴う処理
要求信号を出力し、複数の非同期動作手段は処理要求信
号の状態に従い所定命令の処理を行い、 更に、本マイクロコンピュータは命令実行により設定可
能な記憶手段と、非同期動作手段へ入力する処理要求信
号の選択を行う選択手段と、非同期動作手段の内部状態
を外部端子に出力する状態出力手段を有し、 選択手段が、非同期動作手段に入力する処理要求信号を
、記憶手段の設定値を出力する出力信号と切替えると共
に、状態出力手段が非同期動作手段の内部状態を実時間
で外部端子に出力する事を特徴としている。
In the microcomputer according to the present invention, the asynchronous operating means that operate asynchronously with each other mutually output processing request signals accompanying instruction execution, and the plurality of asynchronous operating means process a predetermined instruction according to the state of the processing request signal, Furthermore, this microcomputer has storage means that can be set by executing instructions, selection means that selects a processing request signal to be input to the asynchronous operation means, and status output means that outputs the internal state of the asynchronous operation means to an external terminal. The selection means switches the processing request signal input to the asynchronous operation means with an output signal for outputting the set value of the storage means, and the state output means outputs the internal state of the asynchronous operation means to an external terminal in real time. It is characterized by things.

〔実施例1〕 次に、本発明の第1の実施例について図面を参照して説
明する。
[Example 1] Next, a first example of the present invention will be described with reference to the drawings.

第1図に本発明によるテスト回路を含むマイクロコンピ
ュータの一実施例のブロック図を示す。
FIG. 1 shows a block diagram of an embodiment of a microcomputer including a test circuit according to the present invention.

第1図に示すマイクロコンピュータ100は、従来例の
マイクロコンピュータ300に、命令実行によりDバス
200を経由で設定可能なテスト用レジスタ180と、
バス制御ユニット130への入力信号をテスト用レジス
タ180の設定値を出力するテスト用信号線181,1
82,183どLDRQ信号140,5TRQ信号14
1.QFUL信号142との間で選択するセレクタ13
1.132,133と、テストモード時に調停回路13
5.タイミング発生回路136の内部状態を外部端子に
出力する内部状態出力信号139を追加している。
A microcomputer 100 shown in FIG. 1 includes a test register 180 that can be set via a D bus 200 by executing instructions in a conventional microcomputer 300.
Test signal lines 181 and 1 that output the input signal to the bus control unit 130 and the set value of the test register 180
82, 183 etc. LDRQ signal 140, 5 TRQ signal 14
1. Selector 13 to select between QFUL signal 142
1.132, 133, arbitration circuit 13 in test mode
5. An internal state output signal 139 is added that outputs the internal state of the timing generation circuit 136 to an external terminal.

また、通常の命令実行時には従来例のマイクロコンピュ
ータ300と同一の動作を行う。
Further, when executing normal instructions, the microcomputer 300 performs the same operation as the conventional microcomputer 300.

また、セレクタ131,132,133は、通常の命令
実行を行う通常モードにおいては、それぞれLDRQ信
号140,5TRQ信号141゜QFUL信号142を
選択し、テストモード時にはテスト用信号線181,1
82,183を選択し、バス制御ユニッ)130に供給
する。
In addition, the selectors 131, 132, and 133 select the LDRQ signal 140, 5TRQ signal 141°QFUL signal 142, respectively, in the normal mode in which normal instructions are executed, and select the test signal lines 181, 1, and 142 in the test mode.
82 and 183 are selected and supplied to the bus control unit) 130.

次に、本実施例のマイクロコンピュータ100のテスト
手法について述べる。
Next, a test method for the microcomputer 100 of this embodiment will be described.

最初に、通常モードにおいて、命令実行により、テスト
用レジスタ180に、テストモードに移行した時にバス
制御ユニッ)130に対する入力信号値となるデータを
設定する。
First, in the normal mode, by executing an instruction, the test register 180 is set with data that will become the input signal value to the bus control unit 130 when the test mode is entered.

次に、動作モード指定端子101に1を入力し、テスト
モードに移行する。この状態では、セレクタ131,1
32,133はテスト用信号181.182,183を
バス制御ユニット130への入力信号として選択するた
め、バス制御ユニット130は命令キュー110及び実
行ユニット120から分離され、命令キュー110及び
実行ユニット120の状態とな無関係に、テスト用レジ
スタ180の設定値に応じて動作を行う。
Next, 1 is input to the operation mode designation terminal 101 to shift to the test mode. In this state, selector 131,1
32, 133 select test signals 181, 182, 183 as input signals to the bus control unit 130, the bus control unit 130 is separated from the instruction queue 110 and execution unit 120, and The operation is performed according to the set value of the test register 180 regardless of the state.

この結果、バス制御ユニツ)130への入力信号値を任
意の値に設定することが容易にでき、この時の、調停回
路135.タイミング発生回路136の内部状態を出力
する内部状態出力信号139を、外部で期待値と照合す
ることにより、バス制御ユニット130のテストを容易
に実行スることができる。
As a result, the value of the input signal to the bus control unit 130 can be easily set to an arbitrary value, and at this time, the value of the input signal to the bus control unit 135. By comparing the internal state output signal 139, which outputs the internal state of the timing generation circuit 136, with an expected value externally, the bus control unit 130 can be easily tested.

〔実施例2〕 次に、本発明に基づく第2の実施例について第2図のブ
ロック図を参照して説明する。
[Embodiment 2] Next, a second embodiment based on the present invention will be described with reference to the block diagram of FIG. 2.

第2図に示すマイクロコンピュータは実施例1における
テスト用レジスタがNX3ビツトのシフトレジスタ28
0−1,280−2,280−3、・・・・・・、28
0−(N−1)、280−Nになっており、シフトレジ
スタ280−1の設定値を出力するテスト用信号281
,282,283がセレクタ131,132,133へ
の入力となっており、テスト用シフトレジスタ280−
1゜280−2.・・・・・・、280−Nのシフトタ
イミングを指定する信号として外部端子よりシフトタイ
ミング指定信号290が入力している点以外は第1の実
施例と同一の構成である。尚、N段のシフトレジスタ2
80−1,280−2,280−3、・・・・・・、2
80−(N−1)、280−Nはそれぞれ命令実行によ
り書込みが可能であり、シフトタイミング指定信号29
0がアクティブになると、シフトレジスタ280−2の
内容をシフトレジスタ280−1に、280−3の内容
を280−2に、・・・・・・、280−Nの内容を2
80−(N−1)にと、シフト動作を行う。
In the microcomputer shown in FIG. 2, the test register in the first embodiment is an NX3-bit shift register 28.
0-1,280-2,280-3,...,28
0-(N-1), 280-N, and a test signal 281 that outputs the set value of the shift register 280-1.
, 282, 283 are input to the selectors 131, 132, 133, and the test shift register 280-
1°280-2. The structure is the same as that of the first embodiment except that a shift timing designation signal 290 is input from an external terminal as a signal designating the shift timing of . . . , 280-N. In addition, N-stage shift register 2
80-1, 280-2, 280-3, ..., 2
80-(N-1) and 280-N can be written by executing a command, and the shift timing designation signal 29
When 0 becomes active, the contents of shift register 280-2 are transferred to shift register 280-1, the contents of 280-3 are transferred to shift register 280-2, ..., the contents of 280-N are transferred to 2.
80-(N-1), a shift operation is performed.

本実施例のマイクロコンピュータにおいてはテストモー
ド時には、バス制御ユニット130への入力信号はセレ
クタ131,132,133でテスト用シフトレジスタ
280−1の設定値であるテスト用信号281,282
,283が選択されるため、バス制御ユニット130は
、命令キュー110及び実行ユニッ)120の状態とは
無関係に、テスト用シフトレジスタ280−1の出力値
に応じて動作を行なう。
In the microcomputer of this embodiment, in the test mode, the input signals to the bus control unit 130 are the test signals 281, 282, which are the set values of the test shift register 280-1, by the selectors 131, 132, 133.
, 283 are selected, the bus control unit 130 operates according to the output value of the test shift register 280-1, regardless of the states of the instruction queue 110 and execution unit 120.

このため、予め命令実行によりテスト用シフトレジスタ
280−1,280−2,280−3、・・・・・・、
280−(N−1)、280−Hにバス制御ユニット1
30に対するチエツク用の入力信号値を設定しておき、
その後テストモードに移行し、外部よりシフトタイミン
グ指定信号290を適当なタイミングでアクティブにす
ることにより、テスト用信号281,282,283の
値をシフトレジスタ280−1,280−2,280−
3、・・・・・・、280−(N−1)、280−Hに
初期設定を行った内容に順に変化させることができ、バ
ス制御ユニットへの入力をダイナミックに変化させなが
ら、任意の入力を与えることが出来る。
Therefore, by executing the instruction in advance, the test shift registers 280-1, 280-2, 280-3, . . .
Bus control unit 1 on 280-(N-1) and 280-H
Set the input signal value for checking for 30,
After that, the mode shifts to the test mode, and by activating the shift timing designation signal 290 from the outside at an appropriate timing, the values of the test signals 281, 282, 283 are transferred to the shift registers 280-1, 280-2, 280-.
3,..., 280-(N-1), 280-H can be changed in order to the initial settings, and while dynamically changing the input to the bus control unit, arbitrary settings can be made. You can give input.

この時の、バス制御ユニット130内の調停回路135
.タイミング発生回路136の内部状態が内部状態出力
信号139を経由して外部端子に出力されるのを観測す
ることにより、非常に容易に且つ大きな自由度をもって
バス制御ユニット130のテストを行うことが可能とな
る。
At this time, the arbitration circuit 135 in the bus control unit 130
.. By observing the internal state of the timing generation circuit 136 being output to the external terminal via the internal state output signal 139, it is possible to test the bus control unit 130 very easily and with a large degree of freedom. becomes.

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

以上説明した様に、本発明では、命令実行と非同期に動
作するユニットのテストのために、マイクロコンピュー
タに、命令実行により設定することができるテスト用の
レジスタと、テストモード時にテスト対象であるユニッ
トへの入力信号値をテスト用のレジスタの設定値に切り
換える機能と、テスト時にテスト対象ユニット内の内部
状態を外部端子に出力する機能を付加しており、これに
より以下に述べる効果が得られる。
As explained above, in the present invention, in order to test a unit that operates asynchronously with instruction execution, a microcomputer is provided with a test register that can be set by instruction execution, and a unit to be tested in test mode. It has a function of switching the input signal value to the set value of the test register, and a function of outputting the internal state of the unit under test to an external terminal during testing, which provides the following effects.

(1)予め命令実行によりテスト用のレジスタに設定し
たデータが、テストモード時にテスト対象ユニットへの
入力信号値となるため、通常の命令実行では困難なテス
ト対象ユニットへの入力信号値の制御を容易に行うこと
ができると共に、テストモード時にテスト対象ユニット
の内部状態をリアルタイムで観測できるため、テスト対
象ユニット内部の異常を容易に検出できる。この結果、
命令と非同期に動作するユニットのテストを容易に行う
ことができる。
(1) Data set in the test register in advance by executing an instruction becomes the input signal value to the unit under test in test mode, so it is difficult to control the input signal value to the unit under test, which is difficult with normal instruction execution. This is easy to perform, and since the internal state of the unit under test can be observed in real time during the test mode, abnormalities inside the unit under test can be easily detected. As a result,
Units that operate asynchronously with instructions can be easily tested.

(2)テスト用レジスタを命令実行により設定できるた
めテスト用レジスタにデータを設定するための外部端子
を必要とせず、従来の命令実行によるテストと比較して
、テスト用の端子を増やすことなく、テストを容易にす
ることができる。
(2) Since test registers can be set by executing instructions, there is no need for external terminals to set data in test registers, and compared to conventional tests by executing instructions, there is no need to increase the number of test terminals. Testing can be facilitated.

この様に、本発明ではマイクロコンピュータ内にテスト
用のレジスタをもうけ、テストモード時に対象ユニット
への入力信号をこのテスト用レジスタから供給すると同
時に、テスト対象ユニット内部の状態を直接外部で観測
する機能を付加することにより、マイクロコンピュータ
のテストを容易に行うことを可能にしており、この結果
テストに寄る不良検出率を向上させることが可能となり
、実用的な重要性が高い。
In this way, in the present invention, a test register is provided in the microcomputer, and the input signal to the target unit is supplied from this test register in the test mode, and at the same time, the internal state of the test target unit can be directly observed externally. By adding , it is possible to easily test the microcomputer, and as a result, it is possible to improve the defect detection rate due to the test, which is of high practical importance.

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

第1図は本発明に基づ〈実施例1のマイクロコンピュー
タのブロック図、第2図は実施例2のマイクロコンピュ
ータのブロック図、第3図は従来のマイクロコンピュー
タのブロック図、第4図は従来のマイクロコンピュータ
の動作のタイミングチャートである。 100.300・・・・・・マイクロフンピユータ、1
01.301・・・・・・動作モード入力端子、110
・・・・・・命令キュー、120・・・・・・実行ユニ
ット、130・・・・・・バス制御ユニット、131,
132゜133・・・・・・セレクタ、135・・・・
・・調停回路、136・・・・・・タイミング発生回路
、139・・・・・・内部状態出力信号、140・・・
・・・LDRQ信号、141・・・・・・5TRQ信号
、142・・・−・・QFUL信号、143・・・・・
・QRD信号、180・・・・・・テスト用レジスタ、
181,182,183・・・・・・テスト用信号、2
00・・・・・・Dバス、210・・・・・・QDババ
ス220・・・・・・エバス、280−1. 280−
2゜280−3.・・・・・・、 280−(N−1)
280−N・・・・・・テスト用シフトレジスタ、28
1,282゜283・・・・・・テスト用信号、290
・・・・・・シフトタイミング指定信号。 代理人 弁理士  内 原   晋
FIG. 1 is a block diagram of a microcomputer according to the first embodiment based on the present invention, FIG. 2 is a block diagram of a microcomputer according to the second embodiment, FIG. 3 is a block diagram of a conventional microcomputer, and FIG. 3 is a timing chart of the operation of a conventional microcomputer. 100.300...Microphone computer, 1
01.301...Operating mode input terminal, 110
...Instruction queue, 120...Execution unit, 130...Bus control unit, 131,
132゜133...Selector, 135...
... Arbitration circuit, 136 ... Timing generation circuit, 139 ... Internal state output signal, 140 ...
...LDRQ signal, 141...5TRQ signal, 142...QFUL signal, 143...
・QRD signal, 180...Test register,
181, 182, 183...Test signal, 2
00...D bus, 210...QD bus 220...Ebus, 280-1. 280-
2°280-3. ......, 280-(N-1)
280-N...Test shift register, 28
1,282゜283...Test signal, 290
...Shift timing designation signal. Agent Patent Attorney Susumu Uchihara

Claims (1)

【特許請求の範囲】 相互に非同期に動作を行う複数の非同期動作手段が相互
に命令実行に伴う処理要求信号を出力し、前記複数の非
同期動作手段は前記処理要求信号の状態に従い所定命令
の処理を行うマイクロコンピュータにおいて、 前記マイクロコンピュータは命令実行により設定可能な
記憶手段と、前記非同期動作手段へ入力する前記処理要
求信号の選択を行う選択手段と、前記非同期動作手段の
内部状態を外部端子に出力する状態出力手段を有し、 前記選択手段が、前記非同期動作手段に入力する前記処
理要求信号を、前記記憶手段の設定値を出力する出力信
号と切替えると共に、前記状態出力手段が前記非同期動
作手段の内部状態を実時間で前記外部端子に出力する事
を特徴とするマイクロコンピュータ。
[Scope of Claims] A plurality of asynchronous operation means that operate asynchronously with each other mutually output processing request signals associated with instruction execution, and the plurality of asynchronous operation means process a predetermined instruction according to the state of the processing request signal. In the microcomputer, the microcomputer includes a storage means that can be set by executing instructions, a selection means that selects the processing request signal to be input to the asynchronous operation means, and an internal state of the asynchronous operation means that is transmitted to an external terminal. the selection means switches the processing request signal input to the asynchronous operation means with an output signal for outputting a setting value of the storage means, and the state output means switches the processing request signal input to the asynchronous operation means to output a setting value of the storage means; A microcomputer characterized in that the internal state of the means is output to the external terminal in real time.
JP62289913A 1987-11-16 1987-11-16 Microcomputer Expired - Fee Related JPH0758473B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62289913A JPH0758473B2 (en) 1987-11-16 1987-11-16 Microcomputer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62289913A JPH0758473B2 (en) 1987-11-16 1987-11-16 Microcomputer

Publications (2)

Publication Number Publication Date
JPH01130232A true JPH01130232A (en) 1989-05-23
JPH0758473B2 JPH0758473B2 (en) 1995-06-21

Family

ID=17749387

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62289913A Expired - Fee Related JPH0758473B2 (en) 1987-11-16 1987-11-16 Microcomputer

Country Status (1)

Country Link
JP (1) JPH0758473B2 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5588114A (en) * 1978-12-27 1980-07-03 Hitachi Ltd Input-output channel unit
JPS58127255A (en) * 1982-01-25 1983-07-29 Toshiba Corp Test circuit of microcomputer
JPS61165171A (en) * 1985-01-17 1986-07-25 Nec Corp Microcomputer
JPS62126444A (en) * 1985-11-27 1987-06-08 Mitsubishi Electric Corp Failure diagnosing system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5588114A (en) * 1978-12-27 1980-07-03 Hitachi Ltd Input-output channel unit
JPS58127255A (en) * 1982-01-25 1983-07-29 Toshiba Corp Test circuit of microcomputer
JPS61165171A (en) * 1985-01-17 1986-07-25 Nec Corp Microcomputer
JPS62126444A (en) * 1985-11-27 1987-06-08 Mitsubishi Electric Corp Failure diagnosing system

Also Published As

Publication number Publication date
JPH0758473B2 (en) 1995-06-21

Similar Documents

Publication Publication Date Title
US4937770A (en) Simulation system
US5193195A (en) Microcomputer having easily testable interrupt controller
JPH0798692A (en) Microcomputer
US5497459A (en) System for testing instruction queue circuit and central processing unit having the system
JPH031699B2 (en)
JPS6250856B2 (en)
EP0081336A2 (en) Shifting apparatus
JPH11282709A (en) In-circuit emulator
US5287522A (en) External procedure invocation apparatus utilizing internal branch vector interrupts and vector address generation, in a RISC chip
JPH01130232A (en) Microcomputer
JPH0267979A (en) Testing circuit for logic circuit
JP2520158B2 (en) Debugging method of digital signal processor
WO2018179753A1 (en) Microcomputer
JPH05165737A (en) Memory test system
JPH0285934A (en) Emulator
JPH07110790A (en) Memory diagnostic device
JPH01266651A (en) Semiconductor memory device
JPS645342B2 (en)
JPS6168647A (en) Data processing device
JPS62280940A (en) Data processor
JPH09106359A (en) Semiconductor integrated circuit
EP1193606A2 (en) Apparatus and method for a host port interface unit in a digital signal processing unit
JPS62235670A (en) Inputting and outputting circuit
JPH0564307B2 (en)
JPH01217524A (en) Data processing system

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees