JPH01287751A - Microprocessor device - Google Patents

Microprocessor device

Info

Publication number
JPH01287751A
JPH01287751A JP63118517A JP11851788A JPH01287751A JP H01287751 A JPH01287751 A JP H01287751A JP 63118517 A JP63118517 A JP 63118517A JP 11851788 A JP11851788 A JP 11851788A JP H01287751 A JPH01287751 A JP H01287751A
Authority
JP
Japan
Prior art keywords
register
scan
data
input terminal
general
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP63118517A
Other languages
Japanese (ja)
Inventor
Toshinori Maeda
俊則 前田
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP63118517A priority Critical patent/JPH01287751A/en
Publication of JPH01287751A publication Critical patent/JPH01287751A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To easily specify the trouble of an execution part with simple circuit constitution by connecting a constant register to a scan bus through a scan-in data input terminal and a scan-out data output terminal. CONSTITUTION:A general register group 1 is equipped with >=1 general register 12 and a constant register 11 and is connected to the execution part 2 through data bus input/output terminals 115. Then the constant register 11 has a clock signal input terminal 111 for scanning, a scan-in data input terminal 112, a scan-out data output terminal 111, and a function select signal input terminal 114. Consequently, the read and write speeds of the general registers are not decreased, the regularity of layout is good, and the microprocessor device easily tests the execution part.

Description

【発明の詳細な説明】 産業上の利用分野 本発明はマイクロプロセサ装置のテスト容易化に関する
もので、特に実行部の機能テストを効率よく行えるマイ
クロプロセサ装置に関する。
DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention relates to facilitating the testing of microprocessor devices, and more particularly to a microprocessor device that can efficiently test the functionality of an execution section.

従来の技術 従来マイクロプロセサ装置の実行部の試験方法として、
特に算術論理演算回路1桁移動回路等への演算数の併結
方法および演算結果の格納又はマイクロプロセサ装置の
外部への読出し方法として1) 第3図のごとく一つ以
上の汎用レジスタをシフトレジスタ構成とし、それぞれ
をマイクロプロセサ装置のスキャンパスに接続し、マイ
クロプロセサ装置の外部ビンより与えられたシリアルな
データを汎用レジスタにスキャンインすることにより格
納し、前記汎用レジスタの値を演算数として演算を実行
し演算結果をシストレジスタ構成された汎用レジスタに
格納しこれをマイクロプロセサ装置の出力ビンにスキャ
ンアウトすることにより演算結果をシリアルデータとし
て得る方法と、■〉 即値命令による汎用レジスタへの
即値の格納又はマイクロプログラムROMに蓄積された
即値の汎用レジスタへの格納を行い、次に前記格納され
た即値を演算数として前記演算装置において演算を行わ
せ、汎用レジスタに演算結果を格納し、格納された演算
結果をMOVE命令あるいはI10命令によりマイクロ
プロセサ装置のデータ出力ビンに読み出し、実行部の試
験を行う方法が用いられていた。
Conventional technology As a test method for the execution part of a conventional microprocessor device,
In particular, as a method of concatenating arithmetic numbers to an arithmetic logic circuit, one-digit shift circuit, etc., and a method of storing or reading out the result of arithmetic operations to the outside of a microprocessor device, 1) One or more general-purpose registers are configured as a shift register as shown in Figure 3. Each is connected to the scan path of the microprocessor device, serial data given from the external bin of the microprocessor device is stored by scanning into a general-purpose register, and the value of the general-purpose register is used as an arithmetic number to perform an operation. There is a method to obtain the result of an operation as serial data by executing the operation and storing the result in a general-purpose register configured as a system register, and scanning it out to the output bin of the microprocessor device. Store the immediate value stored in the storage or microprogram ROM in a general-purpose register, then perform an operation on the arithmetic unit using the stored immediate value as an arithmetic number, store the operation result in the general-purpose register, and store the stored immediate value in the general-purpose register. A method has been used in which the execution unit is tested by reading out the calculated result to the data output bin of the microprocessor device using a MOVE instruction or an I10 instruction.

発明が解決しようとする課題 前記I)の方法では1つ以上の汎用レジスタをジフトレ
ジスタ構成とする必要があり、前記シストレジスタ構成
された汎用レジスタはその他の汎用レジスタに比べ、読
み出し、及び書き込み速度が遅い上にレイアウト的にも
シフトレジスタ構成をとった汎用レジスタにより規則性
が乱れるといった問題点があった。
Problems to be Solved by the Invention In method I) above, it is necessary to configure one or more general-purpose registers into a shift register configuration, and the general-purpose registers configured as shift registers have faster read and write speeds than other general-purpose registers. In addition to being slow, there were problems in terms of layout, such as irregularity due to the general-purpose registers having a shift register configuration.

また前記■)の方法においては、出力結果が期待値と異
なる場合、イ)演算数を前記汎用レジスタに格納する過
程、口)与えられた演算数により演算を行い演算結果を
出力する過程、ハ)演算結果をマイクロプロセサの外部
に出力する過程、のいずれに障害が発生しているのがと
いう故障箇所の特定が困難であり、試験手順、及び試験
時間の増大をまねく、あるいは故障の検出は行えるが故
障箇所の特定は行えないといった問題があった。
In addition, in method (■) above, if the output result differs from the expected value, a) a process of storing the arithmetic number in the general-purpose register, a) a process of performing an arithmetic operation using the given arithmetic number and outputting the arithmetic result, ) It is difficult to identify where the failure is occurring in the process of outputting the calculation results to the outside of the microprocessor, which may lead to an increase in the test procedure and test time, or it may be difficult to detect the failure. However, there was a problem in that it was not possible to identify the location of the failure.

本発明はかかる点に鑑みてなされたもので、汎用レジス
タとして命令セットにより操作できる1つ以上の定数レ
ジスタをシフトレジスタ構成とし、マイクロプロセサ装
置のスキャンパスに接続することにより汎用レジスタの
読込み、書込み速度を劣化させることな(、かつレイア
ウトの規則性も良く、実行部の試験も簡単に行えるマイ
クロプロセサ装置を提供することを目的としている。
The present invention has been made in view of this point, and has one or more constant registers that can be manipulated by a set of instructions as a general-purpose register configured as a shift register, and is connected to the scan path of a microprocessor device to read and write general-purpose registers. The purpose of the present invention is to provide a microprocessor device that does not degrade speed (and has good layout regularity) and allows easy testing of the execution section.

課題を解決するための手段 本発明は、上記問題を解決するため命令セットにより操
作される汎用レジスタ群内の定数レジスタの少なくとも
1個は、スキャン用クロック信号入力端子とスキャンイ
ンデータ入力端子とスキャンアウトデータ出力端子と機
能選択信号入力端子とを有し、前記スキャンインデータ
入力端子と前記スキャンアウトデータ出力端子とを介し
てスキャンパスに接続されていることを特徴とするマイ
クロプロセサ装置である。
Means for Solving the Problems In order to solve the above problems, the present invention provides that at least one of the constant registers in the general-purpose register group operated by the instruction set has a scan clock signal input terminal, a scan-in data input terminal, and a scan clock signal input terminal. The microprocessor device has an out data output terminal and a function selection signal input terminal, and is connected to a scan path via the scan-in data input terminal and the scan-out data output terminal.

作   用 定数レジスタは、機能選択信号により通常動作モード、
試験モードのいずれかの状態に設定される。
The operation constant register can be set to normal operation mode or
Set to one of the test modes.

通常動作モードにおいて前記定数レジスタに書込み信号
が与えられた場合、前記定数レジスタは定数レジスタの
シフトレジスタ部にデータバス上のデータを書込む。ま
た読出し信号により前記シフトレジスタ部に格納されて
いるデータにかかわりなく常に定数レジスタ固有の定数
をデータバス上に出力する。
When a write signal is applied to the constant register in the normal operation mode, the constant register writes the data on the data bus to the shift register section of the constant register. Further, a constant unique to the constant register is always output onto the data bus by a read signal, regardless of the data stored in the shift register section.

次に試験動作モードにおいて、スキャン用クロック信号
入力端子に与えられるクロックにより前記シフトレジス
タ部へのシリアルデータの設定2前記シフトレジスタ部
に格納されているデータのシリアル読出しをそれぞれス
キャンインデータ入力端子、スキャンアウトデータ出力
端子を介して行う。前記シフトレジスタはマイクロプロ
セサ装置のスキャンパスに接続されていることから前記
マイクロプロセサ装置の外部端子より、前記シフトレジ
スタ部へのシリアルデータのスキャンイン、スキャンア
ウトが行える。読出し信号が入力されると通常モードに
おいて書込まれた、あるいは試験モードにおいてスキャ
ンインされたシストレジスタ部のデータをデータバス上
に出力する。
Next, in the test operation mode, the serial data is set to the shift register section 2, and the data stored in the shift register section is serially read out by the clock applied to the scan clock signal input terminal. This is done via the scan-out data output terminal. Since the shift register is connected to the scan path of the microprocessor device, serial data can be scanned in and out of the shift register section from an external terminal of the microprocessor device. When a read signal is input, the data in the system register section written in the normal mode or scanned in in the test mode is output onto the data bus.

実施例 第1図は本発明のマイクロプロセサ装置の一実施例を示
すブロック図である。第1図において1は汎用レジスタ
群であって1つ以上の汎用レジスタ12、及び定数レジ
スタ11を備え、データバス入出力端子115を介して
実行部2と接続されている。定数レジスタ11は、スキ
ャン用クロック信号入力端子111.スキャンインデー
タ入力端子112.スキャンアウトデータ出力端子11
3゜機能選択信号入力端子114を有する。また第2図
は本発明のマイクロブセッサ装置の一実施例におけるマ
イクロプロセサの定数レジスタの構成例である。第2図
において11は定数レジスタであってスキャン用クロッ
ク信号入力端子111゜スキャンインデータ入力端子1
12.スキャンアウトデータ出力端子113、機能選択
信号入力端子114.データバス入出力端子115a、
115bを有する。
Embodiment FIG. 1 is a block diagram showing an embodiment of the microprocessor device of the present invention. In FIG. 1, a general-purpose register group 1 includes one or more general-purpose registers 12 and a constant register 11, and is connected to the execution unit 2 via a data bus input/output terminal 115. The constant register 11 has a scanning clock signal input terminal 111. Scan-in data input terminal 112. Scanout data output terminal 11
It has a 3° function selection signal input terminal 114. FIG. 2 shows an example of the configuration of a constant register of a microprocessor in an embodiment of the microprocessor device of the present invention. In FIG. 2, 11 is a constant register, and is a scan clock signal input terminal 111° scan-in data input terminal 1
12. Scan-out data output terminal 113, function selection signal input terminal 114. data bus input/output terminal 115a,
115b.

この定数レジスタ11を用いて実行部の試験を行うには
機能選択信号により試験モードに設定する。まずマイク
ロプロセサ装置の外部端子によりスキャンパスに対しシ
リアルデータをスキャンインし全てのスキャンパスにデ
ータを設定し、続いてスキャンパスに設定されたデータ
を外部端子にスキャンアウトしこのスキャンアウトされ
たデータとスキャンインしたデータとの照合を行うこと
により、スキャンパスの機能試験を行う必要がある。こ
のスキャンパスの機能試験を行うことにより前記定数レ
ジスタ11のシフトレジスタ部の機能確認、及びシフト
レジスタへのデータの格納が同時に完了する。引き続き
試験モードにおいて定数レジスタ11のシフトレジスタ
群に格納されたデータをマイクロプロセサの命令を用い
て他の汎用レジスタ12に転送する。これに先たち転送
命令の機能確認を行う必要がある。この転送命令として
NOT命令を用い前記定数レジスタ11をソースレジス
タとし、ディスティネーションレジスタにも前記定数レ
ジスタ11を指定する。NOT命令実行後、前記定数レ
ジスタ11のシフトレジスタ群には設定されていたデー
タの反転されたものが再格納される。この再格納された
データをスキャンアウトし、設定したデータが反転され
ているか否かを確認し、NOT命令の機能確認を行う。
To test the execution section using this constant register 11, a test mode is set by a function selection signal. First, serial data is scanned in to the scan path using the external terminal of the microprocessor device, data is set in all scan paths, and then the data set in the scan path is scanned out to the external terminal, and this scanned out data is It is necessary to perform a functional test of the scan path by comparing the scan path with the scanned data. By performing this scan path functional test, the function confirmation of the shift register section of the constant register 11 and the storage of data into the shift register are completed at the same time. Subsequently, in the test mode, the data stored in the shift register group of constant register 11 is transferred to other general-purpose registers 12 using instructions from the microprocessor. Before this, it is necessary to check the functionality of the transfer command. A NOT instruction is used as this transfer instruction, and the constant register 11 is used as the source register, and the constant register 11 is also designated as the destination register. After the NOT instruction is executed, the inverted version of the set data is stored again in the shift register group of the constant register 11. This re-stored data is scanned out to check whether the set data has been inverted, and to confirm the function of the NOT command.

転送命令の機能確認終了後、汎用レジスタに対し前記定
数レジスタ11のシフトレジスタ部に格納されたデータ
を転送命令を用い転送する。ただしNOT命令を用いる
ことから汎用レジスタ12に設定されるデータは前記シ
フトレジスタ部のデータを反転したものとなる。必要で
あれば前記定数レジスタ11のシフトレジスタ部にシリ
アルデータをスキャンインし、複数の汎用レジスタ12
に異なるデータを転送する。
After confirming the function of the transfer command, the data stored in the shift register portion of the constant register 11 is transferred to the general-purpose register using the transfer command. However, since the NOT instruction is used, the data set in the general-purpose register 12 is the inverted version of the data in the shift register section. If necessary, serial data is scanned into the shift register section of the constant register 11, and the plurality of general-purpose registers 12 are scanned.
Transfer different data to.

実行部の試験は汎用レジスタ12に設定されたデータを
用いて行う。2オペランドあるいは3オペランド演算命
令のディスティネーションレジスタとして前記定数レジ
スタ11を指定し、ソースレジスタとして前記定数レジ
スタ11よりデータを転送し、設定した汎用レジスタ1
2か、あるいは前記定数レジスタ11を用いる。実行部
での演算終了後演算結果は前記定数レジスタ11のシフ
トレジスタ部に格納される。この演算結果をテストモー
ドにおいて、マイクロプロセサ装置の外部端子にスキャ
ンアウトし、期待値と比較することにより実行部の機能
試験が行える。
The execution unit is tested using data set in the general-purpose register 12. The constant register 11 is specified as the destination register of a 2-operand or 3-operand operation instruction, data is transferred from the constant register 11 as the source register, and the set general-purpose register 1
2 or the constant register 11 is used. After the calculation in the execution section is completed, the calculation result is stored in the shift register section of the constant register 11. The function of the execution section can be tested by scanning out the calculation result to the external terminal of the microprocessor device in the test mode and comparing it with the expected value.

この方法によれば、データフェッチユニット等を介さず
直接レジスタにデータを設定できるため、演算結果が期
待値を満たしていない場合実行部に障害が発生している
と判定できる。またロード命令においてはディスティネ
ーションレジスタを、ストア命令においてはソースレジ
スタを前記定数レジスタ11とし、即値命令においてデ
ィスティネーションレジスタを前記定数レジスタ11と
することにより、データフェッチ部、命令フェッチ部の
簡単な試験が同様の方法で実現出来る。
According to this method, data can be directly set in the register without going through a data fetch unit or the like, so if the calculation result does not satisfy the expected value, it can be determined that a failure has occurred in the execution unit. In addition, by using the constant register 11 as the destination register for load instructions, the source register as the constant register 11 for store instructions, and the constant register 11 as the destination register for immediate instructions, it is possible to easily test the data fetch section and instruction fetch section. can be realized in a similar way.

発明の効果 以上述べてきたように、本発明によれば極めて簡易な回
路構成で実行部の故障特定が容易にできることから本発
明にかかるマイクロプロセサ装置は産業上極めて有用で
ある。
Effects of the Invention As described above, according to the present invention, failures in the execution unit can be easily identified with an extremely simple circuit configuration, and thus the microprocessor device according to the present invention is extremely useful industrially.

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

第1図は本発明の一実施例におけるマイクロプロセサ装
置を示すブロック図、第2図は本発明の一実施例におけ
るマイクロプロセサの定数レジスタ構成図、第3図は従
来のマイクロプロセサ装置を示すブロック図である。 1・・・・・・汎用レジスタ群、2・・・・・・実行部
、11・・・・・・定数レジスタ、12・・・・・・汎
用レジスタ。 代理人の氏名 弁理士 中尾敏男 ほか1名第1図 第3図
FIG. 1 is a block diagram showing a microprocessor device according to an embodiment of the present invention, FIG. 2 is a constant register configuration diagram of a microprocessor according to an embodiment of the present invention, and FIG. 3 is a block diagram showing a conventional microprocessor device. It is a diagram. 1...General purpose register group, 2...Execution unit, 11...Constant register, 12...General purpose register. Name of agent: Patent attorney Toshio Nakao and one other person Figure 1 Figure 3

Claims (1)

【特許請求の範囲】[Claims] 命令セットにより操作される汎用レジスタ群内の定数レ
ジスタの少なくとも1個は、スキャン用クロック信号入
力端子とスキャンインデータ入力端子とスキャンアウト
データ出力端子と機能選択信号入力端子とを有し、前記
スキャンインデータ入力端子と前記スキャンアウトデー
タ出力端子とを介してスキャンパスに接続されているこ
とを特徴とするマイクロプロセサ装置。
At least one of the constant registers in the general-purpose register group operated by the instruction set has a scan clock signal input terminal, a scan-in data input terminal, a scan-out data output terminal, and a function selection signal input terminal; A microprocessor device, characterized in that it is connected to a scan path via an in-data input terminal and the scan-out data output terminal.
JP63118517A 1988-05-16 1988-05-16 Microprocessor device Pending JPH01287751A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63118517A JPH01287751A (en) 1988-05-16 1988-05-16 Microprocessor device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63118517A JPH01287751A (en) 1988-05-16 1988-05-16 Microprocessor device

Publications (1)

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

Family

ID=14738586

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63118517A Pending JPH01287751A (en) 1988-05-16 1988-05-16 Microprocessor device

Country Status (1)

Country Link
JP (1) JPH01287751A (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60245053A (en) * 1984-05-21 1985-12-04 Fujitsu Ltd Diagnostic system for logical circuit

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60245053A (en) * 1984-05-21 1985-12-04 Fujitsu Ltd Diagnostic system for logical circuit

Similar Documents

Publication Publication Date Title
US4488259A (en) On chip monitor
EP1036338B1 (en) Boundary scan system with address dependent instructions
JPH07181231A (en) Circuit board test system and method thereof
JPH1183956A (en) Integrated circuit
US5497459A (en) System for testing instruction queue circuit and central processing unit having the system
US4422141A (en) Microprocessor architecture for improved chip testability
JP2644378B2 (en) Diagnostic circuit
JPH0883220A (en) Data processor
JPS60239836A (en) Troubleshooting system of logical circuit
JP3385210B2 (en) Test data scanning device and scanning method
JPH01287751A (en) Microprocessor device
JPH1019983A (en) Boundary scan test method
JPS63148498A (en) Memory device with self-disagnosing function
US20050289421A1 (en) Semiconductor chip
JP3698478B2 (en) Debug device
JP2808985B2 (en) Information processing device and debug device
JP3529401B2 (en) Integrated circuit
JPH0238879A (en) Logical circuit
JPS59211123A (en) Semiconductor integrated circuit
JPH0388361A (en) Large scale integrated circuit
JPH07182305A (en) Microprocessor
JPH04204273A (en) Lsi mounting board and data processor
JPH0520119A (en) Scan data supplying device
JPH02178863A (en) Memory testing circuit
JPS63193238A (en) Address scanning system