JPS61201344A - Microcomputer - Google Patents
MicrocomputerInfo
- Publication number
- JPS61201344A JPS61201344A JP60042183A JP4218385A JPS61201344A JP S61201344 A JPS61201344 A JP S61201344A JP 60042183 A JP60042183 A JP 60042183A JP 4218385 A JP4218385 A JP 4218385A JP S61201344 A JPS61201344 A JP S61201344A
- Authority
- JP
- Japan
- Prior art keywords
- instruction
- rom
- program
- customer
- signal
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection 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)
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明は、顧客のプログラムが格納されたROMを備え
たマイクロコンピュータに関する。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a microcomputer equipped with a ROM in which a customer's program is stored.
従来、この種のマイクロコンピュータの試験は、マイク
ロコンピュータを試験状態に切り換え、外部からマイク
ロコンピュータの試験状態時の入力端子により命令を入
力しその応答を期待値と比較する機能試験と、顧客のプ
ログラムが格納されているROMの各アドレスの情報を
コンピュータの端子より出力し、予め顧客のプログラム
を基にして作った期待値情報と比較するROM内容確認
試験からなる。Conventionally, testing of this type of microcomputer involves a functional test in which the microcomputer is switched to a test state, commands are input from the outside through the input terminals of the microcomputer during the test state, and the response is compared with expected values, and a function test is performed to test the customer's program. The test consists of a ROM content confirmation test in which information on each address of the ROM in which is stored is output from a computer terminal and compared with expected value information created in advance based on the customer's program.
機能試験において入力される命令はマイクロコンピュー
タを製造するメーカ側で作られるので命令のシーケンス
は限定されてしまうのに対して、ROMに格納される顧
客のプログラムによる命令シーケンスは無数にある。’
ROM内容確認試験ではROMに顧客の命令が正しくR
OMに格納されたかどうかを確認するだけで、顧客のプ
ログラムが正確にマイクロコンピュータを動かすかどう
かは確認できない。The commands input in a functional test are created by the manufacturer of the microcomputer, so the sequence of commands is limited, whereas there are an infinite number of command sequences based on customer programs stored in the ROM. '
In the ROM content confirmation test, the customer's commands were correctly written to the ROM.
It only checks whether the customer's program is stored in the OM, but cannot confirm whether the customer's program correctly operates the microcomputer.
このために、従来のマイクロコンピュータではメーカ側
で行った試験では良品となるが、実装の状態では命令の
組゛み合せに起因する不良のため正しく動作しない場合
があった。For this reason, conventional microcomputers may pass tests conducted by the manufacturer, but may not operate correctly when they are mounted due to defects caused by the combination of instructions.
本発明の目的は、ROMに格納されている顧客のプログ
ラムが正しくコンピュータを動作させるかどうかを確認
することができるマイクロコンピュータを提供すること
である。An object of the present invention is to provide a microcomputer that can check whether a customer's program stored in a ROM operates the computer correctly.
本発明は、ROMの内容確認試験時に、前記ROMから
分岐命令、スキップ命令、レジスタおよび/またはメモ
リへのデータ設定命令が読出された場合にこれら命令を
無視する手段を備えたことを特徴とする。The present invention is characterized by comprising means for ignoring branch instructions, skip instructions, register and/or memory data setting instructions when they are read from the ROM during a ROM content confirmation test. .
したがって、顧客のプログラムにループがある場合、ル
ープは無視され、さらにプログラムの条件によって実行
されないスキップ命令の次の命令も実行でき、これによ
りROMに格納されたプログラムによる命令はO番地か
ら順に最後の番地まで実行され、また、試験中レジスタ
、メモリへのデータ設定が禁1ヒされるので、演算結果
のデータが破壊されることがなく、実行結果を予め作成
された期待値と比較することにより顧客のプログラムに
よる命令シーケンス毎にマイクロコンピュータの機能が
確認できる。Therefore, if there is a loop in the customer's program, the loop is ignored, and the next instruction after the skip instruction that is not executed due to the conditions of the program can also be executed. Since the execution is executed up to the address, and data setting to registers and memory is prohibited during the test, the data of the calculation result is not destroyed, and the execution result can be compared with the expected value created in advance. The functions of the microcomputer can be checked for each instruction sequence according to the customer's program.
本発明の実施例について図面を参照して説明する。 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.
ROMIには顧客のプログラムが格納されている。アド
レスデコーダ3はプログラムカウンタ2のカウント値を
デコードしてROMIのアドレスを発生する。インスト
ラクションデコーダ5はデータバス4を通してROMI
から読出された命令をデコードし分岐命令の場合にはロ
ード信号S1を、レジスタ、メモリデータ設定命令の場
合にはデータ設定信号S2を出力し、スキップ命令の場
合にはスキップ命令の次のアドレスにある命令を実行す
るかしないかの判断信号S3を入力する。メモリ6また
はレジスタ7にはROMIから読出された命令がレジス
タ、メモリデータ設定命令の場合に、インストラクショ
ンデコーダ5からデータ設定信号S2が出力されて、通
常その命令で設定されたデータが格納される。禁止信号
発生回路8は、マイクロコンピュータ試験時のROMI
に内蔵されているプログラムによる機能確認試験の場合
に試験状態信号S4がイネーブル状態になって、いずれ
もロウレベルの分岐命令禁止信号S5、データ設定命令
禁止信号S6、スキ−2プ命令禁止信号Sフを発生する
。このときリセット信号S7によりプログラムカウンタ
2はリセットされる。アンドゲート9は通常はインスト
ラクションデコーダ5からのロード信号SLを通過させ
てプログラムカウンタ2にROM1からの番地データを
ロードさせるが、分岐命令禁止信号S5が出力されると
閉じてロード信号S1を無視する。アンドゲート11は
通常はインストラクションデコーダ5からのデータ設定
命令32を通過させてメモリ6またはレジスタ7にデー
タを格納させるが、データ設定命令禁止信号S6が出力
されると閉じてデータ設定信号S2を無視する。アンド
ゲート10は通常は判断信号S3をインストラクション
デコーダ5に送出するが、スキップ命令禁止信号S7が
出力されると閉じて判断信号S3を無視する。A customer's program is stored in the ROMI. The address decoder 3 decodes the count value of the program counter 2 to generate a ROMI address. The instruction decoder 5 connects the ROMI through the data bus 4.
It decodes the instruction read out from the memory and outputs a load signal S1 in the case of a branch instruction, a data setting signal S2 in the case of a register or memory data setting instruction, and outputs a data setting signal S2 in the case of a skip instruction, to the next address of the skip instruction. A judgment signal S3 indicating whether or not to execute a certain command is input. When the instruction read from the ROMI is a register or memory data setting instruction, a data setting signal S2 is output from the instruction decoder 5 to the memory 6 or register 7, and the data set by the instruction is normally stored. The prohibition signal generation circuit 8 is a ROMI during microcomputer testing.
In the case of a function confirmation test using a program built in, the test status signal S4 is enabled, and the branch instruction prohibition signal S5, data setting instruction prohibition signal S6, and skip-2 skip instruction prohibition signal S5, all of which are at low level, are activated. occurs. At this time, the program counter 2 is reset by the reset signal S7. The AND gate 9 normally passes the load signal SL from the instruction decoder 5 to load the address data from the ROM 1 into the program counter 2, but when the branch instruction prohibition signal S5 is output, it closes and ignores the load signal S1. . The AND gate 11 normally passes the data setting command 32 from the instruction decoder 5 and stores the data in the memory 6 or register 7, but when the data setting command prohibition signal S6 is output, it closes and ignores the data setting signal S2. do. The AND gate 10 normally sends the judgment signal S3 to the instruction decoder 5, but when the skip instruction prohibition signal S7 is output, it closes and ignores the judgment signal S3.
次に、本実施例の動作について説明する。Next, the operation of this embodiment will be explained.
マイクロコンピュータ試験時のROM1に内蔵されてい
るプログラムによる機能確認試験において試験状態信号
S4により、禁止信号発生回路8から分岐命令禁止信号
S5.データ設定命令禁と信号S6、スキップ命令禁止
信号S7が発生されるとともにリセット信号Sフにより
、プログラムカウンタ2はO番地に設定される0次にプ
ログラムカウンタ2はインクリメントされてROMIの
O番地から順々にインストラクションデコーダ5に命令
が送出される。インストラクションデコーダ5は命令を
デコードし、システムの各所に信号を送りマイクロコン
ピュータを動作させる。During a function confirmation test using a program built in the ROM 1 during a microcomputer test, the test status signal S4 causes the prohibition signal generation circuit 8 to generate a branch instruction prohibition signal S5. The data setting command inhibit signal S6 and the skip command inhibit signal S7 are generated, and the reset signal Sf sets the program counter 2 to address O.0 Next, the program counter 2 is incremented in order from address O of the ROMI. Each instruction is sent to the instruction decoder 5. The instruction decoder 5 decodes instructions and sends signals to various parts of the system to operate the microcomputer.
分岐命令がROMIからインストラクションデコーダ5
に送られた場合ロード信号Slが発生されるが1分岐命
令禁市信号S5が出力されているので、アンドゲート9
により無視される。また、スキー7プ命令がROMIか
らインストラクションデコーダ5に送られた場合、スキ
ー、プ命令禁1ヒ信号Sフが出力されているので判断信
号S3は無視される、したがって、顧客のプログラムに
ループがある場合でもループは無視され、さらにプログ
ラムの条件によって実行されないスキップ命令の次の命
令も実行でき、これによりROMIに格納されたプログ
ラムによる命令は0番地から順に最後の番地まで実行さ
れる。Branch instruction is sent from ROMI to instruction decoder 5
, the load signal Sl is generated, but since the 1 branch instruction prohibition signal S5 is output, the AND gate 9
will be ignored. Furthermore, when a skip command is sent from the ROMI to the instruction decoder 5, the judgment signal S3 is ignored because the skip command prohibition signal S is output. Therefore, a loop occurs in the customer's program. Even if there is a loop, the loop is ignored, and the next instruction after the skip instruction that is not executed due to program conditions can also be executed, so that the program instructions stored in the ROMI are executed sequentially from address 0 to the last address.
また、レジスタ、メモリデータ設定命令がROM1から
インストラクションデコーダ5に送られた場合データ設
定信号S2が発生されるが、データ設定命令禁止信号S
6が発生されているのでアンドゲート11により無視さ
れる。このため、顧客のプログラムのループによるレジ
スタ7およびメモリ6のデータを変化させることはでき
ないが、レジスタ、メモリデータ設定命令を禁止してい
ることにより、機能確認試験時のイニシャライズの時点
で何通りかのデータをメモリ6およびレジスタ7に設定
できる。Furthermore, when a register/memory data setting command is sent from the ROM 1 to the instruction decoder 5, a data setting signal S2 is generated, but a data setting command prohibition signal S
6 has been generated, it is ignored by the AND gate 11. Therefore, it is not possible to change the data in register 7 and memory 6 due to a loop in the customer's program, but by prohibiting register and memory data setting instructions, there are several ways to change the data at the time of initialization during the function confirmation test. data can be set in the memory 6 and register 7.
試験時のマイクロコンピュータの各端子の期待値は顧客
のプログラムを基にして予め作成されており、このよう
にしてROMI内のプログラムを実行していき期待値と
比較することにより顧客のプログラムによる命令シーケ
ンス毎にマイクロコンピュータの機能が確認できる。The expected value of each terminal of the microcomputer during the test is created in advance based on the customer's program, and by executing the program in the ROMI and comparing it with the expected value, the commands from the customer's program can be determined. The functions of the microcomputer can be checked 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 testing combinations of branch instructions and other instructions, all instruction sequences in the customer's program have been confirmed.
以上説明したように本発明は、ROMの内容確認試験時
に、ROMから読出された分岐命令、スキップ命令、レ
ジスタおよび/またはメモリへのデータ設定命令が読出
された場合にこれら命令を無視する手段を備えたことに
より、顧客のプログラムによるROMの命令シーケンス
の機能試験かでさ、命令の組合せに起因する不良が減少
するという大きな効果を有する。As explained above, the present invention provides means for ignoring branch instructions, skip instructions, register and/or data setting instructions read from the ROM when these instructions are read during a ROM content confirmation test. This feature has the great effect of reducing defects caused by combinations of instructions during functional tests of ROM instruction sequences based on customer programs.
第1図は本発明によるマイクロコンピュータの一実施例
の要部ブロック図である。
1:ROM、 2ニブログラムカウンタ、3:アドレ
スデコーf、 4:データノくス、5:インストラ
クションデコーダ。
6:メモリ、 7:レジスタ。
8:禁止信号発生回路。
9 、 to、 11:アンドゲート。
Sl:ロード信号、 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 Niprogram counter, 3: Address decoder f, 4: Data nox, 5: Instruction decoder. 6: Memory, 7: Register. 8: Prohibition signal generation circuit. 9, to, 11: and gate. SL: Load signal, S2: Data setting signal. S3: Judgment signal, S4: Test status signal. S5: Branch instruction prohibition signal. S6: Data setting command prohibition signal, S7: Skip command prohibition signal, S7: Reset signal.
Claims (1)
コンピュータにおいて、 前記ROMの内容確認試験時に、前記ROMから分岐命
令、スキップ命令、レジスタおよび/またはメモリへの
データ設定命令が読出された場合にこれら命令を無視す
る手段を備えたことを特徴とするマイクロコンピュータ
。[Scope of Claims] In a microcomputer equipped with a ROM in which a customer's program is stored, during a content confirmation test of the ROM, a branch instruction, a skip instruction, and an instruction to set data to a register and/or memory are read from the ROM. A microcomputer characterized in that the microcomputer is equipped with means for ignoring these instructions when the instructions are issued.
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 true JPS61201344A (en) | 1986-09-06 |
JPH077343B2 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) |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS6031653A (en) * | 1983-08-01 | 1985-02-18 | Nec Corp | One-chip microcomputer |
-
1985
- 1985-03-04 JP JP60042183A patent/JPH077343B2/en not_active Expired - Lifetime
Patent Citations (1)
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 |
---|---|
JPH077343B2 (en) | 1995-01-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JPS61229134A (en) | Microcomputer | |
US20050022073A1 (en) | Microcomputer system | |
JPS61201344A (en) | Microcomputer | |
EP0827080B1 (en) | Mircrocomputer with selfdiagnostic unit | |
US5761482A (en) | Emulation apparatus | |
JPH0283749A (en) | Internal interruption control system for microprocessor | |
JPS62145437A (en) | Computer | |
JPS6031653A (en) | One-chip microcomputer | |
JPH08185360A (en) | Device for inhibiting read of built-in rom | |
JPS5827248A (en) | Integrated circuit | |
JP2002268916A (en) | Method and device for verifying program | |
JPS62251857A (en) | Memory control system | |
JPH06222917A (en) | Electronic device | |
JPS6095646A (en) | Monitor device of built-in memory of central processor | |
JP2002288047A (en) | Check method of memorizing means, program therefor, recording medium and device thereof | |
JPS6334648A (en) | Evaluating microcomputer | |
JPH01142948A (en) | Symbolic debugger for microcomputer | |
JPH05342038A (en) | Memory emulator | |
JPS59163653A (en) | Debug device | |
JPH09319592A (en) | Microcomputer | |
JPS61210441A (en) | Bug detecting method for program | |
JPS63150732A (en) | Program running supervisory equipment | |
JPS6385831A (en) | Control circuit for microprocessor | |
JPS60181937A (en) | Checking circuit of instruction code | |
JPH02105230A (en) | Semiconductor integrated circuit |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
EXPY | Cancellation because of completion of term |