JPS59121440A - Integration circuit - Google Patents

Integration circuit

Info

Publication number
JPS59121440A
JPS59121440A JP22771182A JP22771182A JPS59121440A JP S59121440 A JPS59121440 A JP S59121440A JP 22771182 A JP22771182 A JP 22771182A JP 22771182 A JP22771182 A JP 22771182A JP S59121440 A JPS59121440 A JP S59121440A
Authority
JP
Japan
Prior art keywords
instruction
test
branch
address
integrated circuit
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
JP22771182A
Other languages
Japanese (ja)
Inventor
Shigeo Kamiya
神谷 茂雄
Isamu Yamazaki
勇 山崎
Misao Miyata
宮田 操
Seiichi Nishio
誠一 西尾
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.)
Toshiba Corp
Original Assignee
Toshiba 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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP22771182A priority Critical patent/JPS59121440A/en
Publication of JPS59121440A publication Critical patent/JPS59121440A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

PURPOSE:To test the executing operation without having no complicated branching operation by using a run program stored in an ROM as a test program and using the control data substituting the state of a condition code as a branch instruction. CONSTITUTION:A run program is stored in an ROM1, and this ROM1 is actuated by the state of a condition code and in a run mode including an instruction with which the branching is decided. A processor 3 is provided to an integration circuit which is equal to the ROM1, and a test control circuit 8 is connected to the processor 3. Then a test mode is set by the terminals 13 and 14 which are connected to the outside. Thus it is possible to execute successively the run program of the ROM1 through the processor 3. The operation of a specific instruction is controlled by a selector 25 on the basis of the control data given from the circuit 8 when the specific instruction is decoded by a decoder 21 during execution of an instruction. Thus an executing operation is tested with no complicated branching operation.

Description

【発明の詳細な説明】 〔発明の技術分野〕 本発明はラングログラムを記憶したROMを備えたプロ
セッサからなる集積回路本体の命令実行テストを簡易に
行い得る手段を上記集積回路本体と共に集積一体化して
なる実用性の高い集積回路に関する。
DETAILED DESCRIPTION OF THE INVENTION [Technical Field of the Invention] The present invention provides a means for easily performing an instruction execution test of an integrated circuit body comprising a processor equipped with a ROM storing a Langlogram, and is integrated with the integrated circuit body. Concerning highly practical integrated circuits.

〔発明の技術的背景とその問題点〕[Technical background of the invention and its problems]

集積回路技術の発展に伴い、プログラム制御方式のプロ
セッサを高機能化、高集積化して所謂1チツプ化した集
積回路が多く開発されている。更に近年では、上記プロ
セッサの動作を担うプログラム命令を記憶したROM 
(読出し専用メモリ)を上記グロセ、すと共に集積一体
化してなる集積回路も開発されている。このようにRO
Mを−またプロセッサからなる集積回路によれば、従来
のものとは異ってプログラム命令の供給や、その実行の
為の外部接続端子、つ1リアドレス出力端子や命令入力
端子等が不要となるので、集積回路が必要とする端子数
を大幅に減らすことができ、その小型化や低価格化に大
きな効果が得られる。
2. Description of the Related Art With the development of integrated circuit technology, many integrated circuits have been developed in which program-controlled processors are highly functional and highly integrated into a so-called single chip. Furthermore, in recent years, ROM that stores program instructions responsible for the operation of the processor
An integrated circuit in which a read-only memory (read-only memory) is integrated with the above-mentioned devices has also been developed. Like this RO
Also, unlike conventional integrated circuits, integrated circuits consisting of processors do not require external connection terminals, rear address output terminals, command input terminals, etc. for supplying program instructions and executing them. Therefore, the number of terminals required by the integrated circuit can be significantly reduced, resulting in a significant effect in reducing the size and cost of the integrated circuit.

さて、上記の如く集積化されたゾロセ、すの動作機能を
テストする場合、従来ではテスト対象とする命令を外部
から上記プロセッサに対して1つずつ与え、その命令の
実行結果を得てその良否を判定することが行われている
。ところが、内部にROMを備えたプロセッサからなる
集積回路にあっては、命令が内部的に与えられる為に、
上記の如く外部から命令を与える為の端子が準備されて
いないので、上述したテスト法を採用することができな
い。そこで、プロセッサのランモード時に、命令入力以
外の用途に使用されている端子をテストモード時の命令
入力用として用い、その信号路を内部的に切換えて命令
入力を可能とする等の工夫がなされている。
Now, when testing the operational functions of the integrated processor as described above, conventionally, the instructions to be tested are externally given to the processor one by one, and the execution results of the instructions are obtained to determine whether the instructions are good or not. is being determined. However, in an integrated circuit consisting of a processor equipped with an internal ROM, instructions are given internally, so
As mentioned above, the test method described above cannot be used because no terminal is prepared for giving commands from the outside. Therefore, some ideas have been devised, such as using terminals used for purposes other than command input when the processor is in run mode for command input during test mode, and switching the signal path internally to enable command input. ing.

然し乍ら、1つの端子が複数の機能を兼ねることになる
ので、そのテスト法が複雑化すると云う問題があった。
However, since one terminal serves multiple functions, there is a problem in that the test method becomes complicated.

しかも、命令入力用に使用可能な端子数が少ない場合に
は、1つの命令を数サイクルに亘って入力することが必
要となり、更には命令を1つずつ与えてそのテストを実
行するので、テストに長い時間を必要とすると云う問題
があった。
Moreover, if the number of terminals available for inputting instructions is small, it is necessary to input one instruction over several cycles, and furthermore, the test is executed by giving instructions one by one. There was a problem in that it required a long time.

またこのようにして命令を入力する場合、その命令実行
時にはその命令入力端子に本来の機能の為のデータを与
えることが必要なことがあるので、上記命令実行時よシ
1サイクル前以上にその命令を与えておくことが必要で
ある。このことは、テストしたい命令に関する動作の一
部がその命令実行前に始まっていることを意味し、この
為そのAC特性テスト、つまシ1サイクル内に命令が正
しく動作するか否かを調べるテスト等を行うことができ
なかった。
In addition, when inputting an instruction in this way, it may be necessary to give data for the original function to the instruction input terminal when executing the instruction, so when executing the above instruction, it is necessary to input data for the original function at least one cycle before It is necessary to give commands. This means that part of the operation related to the instruction to be tested begins before the instruction is executed, and therefore, the AC characteristics test, or the test to check whether the instruction operates correctly within one cycle, is performed. etc. could not be done.

また前記集積回路化技術の発達に伴って、1つの命令が
オペレーションの他に複数のオペランドからなるフィー
ルドを持つようになってきておシ、1つのオペランドに
よって8〜16個のレジスタを選択したシ、4〜16程
度のアドレッシング法を選択できるようになっている。
In addition, with the development of integrated circuit technology, one instruction has come to have a field consisting of multiple operands in addition to the operation. , 4 to 16 addressing methods can be selected.

そこで、オペレーションやオペランドが持つ全ての機能
の組合せについてテストしようとすると、そのテスト項
目数が非常に膨大となる。このような事情を考慮して;
一般的には個々のフ′イールドをそれぞれ別にテストす
ることが行われているが、幾つかのフィールドの組合せ
によって初めて発生するような故障については、これを
テストすることができないと云う不具合があった。その
他、テストデータあるいはテストプログラムを一株類だ
け用意してテストを行うと、データの値に関する故障を
発見することができない等の問題もあった。これ故、R
OMを備えたプロセッサからなる集積回路の動作テスト
を効果的に行うことができなかった。
Therefore, if we try to test all combinations of functions that operations and operands have, the number of test items becomes extremely large. Considering these circumstances;
Generally, each field is tested separately, but there is a problem in that it is not possible to test for failures that occur for the first time due to a combination of several fields. Ta. In addition, there are other problems such as if test data or a test program is prepared for only one strain and a test is performed, it is not possible to discover failures related to data values. Therefore, R
It has not been possible to effectively test the operation of an integrated circuit consisting of a processor equipped with OM.

〔発明の目的〕[Purpose of the invention]

本発明はこのような事情を考慮してなされたもので、そ
の目的とするところは、ランモードで動作するランプロ
グラムを記憶したROMを備えたノロセッサからなる集
積回路本体の動作機能を簡易に且つ効率良くテストする
ことが可能な手段を上記集積回路本体と共に集積一体化
してなる実用性の高い集積回路を提供することにある。
The present invention has been made in consideration of these circumstances, and its purpose is to simplify the operational functions of an integrated circuit main body consisting of a processor equipped with a ROM that stores a run program that operates in run mode. It is an object of the present invention to provide a highly practical integrated circuit in which means capable of efficiently testing are integrated together with the integrated circuit main body.

〔発明の概要〕[Summary of the invention]

本発明はROMを備えたプロセッサからなる集積回路本
体に対してテストモードを設定する手段と、特定の命令
のテスト動作制御に関する制御データを外部から与える
手段と、テストモード設定時に前記ROM内のランプロ
グラムの命令を実行すると共に、この命令実行時に上記
特定の命令をデコードしたとき前記制御データに従って
該特定の命令の動作を制御する手段とを前記集積回路本
体と共に集積一体化したもので、%にコンディションコ
ードによって分岐が決定される分岐命令に対して、上記
コンディションコードに代えて前記制御データを用いて
その動作を制御するようにしたものである。
The present invention provides means for setting a test mode for an integrated circuit main body consisting of a processor equipped with a ROM, means for externally providing control data related to test operation control of a specific instruction, and A means for executing program instructions and controlling the operation of the specific instruction according to the control data when the specific instruction is decoded during execution of the instruction is integrated with the integrated circuit main body, and is integrated with the integrated circuit main body. The control data is used in place of the condition code to control the operation of a branch instruction whose branch is determined by a condition code.

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

従って本発明によれば、ROM内のランプログラムをそ
のままテストプログラムにみたててプロセッサによる命
令実行テストを行うので、外部から命令を与える必要が
なく、故に容易に且つ高速にテストを行い得る。しかも
プログラム内の分岐命令については、制御データによっ
てその実行制御を行い得るので、本来のプログラムの流
れとは無関係に、必要とするテストのみを行わしめるこ
とができる。この為テストデータを容易に作成して所要
とするテストを確実に行わしめることができ、実用上絶
大なる効果が奏せられる。
Therefore, according to the present invention, since the run program in the ROM is treated as a test program and the instruction execution test is performed by the processor, there is no need to provide instructions from the outside, and therefore the test can be performed easily and at high speed. Moreover, since the execution of branch instructions within a program can be controlled using control data, only necessary tests can be performed regardless of the original flow of the program. For this reason, test data can be easily created and required tests can be carried out reliably, resulting in great practical effects.

〔発明の実施例〕[Embodiments of the invention]

以下、図面を参照して本発明の一実施例につき説明する
Hereinafter, one embodiment of the present invention will be described with reference to the drawings.

第1図は実施例に係る集積回路の概略構成図でオシ、図
中1はランモードで動作するランプログラムを記憶した
ROM (読出し専用メモリ)でおる。このROM 1
から読出される上記、ランプログラムの命令が、現実行
中命令として命令レジスタ2にセットされ、プロセッサ
3はこの命令を受けて動作する。このゾロセッサ3は、
主としてアキュムレータやゼネラルレジスタ、算   
゛術論理演算ユニ、) ト(ALU) 、ランダム・ア
クセス・メモIJ (RAM)等を備えて構成され、前
記命令レジスタ2にセットされた命令に従って所定の演
算処理を実行するものである。この際、ソロセッサ3は
、データ入力端子4から与えられるデータを入力して、
上述した所定の処理を実行し、その実行結果をデータ出
力端子5を介し、て出力するものとなっている。また図
中、6はアドレスデータであシ、次に実行予定の命令の
前記ROM 1に対するアドレスデータを格納し、これ
をROM 1のアドレス端子に与えるよう罠なっている
。これらによって、゛集積回路本体が構成されている。
FIG. 1 is a schematic configuration diagram of an integrated circuit according to an embodiment. In the figure, 1 is a ROM (read-only memory) that stores a run program that operates in a run mode. This ROM 1
The command of the run program read from the above is set in the command register 2 as the command currently being executed, and the processor 3 operates in response to this command. This Zorosessa 3 is
Mainly used for accumulators, general registers, and calculations.
It is comprised of an ALU, a random access memory (RAM), and the like, and executes predetermined arithmetic processing according to instructions set in the instruction register 2. At this time, the sole processor 3 inputs the data given from the data input terminal 4,
The above-mentioned predetermined processing is executed and the execution results are outputted via the data output terminal 5. Further, in the figure, reference numeral 6 indicates address data, and the address data for the ROM 1 of the next instruction scheduled to be executed is stored, and this is a trap to be applied to the address terminal of the ROM 1. These constitute the integrated circuit body.

このような集積回路本体に対して、本集積回路はテスト
制御回路8およびその周辺回路を集積一体化して構成さ
れる。上記テスト制御回路8は、前記集積回路本体に対
してテストモードを設定すると共に、各種のテスト制御
信号を発生している。即ち、テスト制御回路8はテスト
通知フリップフロラfilとテスト実行ノリツノフロッ
プ12とを備え、テスト実行の全体を制御している。上
記テスト通知フリップフロップ11はD型のフリップフ
ロップからなり、端子13に与えられるテストモード信
号をD入力に受け、端子14に与えられるテスト実行信
号をクロック端子に受けてセットされる。そして、この
クリップフロアゾ1ノのQ出力は、J−にフリップフロ
ップからなるテスト実行ノリツノフロップ12のJ端子
に入力され、端子15を介して入力されるクロック信号
に同期して同フリップフロップ12をセットする。この
テスト実行7リツゾフロツゾ12のセットによシ前言己
プロセッサ3をはじめとする集積回路本体に対してテス
トモードが設定されることになる。またこのテスト実行
ノリツノフロップ12は、前記データ入力端子4を介し
てテスト実行ステツゾ数がプリセットされるダウンカウ
ンタカニらなるテストストップカウンタ16のビローイ
M号を受けてリセットされる。上記テストス)7デカ 
   ′ウンタ16は、前記クロ、りを受けてゾ1ノセ
ットされたデータをダウンカウントするものでわシ、従
って、所定ステップ数の命令実子テテストが終了したと
き、テスト実行ノリツノフロップ12がリセツトされ、
テストモーゝ力玉解除される。伺、テスト実行7リツプ
フロツプ12のQ出力はゾロセ、す3に与えられると共
に、前言己テスト通知フリッゾ70ツブ11に与えられ
て、これをリセットするものとなっている。つまり、 
    ・テスト実行ノリツノフロップ12のセットに
より、テスト通知フリップフロップ11 力S IJ上
セツトれる。゛またテスト制御回路8にはシフトレジス
タからなる分岐シフタ17が設けられている。この分岐
シフタ17は、例えば分岐を指定するデータ「1」およ
び分岐を阻止するデータ「0」をノクラレルにプリセッ
トしておシ、後述するようにプロセッサ3において分岐
命令がデコードされる都度、そのデコード信号をアンド
回路18を介して入力するものであシ、これによって上
記分岐を行うか否かを指定するデータをシリアルに出力
する。更には、テスト制御回路8には、テストモード信
号と、テスト実行フリップフロップ12の互出力を受け
るアンド回路19が設けられている。この出力によって
、テストモード信号が与えられてから、テストの実行が
開始される迄の期間、これをテスト準備期間とする信号
が出力されるようになっている。
In contrast to such an integrated circuit main body, the present integrated circuit is constructed by integrating the test control circuit 8 and its peripheral circuits. The test control circuit 8 sets a test mode for the integrated circuit body and generates various test control signals. That is, the test control circuit 8 includes a test notification flip-flop fil and a test execution control flop 12, and controls the entire test execution. The test notification flip-flop 11 is a D-type flip-flop, and is set by receiving a test mode signal applied to a terminal 13 at its D input, and receiving a test execution signal applied to a terminal 14 at its clock terminal. The Q output of this clip floor sensor 1 is input to the J terminal of a test execution flop 12 which is a flip-flop at J-, and is input to the J terminal of the test execution flop 12 which is a flip-flop. Set 12. By setting the test execution 7 processor 12, a test mode is set for the main body of the integrated circuit including the processor 3. Further, the test execution control flop 12 is reset by receiving the following M number of a test stop counter 16, which is a down counter, into which the number of test execution steps is preset via the data input terminal 4. Testos above) 7 deca
The counter 16 is for counting down the data set in response to the above-mentioned clock. Therefore, when the instruction test of a predetermined number of steps is completed, the test execution flop 12 is reset. ,
Test mode is released. The Q output of the test execution flip-flop 12 is applied to the output circuit 3 and also to the test notification flip-flop 70 block 11 to reset it. In other words,
- By setting the test execution flip-flop 12, the test notification flip-flop 11 is set. ``The test control circuit 8 is also provided with a branch shifter 17 consisting of a shift register. This branch shifter 17 presets, for example, data "1" specifying a branch and data "0" blocking a branch in the node, and as described later, each time a branch instruction is decoded in the processor 3, the branch shifter 17 decodes the branch instruction. A signal is inputted through an AND circuit 18, which serially outputs data specifying whether or not to perform the above-mentioned branching. Furthermore, the test control circuit 8 is provided with an AND circuit 19 that receives the test mode signal and the mutual output of the test execution flip-flop 12. By this output, a signal is output that defines the period from when the test mode signal is applied until the start of test execution as a test preparation period.

ところで、プロセッサ3には、前記命令レノスタ2にセ
ットされた命令のオペレーションコード2aをデコード
するデコーダ21が設けられておシ、このデコーダ21
が各種の分岐命令をデコードして得られるデコード出力
はオア回路22を介して抽出されている。これによって
、現実行中の命令が分岐命令であることが検出される。
By the way, the processor 3 is provided with a decoder 21 that decodes the operation code 2a of the instruction set in the instruction renoster 2.
Decoded outputs obtained by decoding various branch instructions are extracted via an OR circuit 22. As a result, it is detected that the instruction currently being executed is a branch instruction.

このオア回路22の出力が前記テスト制御回路8のアン
ド回路18に与えられる。また命令レジスタ2に格納さ
、れた命令が分岐命令であるとき、その分岐条件を示す
分岐条件7A−ルドは、プロセッサ2のロジック回路2
3に与えられる。このロジック回路23は、集積回路本
体の内部状態を記憶したステータスレジスタ24のコン
ディションコードを入力して上記分岐条件に従って分岐
するか否かを決定するものである。このロジック回路2
3の出力によって、ランモード時には、コンディション
コードの状態に従う分岐制御が行われる。しかして、上
記ロジック回路23の出力はセレクタ25に与えられ、
前記分岐シフタ12からの出力との間で、前記フリ、プ
フロップ12のQ出力に従って出力選択されるようにな
っている。そして、ランモード時には、ロジック回路2
3の出力が選択され、テストモード時には、上記ロジッ
ク回路23の出力に代えて、前記分岐シフタ17からの
信号が選択出力されるようになっている。つまシ、テス
ト実行時には、コンディションコードの状態に従う分岐
命令の制御が、分岐シフタ17から得られる信号によっ
て制御されるよう罠なっている。このセレクタ25を介
して選択される信号がアンド回路26を介して、分岐命
令デコード時に出力される。
The output of this OR circuit 22 is applied to the AND circuit 18 of the test control circuit 8. Further, when the instruction stored in the instruction register 2 is a branch instruction, the branch condition 7A-LD indicating the branch condition is stored in the logic circuit 2 of the processor 2.
given to 3. This logic circuit 23 inputs the condition code of the status register 24 which stores the internal state of the integrated circuit main body, and determines whether or not to branch according to the above-mentioned branch condition. This logic circuit 2
In the run mode, branch control is performed according to the state of the condition code by the output of 3. Therefore, the output of the logic circuit 23 is given to the selector 25,
The output is selected between the output from the branch shifter 12 and the Q output of the flip-flop 12. In run mode, logic circuit 2
3 is selected, and in the test mode, the signal from the branch shifter 17 is selectively output in place of the output of the logic circuit 23. Finally, during test execution, control of branch instructions according to the state of the condition code is controlled by the signal obtained from the branch shifter 17. A signal selected via this selector 25 is output via an AND circuit 26 when a branch instruction is decoded.

一方、前記アドレスレジスタ6にセットされるアドレス
データは次のようにして制御される。
On the other hand, the address data set in the address register 6 is controlled as follows.

このアドレスレジスタ6の入力段には、2段のセレクタ
27.28が設けられており、前記アンド回路19の出
力によるテスト準備期間には前記データ入力端子4から
与えられるアドレスデータがセットされるようになって
いる。また命令実行時には、セレクタ27が切換えられ
て、2段目のセレクタ21jKよって選択された内部的
に発生されたアドレスデータがセットされるようになっ
ている。この2段目のセレクタ27は、前記分岐命令の
デコード時に前記アンド回路26からの信号を受けて動
作するもので、分岐指示があるとき、前記命令レジスタ
2にセットされた分岐先のアドレスデータ2Cを選択し
ている。また、分岐指示がない場合には、アドレスレジ
スタ6にセットされたアドレスデータを1番地歩進して
なるカウントアンプ回路29の出力を選択するものとな
っている。これによって、ROM l内の命令が1番地
ずつ順に実行制御されることになる。同、アドレスレジ
スタ6にセットされたアドレスデータは、例えばテスト
実行の終了時等、化カバ、ファ7を介して前記データ出
力端子5から出力されるようになっている。
Two stage selectors 27 and 28 are provided at the input stage of the address register 6, and the address data given from the data input terminal 4 is set during the test preparation period by the output of the AND circuit 19. It has become. Further, when an instruction is executed, the selector 27 is switched and internally generated address data selected by the second stage selector 21jK is set. This second stage selector 27 operates upon receiving a signal from the AND circuit 26 when decoding the branch instruction, and when there is a branch instruction, the branch destination address data 2C set in the instruction register 2 is selected. If there is no branch instruction, the output of the count amplifier circuit 29, which is obtained by incrementing the address data set in the address register 6 by one address, is selected. As a result, the instructions in ROM 1 are controlled to be executed one by one in sequence. Similarly, the address data set in the address register 6 is outputted from the data output terminal 5 via the converter cover 7, for example, at the end of test execution.

本実施例に係る集積回路は、上記の如く集積回路本体と
共に、テスト実行の為のテスト制御回路8およびその周
辺回路を設け、これらを集積一体化して構成される。
The integrated circuit according to this embodiment is constructed by integrating the test control circuit 8 for test execution and its peripheral circuits together with the integrated circuit main body as described above.

ところで、前記ROM Jには例えば第2図に示す如き
ランプログラムが予め記憶される。この第2図に示すも
のは、101番地から202番地までのラングログラム
を示したものであシ、101番地にはプロセッサ3のゼ
ネラルレジスタGROK 7’−夕r1000Jをロー
ドする旨のロード命令が格納されまた10202番地、
ゼネラルレジスタGROに格納されたデータとデータ「
1」とのアンド処理を行い、その結果をゼネラルレジス
タGR1に格納する旨のアンド命令が登録されている。
Incidentally, the ROM J stores in advance a run program as shown in FIG. 2, for example. What is shown in FIG. 2 is a Langlogram from address 101 to address 202. At address 101, a load instruction to load the general register GROK7'-INTER1000J of processor 3 is stored. Sarimata 10202,
Data and data stored in the general register GRO
1'' and stores the result in the general register GR1.

また10303番地10707番地令については省略し
であるが、ここには分岐命令が含まれないものとする。
Also, although the instructions at addresses 10303 and 10707 are omitted, it is assumed that no branch instructions are included here.

そして10808番地、ゼネラルレジスタGR15のデ
ータからデータr1234Jを引算して、その結果をゼ
ネラルレジスタGROに格納する旨の引算命令が、また
10909番地、1つ前の命令、つまシ108番地で行
われた命令の実行結果が零でなければ20000番地岐
し、零である場合には次の番地、つまり110番地の命
令実行に進む旨の条件付き分岐命令が格納されている。
Then, a subtraction instruction to subtract data r1234J from the data in general register GR15 at address 10808 and store the result in general register GRO is executed again at address 10909, the previous instruction, and at address 108. A conditional branch instruction is stored that indicates that if the execution result of the received instruction is not zero, the program will branch to address 20,000, and if it is zero, the program will proceed to the next address, that is, address 110.

そして、20000番地アンド命令が登録され、201
01番地20000番地命令実行結果が零であるときに
は210番地に分岐し、零でないとき罠は次の2020
2番地むことを指示する分岐命令が格納されている。し
かして、17a。
Then, the address 20000 and instruction is registered, and 201
01 address 20000 address If the execution result of the instruction is zero, it branches to address 210, and if it is not zero, the trap is the next 2020 address.
A branch instruction instructing to go to address 2 is stored. However, 17a.

17bは、分岐命令をデコードする都度、コンディショ
ンコードの状態に従うロジック回路23の出力に代えて
前記分岐シフタ17よシ出力される制御データを示して
おり、1回目の分岐命令時には、そのまま分岐命令を実
行し、2回目の分岐命令時には、その分岐を行わせない
ことが示される。
Reference numeral 17b indicates control data output from the branch shifter 17 in place of the output from the logic circuit 23 according to the state of the condition code each time a branch instruction is decoded. When the branch instruction is executed for the second time, it is indicated that the branch is not to be executed.

このようなラングロダラムをROM 1に記憶してなる
集積回路本体の命令実行動作をテストする場合、例えば
次のようにして行われる。即ち先ずテストモード信号を
端子13に加える。これによって、テスト実行フリッゾ
フロッ7°12がリセット状態にあることから、アンド
回路19の出力としてテスト準備モードが設定される。
When testing the instruction execution operation of the integrated circuit main body formed by storing such a Langrodorum in the ROM 1, the test is performed, for example, as follows. That is, first, a test mode signal is applied to the terminal 13. As a result, since the test execution frizz 7° 12 is in the reset state, the test preparation mode is set as the output of the AND circuit 19.

この状態でデータ入力端子4を介してテストの為の初期
データをゾロセッサ2の内部のアキュムレータやゼネラ
ルレジスタ等にセットする。
In this state, initial data for testing is set in the accumulator, general register, etc. inside the processor 2 via the data input terminal 4.

次にアドレスレジスタ6には、テストを実行する命令の
開始アドレスデータをセットし、カウンタ16にはテス
トの命令ステップ数を、そして分岐シフタ17には分岐
を制御する制御データをそれぞれセットする。これらは
全てデータ入力端子4を介して、各データを入力するこ
とによって行われ、これによってテストの準備が完了す
る。
Next, the address register 6 is set with the start address data of the instruction to be tested, the counter 16 is set with the number of test instruction steps, and the branch shifter 17 is set with control data for controlling branching. All of these are performed by inputting each data via the data input terminal 4, thereby completing preparation for the test.

しかるのち、端子14にテスト実行信号を入力すると、
テスト通知フリッゾフロップ1ノがセットされ、しかる
のち端子15より入力されるクロック信号に同期してテ
スト実行フリッゾフロッf12がセットされる。これに
よってテストが開始される。テストは、アドレスレジス
タ6にセットされたアドレスデータによってROM J
をアクセスし、その番地に格納された命令を命令レジス
タ2にセットして行われる。このとき、該命令が分岐命
令でないときには、その命令がプロセッサ3によってそ
のまま実行される。その後、次のクロックを受けて、新
たにアドレスレジスタ6にセットされた次の番地を示す
アドレスデータによって、次の命令が読出されて実行さ
れる。この処理が順次繰返して実行される。しかして今
、実行される命令が分岐命令である場合、デコーダ21
がこれをデコードして分岐シフタ17にクロックを与え
る。これにより分岐シフタ17から制御データが与えら
れ、この制御データに従って分岐するか否かが制御され
る。つ捷り、命令レジスタ2にセットされた分岐先のア
ドレスデータをアドレスレジスタ6にセットするか、或
いはカウントアツプ回路29により得られた次の番地を
示すアドレスデータをアドレスカウンタ6にセットする
かの制御が行われる。
Afterwards, when a test execution signal is input to terminal 14,
The test notification frizzo flop 1 is set, and then, in synchronization with the clock signal input from the terminal 15, the test execution frizzo flop f12 is set. This will start the test. The test is performed using the address data set in the address register 6.
This is done by accessing the address and setting the instruction stored at that address in the instruction register 2. At this time, if the instruction is not a branch instruction, the instruction is executed by the processor 3 as is. Thereafter, in response to the next clock, the next instruction is read out and executed using the address data newly set in the address register 6 indicating the next address. This process is executed repeatedly in sequence. However, if the instruction to be executed now is a branch instruction, the decoder 21
decodes this and provides a clock to the branch shifter 17. As a result, control data is provided from the branch shifter 17, and whether or not to branch is controlled according to this control data. The address data of the branch destination set in the instruction register 2 is set in the address register 6, or the address data indicating the next address obtained by the count up circuit 29 is set in the address counter 6. Control takes place.

このような命令の実行が次々に行われ、その実行の都度
ダウンカウントされるカウンタ16の出力によって、プ
リセットした命令実行ステップ数だけ命令が実行された
とき、テスト実行フリップフロッゾ12がリセットされ
てテストが終了する。しかるのち、データ出力端子5を
介して、アキュムレータ等の各種データ内容やアドレス
レジスタ6にセットされているアドレスデータ等を読出
し、これを検査することKよって、その実行動作の良否
が判定されることになる。このようにして、例えばRO
M 1における命令のアドレス領域を区分し乍ら、その
全てについてテストすれば、集積回路本体の良・不良を
確実に検査することが可能となる。
When such instructions are executed one after another and the output of the counter 16 counts down each time the instructions are executed for the preset number of instruction execution steps, the test execution flip-flop 12 is reset and the test is started. ends. Thereafter, various data contents of the accumulator, etc., address data set in the address register 6, etc. are read out via the data output terminal 5 and checked, thereby determining whether the execution operation is good or bad. become. In this way, for example RO
By dividing the instruction address areas in M1 and testing all of them, it is possible to reliably inspect whether the integrated circuit itself is good or bad.

以上のように本発明によれば、ROM Jに記憶された
ラングログラムをテストグロダラムにみたてて、分岐命
令については、コンディションコードの状態に変わる制
御データを与えることによって複雑な分岐を招くことな
しにその実行動作テストを行い得る。従って、例えば数
ステップ乃至数十ステップを1単位として命令動作を連
続的にテストすることができるので、そのテスト所要時
間を大幅に短縮してテスト効率を高めることができる。
As described above, according to the present invention, the Langlogram stored in ROM J is treated as a test gramogram, and for branch instructions, it is possible to prevent complicated branches by giving control data that changes to the state of the condition code. You can test its execution behavior without any need. Therefore, it is possible to continuously test instruction operations in units of, for example, several steps to several tens of steps, thereby significantly shortening the time required for the test and increasing test efficiency.

また分岐命令については、その流れを外部よシ設定した
制御データによって制御できるので、多重ループを形成
することなしに必要なテストのみを効率良く行い得透。
Furthermore, since the flow of branch instructions can be controlled by externally set control data, only the necessary tests can be performed efficiently without forming multiple loops.

従って、プログラムに対する解析や、この解析結果に基
づくテストデータの作成を容易ならしめ、しかもテスト
結果に対する考察も容易にすることができる。故に、簡
易にして効率良く、しかも信頼性の高いテストを行うこ
とができ実用上多大なる効果が奏せられる。
Therefore, it is possible to easily analyze the program and create test data based on the results of this analysis, and also to easily consider the test results. Therefore, it is possible to conduct a simple, efficient, and highly reliable test, which has a great practical effect.

尚、本発明は上記実施例に限定されるものではない。例
えば第3図に示すようにセレクタ25に対して、端子9
を介して外部よ多制御データを直接与えるようにしても
よい。このようにすればIloの入出力状態等によって
命令を実行するか否かを制御する場合についてもテスト
することが可能となシ、更に多くの効果を期待すること
ができる。要するに本発明は、その要旨を逸脱しない範
囲で種々変形して実施することができる。
Note that the present invention is not limited to the above embodiments. For example, as shown in FIG.
It is also possible to directly give external control data via the external controller. In this way, it is possible to test whether or not to execute an instruction based on the input/output state of Ilo, etc., and even more effects can be expected. In short, the present invention can be implemented with various modifications without departing from the gist thereof.

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

第1図は本発明の一実施例を示す概略構成図、第2図は
ROMに記憶されるプログラムの一例を分岐命令に対す
る制御データとの関係を示す図、第3図は本発明の変形
例を示す要部構成図である。 1・・・ROM、2・・・命令レジスタ、3・・・プロ
セッサ、4・・・データ入力端子、5・・・データ出力
端子、6・・・アドレスレジスタ、7・・・出力ハッフ
ァ、8・・・テスト制御回路、1ノ・・・テスト通知フ
リッゾフロップ、12・・・テスト実行フリップ70ツ
ブ、13.14,15.30・・・端子、16・・・テ
ストストップカウンタ、17・・・分岐シフタ、18゜
19・・・アンド回路、21・・・デコーダ、22・・
・オア回路、23・・・ロジック回路、24・・・ステ
ータスレジスタ、25,27.28・・・セレクタ、2
6・・・アンド回路、−29・・・カウントア、f回路
。 出願人代理人  弁理士 鈴 江 武 彦牙1図 牙2図 才3図 特許庁長官  若 杉 和 夫  殿 l、事件の表示 特願昭57−227711号 2、発明の名称 集積回路 3、補正をする者 事件との関係 特許出願人 (307)   東京芝浦電気株式会社4、代理人 5、自発補正− ″、補正の内容 (11明細書、第14頁第9行目に「出力バッファ7」
とある前に、「出力セレクタIσから」なる字句を加入
する。 (2)  同、第18頁第3〜6行目に「デコーダ21
が〜この制御データjとあるを「分岐シフタ17が出力
している制御r−夕」と訂正する。 (3)  同、第18負第12行目に「制御が行われる
。Jとある次に、「そして分岐命令実行終了時には、分
岐シフタ17は1ビツトンフトを行い、これによって次
の制御データが出力される。」なる文章全加入する。 (4)  図面、第1図を別紙の通り訂正する。
FIG. 1 is a schematic configuration diagram showing an embodiment of the present invention, FIG. 2 is a diagram showing the relationship between an example of a program stored in a ROM and control data for branch instructions, and FIG. 3 is a modification of the present invention. It is a main part configuration diagram showing the. DESCRIPTION OF SYMBOLS 1... ROM, 2... Instruction register, 3... Processor, 4... Data input terminal, 5... Data output terminal, 6... Address register, 7... Output huffer, 8 . . . Test control circuit, 1 No. . . . Test notification frizzo flop, 12 . Branch shifter, 18°19...AND circuit, 21...decoder, 22...
・OR circuit, 23...Logic circuit, 24...Status register, 25, 27.28...Selector, 2
6...AND circuit, -29...counter, f circuit. Applicant's representative Patent attorney Takehiko Suzue 1, 2, 3, Director of the Patent Office Kazuo Wakasugi, Indication of the case, Patent Application No. 57-227711 2, Name of the invention, Integrated circuit 3, Amendment. Patent applicant (307) Tokyo Shibaura Electric Co., Ltd. 4, Agent 5, Voluntary amendment - '', Contents of the amendment (11 Specification, page 14, line 9, ``Output buffer 7'')
Before the phrase ``from output selector Iσ'' is added. (2) Same, page 18, lines 3 to 6, “Decoder 21
This control data j is corrected to read "control r output by the branch shifter 17". (3) In the same line, the 18th negative 12th line says ``Control is performed. Add all the sentences that say "It will be done." (4) The drawing and Figure 1 will be corrected as shown in the attached sheet.

Claims (3)

【特許請求の範囲】[Claims] (1)  コンディションコードの状態によシ分岐が決
定される分岐命令を含んだ命令からなるランモードで動
作するランノログラムを記憶したROMを備えたプロセ
ッサからなる集積回路本体九対してテストモードを設定
する手段と、このテストモード設定時に特定の命令の動
作制御に関する制御データを外部から与える手段と、該
テストモード設定時に前記ROM内のランプログラムの
命令の1つまたは複数の命令を順に実行すると共に、こ
の命令実行時に前記特定の命令をデコードしたとき前記
制御データに従って該特定の命令の動作を制御する手段
とを前記集積回路本体と共に集積一体化してなることを
特徴とする集積回路。
(1) A test mode is set for nine integrated circuit main bodies consisting of a processor equipped with a ROM storing a runnogram that operates in a run mode consisting of instructions including branch instructions in which branching is determined by the state of a condition code. means for externally providing control data related to operation control of a specific instruction when setting the test mode; and means for sequentially executing one or more instructions of the run program in the ROM when setting the test mode; An integrated circuit comprising: means for controlling the operation of the specific instruction according to the control data when the specific instruction is decoded during execution of the instruction; and a means for controlling the operation of the specific instruction according to the control data.
(2)  %定の命令はコンディションコードの状態に
従って分岐するか否かを決定する分岐命令てあって、制
御データは上記コンディションコードに代えて上記分岐
命令に与えられるものである特許請求の範囲第1項記載
の集積回路。
(2) The fixed instruction is a branch instruction that determines whether to branch according to the state of a condition code, and the control data is given to the branch instruction instead of the condition code. The integrated circuit according to item 1.
(3)外部から与えられる制御データは、テストモード
時に記憶保持されるものである特許請求の範囲第1項記
載の集積回路。
(3) The integrated circuit according to claim 1, wherein the control data applied from the outside is stored and retained during the test mode.
JP22771182A 1982-12-28 1982-12-28 Integration circuit Pending JPS59121440A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP22771182A JPS59121440A (en) 1982-12-28 1982-12-28 Integration circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP22771182A JPS59121440A (en) 1982-12-28 1982-12-28 Integration circuit

Publications (1)

Publication Number Publication Date
JPS59121440A true JPS59121440A (en) 1984-07-13

Family

ID=16865148

Family Applications (1)

Application Number Title Priority Date Filing Date
JP22771182A Pending JPS59121440A (en) 1982-12-28 1982-12-28 Integration circuit

Country Status (1)

Country Link
JP (1) JPS59121440A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8468327B2 (en) 2008-12-26 2013-06-18 Fujitsu Limited Processor test apparatus, processor test method, and processor test program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8468327B2 (en) 2008-12-26 2013-06-18 Fujitsu Limited Processor test apparatus, processor test method, and processor test program

Similar Documents

Publication Publication Date Title
US4672534A (en) Integrated circuit device incorporating a data processing unit and a ROM storing applications program therein
US4719565A (en) Interrupt and trap handling in microprogram sequencer
EP0180196B1 (en) Programmable counter/timer device
JPH01233527A (en) Self-testing circuit for information processor
JPH0447856B2 (en)
US7028162B2 (en) Configurable processing block capable of interacting with external hardware
JP2594130B2 (en) Semiconductor circuit
JPS59121440A (en) Integration circuit
EP0448127B1 (en) Microprogram sequence controller
US5938762A (en) Method and apparatus for performing exception processing routine in pipeline processing
JPS59121449A (en) Integrated circuit
KR940002321B1 (en) Microcoded processor executing microroutines with a user specified starting microaddress
JPS6167148A (en) Microcomputer
JPS59121448A (en) Integrated circuit
KR100318315B1 (en) One Chip Microcomputer
Kalachev Forth SOFT-processor with Hardware Stacks
JPS6116334A (en) Data processor
KR0162462B1 (en) Device and method for driving microprocessor
JP2604203B2 (en) Debug device for one-chip digital signal processor
JPS63216141A (en) Microcomputer device
JPS63129430A (en) Microprogram controller
JPS6015969B2 (en) Microinstruction address generation method
JPS62271022A (en) Microprogram controller
JPH0226252B2 (en)
JPH047754A (en) Microcomputer