JPH08241253A - One-chip semiconductor device - Google Patents

One-chip semiconductor device

Info

Publication number
JPH08241253A
JPH08241253A JP7045502A JP4550295A JPH08241253A JP H08241253 A JPH08241253 A JP H08241253A JP 7045502 A JP7045502 A JP 7045502A JP 4550295 A JP4550295 A JP 4550295A JP H08241253 A JPH08241253 A JP H08241253A
Authority
JP
Japan
Prior art keywords
rom
circuit
data
functional circuit
inspection
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
JP7045502A
Other languages
Japanese (ja)
Inventor
Asako Matsumoto
安佐子 松本
Junichi Hirase
潤一 平瀬
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 JP7045502A priority Critical patent/JPH08241253A/en
Publication of JPH08241253A publication Critical patent/JPH08241253A/en
Pending legal-status Critical Current

Links

Landscapes

  • Microcomputers (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

PURPOSE: To shorten the check time in the one-chip semiconductor device which is internally provided with a ROM and a function circuit controlled by the control program written in this ROM. CONSTITUTION: At the time of checking a function circuit 18, data in respective addresses of a ROM 20 are successively read out by an address control circuit 25 for ROM check, and the operation processing to obtain the sum total or these data is performed by operation circuits 26 to 28 for ROM check, and operation results of operation circuits 26 to 28 are held in registers 29 and 30. Then, held data in registers 29 and 30 are outputted.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】この発明は、内部にROM(Read
Only Memory)およびROMに書き込まれた制御プログ
ラムに従って動作する機能回路をもつ例えばROM内蔵
のワンチップマイクロコンピュータ等のワンチップ半導
体装置に関するもので、ROMを内蔵した各種半導体装
置に適用可能なものある。なお、機能回路とは、ROM
のデータを取り込み、解読して実行する回路を示し、マ
イクロコンピュータで言えば、ROMデータ(命令)に
従って動作する回路をいう。
This invention relates to a ROM (Read
The present invention relates to a one-chip semiconductor device such as a one-chip microcomputer with a built-in ROM, which has a functional circuit that operates according to a control program written in a ROM and is applicable to various semiconductor devices with a built-in ROM. A functional circuit is a ROM
The circuit which fetches, decodes and executes the data of (1) is shown, and in the case of a microcomputer, it is a circuit which operates according to ROM data (instruction).

【0002】[0002]

【従来の技術】内部に制御プログラムを書き込んだRO
MとROMに書き込まれた制御プログラムに従って動作
する機能回路をもつワンチップマイクロコンピュータ等
のワンチップ半導体装置の従来例を図2に示す。図2に
おいて、1は入力端子、2は検査モード設定回路、3は
検査モード設定回路2から出力されるROM検査モード
信号、4はアドレスコントロール回路、5はアドレスコ
ントロール回路4に接続されたアドレスバス、6は制御
プログラムを書き込んだROM、7はマルチプレクサ、
8は出力端子、9はクロック入力端子、10はクロッ
ク、11はワンチップマイクロコンピュータにおけるR
OM6以外の機能回路、12は機能回路検査モード信
号、13はマルチプレクサ、14は正しい制御プログラ
ムの外部からの入力端子である。
2. Description of the Related Art RO having a control program written therein
FIG. 2 shows a conventional example of a one-chip semiconductor device such as a one-chip microcomputer having a functional circuit that operates according to a control program written in M and ROM. In FIG. 2, 1 is an input terminal, 2 is an inspection mode setting circuit, 3 is a ROM inspection mode signal output from the inspection mode setting circuit 2, 4 is an address control circuit, and 5 is an address bus connected to the address control circuit 4. , 6 is a ROM in which a control program is written, 7 is a multiplexer,
8 is an output terminal, 9 is a clock input terminal, 10 is a clock, and 11 is R in a one-chip microcomputer.
Functional circuits other than OM6, 12 is a functional circuit inspection mode signal, 13 is a multiplexer, and 14 is an input terminal from the outside of a correct control program.

【0003】このワンチップ半導体装置は、入力端子1
からの入力信号により、通常動作モードまたは検査モー
ドに設定される。さらに、検査モードは、ROM6を検
査するROM検査モードとROM以外の機能回路を検査
する機能回路検査モードに大別できる。まず、ROM6
を検査するとき、つまり、ROM6に制御プログラムが
正しく格納されているかどうかを検査するときは、入力
端子1に特定のタイミングで変化する信号(特定のシリ
アルデータに対応する)を入力することにより、検査モ
ード設定回路2よりROM検査モード信号3が出力され
る。このROM検査モード信号3により、ワンチップ半
導体装置はROM検査モードに設定される。
This one-chip semiconductor device has an input terminal 1
The normal operation mode or the inspection mode is set by the input signal from. Further, the inspection mode can be roughly classified into a ROM inspection mode for inspecting the ROM 6 and a functional circuit inspection mode for inspecting a functional circuit other than the ROM. First, ROM6
When inspecting, that is, inspecting whether the control program is correctly stored in the ROM 6, by inputting a signal (corresponding to specific serial data) that changes at a specific timing to the input terminal 1, The ROM inspection mode signal 3 is output from the inspection mode setting circuit 2. The ROM inspection mode signal 3 sets the one-chip semiconductor device to the ROM inspection mode.

【0004】ROMアドレスコントロール回路4は、例
えば、ROM検査モード信号3が加えられることによっ
て、検査を開始するROM6の始端アドレスにプリセッ
トされる。なお、プリセットは、ROM検査モード信号
3に応答して行われるだけでなく、他の方法でも行うこ
とができる。例えば、リセットという入力端子によって
ROMアドレスを“0番”にプリセットでき、この方法
によってもプリセットッできる。ここでは、そのプリセ
ットされたアドレスを始点として動作する。
The ROM address control circuit 4 is preset to the starting end address of the ROM 6 which starts the inspection by the addition of the ROM inspection mode signal 3, for example. It should be noted that the presetting can be performed not only in response to the ROM inspection mode signal 3 but also by another method. For example, the ROM address can be preset to "0" by an input terminal called reset, and this method can also be preset. Here, the preset address operates as a starting point.

【0005】そして、ROMアドレスは、ROMアドレ
スコントロール回路4からアドレスバス5を通してRO
M6に入力される。これによって、入力されたROMア
ドレスに対応するROMデータがROM6より出力され
る。このROMデータは、マルチプレクサ7に入力され
る。マルチプレクサ7には、ROM6から読み出された
データと機能回路11からの出力信号とが入力されるよ
うになっており、マルチプレクサ7は、ROM検査モー
ド信号3を選択信号として、どちらか一方を選択して出
力する。ROM検査モード信号3が出力されている場合
は、ROMデータがマルチプレクサ7より出力され、R
OM検査モード信号3が出力されていない場合、つまり
機能回路検査モードのときまたは通常動作モードのとき
に、機能回路11の出力信号がマルチプレクサ7より出
力される。マルチプレクサ7の出力信号は、出力端子8
から外部へ出力される。そして、出力端子8から出力さ
れたROMデータを、テスタ(図示せず)に入力し、予
めテスタ内に格納しておいた期待される値(ROM6に
書き込まれる正しい制御プログラムのプログラムデー
タ)と比較し、両者が一致するかどうかで、一致するか
どうか判定する。
The ROM address is RO from the ROM address control circuit 4 through the address bus 5.
Input to M6. As a result, ROM data corresponding to the input ROM address is output from the ROM 6. This ROM data is input to the multiplexer 7. The data read from the ROM 6 and the output signal from the functional circuit 11 are input to the multiplexer 7, and the multiplexer 7 selects one of the ROM inspection mode signals 3 as a selection signal. And output. When the ROM inspection mode signal 3 is output, the ROM data is output from the multiplexer 7 and R
When the OM inspection mode signal 3 is not output, that is, in the functional circuit inspection mode or the normal operation mode, the output signal of the functional circuit 11 is output from the multiplexer 7. The output signal of the multiplexer 7 is the output terminal 8
Output to the outside. Then, the ROM data output from the output terminal 8 is input to a tester (not shown) and compared with an expected value stored in the tester in advance (program data of a correct control program written in the ROM 6). Then, it is determined whether or not they match with each other.

【0006】つぎに、クロック入力端子9よりクロック
10を入力し、クロック10に同期して、ROMアドレ
スコントロール回路4のROMアドレスを1つずつイン
クリメントする。これによって、インクリメントされた
ROMアドレスに対応するROMデータがROM6より
順次出力されるので、以下同様に検査し、これをROM
6の容量分だけ繰り返すことで、ROM6の検査が完了
する。
Next, the clock 10 is input from the clock input terminal 9, and the ROM address of the ROM address control circuit 4 is incremented by one in synchronization with the clock 10. As a result, the ROM data corresponding to the incremented ROM address is sequentially output from the ROM 6, so that the same test is performed and the ROM data is stored in the ROM.
The inspection of the ROM 6 is completed by repeating the capacity of 6 times.

【0007】つぎに、正しい制御プログラムを加えて、
機能回路11が正常に動作するか検査するときには、入
力端子1に特定のタイミングで変化する信号(ROM検
査モードのときとは異なる特定のシリアルデータに対応
する)を入力することにより、検査モード設定回路2よ
り、機能回路検査モード信号12が出力され、ROM検
査モード信号3は出力されない。
Next, add a correct control program,
When inspecting whether the functional circuit 11 operates normally, the inspection mode is set by inputting a signal (corresponding to specific serial data different from that in the ROM inspection mode) to the input terminal 1 at a specific timing. The functional circuit inspection mode signal 12 is output from the circuit 2, and the ROM inspection mode signal 3 is not output.

【0008】マルチプレクサ13は、機能回路11が動
作する基になる制御プログラムを、ROM6から入力す
るか外部から入力端子14を経て入力するかを選択する
もので、機能回路検査モード信号12の出力時は、入力
端子14からの正しい制御プログラムを選択して、機能
回路11へ入力する。機能回路11は、入力された正し
い制御プログラムによって動作し、その出力信号がマル
チプレクサ7に入力される。マルチプレクサ7は、機能
回路検査モード時は、機能回路11の出力信号を出力端
子8に出力する。
The multiplexer 13 selects whether the control program, which is the basis of the operation of the functional circuit 11, is input from the ROM 6 or externally via the input terminal 14, and when the functional circuit inspection mode signal 12 is output. Selects the correct control program from the input terminal 14 and inputs it to the functional circuit 11. The functional circuit 11 operates according to the input correct control program, and its output signal is input to the multiplexer 7. The multiplexer 7 outputs the output signal of the functional circuit 11 to the output terminal 8 in the functional circuit inspection mode.

【0009】この際、入力端子14から入れるデータに
よって機能回路11がどのような信号を出すかは予め判
っているので、その期待値と出力端子8からの出力デー
タとを比較することによって判定を行う。その判定は、
テスタと呼ばれる装置で行われる。通常動作モード時
は、検査モード設定回路2からはROM検査モード信号
3も機能回路検査モード信号12も出力されない。この
とき、機能回路11の制御プログラムを選択するマルチ
プレクサ13からはROM6のプログラムデータが出力
され、機能回路11に入力される。機能回路11は、R
OM6からの制御プログラムにより動作して、出力信号
がマルチプレクサ7に入力される。マルチプレクサ7は
動作信号を出力端子8へ出力する。なお、通常動作モー
ド時には、出力端子8は、機能回路11からの出力端子
(マイクロコンピュータで言えば、ポート端子)として
使用される。
At this time, since it is known in advance what signal the functional circuit 11 will output according to the data inputted from the input terminal 14, the judgment is made by comparing the expected value with the output data from the output terminal 8. To do. The judgment is
It is performed by a device called a tester. In the normal operation mode, neither the ROM inspection mode signal 3 nor the functional circuit inspection mode signal 12 is output from the inspection mode setting circuit 2. At this time, the program data of the ROM 6 is output from the multiplexer 13 that selects the control program of the functional circuit 11 and input to the functional circuit 11. The functional circuit 11 is R
The output signal is input to the multiplexer 7 by operating according to the control program from the OM 6. The multiplexer 7 outputs the operation signal to the output terminal 8. In the normal operation mode, the output terminal 8 is used as an output terminal from the functional circuit 11 (port terminal in the case of a microcomputer).

【0010】[0010]

【発明が解決しようとする課題】このような従来技術で
は、ROM6と機能回路11を別個に検査し、また、R
OM6は1クロックにつき1アドレスのデータしか検査
できない。このため、ROM6の容量に比例してROM
6の検査時間が増大し、その分ワンチップ半導体装置の
全検査時間も増大する。このため、大容量のROMを内
蔵したワンチップ半導体装置の検査には膨大な時間がか
かるという問題があった。
In such a conventional technique, the ROM 6 and the functional circuit 11 are separately tested, and the R 6
The OM6 can inspect only one address data per clock. Therefore, the ROM is in proportion to the capacity of the ROM 6.
The inspection time of 6 increases, and the total inspection time of the one-chip semiconductor device increases accordingly. Therefore, there is a problem that it takes a huge amount of time to inspect a one-chip semiconductor device having a large-capacity ROM built therein.

【0011】この発明は、このような従来の問題点を解
決するもので、検査時間を短縮することができるワンチ
ップ半導体装置を提供することを目的とする。
An object of the present invention is to solve the above-mentioned conventional problems and to provide a one-chip semiconductor device capable of shortening the inspection time.

【0012】[0012]

【課題を解決するための手段】この発明のワンチップ半
導体装置は、制御プログラムを書き込んだROMと、こ
のROMに書き込まれた制御プログラムに従って動作す
る機能回路と、機能回路の検査時に機能回路に対してR
OMの制御プログラムに代えて外部から制御プログラム
を与える第1の切替手段と、機能回路の検査時にROM
の各アドレスのデータを順次読み出すROM検査用アド
レスコントロール回路と、機能回路の検査時にROMの
複数のアドレスから読み出された各データを統合する演
算処理を行うROM検査用演算回路と、演算回路の演算
結果を保持するレジスタと、機能回路の検査時に機能回
路の出力信号を出力するとともにROMの検査時にレジ
スタの保持データを出力する第2の切替手段とを備えて
いる。
SUMMARY OF THE INVENTION A one-chip semiconductor device of the present invention relates to a ROM in which a control program is written, a functional circuit which operates according to the control program written in the ROM, and a functional circuit which is tested when the functional circuit is inspected. R
First switching means for giving a control program from outside instead of the OM control program, and ROM at the time of inspecting the functional circuit
Of the ROM inspection address control circuit for sequentially reading the data of the respective addresses, and the ROM inspection arithmetic circuit for performing arithmetic processing for integrating the respective data read from the plurality of addresses of the ROM when the functional circuit is inspected. A register for holding a calculation result and a second switching means for outputting an output signal of the functional circuit when inspecting the functional circuit and outputting data held in the register when inspecting the ROM are provided.

【0013】[0013]

【作用】この発明の構成によれば、機能回路の検査時に
第1の切替手段によりROMに対して外部から正しい制
御プログラムを与えて機能回路を動作させ、第2の切替
手段により機能回路の出力信号を外部へ出力する。そし
て、この機能回路の出力信号と期待値とを比較すること
で、機能回路が正常か否かを判定する。このときに並行
して、ROM検査用アドレスコントロール回路によりR
OMの各アドレスのデータを順次読み出し、演算回路で
ROMの複数のアドレスから読み出された各データを統
合する演算処理を行い、演算回路の演算結果をレジスタ
に保持する。そして、ROMの検査時に第2の切替手段
によりレジスタの保持データを外部へ出力する。そし
て、このレジスタの保持データを期待値とを比較するこ
とで、ROMに制御プログラムが正しく書き込まれてい
るか否かを判定する。この際、レジスタの保持データの
個数は、ROMの複数のアドレスから読み出された各デ
ータを統合する演算処理を行った演算結果であって、R
OMに書き込まれた各アドレスのデータ数に比べて格段
に少なく、データ比較に要する時間も格段に少なく済
む。
According to the structure of the present invention, when the functional circuit is inspected, the first switching means externally supplies a correct control program to the ROM to operate the functional circuit, and the second switching means outputs the functional circuit. Output the signal to the outside. Then, by comparing the output signal of this functional circuit with the expected value, it is determined whether or not the functional circuit is normal. At the same time, the ROM inspection address control circuit performs R
The data of each address of the OM is sequentially read, the arithmetic circuit performs an arithmetic process of integrating the data read from the plurality of addresses of the ROM, and the arithmetic result of the arithmetic circuit is held in the register. Then, when the ROM is inspected, the data held in the register is output to the outside by the second switching means. Then, by comparing the data held in this register with the expected value, it is determined whether or not the control program is correctly written in the ROM. At this time, the number of pieces of data held in the register is the calculation result obtained by integrating the data read from a plurality of addresses in the ROM, and R
Compared with the number of data of each address written in the OM, the time required for data comparison is remarkably short.

【0014】[0014]

【実施例】以下、この発明の一実施例について、図面を
参照しながら説明する。内部に制御プログラムを書き込
んだROMとROMに書き込まれた制御プログラムに従
って動作する機能回路をもつワンチップマイクロコンピ
ュータ等のワンチップ半導体装置の一実施例を図1に示
す。図1において、15は検査モード決定回路、16は
ROM検査モード信号、17は機能回路検査モード信
号、18はワンチップマイクロコンピュータにおけるR
OM以外の機能回路、19は第1の切替手段であるマル
チプレクサ、20は制御プログラムを書き込んだRO
M、21は第2の切替手段であるマルチプレクサ、22
は出力端子、23は入力端子、24は正しい制御プログ
ラムの外部からの入力端子、25はアドレスコントロー
ル回路、26は加算演算を行う演算回路、27は補数を
求める演算を行う演算回路、28は加算演算を行う演算
回路、29は演算回路26の演算結果を保持するレジス
タ、30は演算回路28の演算結果を保持するレジス
タ、31はクロック入力端子、32はクロック、33は
クロック32をカウントするカウンタ、34はオーバー
フロー信号、35はシリアル転送レジスタ35a〜35
eからなるシリアル転送レジスタ群、36はシリアル転
送レジスタ36a〜36eからなるシリアル転送レジス
タ群、37はアドレスコントロール回路25に接続され
たアドレスバスである。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings. FIG. 1 shows an embodiment of a one-chip semiconductor device such as a one-chip microcomputer having a ROM having a control program written therein and a functional circuit operating according to the control program written in the ROM. In FIG. 1, reference numeral 15 is an inspection mode determination circuit, 16 is a ROM inspection mode signal, 17 is a functional circuit inspection mode signal, and 18 is an R in a one-chip microcomputer.
Functional circuits other than OM, 19 is a multiplexer that is the first switching means, and 20 is an RO in which a control program is written.
M and 21 are multiplexers, which are second switching means, and 22.
Is an output terminal, 23 is an input terminal, 24 is an input terminal from the outside of a correct control program, 25 is an address control circuit, 26 is an arithmetic circuit for performing an addition operation, 27 is an arithmetic circuit for performing an operation for obtaining a complement, and 28 is an addition An arithmetic circuit for performing an arithmetic operation, 29 a register for retaining the arithmetic operation result of the arithmetic circuit 26, 30 a register for retaining the arithmetic operation result of the arithmetic circuit 28, 31 a clock input terminal, 32 a clock, 33 a counter for counting the clock 32 , 34 is an overflow signal, 35 is a serial transfer register 35a to 35
e is a serial transfer register group composed of e, 36 is a serial transfer register group composed of serial transfer registers 36a to 36e, and 37 is an address bus connected to the address control circuit 25.

【0015】通常動作時は、検査モード設定回路15か
らはROM検査モード信号16も機能回路検査モード信
号17も出力されない。このため、機能回路18の制御
プログラムを選択するマルチプレクサ19からはROM
20のプログラムデータが出力され、機能回路18に入
力される。機能回路18は、ROM20からの制御プロ
グラムに従って動作して、出力信号がマルチプレクサ2
1に入力される。マルチプレクサ21は動作信号を出力
端子22へ出力する。
In the normal operation, neither the ROM inspection mode signal 16 nor the functional circuit inspection mode signal 17 is output from the inspection mode setting circuit 15. Therefore, the multiplexer 19 which selects the control program of the functional circuit 18 is read from the ROM.
20 program data are output and input to the functional circuit 18. The functional circuit 18 operates according to the control program from the ROM 20, and the output signal is the multiplexer 2
Input to 1. The multiplexer 21 outputs the operation signal to the output terminal 22.

【0016】検査時は、まず入力端子23に特定のタイ
ミングで変化する信号(従来例と同様のシリアル信号)
を入力する。この結果、検査モード設定回路15より、
機能回路検査モード信号17が出力され、機能回路18
の検査を開始する。このとき、検査に必要な制御プログ
ラムはマルチプレクサ19によりROM20ではなく入
力端子24から供給される。そして、機能回路18は、
入力された正しい制御プログラムによって動作し、その
出力信号がマルチプレクサ21に入力される。マルチプ
レクサ21は、機能回路検査モード時は、機能回路18
の出力信号を出力端子22に出力し、従来例と同様にし
て比較判定が行われる。
At the time of inspection, first, a signal that changes at a specific timing to the input terminal 23 (serial signal similar to the conventional example).
Enter As a result, the inspection mode setting circuit 15
The functional circuit inspection mode signal 17 is output, and the functional circuit 18
Start the inspection. At this time, the control program necessary for the inspection is supplied from the input terminal 24 instead of the ROM 20 by the multiplexer 19. Then, the functional circuit 18 is
It operates according to the input correct control program, and its output signal is input to the multiplexer 21. In the functional circuit inspection mode, the multiplexer 21 operates in the functional circuit 18
The output signal of is output to the output terminal 22, and the comparison determination is performed in the same manner as in the conventional example.

【0017】同時に、ワンチップ半導体装置は、ROM
検査のための演算を開始する。ROMアドレスコントロ
ール回路25が、機能回路検査モード信号17に応答し
て検査するROM20の始端アドレスにプリセットさ
れ、このアドレスがROM20に入力される。そして、
入力されたROMアドレスに対応したROMデータがR
OM20より出力され、演算回路26,27に入力され
る。演算回路27では、読み出されたROMデータの補
数を計算し、演算回路28に入力する。このとき、レジ
スタ29,30はクリアされている。
At the same time, the one-chip semiconductor device is a ROM
Start calculation for inspection. The ROM address control circuit 25 is preset to the start address of the ROM 20 to be inspected in response to the functional circuit inspection mode signal 17, and this address is input to the ROM 20. And
ROM data corresponding to the input ROM address is R
It is output from the OM 20 and input to the arithmetic circuits 26 and 27. The arithmetic circuit 27 calculates the complement of the read ROM data and inputs it to the arithmetic circuit 28. At this time, the registers 29 and 30 are cleared.

【0018】つぎに、ROMアドレスコントロール回路
25は、入力端子31から入力されるクロック32に同
期して1つずつインクリメントされる。インクリメント
されたROMアドレスに対応したROMデータがROM
20より順次出力される。演算回路26では、ROMデ
ータとレジスタ29の値の和を計算し、再びレジスタ2
9に保持する。同様に演算回路28は、ROMデータの
補数とレジスタ30の値の和を計算し、演算結果を再び
レジスタ30に保持する。この動作を、予め設定された
ROM20の検査容量分だけ繰り返す。ROM20の検
査容量は、カウンタ33にプリセットされている。カウ
ンタ33ではクロック32をカウントし、設定された値
になれば、オーバーフロー信号34を出力する。オーバ
ーフロー信号34により、演算結果を保持していたレジ
スタ29の値がシリアル転送レジスタ35aに転送さ
れ、レジスタ29はクリアされる。同様に、レジスタ3
0の値がシリアル転送レジスタ36aに転送され、レジ
スタ30はクリアされる。
Next, the ROM address control circuit 25 is incremented by one in synchronization with the clock 32 input from the input terminal 31. ROM data corresponding to the incremented ROM address is ROM
It is sequentially output from 20. The arithmetic circuit 26 calculates the sum of the ROM data and the value of the register 29, and again calculates the register 2
Hold at 9. Similarly, the arithmetic circuit 28 calculates the sum of the complement of the ROM data and the value of the register 30, and holds the arithmetic result again in the register 30. This operation is repeated for the preset inspection capacity of the ROM 20. The inspection capacity of the ROM 20 is preset in the counter 33. The counter 33 counts the clock 32 and outputs an overflow signal 34 when it reaches a set value. By the overflow signal 34, the value of the register 29 holding the calculation result is transferred to the serial transfer register 35a, and the register 29 is cleared. Similarly, register 3
The value of 0 is transferred to the serial transfer register 36a and the register 30 is cleared.

【0019】上記の演算回路26およびレジスタ29は
一定数のアドレス分のROMデータを累算して保持する
という動作をし、演算回路28およびレジスタ30は一
定数のアドレス分のROMデータの補数を累算して保持
するという動作をし、これらの演算が特許請求の範囲に
おけるROMの複数のアドレスから読み出された各デー
タを統合する演算処理およびその演算結果を保持する動
作に相当する。
The arithmetic circuit 26 and the register 29 operate so as to accumulate and hold the ROM data for a fixed number of addresses, and the arithmetic circuit 28 and the register 30 form the complement of the ROM data for a fixed number of addresses. An operation of accumulating and holding is performed, and these operations correspond to an operation process of integrating each data read from a plurality of addresses of the ROM in the claims and an operation of holding the operation result.

【0020】以下同様にして、ROM20内の全アドレ
スのデータについて演算処理を行う。そして、オーバー
フロー信号34が出力される毎に、レジスタ29の値は
シリアル転送レジスタ35aへ、シリアル転送レジスタ
35aのデータはシリアル転送レジスタ35bへ・・・
・と順次転送される。同様に、レジスタ30の値は、シ
リアル転送レジスタ36aへ、シリアル転送レジスタ3
6aのデータはシリアル転送レジスタ36bへ・・・・
と順次転送される。
In the same manner, the arithmetic processing is performed on the data at all addresses in the ROM 20. Each time the overflow signal 34 is output, the value of the register 29 is sent to the serial transfer register 35a, the data of the serial transfer register 35a is sent to the serial transfer register 35b, ...
・ Sequentially transferred. Similarly, the value of the register 30 is transferred to the serial transfer register 36a and the serial transfer register 3a.
The data of 6a is transferred to the serial transfer register 36b ...
And transferred in sequence.

【0021】このようにして、シリアル転送レジスタ3
5a,35b・・・・には、それぞれROM20の順次
異なるアドレスエリアの一定数のアドレス分のROMデ
ータの総和が、シリアル転送レジスタ36a,36b・
・・・には、それぞれROM20の順次異なるアドレス
エリアの一定数のアドレス分のROMデータの補数の総
和が保持される。これを、機能回路18の検査中に並行
して実行する。
In this way, the serial transfer register 3
5a, 35b, ..., The total sum of ROM data for a certain number of addresses in sequentially different address areas of the ROM 20 is stored in the serial transfer registers 36a, 36b.
.. hold the sum of the complements of the ROM data for a fixed number of addresses in sequentially different address areas of the ROM 20. This is executed in parallel during the inspection of the functional circuit 18.

【0022】マイクロコンピュータを例にとると、現状
では、機能回路18の検査に要する時間がROM20の
検査に要する時間より長い。しかし、ROM容量も、1
6k,32k、48k,64k、…と大きくなり、RO
M検査時間が無視できなくなる。この時間を、機能回路
検査と並列してROM検査を行うことにより零にするの
が本発明である。ROMデータの総和演算は、機能回路
検査時に行うので、零である。従来は、ROM検査およ
び機能検査をシリアルに行っていた。ROM検査に要す
る時間は、ROM容量128kW、1命令サイクル0.
2μsの場合、1条件(大概3条件)で最低25msか
かる。それがほとんど零となる。ROM容量が増えれ
ば、さらに削減時間は大きい。
Taking a microcomputer as an example, at present, the time required to inspect the functional circuit 18 is longer than the time required to inspect the ROM 20. However, the ROM capacity is also 1
6k, 32k, 48k, 64k, ...
M inspection time cannot be ignored. According to the present invention, this time is set to zero by performing the ROM inspection in parallel with the functional circuit inspection. The sum operation of the ROM data is zero because it is performed during the functional circuit inspection. Conventionally, ROM inspection and function inspection have been performed serially. The time required for ROM inspection is ROM capacity 128 kW, 1 instruction cycle 0.
In the case of 2 μs, one condition (generally 3 conditions) requires at least 25 ms. It becomes almost zero. If the ROM capacity increases, the reduction time will increase further.

【0023】機能回路18の検査終了後、ROM検査を
行うときは、入力端子23に特定のタイミングで変化す
る信号(従来例と同様のシリアル信号)を入力する。こ
の結果、検査モード設定回路15より、ROM検査モー
ド信号16が出力され、ROM検査モードに設定され
る。このとき、最終段のシリアル転送レジスタ35eの
値がマルチプレクサ21に入力される。マルチプレクサ
21は、ROM検査モード信号16が入力されているの
で、シリアル転送レジスタ35eの保持データを出力端
子22に出力する。クロック32に同期して、シリアル
転送レジスタ35a,35b・・・・のデータが順次転
送されて出力端子22より出力されることになる。この
出力端子22から出力された演算結果のデータを、テス
タを用いて期待されるデータ(正しい制御プログラムの
プログラムデータに従って予め求めた一定数のアドレス
分のROMデータの総和に相当するデータ)と比較して
良否判定を行う。期待されるデータは、ROMに書き込
まれる正しい制御プログラムのプログラムデータより予
め計算されている。
When the ROM inspection is performed after the inspection of the functional circuit 18 is completed, a signal that changes at a specific timing (a serial signal similar to the conventional example) is input to the input terminal 23. As a result, the inspection mode setting circuit 15 outputs the ROM inspection mode signal 16 to set the ROM inspection mode. At this time, the value of the serial transfer register 35e at the final stage is input to the multiplexer 21. The multiplexer 21 outputs the data held in the serial transfer register 35e to the output terminal 22 because the ROM inspection mode signal 16 is input. The data of the serial transfer registers 35a, 35b, ... Are sequentially transferred in synchronization with the clock 32 and output from the output terminal 22. The data of the operation result output from the output terminal 22 is compared with data expected by using a tester (data corresponding to the sum of ROM data for a certain number of addresses previously obtained according to the program data of the correct control program). Then, the quality is judged. The expected data is calculated in advance from the program data of the correct control program written in the ROM.

【0024】シリアル転送レジスタ35a,35b・・
・・35eのデータをすべて比較し終わったら、マルチ
プレクサ21を切り替え、同様にシリアル転送レジスタ
36a,36b・・・・36eのデータを出力端子22
に出力し、テスタを用いて期待されるデータと比較し、
良否判定を行う。ここで、カウンタ33に、ROMの全
容量でなく、何分の1かの容量を設定しておけば、RO
Mを分割して検査することもできる。カウンタ33は、
ROM容量をカウントするものであるから、このカウン
タ33を最初0に設定してもよいし、特定の値にプリセ
ットして使用してもよい。その意味で、ROMを分割し
て検査するとしている。
Serial transfer registers 35a, 35b ...
.. After all the data in 35e have been compared, the multiplexer 21 is switched, and the data in the serial transfer registers 36a, 36b ...
And compare it with the expected data using a tester,
Pass / fail judgment is performed. If the counter 33 is set to a fractional capacity instead of the total capacity of the ROM, RO
It is also possible to divide M for inspection. The counter 33
Since the ROM capacity is counted, the counter 33 may be initially set to 0 or may be preset to a specific value for use. In that sense, the ROM is divided and inspected.

【0025】また、この実施例では、ROMデータの総
和とROMデータの補数の総和を演算結果として出力し
て期待値と比較判定したが、検査の信頼性を高めるため
に、特定のアドレスのROMデータには定数を乗じたも
のの総和をとるような演算回路を用いることもできる。
その例としては、例えば、日本のバーコードは、(奇数
桁×3+偶数桁)の10の補数が最終桁のデータとなっ
ている。また、ROM容量を分割してA,B,C,……
グループとして、Aグループには1を、Bグループには
10を、Cグループには100を、……というように、
グループ毎に異なる係数を乗じて演算するというような
ことが考えられる。
Further, in this embodiment, the total sum of ROM data and the total sum of complements of ROM data are output as the calculation result and compared with the expected value to make a decision. However, in order to improve the reliability of the inspection, the ROM of a specific address is used. An arithmetic circuit that takes the sum of data multiplied by a constant can also be used.
As an example, for example, in the Japanese barcode, the 10's complement of (odd digit × 3 + even digit) is the final digit data. The ROM capacity is divided into A, B, C, ...
As a group, 1 for A group, 10 for B group, 100 for C group, and so on.
It is conceivable that a coefficient different for each group is multiplied for the calculation.

【0026】[0026]

【発明の効果】この発明のワンチップ半導体装置によれ
ば、機能回路の検査と並行してROM検査用アドレスコ
ントロール回路によりROMの各アドレスのデータを順
次読み出し、演算回路でROMの複数のアドレスから読
み出された各データを統合する演算処理を行い、演算回
路の演算結果をレジスタに保持し、ROMの検査時に第
2の切替手段によりレジスタの保持データを外部へ出力
するので、ROMの検査時に期待値と比較する演算結果
の個数がROMのアドレス数に比べて格段に少なくで
き、ROMの容量が大きくても、短時間でROMの検査
をすることができる。しかも、一つのアドレスのデータ
が異常であれば統合演算結果にも異常が現れるので、検
査精度はROMの一つ一つのアドレスのデータを逐一比
較するのとかわらない。
According to the one-chip semiconductor device of the present invention, the data of each address of the ROM is sequentially read by the ROM inspection address control circuit in parallel with the inspection of the functional circuit, and the arithmetic circuit extracts the data from the plurality of addresses of the ROM. When the ROM is inspected, the arithmetic processing for integrating the read data is performed, the arithmetic result of the arithmetic circuit is held in the register, and the data held in the register is output to the outside by the second switching unit when the ROM is inspected. The number of calculation results to be compared with the expected value can be significantly reduced compared to the number of addresses in the ROM, and even if the capacity of the ROM is large, the ROM can be inspected in a short time. In addition, if the data of one address is abnormal, the result of the integrated operation will also be abnormal. Therefore, the inspection accuracy is equivalent to comparing the data of each address of the ROM one by one.

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

【図1】この発明の一実施例のワンチップ半導体装置の
構成を示すブロック図である。
FIG. 1 is a block diagram showing the configuration of a one-chip semiconductor device according to an embodiment of the present invention.

【図2】従来のワンチップ半導体装置の構成を示すブロ
ック図である。
FIG. 2 is a block diagram showing a configuration of a conventional one-chip semiconductor device.

【符号の説明】[Explanation of symbols]

1,23 検査モード設定端子 2,15 検査モード設定回路 3,16 ROM検査モード信号 4,25 ROMアドレスコントロール回
路 5 アドレスバス 6,20 ROM 7,13,19,21 マルチプレクサ 8,22 出力端子 9,31 入力端子 10,32 クロック 11,18 機能回路 12,17 機能回路検査モード信号 14,24 入力端子 26,27,28 演算回路 29,30 レジスタ 33 カウンタ 34 オーバーフロー信号 35,36 シリアル転送レジスタ群 35a〜35e シリアル転送レジスタ 36a〜36e シリアル転送レジスタ
1, 23 Inspection mode setting terminal 2, 15 Inspection mode setting circuit 3, 16 ROM inspection mode signal 4, 25 ROM address control circuit 5 Address bus 6, 20 ROM 7, 13, 19, 21 Multiplexer 8, 22 Output terminal 9, 31 input terminal 10,32 clock 11,18 functional circuit 12,17 functional circuit inspection mode signal 14,24 input terminal 26,27,28 arithmetic circuit 29,30 register 33 counter 34 overflow signal 35,36 serial transfer register group 35a- 35e Serial transfer register 36a to 36e Serial transfer register

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 制御プログラムを書き込んだROMと、
このROMに書き込まれた前記制御プログラムに従って
動作する機能回路と、前記機能回路の検査時に前記機能
回路に対して前記ROMの制御プログラムに代えて外部
から制御プログラムを与える第1の切替手段と、前記機
能回路の検査時に前記ROMの各アドレスのデータを順
次読み出すROM検査用アドレスコントロール回路と、
前記機能回路の検査時に前記ROMの複数のアドレスか
ら読み出された各データを統合する演算処理を行うRO
M検査用演算回路と、前記演算回路の演算結果を保持す
るレジスタと、前記機能回路の検査時に前記機能回路の
出力信号を出力するとともに前記ROMの検査時に前記
レジスタの保持データを出力する第2の切替手段とを備
えたワンチップ半導体装置。
1. A ROM in which a control program is written,
A functional circuit that operates according to the control program written in the ROM; a first switching unit that externally supplies a control program to the functional circuit in place of the control program of the ROM when the functional circuit is inspected; A ROM inspection address control circuit for sequentially reading data of each address of the ROM when inspecting the functional circuit;
RO for performing arithmetic processing for integrating respective data read from a plurality of addresses of the ROM when the functional circuit is inspected
A second operation circuit for M inspection, a register for holding an operation result of the operation circuit, an output signal of the function circuit when the function circuit is inspected, and a data held in the register when the ROM is inspected. And a one-chip semiconductor device having a switching means.
JP7045502A 1995-03-06 1995-03-06 One-chip semiconductor device Pending JPH08241253A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7045502A JPH08241253A (en) 1995-03-06 1995-03-06 One-chip semiconductor device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7045502A JPH08241253A (en) 1995-03-06 1995-03-06 One-chip semiconductor device

Publications (1)

Publication Number Publication Date
JPH08241253A true JPH08241253A (en) 1996-09-17

Family

ID=12721188

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7045502A Pending JPH08241253A (en) 1995-03-06 1995-03-06 One-chip semiconductor device

Country Status (1)

Country Link
JP (1) JPH08241253A (en)

Similar Documents

Publication Publication Date Title
US5410687A (en) Analyzing device for saving semiconductor memory failures
EP0095928A2 (en) Pipeline processing apparatus having a test function
US4728883A (en) Method of testing electronic circuits
US4855670A (en) Method of providing information useful in identifying defects in electronic circuits
JPH08241253A (en) One-chip semiconductor device
KR100336156B1 (en) Method and apparatus for testing counter and serial access memory
JP2587941B2 (en) IC test system
JP2865035B2 (en) Test method for semiconductor memory device
JP2004077356A (en) Scan chain circuit, method for constructing scan chain, and its program
US6421810B1 (en) Scalable parallel test bus and testing method
JP2002196047A (en) Bist circuit built-in semiconductor integrated circuit device and testing method for it
JPS5984536A (en) Integrated circuit
CN117940783A (en) System and method for post-manufacturing repair of minimum delay violations
JP2672408B2 (en) Semiconductor integrated circuit
JPS63298178A (en) Ic test system
WO2023150334A1 (en) System and method to fix min-delay violation post fabrication
JPS5885545A (en) Integrated circuit device
JPS6116099B2 (en)
JPS61165171A (en) Microcomputer
JPS6167168A (en) Microcomputer
JPS59116064A (en) Tester for logical circuit
JPH0688862A (en) Semiconductor integrated circuit device and device and method for testing the same
JPH08315597A (en) Ic test equipment
JPH0226748B2 (en)
JPS61210975A (en) Electronic circuit testing method