JPH077343B2 - Micro computer - Google Patents

Micro computer

Info

Publication number
JPH077343B2
JPH077343B2 JP60042183A JP4218385A JPH077343B2 JP H077343 B2 JPH077343 B2 JP H077343B2 JP 60042183 A JP60042183 A JP 60042183A JP 4218385 A JP4218385 A JP 4218385A JP H077343 B2 JPH077343 B2 JP H077343B2
Authority
JP
Japan
Prior art keywords
instruction
signal
rom
program
microcomputer
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP60042183A
Other languages
Japanese (ja)
Other versions
JPS61201344A (en
Inventor
和秀 河田
廣之 鈴木
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 JP60042183A priority Critical patent/JPH077343B2/en
Publication of JPS61201344A publication Critical patent/JPS61201344A/en
Publication of JPH077343B2 publication Critical patent/JPH077343B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing

Landscapes

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

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、顧客のプログラムが格納されたROMを備えた
マイクロコンピュータに関する。
The present invention relates to a microcomputer provided with a ROM that stores a customer's program.

〔従来の技術〕[Conventional technology]

従来、この種のマイクロコンピュータの試験は、マイク
ロコンピュータを試験状態に切り換え、外部からマイク
ロコンピュータの試験状態時の入力端子により命令を入
力しその応答を期待値と比較する機能試験と、顧客のプ
ログラムが格納されているROMの各アドレスの情報をコ
ンピュータの端子より出力し、予め顧客のプログラムを
基にして作った期待値情報と比較するROM内容確認試験
からなる。
Conventionally, this type of microcomputer test is performed by switching the microcomputer to a test state, inputting a command from the outside through an input terminal in the test state of the microcomputer, and comparing the response with an expected value, and a customer program. This is a ROM content confirmation test in which the information of each address of the ROM in which is stored is output from the terminal of the computer and is compared with the expected value information created based on the customer's program in advance.

〔発明が解決しようとする問題点〕[Problems to be solved by the invention]

機能試験において入力される命令はマイクロコンピュー
タを製造するメーカ側で作られるので命令のシーケンス
は限定されてしまうのに対して、ROMに格納される顧客
のプログラムによる命令シーケンスは無数にある。ROM
内容確認試験ではROMに顧客の命令が正しくROMに格納さ
れたかどうかを確認するだけで、顧客のプログラムが正
確にマイクロコンピュータを動かすかどうかは確認でき
ない。
Since the command input in the functional test is created by the manufacturer of the microcomputer, the command sequence is limited, while the command sequence stored by the customer in the ROM is innumerable. ROM
In the content confirmation test, the ROM only confirms whether the customer's instructions are correctly stored in the ROM, and cannot confirm whether the customer's program operates the microcomputer correctly.

このために、従来のマイクロコンピュータではメーカ側
で行った試験では良品となるが、実装の状態では命令の
組み合せに起因する不良のため正しく動作しない場合が
あった。
For this reason, although the conventional microcomputer is a non-defective product in the test performed by the manufacturer, it may not operate properly in the mounted state due to a defect resulting from a combination of instructions.

本発明の目的は、ROMに格納されている顧客のプログラ
ムが正しくコンピュータを動作させるかどうかを確認す
ることができるマイクロコンピュータを提供することで
ある。
An object of the present invention is to provide a microcomputer capable of confirming whether a customer program stored in a ROM operates a computer properly.

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

本発明は、マイクロコンピュータの機能確認試験時に、
前記ROMから分岐命令、スキップ命令、レジスタおよび
/またはメモリへのデータ設定命令が読出された場合に
これら命令を無視する手段を備えたことを特徴とする。
The present invention, during the function confirmation test of the microcomputer,
When a branch instruction, a skip instruction, a data setting instruction to a register and / or a memory are read from the ROM, a means for ignoring these instructions is provided.

したがって、顧客のプログラムにループがあったとき、
ループが無視され、さらにプログラムの条件によって実
行されないスキップ命令の次の命令も実行でき、これに
よりROMに格納されたプログラムによる命令は0番地か
ら順に最後の番地まで実行され、顧客のプログラムによ
る命令シーケンス毎にマイクロコンピュータの機能が確
認できる。
So when a customer program has a loop,
The loop is ignored, and the next instruction after the skip instruction that is not executed due to the condition of the program can also be executed. As a result, the instructions by the program stored in ROM are executed sequentially from address 0 to the last address, and the instruction sequence by the customer program is executed. The function of the microcomputer can be confirmed every time.

〔実施例〕〔Example〕

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

第1図は本発明によるマイクロコンピュータの一実施例
の要部ブロック図である。
FIG. 1 is a block diagram of essential parts of an embodiment of a microcomputer according to the present invention.

ROM1には顧客のプログラムが格納されている。アドレス
デコーダ3はプログラムカウンタ2のカウント値をデコ
ードしてROM1のアドレスを発生する。インストラクショ
ンデコーダ5はデータバス4を通してROM1から読出され
た命令をデコードし分岐命令の場合にはロード信号S
1を、レジスタ、メモリデータ設定命令の場合にはデー
タ設定信号S2を出力し、スキップ命令の場合にはスキッ
プ命令の次のアドレスにある命令を実行するかしないか
の判断信号S3を入力する。メモリ6またはレジスタ7に
はROM1から読出された命令がレジスタ、メモリデータ設
定命令の場合に、インストラクションデコーダ5からデ
ータ設定信号S2が出力されて、通常その命令で設定され
たデータが格納される。禁止信号発生回路8は、マイク
ロコンピュータ試験時のROM1に内蔵されているプログラ
ムによる機能確認試験の場合に試験状態信号S4がイネー
ブル状態になって、いずれもロウレベルの分岐命令禁止
信号S5、データ設定命令禁止信号S6、スキップ命令禁止
信号S7を発生する。このときリセット信号S7によりプロ
グラムカウンタ2はリセットされる。アンドゲート9は
通常のインストラクションデコーダ5からのロード信号
S1を通過させてプログラムカウンタ2にROM1からの番地
データをロードさせるが、分岐命令禁止信号S5が出力さ
れると閉じてロード信号S1を無視する。アンドゲート11
は通常はインストラクションデコーダ5からのデータ設
定命令S2を通過させてメモリ6またはレジスタ7にデー
タを格納させるが、データ設定命令禁止信号S6が出力さ
れると閉じてデータ設定信号S2を無視する。アンドゲー
ト10は通常は判断信号S3をインストラクションデコーダ
5に送出するが、スキップ命令禁止信号S7が出力される
と閉じて判断信号S3を無視する。
ROM1 stores the customer's program. The address decoder 3 decodes the count value of the program counter 2 to generate the address of the ROM 1. The instruction decoder 5 decodes the instruction read from the ROM 1 through the data bus 4, and in the case of a branch instruction, the load signal S
1 , output the data setting signal S 2 in the case of a register / memory data setting instruction, and input the judgment signal S 3 in the case of the skip instruction whether the instruction at the address next to the skip instruction is executed or not To do. When the instruction read from the ROM 1 is a register or a memory data setting instruction, the memory 6 or the register 7 outputs the data setting signal S 2 from the instruction decoder 5 and normally stores the data set by the instruction. . In the prohibition signal generation circuit 8, the test state signal S 4 is enabled in the case of the function confirmation test by the program contained in the ROM 1 at the time of the microcomputer test, and the low level branch instruction prohibition signal S 5 and the data Generates a setting instruction prohibition signal S 6 and a skip instruction prohibition signal S 7 . At this time, the program signal 2 is reset by the reset signal S 7 . The AND gate 9 is a load signal from the normal instruction decoder 5.
The address data from ROM 1 is loaded into program counter 2 through S 1 , but when branch instruction disable signal S 5 is output, it is closed and load signal S 1 is ignored. And gate 11
Normally causes the data setting command S 2 from the instruction decoder 5 to pass and stores the data in the memory 6 or the register 7, but when the data setting command prohibit signal S 6 is output, it is closed and the data setting signal S 2 is ignored. To do. The AND gate 10 normally sends the decision signal S 3 to the instruction decoder 5, but closes when the skip instruction inhibition signal S 7 is output and ignores the decision signal S 3 .

次に、本実施例の動作について説明する。Next, the operation of this embodiment will be described.

マイクロコンピュータ試験時のROM1に内蔵されているプ
ログラムによる機能確認試験において試験状態信号S4
より、禁止信号発生回路8から分岐命令禁止信号S5、デ
ータ設定命令禁止信号S6、スキップ命令禁止信号S7が発
生されるとともにリセット信号S7により、プログラムカ
ウンタ2は0番地に設定される。次にプログラムカウン
タ2はインクリメントされてROM1の0番地から順々にイ
ンストラクションデコーダ5に命令が送出される。イン
ストラクションデコーダ5は命令をデコードし、システ
ムの各所に信号を送りマイクロコンピュータを動作させ
る。
The test state signal S 4 in function confirmation test by a program embedded in the ROM1 upon the microcomputer tests the branch instruction disable signal S 5 from the inhibit signal generating circuit 8, the data setting command rejection signal S 6, the skip instruction disable signal S When 7 is generated and the reset signal S 7 , the program counter 2 is set to the address 0. Next, the program counter 2 is incremented and instructions are sequentially sent to the instruction decoder 5 from address 0 of ROM1. The instruction decoder 5 decodes the instructions and sends signals to various parts of the system to operate the microcomputer.

分岐命令がROM1からインストラクションデコーダ5に送
られた場合ロード信号S1が発生されるが、分岐命令禁止
信号S5が出力されているので、アンドゲート9により無
視される。また、スキップ命令がROM1からインストラク
ションデコーダ5に送られた場合、スキップ命令禁止信
号S7が出力されているので判断信号S3は無視される。し
たがって、顧客のプログラムにループがある場合でもル
ープは無視され、さらにプログラムの条件によって実行
されないスキップ命令の次の命令も実行でき、これによ
りROM1に格納されたプログラムによる命令は0番地から
順に最後の番地まで実行される。
When the branch instruction is sent from the ROM 1 to the instruction decoder 5, the load signal S 1 is generated, but since the branch instruction prohibition signal S 5 is output, it is ignored by the AND gate 9. Further, when the skip instruction is sent from the ROM 1 to the instruction decoder 5, the decision signal S 3 is ignored because the skip instruction prohibition signal S 7 is output. Therefore, even if the customer's program has a loop, the loop is ignored, and the instruction following the skip instruction that is not executed due to the condition of the program can also be executed. As a result, the instruction by the program stored in ROM1 starts from address 0 and ends at the end. It is executed up to the address.

また、レジスタ、メモリデータ設定命令がROM1からイン
ストラクションデコーダ5に送られた場合データ設定信
号S2が発生されるが、データ設定命令禁止信号S6が発生
されているのでアンドゲート11により無視される。この
ため、顧客のプログラムのループによるレジスタ7およ
びメモリ6のデータを変化させることはできないが、レ
ジスタ、メモリデータ設定命令を禁止していることによ
り、機能確認試験時のイニシャライズの時点で何通りか
のデータをメモリ6およびレジスタ7に設定できる。
Further, when the register / memory data setting instruction is sent from the ROM 1 to the instruction decoder 5, the data setting signal S 2 is generated, but since the data setting instruction prohibiting signal S 6 is generated, it is ignored by the AND gate 11. . For this reason, the data in the register 7 and the memory 6 cannot be changed by the loop of the customer's program, but by prohibiting the register and memory data setting instructions, there are several ways at the time of initialization during the function confirmation test. Can be set in the memory 6 and the register 7.

試験時のマイクロコンピュータの各端子の期待値は顧客
のプログラムを基にして予め作成されており、このよう
にしてROM1内のプログラムを実行していき期待値と比較
することにより顧客のプログラムによる命令シーケンス
毎にマイクロコンピュータの機能が確認できる。
The expected value of each terminal of the microcomputer at the time of test is created in advance based on the customer's program, and by executing the program in ROM1 and comparing it with the expected value, the instruction by the customer's program The function of the microcomputer can be confirmed for each sequence.

ただし、この場合分岐命令と分岐命令の行き先きのアド
レスにある命令との組み合せは確認できないかもしれな
いが、〔従来の技術〕で述べた機能試験において分岐命
令と他の命令の組み合せ試験において、分岐命令と他の
命令の組み合せ試験を行えば顧客のプログラムによる命
令シーケンスはすべて確認できたことになる。
However, in this case, the combination of the branch instruction and the instruction at the destination address of the branch instruction may not be confirmed, but in the functional test described in [Prior Art], in the combination test of the branch instruction and other instructions, By conducting a combination test of the branch instruction and another instruction, all the instruction sequences by the customer's program can be confirmed.

〔発明の効果〕〔The invention's effect〕

以上説明したように本発明は、ROMの内容確認試験時
に、ROMから読出された分岐命令、スキップ命令、レジ
スタおよび/またはメモリへのデータ設定命令が読出さ
れた場合にこれら命令を無視する手段を備えたことによ
り、顧客のプログラムによるROMの命令シーケンスの機
能試験ができ、命令の組合せに起因する不良が減少する
という大きな効果を有する。
As described above, the present invention provides means for ignoring a branch instruction, a skip instruction, a register and / or memory data setting instruction read from a ROM during a ROM content confirmation test. With the provision, the function test of the instruction sequence of the ROM can be performed by the program of the customer, and there is a great effect that the defects caused by the combination of the instructions are reduced.

【図面の簡単な説明】[Brief description of drawings]

第1図は本発明によるマイクロコンピュータの一実施例
の要部ブロック図である。 1:ROM、2:プログラムカウンタ、3:アドレスデコーダ、
4:データバス、5:インストラクションデコーダ、6:メモ
リ、7:レジスタ、8:禁止信号発生回路、9,10,11:アンド
ゲート、S1:ロード信号、S2:データ設定信号、S3:判
断信号、S4:試験状態信号、S5:分岐命令禁止信号、
S6:データ設定命令禁止信号、S7:スキップ命令禁止信
号、S7:リセット信号。
FIG. 1 is a block diagram of essential parts of an embodiment of a microcomputer according to the present invention. 1: ROM, 2: Program counter, 3: Address decoder,
4: Data bus, 5: Instruction decoder, 6: Memory, 7: Register, 8: Inhibit signal generation circuit, 9, 10, 11: AND gate, S 1 : Load signal, S 2 : Data setting signal, S 3 : Judgment signal, S 4 : Test status signal, S 5 : Branch instruction disable signal,
S 6 : Data setting instruction prohibition signal, S 7 : Skip instruction prohibition signal, S 7 : Reset signal.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】顧客のプログラムが格納されたROMを備え
たマイクロコンピュータにおいて、前記ROMから読み出
された命令をデコードするインストラクションデコーダ
であって、分岐命令をデコードしたときは分岐先命令の
ためのアドレス情報をプログラムカウンタにロードすべ
くロード信号を発生し、スキップ命令をデコードしたと
きにはスキップ命令の次の命令を実行すべきか否かを示
す判断信号を受けるインストラクションデコーダと、前
記マイクロコンピュータの機能確認試験時にアクティブ
となる信号に応答して分岐禁止信号およびスキップ禁止
信号を発生する禁止信号発生回路と、前記分岐禁止信号
および前記スキップ禁止信号に応答して前記ロード信号
および前記判断信号をそれぞれマスクするゲート手段と
を有することを特徴とするマイクロコンピュータ。
1. A microcomputer provided with a ROM in which a customer's program is stored, which is an instruction decoder for decoding an instruction read from the ROM, which is for a branch destination instruction when the branch instruction is decoded. An instruction decoder for generating a load signal to load address information into the program counter and receiving a judgment signal indicating whether or not to execute the instruction next to the skip instruction when the skip instruction is decoded, and a function confirmation test of the microcomputer. An inhibit signal generation circuit that generates a branch inhibit signal and a skip inhibit signal in response to a signal that is sometimes active, and a gate that masks the load signal and the decision signal in response to the branch inhibit signal and the skip inhibit signal, respectively. And having means Microcomputer that.
JP60042183A 1985-03-04 1985-03-04 Micro computer Expired - Lifetime JPH077343B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60042183A JPH077343B2 (en) 1985-03-04 1985-03-04 Micro computer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60042183A JPH077343B2 (en) 1985-03-04 1985-03-04 Micro computer

Publications (2)

Publication Number Publication Date
JPS61201344A JPS61201344A (en) 1986-09-06
JPH077343B2 true JPH077343B2 (en) 1995-01-30

Family

ID=12628883

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60042183A Expired - Lifetime JPH077343B2 (en) 1985-03-04 1985-03-04 Micro computer

Country Status (1)

Country Link
JP (1) JPH077343B2 (en)

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6031653A (en) * 1983-08-01 1985-02-18 Nec Corp One-chip microcomputer

Also Published As

Publication number Publication date
JPS61201344A (en) 1986-09-06

Similar Documents

Publication Publication Date Title
KR850003597A (en) Data processor and method for selectively disabling power-down instructions
US4870573A (en) Microcomputer capable of testing execution of a program with no branch
JPH077343B2 (en) Micro computer
US7191323B2 (en) Information processing unit selecting one of reset vector addresses
EP0827080B1 (en) Mircrocomputer with selfdiagnostic unit
US7389445B2 (en) Circuit for detecting abnormal operation of memory and integrated circuit and method for detecting abnormal operation
JP2508305B2 (en) Initial value determination device
JPS646489B2 (en)
JPH0789330B2 (en) Computer
JPS6031653A (en) One-chip microcomputer
JP3137089B2 (en) Microcomputer
JP2903601B2 (en) Microcomputer with built-in ROM
JPH08185360A (en) Device for inhibiting read of built-in rom
JPH0877134A (en) Microcomputer
JPH05180903A (en) Method and circuit for testing semiconductor integrated circuit device
JPH06222917A (en) Electronic device
JPH05241900A (en) Program operation confirmation system of computer
JP2000020498A (en) Microcomputer and its restoring method
JPS6226738B2 (en)
JP2008204087A (en) Operation mode control circuit for information processor and information processor
JPS59163653A (en) Debug device
JPH09153295A (en) Semiconductor memory device
JPH04333145A (en) Mode switching circuit
JPH0417036A (en) Program testing system
JPS593656A (en) Control system of history storage device

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term