JPH01154248A - Logical integrated circuit - Google Patents

Logical integrated circuit

Info

Publication number
JPH01154248A
JPH01154248A JP62313531A JP31353187A JPH01154248A JP H01154248 A JPH01154248 A JP H01154248A JP 62313531 A JP62313531 A JP 62313531A JP 31353187 A JP31353187 A JP 31353187A JP H01154248 A JPH01154248 A JP H01154248A
Authority
JP
Japan
Prior art keywords
data
output
input
test mode
mode setting
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
JP62313531A
Other languages
Japanese (ja)
Inventor
Yoshiaki Makii
牧井 義明
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 JP62313531A priority Critical patent/JPH01154248A/en
Publication of JPH01154248A publication Critical patent/JPH01154248A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To facilitate the test of a microcomputer by outputting the data contents of a built-in program ROM to an external terminal when an internal function action is confirmed based on the external instruction data. CONSTITUTION:When a test mode setting signal ST is set at '1', the '1' sides of input/output selection circuits 31 and 30 are actuated. Then the external instruction data D1 is selected through an external instruction data input terminal TI and read into an instruction register 6. At the same time, the program ROM data DPR is supplied to a program ROM output terminal TPR. In case the signal ST is set at '0', the data DPR is read into the register 6 from the '0' side output terminal of the output selection circuit 30 via the '0' side of the input selection circuit 31.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明達論理集積回路に関し、特に読出し専用メモリ(
以下ROMと称する)を内蔵したシングルチップ・マイ
クロコンピュータのテスト回路を有する論理集積回路に
関する。
[Detailed Description of the Invention] [Industrial Application Field] The present inventors relate to logic integrated circuits, particularly read-only memories (
The present invention relates to a logic integrated circuit having a test circuit for a single-chip microcomputer incorporating a built-in ROM (hereinafter referred to as ROM).

〔従来の技術〕[Conventional technology]

最近のマイクロコンピュータの大規模化に伴ない、その
自己テスト時間の短縮化が必要となってきた。
With the recent increase in the scale of microcomputers, it has become necessary to shorten their self-test time.

一般に、内部にプログラムROMを持ち、そのROMの
インストラクション・データに基づく動作を実行するシ
ングルチップ・マイクロコンピュータは、論理集積回路
内部のファンクションテストを可能とするため、通常は
次の二つの自己テスト・モードを持っている。
In general, a single-chip microcomputer that has an internal program ROM and executes operations based on the instructions and data in the ROM can perform the following two self-tests to enable functional tests inside the logic integrated circuit. has a mode.

(1)  インストラクション挿入モード、汎用入出力
兼用端子を介して、外部のインストラクション・データ
を取込み実行して、内部回路のファンクション動作の確
認をする。
(1) In instruction insertion mode, external instruction data is fetched and executed via the general-purpose input/output terminal to check the function operation of the internal circuit.

(2)  ROMダンプモード、 汎用の入出力兼用端子を介して、内蔵するプログラムR
OMの内容を出力させることにより、プログラノ、RO
Mの記憶データの確認をする。
(2) ROM dump mode, the built-in program R is transferred via the general-purpose input/output terminal.
By outputting the contents of OM, programno, RO
Check M's memory data.

第3図は従来の論理集積回路の一例のブロック図である
FIG. 3 is a block diagram of an example of a conventional logic integrated circuit.

マイクロコンピュータ1bは、プログラムROM5の出
力するプログラムROM・データDPRを入力する出力
選択回路3oと、その“O″側から出力されるROM・
データDPR及び外部インストラクション・データD+
を入力しそのうちの一方のインストラクション・レジス
タ6に供給する入力選別回路31と、入力にインストラ
クション挿入モード設定端TTF及びROMダンプモー
ド設定端TTRを有しインバータ9とNAND回路10
を介して入力制御端TI及び出力制御端T。
The microcomputer 1b includes an output selection circuit 3o that inputs the program ROM/data DPR output from the program ROM 5, and a ROM/data output from the "O" side of the output selection circuit 3o.
Data DPR and external instruction data D+
an input selection circuit 31 which inputs and supplies it to one of the instruction registers 6, an inverter 9 and a NAND circuit 10 having an instruction insertion mode setting terminal TTF and a ROM dump mode setting terminal TTR as inputs.
via an input control terminal TI and an output control terminal T.

を出力に有するテストモード設定部4bと、データバス
DBに接続するALU2及びRAMIIとを含んで構成
されている。
The test mode setting unit 4b has a test mode setting unit 4b as an output, and an ALU 2 and a RAM II connected to the data bus DB.

次に、各テストモード設定時の回路動作を説明する。Next, the circuit operation when each test mode is set will be explained.

第1のインストラクション挿入モード設定時は、インス
トラクション挿入モード設定端TTFに゛1°゛レベル
のインストラクション挿入モード信号STFを与え、R
OMダンプモード設定信号STRが“0レベルであると
、内部のインバータ9及びNAND回路10の論理演算
により、入力制御端TIのみが“1″レベルとなり外部
インストラクション・データDIが入力選別回路3Iを
通ってインストラクション・レジスタ6に読込まれる。
When setting the first instruction insertion mode, the instruction insertion mode signal STF at the level "1°" is applied to the instruction insertion mode setting terminal TTF, and
When the OM dump mode setting signal STR is at "0 level", only the input control terminal TI becomes "1" level due to the logic operation of the internal inverter 9 and NAND circuit 10, and the external instruction/data DI passes through the input selection circuit 3I. and is read into instruction register 6.

第2のROMダンブモーヅ設定時は、ROMダンプモー
ド設定端T T Rに“1′°レベルのROMダンプモ
ード設定信号STRを与えると、入力制御端T。にその
信号STRが供給され出力選択回路3oの一方の出力端
からプログラムROM出力端TPRにプログラムROM
データDPRが出力する。
When setting the second ROM dump mode, when the ROM dump mode setting signal STR at the "1'° level is applied to the ROM dump mode setting terminal TTR, the signal STR is supplied to the input control terminal T. from one output terminal of the program ROM to the program ROM output terminal TPR.
Data DPR outputs.

この回路ではテストモード設定部の論理演算による入出
力選択回路の動作で、外部インストラクション・データ
D+のインストラクション・レジスタの読込時は、プロ
グラムROM9のプログラムROMデータDPRは通釈
回路3oにより非選択となってプログラム出力端TPR
に出力されない。
In this circuit, when the instruction register of external instruction data D+ is read, the program ROM data DPR of the program ROM 9 is unselected by the interpretation circuit 3o due to the operation of the input/output selection circuit based on the logic operation of the test mode setting section. Program output terminal TPR
is not output to .

またROMダンプモードでは、内蔵のプログラムROM
9のデータ確認テストを行なうので、インストラクショ
ン・デコーダ7の動作が禁止されていた。
In addition, in ROM dump mode, the built-in program ROM
9, the operation of the instruction decoder 7 was prohibited.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

上述した従来の論理集積回路は、ファンクションの自己
テストモードにおいて、外部インストラクション・デー
タによるファンクション動作の確認テストを行なうイン
ストラクション挿入モードと、内蔵のプログラムROM
データを確認するROMダンプ・モードとがそれぞれ独
立したモードとなっているので、外部命令により動作を
確認している時に、通常プログラムROMデータ出力は
、インストラクション・レジスタから切り離されていて
、仮に前記ROMアドレスを決定するプログラム・カウ
ンタが途中で誤動作を起こしても確認が難しく、また確
認する手段はあっても、サブルーチン・コール命令等に
よりメモリに退避されたアドレス値を汎用出力端子に出
力して確認するという繁雑な手法を用いなければならな
いという問題があった。
The conventional logic integrated circuit described above has an instruction insertion mode in which a function operation confirmation test is performed using external instruction data in a function self-test mode, and a built-in program ROM.
Since the ROM dump mode and the ROM dump mode for checking data are independent modes, when checking the operation by external instructions, the program ROM data output is usually separated from the instruction register, and if the ROM dump mode is Even if the program counter that determines the address malfunctions midway through, it is difficult to confirm, and even if there is a way to confirm, it can be confirmed by outputting the address value saved in memory by a subroutine call instruction, etc. to a general-purpose output terminal. There was a problem in that a complicated method had to be used.

本発明の目的は、外部インストラクション挿入モードと
同時にROMダンプモードとなる試験回路を有する論理
集積回路を提供することにある。
An object of the present invention is to provide a logic integrated circuit having a test circuit that is in ROM dump mode at the same time as external instruction insertion mode.

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

本発明の論理集積回路は、プログラムROMの出力デー
タを入力し二つの出力端のいずれか一つに選択出力する
出力選択回路と、該出力選択回路の一方の出力データ及
び外部インストラクションデータを二つの入力端に入力
して出力端が前記二つのデータの一つの選択してインス
トラクション・レジスタに供給する入力選択回路と、少
なくとも1つのテストモード設定端にテストモード設定
信号を入力し前記入力及び出力選択回路に対応する入力
及び出力制御端に前記テストモード設定信号を供給する
テストモード設定部とを有し、通常動作モード時には前
記プログラムROMのインストラクション・データによ
り動作し、自己テストモード動作時には前記テストモー
ド設定信号により前記外部インストラクション・データ
により動作する論理集積回路において、前記テストモー
ド設定信号が前記入力及び出力制御端に供給されて、前
記出力選択回路を介して前記プログラムROMデータを
外部に出力すると共に前記入力選択回路を介して前記外
部インストラクション・データをインストラクション・
レジスタへ入力して構成されている。
The logic integrated circuit of the present invention includes an output selection circuit that inputs output data of a program ROM and selects and outputs it to one of two output terminals, and output data of one of the output selection circuits and external instruction data to two output terminals. an input selection circuit whose output terminal selects one of the two data and supplies it to the instruction register; and an input selection circuit which inputs a test mode setting signal to at least one test mode setting terminal and selects the input and output. and a test mode setting section that supplies the test mode setting signal to the input and output control terminals corresponding to the circuit, and operates according to the instruction data of the program ROM in the normal operation mode, and operates in the test mode in the self test mode operation. In the logic integrated circuit that operates according to the external instruction data according to the setting signal, the test mode setting signal is supplied to the input and output control terminals, and the program ROM data is outputted to the outside via the output selection circuit. The external instruction data is input to the instruction via the input selection circuit.
It is configured by inputting it into a register.

〔実施例〕〔Example〕

次に、本発明の実施例について図面を参照して説明する
Next, embodiments of the present invention will be described with reference to the drawings.

第1図は本発明の第1の実施例のブロック図である。FIG. 1 is a block diagram of a first embodiment of the present invention.

マイクロコンピュータ1は、テストモード設定部4が第
3図のテストモート設定部4bと異る点以外は従来のマ
イクロコンピュータ1bと同一である。
The microcomputer 1 is the same as the conventional microcomputer 1b except that the test mode setting section 4 is different from the test mode setting section 4b shown in FIG.

テストモード設定部4は、テストモード設定端TTと入
及び出力制御端TI及びToとそれらを共通に接続する
配線11とを有している。
The test mode setting section 4 has a test mode setting terminal TT, input and output control terminals TI and To, and a wiring 11 that commonly connects them.

次に、動作を説明する。Next, the operation will be explained.

テストモード設定信号STが“1′ルベルの場合に、入
及び出力選択回路3I及び3oの“1″側が動作し、外
部インストラクション・データ入力端TIから外部イン
ストラクション・データD+が選択され、インストラク
ション・レジスタ6に読込まれると同時にプログラムR
OMデータDPRはプログラムROM出力端TPRに供
給される。
When the test mode setting signal ST is at the "1" level, the "1" side of the input and output selection circuits 3I and 3o operates, and the external instruction data D+ is selected from the external instruction data input terminal TI, and the instruction register At the same time as the program R
OM data DPR is supplied to program ROM output TPR.

逆にこのテストモード設定信号S丁が“0゛ルベルの場
合は、出刃先端回路3oの“°0”側の出力端からプロ
グラムROMデータ[)pytが入力選択回路31 “
0′″側を介してインストラクション・レジスタ6に読
込まれる。
On the other hand, when this test mode setting signal S is at "0" level, the program ROM data [)pyt is transferred from the "0" side output terminal of the cutting edge circuit 3o to the input selection circuit 31.
It is read into the instruction register 6 via the 0'' side.

従って、マイクロコンビイータ1は、インストラクショ
ン・レジスタ6のデータ信号でインストラクションデコ
ーダ7が動作するという通常使用モードとなる。
Therefore, the microcombi eater 1 is in a normal use mode in which the instruction decoder 7 operates based on the data signal of the instruction register 6.

ここで、マイクロコンピュータ1の自己テストモード時
に、外部インストラクション・データにD!によりファ
ンクション動作の確認テストを実行している際中に、常
時プログラム・カウンタ8のアドレスに対応したプログ
ラムROM5のプログラムROMデータDPRをプログ
ラムROMデータ端にTPRに出力する事で、間接的で
あるがプログラム・カウンタ8の動作確認テストも可能
となる。
Here, when the microcomputer 1 is in the self-test mode, the external instruction data is D! While performing a function operation confirmation test, the program ROM data DPR of the program ROM 5 corresponding to the address of the program counter 8 is output to the TPR at the program ROM data end, albeit indirectly. It also becomes possible to test the operation of the program counter 8.

第2図は本発明の第2の実施例のブロック図である。FIG. 2 is a block diagram of a second embodiment of the invention.

マイクロコンピュータ1aは、テストモード設定部4.
が第1図のテストモード設定部4と異る点以外は第1の
実施例のマイクロコンピュータ1と同一である。
The microcomputer 1a includes a test mode setting section 4.
is the same as the microcomputer 1 of the first embodiment except that it is different from the test mode setting section 4 of FIG.

テストモード設定部4.は、インストラクション挿入モ
ード設定端TTF及びROMダンプテストモード設定端
TTRの二つの入力端、それに対応する入力制御端T+
及び出力制御端T。とを配線e2及びe3で接続してい
る。
Test mode setting section 4. has two input terminals, an instruction insertion mode setting terminal TTF and a ROM dump test mode setting terminal TTR, and the corresponding input control terminal T+.
and output control terminal T. are connected by wires e2 and e3.

二つのj−ド設定端TTF及びTTRを同時に“1″レ
ベルとする事で、外部インストラクション・データD1
によるテストを実行しながら内部プログラムROM・デ
ータDPRをプログラムROM出力端TPHに出力して
、内部プログラム・カウンタ8の動作確認を間接的に行
なう事も互に独立に可能となる。
By setting the two j-code setting terminals TTF and TTR to the "1" level at the same time, the external instruction data D1
It is also possible to indirectly check the operation of the internal program counter 8 by outputting the internal program ROM data DPR to the program ROM output terminal TPH while executing the test.

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

以上説明したように本発明は、論理集積回路の自己テス
トモードにおいて、外部インストラクション・データに
よる内部のファンクション動作確認テストの際、同時に
内蔵プログラムROMのデータ内容を外部端子に出力す
ることにより、常にプログラム・カウンタの動作を間接
的に確認でき、マイクロコンピュータの試験が容易に行
える効果がある。
As explained above, in the self-test mode of the logic integrated circuit, the present invention constantly outputs the data contents of the built-in program ROM to the external terminal when testing the internal function operation using external instruction data. - The operation of the counter can be checked indirectly, making it easier to test microcomputers.

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

第1図は本発明の第1の実施例のブロック図、第2図は
1本発明の第2の実施例のブロック図、第3図は従来の
論理集積回路の一例のブロック図である。 1.1a・・・マイクロコンピュータ、3I・・・入力
選択回路、3o・・・出力選択回路、4及び41・・・
テストモード設定部、5・・・プログラムROM、6・
・・インストラクション・レジスタ、D+・・・外部イ
ンストラクション・データ、DPR・・・プログラムR
OM・データ、8丁・・・テストモード設定信号、T1
・・・入力制御端、To・・・出力制御端、TI・・・
外部インストラクション・データ入力端、TPR・・・
プログラムROM出力端、TT・・・テストモード設定
端、TTF・・・インストラクション挿入モード設定端
、TTR・・・ROMダンプモード設定端。
FIG. 1 is a block diagram of a first embodiment of the present invention, FIG. 2 is a block diagram of a second embodiment of the present invention, and FIG. 3 is a block diagram of an example of a conventional logic integrated circuit. 1.1a...Microcomputer, 3I...Input selection circuit, 3o...Output selection circuit, 4 and 41...
Test mode setting section, 5... program ROM, 6.
...Instruction register, D+...External instruction data, DPR...Program R
OM/data, 8 pieces...Test mode setting signal, T1
...Input control end, To...Output control end, TI...
External instruction/data input terminal, TPR...
Program ROM output terminal, TT... test mode setting terminal, TTF... instruction insertion mode setting terminal, TTR... ROM dump mode setting terminal.

Claims (1)

【特許請求の範囲】[Claims]  プログラムROMの出力データを入力し二つの出力端
のいずれか一つに選択出力する出力選択回路と、該出力
選択回路の一方の出力データ及び外部インストラクショ
ンデータを二つの入力端に入力して出力端が前記二つの
データの一つを選択してインストラクション・レジスタ
に供給する入力選択回路と、少なくとも1つのテストモ
ード設定端にテストモード設定信号を入力し前記入力及
び出力選択回路に対応する入力及び出力制御端に前記テ
ストモード設定信号を供給するテストモード設定部とを
有し、通常動作モード時には前記プログラムROMのイ
ンストラクション・データにより動作し、自己テストモ
ード動作時には前記テストモード設定信号により前記外
部インストラクション・データにより動作する論理集積
回路において、前記テストモード設定信号が前記入力及
び出力制御端に供給されて、前記出力選択回路を介して
前記プログラムROMデータを外部に出力すると共に前
記入力選択回路を介して前記外部インストラクション・
データをインストラクション・レジスタへ入力すること
を特徴とする論理集積回路。
An output selection circuit that inputs output data of a program ROM and selectively outputs it to one of two output terminals, and an output terminal that inputs output data of one of the output selection circuits and external instruction data to two input terminals and outputs it selectively to one of two output terminals. an input selection circuit that selects one of the two data and supplies it to the instruction register; and an input and output that inputs a test mode setting signal to at least one test mode setting terminal and corresponds to the input and output selection circuit. and a test mode setting section that supplies the test mode setting signal to the control end, and operates according to the instruction data of the program ROM in the normal operation mode, and operates according to the external instruction data according to the test mode setting signal during the self test mode operation. In a logic integrated circuit operated by data, the test mode setting signal is supplied to the input and output control terminals, and the program ROM data is outputted to the outside via the output selection circuit, and the program ROM data is outputted to the outside via the input selection circuit. The external instructions
A logic integrated circuit characterized by inputting data to an instruction register.
JP62313531A 1987-12-10 1987-12-10 Logical integrated circuit Pending JPH01154248A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62313531A JPH01154248A (en) 1987-12-10 1987-12-10 Logical integrated circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62313531A JPH01154248A (en) 1987-12-10 1987-12-10 Logical integrated circuit

Publications (1)

Publication Number Publication Date
JPH01154248A true JPH01154248A (en) 1989-06-16

Family

ID=18042436

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62313531A Pending JPH01154248A (en) 1987-12-10 1987-12-10 Logical integrated circuit

Country Status (1)

Country Link
JP (1) JPH01154248A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05181696A (en) * 1991-12-26 1993-07-23 Nec Corp Microcomputer system
US5872792A (en) * 1996-09-13 1999-02-16 Oki Electric Industry Co., Ltd. Microcomputer

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05181696A (en) * 1991-12-26 1993-07-23 Nec Corp Microcomputer system
US5872792A (en) * 1996-09-13 1999-02-16 Oki Electric Industry Co., Ltd. Microcomputer

Similar Documents

Publication Publication Date Title
US5133057A (en) Co-processor for control setting an internal flag register operation mode which controlled a main processor execution mode in a multi-processor system
JPS6298437A (en) Microcomputer
JPS59216249A (en) Integrated circuit device
EP0267613B1 (en) Micro processor capable of being connected with coprocessor
US5142536A (en) Data processor
US5247521A (en) Data processor
JPS61229134A (en) Microcomputer
JPH01154248A (en) Logical integrated circuit
JPH0827730B2 (en) Single-chip microcomputer and test method thereof
JPS6360424B2 (en)
US6240377B1 (en) Integrated circuit with embedded reprogrammable EEPROM and emulation method to facilitate debugging
JPS58168157A (en) Test circuit of one chip microcomputer
JPH0397031A (en) Data processor
KR100318315B1 (en) One Chip Microcomputer
JPS6031653A (en) One-chip microcomputer
JP3071044B2 (en) Test method for semiconductor integrated circuit with microcomputer
JP2935710B2 (en) Test equipment for processor integrated circuit devices
JPS5833758A (en) Programmable controller
JPS6223896B2 (en)
JPH03201037A (en) Lsi test system
JPH06222917A (en) Electronic device
JPH0716188Y2 (en) Test mode designation circuit
JPS63240639A (en) Microcomputer
KR100277901B1 (en) One chip micro computer
JPS638937A (en) Single chip microcomputer