JPH052899A - Semiconductor integrated circuit - Google Patents
Semiconductor integrated circuitInfo
- Publication number
- JPH052899A JPH052899A JP3195810A JP19581091A JPH052899A JP H052899 A JPH052899 A JP H052899A JP 3195810 A JP3195810 A JP 3195810A JP 19581091 A JP19581091 A JP 19581091A JP H052899 A JPH052899 A JP H052899A
- Authority
- JP
- Japan
- Prior art keywords
- memory
- data
- circuit
- buffer
- 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
- 239000004065 semiconductor Substances 0.000 title claims abstract description 38
- 230000006870 function Effects 0.000 claims description 5
- 230000002457 bidirectional effect Effects 0.000 abstract description 7
- 238000010586 diagram Methods 0.000 description 14
- 230000000630 rising effect Effects 0.000 description 13
- 230000000694 effects Effects 0.000 description 4
- 238000000034 method Methods 0.000 description 4
- 230000003247 decreasing effect Effects 0.000 description 1
- 238000007689 inspection Methods 0.000 description 1
Landscapes
- For Increasing The Reliability Of Semiconductor Memories (AREA)
- Storage Device Security (AREA)
Abstract
Description
【0001】[0001]
【産業上の利用分野】本発明は、書き換え可能なメモリ
を備え且つ通常動作状態と検査状態とを切り換える機能
を有していて、外部からメモリのデータ書き込み及び読
み出しを行う半導体集積回路に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a semiconductor integrated circuit which has a rewritable memory and has a function of switching between a normal operation state and a test state and which externally writes and reads data to and from the memory.
【0002】[0002]
【従来の技術】従来、この種の半導体集積回路は、例え
ば図13に示すように構成されていた。書き換え可能な
メモリを有する半導体集積回路(以下、「メモリ内蔵I
C」と称する)は、メモリ内蔵IC5内のメモリ(以
下、単に「メモリ」と称する)51、アドレスバス52
及びデータバス53を備えている。また、このメモリ内
蔵IC5には、クロック信号CLK、メモリ51にデー
タを書き込むためのアクティブ“LOW”の信号(以
下、「ライト信号」と称する)WRB (以下、添字Bは
アクティブ“LOW”の信号であることを示す)、メモ
リ51からのデータを読み出すためのアクティブ“LO
W”の信号(以下、「リード信号」と称する)RDB 、
通常動作状態(以下、「通常モード」と称する)と検査
動作状態(以下、「テストモード」と称する)を切り換
えるためのアクティブ“HIGH”の信号(以下、「テ
スト信号」と称する)TEST、アドレスA0 〜A15及
びデータD0 〜D7 が入出力される。2. Description of the Related Art Conventionally, this type of semiconductor integrated circuit has been constructed, for example, as shown in FIG. A semiconductor integrated circuit having a rewritable memory
"C" is a memory (hereinafter, simply referred to as "memory") 51 in the IC 5 with a built-in memory and an address bus 52.
And a data bus 53. The memory built-in IC 5 has a clock signal CLK and an active “LOW” signal (hereinafter referred to as “write signal”) WR B for writing data in the memory 51 (hereinafter, the subscript B is an active “LOW”). Signal (indicated as a signal), and an active "LO" for reading data from the memory 51.
W "signal (hereinafter referred to as" read signal ") RD B ,
An active "HIGH" signal (hereinafter referred to as "test signal") TEST and address for switching between a normal operation state (hereinafter referred to as "normal mode") and a test operation state (hereinafter referred to as "test mode") A 0 to A 15 and data D 0 to D 7 are input / output.
【0003】図13のような従来のメモリ内蔵IC3の
動作を、図14に示すタイミングチャートを参照して説
明する。The operation of the conventional memory built-in IC 3 as shown in FIG. 13 will be described with reference to the timing chart shown in FIG.
【0004】テスト信号TESTが“HIGH”のとき
をテストモード、“LOW”のときを通常モードとし、
アドレスは16ビット長、データは8ビット長であると
する。When the test signal TEST is "HIGH", it is a test mode, and when it is "LOW", it is a normal mode.
The address is 16 bits long and the data is 8 bits long.
【0005】最初にメモリ内蔵IC5の外部からメモリ
51へのデータの書き込みについて、図14のタイミン
グチャートにおけるライトサイクル部分を参照して説明
する。データを書き込むアドレスA0 〜A15をアドレス
バス52を介して設定し、書き込むデータD0 〜D7 を
データバス53を介して入力してメモリ51にメモリ内
蔵IC5の外部からライト信号WRB を入力することに
よりメモリ51にデータが書き込まれる。First, the writing of data from the outside of the memory IC 5 to the memory 51 will be described with reference to the write cycle portion in the timing chart of FIG. Data write addresses A 0 to A 15 are set via the address bus 52, write data D 0 to D 7 are input via the data bus 53, and a write signal WR B is input to the memory 51 from outside the memory IC 5. By inputting, data is written in the memory 51.
【0006】次に、メモリ51からメモリ内蔵IC5の
外部へのデータの読み出しについて、図14のタイミン
グチャートにおけるリードサイクル部分を参照して説明
する。データを読み出すアドレスA0 〜A15をアドレス
バス52を介して設定し、メモリ51にメモリ内蔵IC
5の外部からリード信号RDB を入力することによりデ
ータD0 〜D7をデータバス53を介して読み出す。Next, reading of data from the memory 51 to the outside of the memory IC 5 will be described with reference to the read cycle portion in the timing chart of FIG. Addresses A 0 to A 15 for reading data are set via the address bus 52, and the memory 51 has a built-in memory IC.
Read from 5 outside through the data bus 53 the data D 0 to D 7 by inputting the read signal RD B.
【0007】これらのデータ読み出し及び書き込み動作
は、テストモードであるか通常モードであるかにはまっ
たく依存しない。These data read and write operations are completely independent of whether the test mode or the normal mode is used.
【0008】[0008]
【発明が解決しようとする課題】しかしながら、上述し
た従来のメモリ内蔵ICは、テストモードであるか通常
モードであるかに拘らず、メモリへのデータの書き込み
及びメモリからのデータの読み出しが可能であるため
に、メモリ内のデータの秘匿性が保てないという欠点が
ある。However, the above-described conventional memory built-in IC is capable of writing data to the memory and reading data from the memory regardless of the test mode or the normal mode. Therefore, there is a drawback that the confidentiality of the data in the memory cannot be maintained.
【0009】また、秘匿性を保とうとして、単にメモリ
内のデータを読み出せないようにしてしまうとメモリの
検査ができなくなるという問題がある。Further, if the data in the memory is simply made unreadable in order to maintain the confidentiality, there is a problem that the memory cannot be inspected.
【0010】本発明はかかる問題点に鑑みてなされたも
のであって、秘匿性を保ちながらのメモリの検査を可能
とする半導体集積回路を提供することを目的とする。The present invention has been made in view of the above problems, and an object of the present invention is to provide a semiconductor integrated circuit capable of inspecting a memory while maintaining confidentiality.
【0011】[0011]
【課題を解決するための手段】本願の第1発明に係る半
導体集積回路は、書き換え可能なメモリを備え、通常動
作状態と検査動作状態とを切り換える機能を有する半導
体集積回路において、前記半導体集積回路内部に、通常
動作状態のときに前記書き換え可能なメモリのデータが
前記半導体集積回路外部に出力されないように前記書き
換え可能なメモリに対する制御信号及び前記書き換え可
能なメモリに接続されるバスを制御する回路と、検査動
作状態のときに前記半導体集積回路外部から入力される
外部入力データと前記書き換え可能なメモリのデータと
を比較する回路と、この比較する回路の比較結果を前記
半導体集積回路外部に出力する回路とを有することを特
徴とする。A semiconductor integrated circuit according to a first invention of the present application is a semiconductor integrated circuit having a rewritable memory and having a function of switching between a normal operation state and a test operation state. A circuit for controlling a control signal for the rewritable memory and a bus connected to the rewritable memory so that data of the rewritable memory is not output to the outside of the semiconductor integrated circuit in a normal operation state. And a circuit for comparing external input data input from the outside of the semiconductor integrated circuit with the data of the rewritable memory in a test operation state, and a comparison result of the comparing circuit is output to the outside of the semiconductor integrated circuit. And a circuit for performing the same.
【0012】本願の第2発明に係る半導体集積回路は、
書き換え可能なメモリを備え、通常動作状態と検査動作
状態とを切り換える機能を有する半導体集積回路におい
て、前記半導体集積回路内部に、通常動作状態のときに
前記書き換え可能なメモリのデータが前記半導体集積回
路外部に出力されないように前記書き換え可能なメモリ
に接続されるバスを制御する回路と、前記書き換え可能
なメモリに接続される制御信号を制御する回路と、前記
制御信号が通常動作時における所定のタイミングと異な
るタイミングで与えられた場合に前記書き換え可能なメ
モリのデータを消去する回路と、検査動作状態のときに
前記半導体集積回路外部から入力される外部入力データ
と前記書き換え可能なメモリの前記データとを比較する
回路と、この比較する回路の比較結果を前記半導体集積
回路外部に出力する回路とを有することを特徴とする。A semiconductor integrated circuit according to the second invention of the present application is
In a semiconductor integrated circuit having a rewritable memory and having a function of switching between a normal operation state and a test operation state, in the semiconductor integrated circuit, the data of the rewritable memory in the normal operation state is the semiconductor integrated circuit. A circuit for controlling a bus connected to the rewritable memory so as not to be output to the outside, a circuit for controlling a control signal connected to the rewritable memory, and a predetermined timing when the control signal is in a normal operation A circuit for erasing data in the rewritable memory when given at a different timing, external input data input from outside the semiconductor integrated circuit in the test operation state, and the data in the rewritable memory And a comparison result of the comparison circuit are output to the outside of the semiconductor integrated circuit. And having a circuit.
【0013】[0013]
【作用】本願の第1発明においては、通常モードのとき
にメモリのデータが半導体集積回路の外部に出力されな
いようにメモリに対する制御信号及びメモリに接続され
るバスを制御する回路と、テストモードのときに半導体
集積回路外部から入力されるデータとメモリのデータと
の一致を判定する回路と、比較結果を外部に出力する回
路とを備えている。これにより、メモリのデータをメモ
リ内蔵ICの外部に出力することなくメモリのテストを
行うことができる。In the first invention of the present application, a circuit for controlling a control signal for the memory and a bus connected to the memory so that the data in the memory is not output to the outside of the semiconductor integrated circuit in the normal mode, and the test mode A semiconductor integrated circuit is sometimes provided with a circuit that determines whether data input from outside the memory and data in the memory match, and a circuit that outputs a comparison result to the outside. As a result, the memory can be tested without outputting the data in the memory to the outside of the IC with a built-in memory.
【0014】また、本願の第2発明においては、通常動
作時に書き換え可能なメモリに与えられる制御信号が所
定のタイミングと異なるタイミングで与えられた場合に
前記書き換え可能なメモリのデータを消去する回路が設
けられている。このため、不正にメモリ内のデータを読
み出そうとすると、メモリ内のデータは消去される。こ
れにより、メモリ内に書き込まれたデータの秘匿性をよ
り一層確実にすることができる。Further, in the second invention of the present application, there is provided a circuit for erasing the data in the rewritable memory when the control signal given to the rewritable memory during the normal operation is given at a timing different from a predetermined timing. It is provided. Therefore, if the data in the memory is illegally read, the data in the memory is erased. As a result, the confidentiality of the data written in the memory can be further ensured.
【0015】[0015]
【実施例】次に、本発明の実施例について添付の図面を
参照して説明する。Embodiments of the present invention will now be described with reference to the accompanying drawings.
【0016】図1は本発明の第1の実施例に係るメモリ
内蔵ICの構成を示すブロック図である。FIG. 1 is a block diagram showing the structure of a memory built-in IC according to the first embodiment of the present invention.
【0017】図1に示すメモリ内蔵IC1は、メモリ内
蔵IC1内のメモリ(書き換え可能なメモリ)11、テ
ストモードのメモリテストのときのみライト信号WRB
を無効にする片方向入力バッファ(以下、「入力バッフ
ァ」と称する)12、テストモードのメモリテストのと
きのみリード信号RDBを有効にする片方向入力バッフ
ァ(以下、「入力バッファ」と称する)13、テストモ
ードのメモリテストのときに内部データバスと外部デー
タバスとを電気的に遮断する双方向バッファ14、外部
データバスのデータED0 〜ED7 を保持するためのラ
ッチ15、内部データバスのID0 〜ID7 とラッチ1
5に保持されたデータED0 〜ED7 とを比較判定する
比較回路16、比較回路16で比較判定された結果を保
持するラッチ17、ラッチ17の内容により出力を決定
するフリップフロップ(以下、「F/F」と称する)1
8、メモリテストが終了したときにF/F18の結果を
出力するための片方向出力バッファ(以下、「出力バッ
ファ」と称する)19、アドレスA0 〜A15の16ビッ
トアドレスバス(以下、「アドレスバス」と称する)2
0、データID0 〜ID7 の8ビットデータバス(以
下、「内部データバス」と称する)21及びED0 〜E
D7 の8ビットデータバス(以下、「外部データバス」
と称する)22を具備する。The memory built-in IC1 shown in FIG. 1 has a memory (rewritable memory) 11 in the memory built-in IC1 and a write signal WR B only in the memory test of the test mode.
One-way input buffer to disable (hereinafter, referred to as the "input buffer") 12, one-way input buffer to enable only read signal RD B at the time of the memory test of the test mode (hereinafter referred to as the "input buffer") 13, a bidirectional buffer 14 that electrically disconnects the internal data bus and the external data bus during a memory test in the test mode, a latch 15 for holding data ED 0 to ED 7 of the external data bus, an internal data bus ID 0 to ID 7 and latch 1
5, the comparison circuit 16 for comparing and judging the data ED 0 to ED 7 held in 5, the latch 17 for holding the result of comparison and judgment by the comparison circuit 16, and the flip-flop (hereinafter, referred to as “ "F / F") 1
8. A unidirectional output buffer (hereinafter referred to as “output buffer”) 19 for outputting the result of the F / F 18 when the memory test is completed, a 16-bit address bus of addresses A 0 to A 15 (hereinafter referred to as “ "Address bus") 2
0, 8-bit data bus of data ID 0 to ID 7 (hereinafter referred to as “internal data bus”) 21 and ED 0 to E
D 7 8-bit data bus (hereinafter referred to as “external data bus”)
22).
【0018】このメモリ内蔵IC1には、従来と同様の
クロック信号CLK、メモリ11にデータを書き込むた
めのライト信号WRB 、メモリ11からデータを読み出
すためのリード信号RDB 、テストモードに切り換える
ためのテスト信号TEST及びアドレスA0 〜A15に加
えて、テストモードにおいてメモリテストを行うための
信号(以下、「メモリテスト信号」と称する)MEMT
EST、外部データED0 〜ED7 、内部データID0
〜ID7 及びF/F18をリセットするためのリセット
信号RSTB が入出力される。The memory built-in IC 1 has the same clock signal CLK as the conventional one, a write signal WR B for writing data to the memory 11, a read signal RD B for reading data from the memory 11, and a test mode. In addition to the test signal TEST and the addresses A 0 to A 15 , a signal for performing a memory test in the test mode (hereinafter referred to as “memory test signal”) MEMT
EST, external data ED 0 to ED 7 , internal data ID 0
~ Reset signal RST B for resetting ID 7 and F / F 18 is input / output.
【0019】説明を簡単にするために、メモリ11のア
ドレス8000h(以下、hは16進数を示すものとす
る)番地のみを考え、メモリの8000h番地の正しい
データは7Fhであると仮定する(実際の動作では、8
000h、8001h、8002h…と連続するが原理
は同じである)。故に、アドレスバス20は16ビッ
ト、外部データバス22は8ビット、内部データバス2
1も8ビットと仮定する。また、双方向バッファ14、
ラッチ15及び比較回路16も8ビットのデータを処理
するものとする。To simplify the explanation, consider only the address 8000h (h is a hexadecimal number) of the memory 11 and assume that the correct data at the memory 8000h is 7Fh. In the operation of, 8
000h, 8001h, 8002h and so on, but the principle is the same). Therefore, the address bus 20 is 16 bits, the external data bus 22 is 8 bits, and the internal data bus 2 is
1 is also assumed to be 8 bits. In addition, the bidirectional buffer 14,
The latch 15 and the comparison circuit 16 also process 8-bit data.
【0020】図1において、最初に通常モードでメモリ
11の8000h番地にデータ7Fhを書き込むときの
動作について説明する。Referring to FIG. 1, first, the operation for writing the data 7Fh to the address 8000h of the memory 11 in the normal mode will be described.
【0021】テスト信号TEST及びメモリテスト信号
MEMTESTは“LOW”であるため、双方向バッフ
ァ14は有効となり、内部データバス21と外部データ
バス22とは接続状態になる。このとき、入力バッファ
12はライト信号WRB を有効にし、入力バッファ13
はリード信号RDB を無効にしている。従って、通常モ
ードではメモリ11にデータを書き込むことはできる
が、データを読み出すことはできない。Since the test signal TEST and the memory test signal MEMTEST are "LOW", the bidirectional buffer 14 is enabled and the internal data bus 21 and the external data bus 22 are connected. At this time, the input buffer 12 validates the write signal WR B , and the input buffer 13
Invalidates the read signal RD B. Therefore, in the normal mode, the data can be written in the memory 11, but the data cannot be read.
【0022】この状態で、アドレス8000h番地をア
ドレスバス20を介して指定すると共に、データ7Fh
を外部データバス22から内部データバス21を介して
指定し、ライト信号WRB によりメモリ11の8000
h番地にデータ7Fhを書き込む。In this state, the address 8000h is designated via the address bus 20 and the data 7Fh
Is designated from the external data bus 22 via the internal data bus 21, and 8000 of the memory 11 is specified by the write signal WR B.
Write data 7Fh to address h.
【0023】次に、テストモードの状態に切り換えて、
正しくデータが書き込まれたか否かを確認するための動
作について、図2を参照して説明する。Next, switch to the test mode state,
The operation for confirming whether the data has been written correctly will be described with reference to FIG.
【0024】テスト信号TESTを“HIGH”にして
テストモードに切り換え、メモリテストを行うためにメ
モリテスト信号MEMTESTを“HIGH”にする。
双方向バッファ14は無効となり、内部データバス21
と外部データバス22とは切り離された状態になる。こ
のとき、入力バッファ12はライト信号WRB を無効に
し、入力バッファ13はリード信号RDB を有効にして
おり、メモリ11のデータを読み出すことができるよう
になり、この状態でテストを開始する。The test signal TEST is set to "HIGH" to switch to the test mode, and the memory test signal MEMTEST is set to "HIGH" for the memory test.
The bidirectional buffer 14 is disabled and the internal data bus 21
And the external data bus 22 are separated from each other. At this time, the input buffer 12 invalidates the write signal WR B and the input buffer 13 validates the read signal RD B , so that the data in the memory 11 can be read out, and the test is started in this state.
【0025】最初に通常モードでメモリ11に書き込ん
だデータと異なる55hを書き込む動作を行うものとす
る。双方向バッファ14は無効になっており、ライト信
号WRB は入力バッファ12によりメモリ11には入力
されないためメモリ11にはデータが書き込まれないこ
とになるが、ラッチ15にライト信号WRB が入力さ
れ、データ55hがラッチされる。First, in the normal mode, an operation of writing 55h different from the data written in the memory 11 is performed. Since the bidirectional buffer 14 is disabled and the write signal WR B is not input to the memory 11 by the input buffer 12, no data is written to the memory 11, but the write signal WR B is input to the latch 15. Then, the data 55h is latched.
【0026】次に、メモリ11の8000h番地からデ
ータを読み出すため、アドレスバス20を介して800
0h番地を指定し、リード信号RDB を入力する。メモ
リ11の8000h番地にはデータ7Fhが書き込み済
みであるので、内部データバス21を介してデータ7F
hが読み出される。さきにラッチ15にラッチされたデ
ータ55hと内部データバス21に読み出されたデータ
7Fhが比較回路16によって比較判定される(この場
合の比較回路16は比較結果が不一致のときに“HIG
H”が出力されるものとする)。比較判定結果は不一致
であるためリード信号RDB の立上りエッジによってラ
ッチ17に“HIGH”がラッチされる。ラッチ17の
出力が“HIGH”になるので、立上りエッジによりF
/F18の出力も“HIGH”となる。Next, in order to read data from the address 8000h of the memory 11, 800
Specify the address 0h, enter the read signal RD B. Since the data 7Fh has already been written in the address 8000h of the memory 11, the data 7Fh is transferred via the internal data bus 21.
h is read. The data 55h latched in the latch 15 and the data 7Fh read out to the internal data bus 21 are compared and determined by the comparison circuit 16 (the comparison circuit 16 in this case "HIG" when the comparison result does not match).
H "is output.) Since the comparison and determination results do not match," HIGH "is latched in the latch 17 by the rising edge of the read signal RD B. Since the output of the latch 17 becomes" HIGH ", F due to rising edge
The output of / F18 also becomes "HIGH".
【0027】よって、メモリテストが終了し、メモリテ
スト信号MEMTESTが“LOW”になることにより
メモリテストの結果として“HIGH”がメモリ内蔵I
C1の外部に出力される。Therefore, when the memory test is completed and the memory test signal MEMTEST becomes "LOW", "HIGH" is stored in the memory built-in I as a result of the memory test.
It is output to the outside of C1.
【0028】ラッチ15にデータ7Fhがラッチされた
場合には、図3に示すタイミングチャートのように、比
較回路16の比較結果は一致であるためリード信号RD
B の立上りエッジによってラッチ17に“LOW”がラ
ッチされる。ラッチ17の出力が“LOW”になるので
立上りエッジによりF/F18の出力も“LOW”とな
る。When the data 7Fh is latched in the latch 15, the comparison result of the comparison circuit 16 is the same as shown in the timing chart of FIG.
The rising edge of B latches "LOW" in the latch 17. Since the output of the latch 17 becomes "LOW", the output of the F / F 18 also becomes "LOW" at the rising edge.
【0029】よって、メモリテストが終了し、メモリテ
スト信号MEMTESTが“LOW”になることによ
り、バッファ19からメモリ内蔵IC1の外部に、メモ
リテストの結果として“LOW”が出力される。Therefore, when the memory test is completed and the memory test signal MEMTEST becomes "LOW", "LOW" is output from the buffer 19 to the outside of the memory built-in IC1 as a result of the memory test.
【0030】図4は、本発明の第2の実施例に係るメモ
リ内蔵ICの構成を示すブロック図である。FIG. 4 is a block diagram showing the configuration of a memory built-in IC according to the second embodiment of the present invention.
【0031】図4に示すメモリ内蔵IC2は、メモリ1
1、入力バッファ13、F/F18、出力バッファ1
9、アドレスA0 〜A15のアドレスバス20、データI
D0 〜ID7 の内部データバス21、ED0 〜ED7 の
外部データバス22、外部データバス21から内部デー
タバス22にのみデータを転送する片方向バッファ2
3、内部データバス21のデータID0 〜ID7 を保持
するためのラッチ24、外部データバスのデータED0
〜ED7 とラッチ24に保持されたデータID0 〜ID
7 とを比較判定する比較回路25及び比較回路25で比
較判定した結果を保持するラッチ26を具備する。F/
F18はラッチ26の結果により出力を決定する。The memory built-in IC 2 shown in FIG.
1, input buffer 13, F / F 18, output buffer 1
9, address bus 20 for addresses A 0 to A 15 , data I
An internal data bus 21 of D 0 to ID 7 , an external data bus 22 of ED 0 to ED 7 , and a one-way buffer 2 that transfers data only from the external data bus 21 to the internal data bus 22.
3, latch 24 for holding data ID 0 to ID 7 of internal data bus 21, data ED 0 of external data bus
~ ED 7 and data ID 0 to ID held in the latch 24
It is provided with a comparison circuit 25 for comparing and judging 7 and a latch 26 for holding the result of comparison and judgment by the comparison circuit 25. F /
F18 determines the output according to the result of the latch 26.
【0032】先に説明した第1の実施例の場合と同様、
説明を簡潔にするためにメモリ11のアドレス8000
h番地のみを考え、メモリの8000h番地の正しいデ
ータは7Fhであると仮定する(実際の動作では、80
00h、8001h、8002h…と連続するが原理は
同じである)。故に、アドレスバス20は16ビット、
外部データバス22は8ビット、内部データバス21も
8ビットと仮定する。また、片方向バッファ23、ラッ
チ24及び比較回路25も8ビットのデータを処理する
ものとする。Similar to the case of the first embodiment described above,
Address 8000 of memory 11 for brevity
Consider only address h, and assume that the correct data at address 8000h in the memory is 7Fh (in the actual operation, 80
00h, 8001h, 8002h, etc., but the principle is the same). Therefore, the address bus 20 has 16 bits,
It is assumed that the external data bus 22 has 8 bits and the internal data bus 21 also has 8 bits. The one-way buffer 23, the latch 24, and the comparison circuit 25 also process 8-bit data.
【0033】図4において、最初に通常モードでメモリ
11の8000h番地にデータ7Fhを書き込むときの
動作について説明する。Referring to FIG. 4, first, the operation for writing the data 7Fh to the address 8000h of the memory 11 in the normal mode will be described.
【0034】テスト信号TEST及びメモリテスト信号
MEMTESTは“LOW”であるため、入力バッファ
13はリード信号RDB を無効にしており、通常モード
ではメモリ11にデータを書き込むことはできるが、デ
ータを読み出すことはできないことになる。このとき、
データバスも片方向バッファ23により、外部データバ
ス22から内部データバス21にのみデータを転送する
状態になっている。この状態でアドレス8000h番地
をアドレスバス20を介して指定すると共に、データ7
Fhを外部データバス22から内部データバス21を介
して指定し、ライト信号WRB によりメモリ11の80
00h番地にデータ7Fhを書き込むことになる。[0034] Since the test signal TEST and a memory test signal MEMTEST is "LOW", the input buffer 13 is disabled and the read signal RD B, but in the normal mode may be writing data to the memory 11, reads the data It will not be possible. At this time,
The data bus is also in a state of transferring data only from the external data bus 22 to the internal data bus 21 by the unidirectional buffer 23. In this state, the address 8000h is designated via the address bus 20 and data 7
Fh is designated from the external data bus 22 via the internal data bus 21, and 80 of the memory 11 is specified by the write signal WR B.
Data 7Fh will be written to address 00h.
【0035】続いてテストモードの状態に切り換えて、
正しくデータが書き込まれたか否かを確認するための動
作について、図5を参照して説明する。Then, switch to the test mode state,
The operation for confirming whether the data has been written correctly will be described with reference to FIG.
【0036】テスト信号TESTを“HIGH”にして
テストモードに切り換え、メモリテストを行うためにメ
モリテスト信号MEMTESTを“HIGH”にする。
この状態でテストを開始する。The test signal TEST is set to "HIGH" to switch to the test mode, and the memory test signal MEMTEST is set to "HIGH" for the memory test.
Start the test in this state.
【0037】最初に、メモリ11の8000h番地から
データを読み出すため、アドレスバス20を介して80
00h番地を指定し、リード信号RDB を入力する。メ
モリ11の8000h番地にはデータ7Fhが書き込み
済みであるので、内部データバス21を介してデータ7
Fhが読み出される。片方向バッファ23は外部データ
バス22から内部データバス21にのみデータを転送す
る状態になっているので、外部データバス22にはデー
タ7Fhは出力されないことになるが、ラッチ24にリ
ード信号RDB が入力され、データ7Fhがラッチされ
る。First, in order to read data from the address 8000h of the memory 11, 80
Designate address 00h and input read signal RD B. Since the data 7Fh has already been written to the address 8000h of the memory 11, the data 7Fh is written via the internal data bus 21.
Fh is read. Since the one-way buffer 23 is in a state of transferring data only from the external data bus 22 to the internal data bus 21, the data 7Fh is not output to the external data bus 22, but the read signal RD B is output to the latch 24. Is input and the data 7Fh is latched.
【0038】次に、メモリ11の8000h番地にデー
タ55hを書き込むとする。この場合に、アドレスバス
20を介して8000h番地を指定し、外部データバス
22から5hを入力すると共にライト信号WRB を入力
する。メモリ11の8000h番地にはデータ7Fhが
書き込み済みであるが、片方向バッファ23により外部
データバス22から内部データバス21にのみデータを
転送する状態になっているので、データ55hが書き込
まれる。先にラッチ24にラッチされたデータ7Fhと
外部データバス22に書き込んだデータ55hとが比較
回路25によって比較判定される(この場合、比較回路
25は比較結果が不一致のときに“HIGH”が出力さ
れるものとする)。比較判定結果は不一致であるためラ
イト信号WRB の立上りエッジによってラッチ26に
“HIGH”がラッチされる。ラッチ26の出力が“H
IGH”になるので、立上りエッジによりF/F18の
出力も“HIGH”となる。Next, it is assumed that the data 55h is written at the address 8000h of the memory 11. In this case, the address 8000h is specified via the address bus 20, 5h is input from the external data bus 22 and the write signal WR B is input. Although the data 7Fh has already been written to the address 8000h of the memory 11, the data 55h is written because the data is transferred only from the external data bus 22 to the internal data bus 21 by the one-way buffer 23. The data 7Fh previously latched in the latch 24 and the data 55h written in the external data bus 22 are compared and determined by the comparison circuit 25 (in this case, the comparison circuit 25 outputs "HIGH" when the comparison results do not match. Shall be done). Since the comparison determination results do not match, "HIGH" is latched in the latch 26 at the rising edge of the write signal WR B. The output of the latch 26 is "H
Since it becomes “IGH”, the output of the F / F 18 also becomes “HIGH” at the rising edge.
【0039】メモリテストが終了し、メモリテスト信号
MEMTESTが“LOW”になることにより、バッフ
ァ19からメモリ内蔵IC2の外部に、メモリテストの
結果として“HIGH”が出力される。When the memory test is completed and the memory test signal MEMTEST becomes "LOW", "HIGH" is output from the buffer 19 to the outside of the memory IC 2 as a result of the memory test.
【0040】外部データバス22から書き込んだデータ
が7Fhの場合には、図6にこの動作のタイミングチャ
ートを示すように、比較回路25の比較判定結果は一致
であるためライト信号WRB の立上りエッジによってラ
ッチ26に“LOW”がラッチされる。ラッチ26の出
力が“LOW”になるので立上りエッジによりF/F1
8の出力も“LOW”となる。When the data written from the external data bus 22 is 7Fh, as shown in the timing chart of this operation in FIG. 6, the comparison judgment result of the comparison circuit 25 is a coincidence, so that the rising edge of the write signal WR B. Thus, "LOW" is latched in the latch 26. Since the output of the latch 26 becomes "LOW", F / F1
The output of 8 also becomes "LOW".
【0041】よって、メモリテストが終了し、メモリテ
スト信号MEMTESTが“LOW”になることによ
り、バッファ19からメモリ内蔵IC2の外部に、メモ
リテストの結果として“LOW”が出力される。Therefore, when the memory test is completed and the memory test signal MEMTEST becomes "LOW", "LOW" is output from the buffer 19 to the outside of the memory integrated IC 2 as a result of the memory test.
【0042】このように、本発明のメモリ内蔵ICは、
通常モードのときにメモリのデータがメモリ内蔵ICの
外部に出力されないようにメモリに対する制御信号及び
メモリに接続されるバスを制御する回路と、テストモー
ドのときにメモリ内蔵IC外部から入力されるデータと
メモリのデータとの一致を比較判定し判定結果を外部に
出力する回路とを有している。従って、メモリのデータ
が半導体集積回路の外部に出力されないので、秘匿性を
保つことができる。また、メモリに書き込んだデータが
不明であればメモリの検査が行うことができず、メモリ
に書き込んだデータが判明していればメモリの検査を行
うことができるので秘匿性を保ちながらメモリを検査す
ることができる。As described above, the memory built-in IC of the present invention is
A circuit for controlling a control signal for the memory and a bus connected to the memory so that the data in the memory is not output to the outside of the IC with the built-in memory in the normal mode, and data input from the outside of the IC with the built-in memory in the test mode. And a circuit for comparing and judging whether the data of the memory coincides with each other and outputting the judgment result to the outside. Therefore, since the data in the memory is not output to the outside of the semiconductor integrated circuit, the confidentiality can be maintained. In addition, if the data written to the memory is unknown, the memory cannot be inspected. If the data written to the memory is known, the memory can be inspected, so the memory can be inspected while maintaining confidentiality. can do.
【0043】図7は本発明の第3の実施例に係るメモリ
内蔵ICの構成を示すブロック図である。FIG. 7 is a block diagram showing the structure of a memory built-in IC according to the third embodiment of the present invention.
【0044】図7に示すメモリ内蔵IC3は、メモリ内
蔵IC3内の書き換え可能なメモリ31、メモリ31内
のデータを消去するためにメモリ31のアドレスとメモ
リ31にデータを書き込む信号を発生するタイミング発
生回路(以下、「タイミング発生回路」と称する)3
2、メモリ31への指定アドレスを1番地毎に増加(又
は、減少)するカウンタ(以下、「カウンタ」と称す
る)121、メモリ31のメモリサイズを記憶するため
のレジスタ(以下、「レジスタ」と称する)122、テ
ストモードのメモリテスト中であることを保持するため
のラッチ(以下、「ラッチ」と称する)33、内部デー
タバスのデータID0 〜ID7 を保持するためのラッチ
(以下、「ラッチ」と称する)34、外部データバスの
データED0〜ED7 とラッチ34に保持されたデータ
ID0 〜ID7 とを比較判定する比較回路(以下、「比
較回路」と称する)35、比較回路35で比較判定した
結果を保持するラッチ(以下、「ラッチ」と称する)3
6、ラッチ36の出力結果により出力値を決定するフリ
ップフロック(以下、「F/F」と称する)37、ラッ
チ33の出力結果とF/F37の出力結果とによりエラ
ー信号を出力するゲート回路(以下、「ゲート回路」と
称する)38、外部データバスと内部データバスとを電
気的に切り離し、且つゲート回路38から出力されたエ
ラー信号によって内部データバスのデータを0にするゲ
ート回路(以下、「ゲート回路」と称する)39、ゲー
ト回路38から出力されたエラー信号によってタイミン
グ発生回路32の内部のカウンタ121の出力を制御す
る3ステートバッファ(以下、「バッファ」と称する)
40、エラーと判定されたときに、メモリ内蔵IC3の
外部からのアドレスバスを切り離す3ステートバッファ
(以下、「バッファ」と称する)41、メモリテストを
行なうときにメモリ内蔵IC3の外部からメモリ31に
データを書き込むための信号を切り離す3ステートバッ
ファ(以下、「バッファ」と称する)42、メモリテス
トを行なうときにメモリ内蔵IC3の外部からメモリ3
1のデータを読み出すための信号を切り離す3ステート
バッファ(以下、「バッファ」と称する)43、F/F
37の出力Qを制御する3ステートバッファ(以下、
「バッファ」と称する)44、F/F37の出力QB を
制御する3ステートバッファ(以下、「バッファ」と称
する)45、アドレスA0 〜A15の16ビットアドレス
バス(以下、「アドレスバス」と称する)46、データ
ED0 〜ED7 の8ビットデータバス(以下「外部デー
タバス」と称する)47及びデータID0 〜ID7 の8
ビットデータバス(以下、「内部データバス」と称す
る)48を具備する。The memory built-in IC 3 shown in FIG. 7 generates the rewritable memory 31 in the memory built-in IC 3, the timing of generating the address of the memory 31 and the signal for writing the data in the memory 31 to erase the data in the memory 31. Circuit (hereinafter referred to as "timing generation circuit") 3
2. A counter (hereinafter referred to as “counter”) 121 that increments (or decrements) the designated address to the memory 31 for each address 121, a register for storing the memory size of the memory 31 (hereinafter referred to as “register”). 122), a latch (hereinafter referred to as “latch”) 33 for holding that the memory test in the test mode is being performed, a latch for holding data ID 0 to ID 7 of the internal data bus (hereinafter, “latch”). (Referred to as a "latch") 34, a comparison circuit (hereinafter referred to as "comparison circuit") 35 for comparing and judging the data ED 0 to ED 7 of the external data bus and the data ID 0 to ID 7 held in the latch 34, a comparison A latch (hereinafter, referred to as “latch”) 3 for holding the result of comparison and determination by the circuit 35
6, a flip-flop (hereinafter referred to as "F / F") 37 that determines an output value based on the output result of the latch 36, and a gate circuit that outputs an error signal based on the output result of the latch 33 and the output result of the F / F 37 ( Hereinafter, referred to as a "gate circuit" 38, a gate circuit that electrically disconnects the external data bus from the internal data bus, and sets the data of the internal data bus to 0 by an error signal output from the gate circuit 38 (hereinafter, referred to as "gate circuit"). 39, a "gate circuit"), and a 3-state buffer (hereinafter referred to as "buffer") that controls the output of the counter 121 inside the timing generation circuit 32 according to the error signal output from the gate circuit 38.
40, a three-state buffer (hereinafter referred to as “buffer”) 41 that disconnects the address bus from the outside of the memory-embedded IC 3 when an error is determined, 41 A 3-state buffer (hereinafter, referred to as a “buffer”) 42 that separates a signal for writing data, a memory 3 from outside the memory-embedded IC 3 when performing a memory test.
3-state buffer (hereinafter referred to as "buffer") 43 for separating a signal for reading 1 data, F / F
A three-state buffer (hereinafter,
A "buffer" 44, a 3-state buffer (hereinafter "buffer") 45 for controlling the output Q B of the F / F 37, a 16-bit address bus of addresses A 0 to A 15 (hereinafter "address bus") 46), an 8-bit data bus (hereinafter referred to as “external data bus”) 47 for data ED 0 to ED 7 , and 8 of data ID 0 to ID 7 .
A bit data bus (hereinafter referred to as “internal data bus”) 48 is provided.
【0045】このメモリ内蔵IC3には、クロック信号
CLK、メモリ31にデータを書き込むためのライト信
号WRB 、メモリ31からデータを読み出すためのリー
ド信号RDB 、テストモードに切り換えるためのテスト
信号TEST、テストモードにおいてメモリテストを行
なうためのメモリテスト信号MEMTEST、アドレス
A0 〜A7 、外部データED0 〜ED7 、内部データI
D0 〜ID7 及びリセット信号RSTB が入出力され
る。The memory built-in IC 3 has a clock signal CLK, a write signal WR B for writing data to the memory 31, a read signal RD B for reading data from the memory 31, a test signal TEST for switching to a test mode, A memory test signal MEMTEST for performing a memory test in the test mode, addresses A 0 to A 7 , external data ED 0 to ED 7 , and internal data I.
D 0 to ID 7 and the reset signal RST B are input / output.
【0046】説明を簡単にするために、メモリ31のア
ドレスサイズはFFhビット、即ち256ビットである
と仮定し、アドレスB0h番地のみを考え、メモリのB
0h番地の正しいデータは7Fhであると仮定する(実
際の動作では、B0h、B0h、B2h…と連続するが
原理は同じである)。故に、アドレスバス46は16ビ
ット、外部データバス47は8ビット、内部データバス
48も8ビットと仮定する。また、ゲート回路39、バ
ッファ40、バッファ41、ラッチ34及び比較回路3
5も8ビットデータを処理するものとする。To simplify the explanation, it is assumed that the address size of the memory 31 is FFh bits, that is, 256 bits, and only the address B0h is considered, and the memory B
It is assumed that the correct data at address 0h is 7Fh (in the actual operation, B0h, B0h, B2h ... Are continuous, but the principle is the same). Therefore, it is assumed that the address bus 46 has 16 bits, the external data bus 47 has 8 bits, and the internal data bus 48 has 8 bits. Further, the gate circuit 39, the buffer 40, the buffer 41, the latch 34, and the comparison circuit 3
5 also processes 8-bit data.
【0047】図7において、最初に通常モードでメモリ
31のB0h番地にデータ7Fhを書き込むときの動作
について説明する。Referring to FIG. 7, first, the operation for writing the data 7Fh to the address B0h of the memory 31 in the normal mode will be described.
【0048】テスト信号TEST及びメモリテスト信号
MEMTESTは“LOW”であり、バッファ42はメ
モリ内蔵IC3の外部からのライト信号WRB を有効に
し、バッファ43はメモリ内蔵IC3の外部からのリー
ド信号RDB を有効にする。しかし、ラッチ33の出力
Qは“HIGH”(初期値は“HIGH”とする)であ
り、バッファ44はF/F37の出力Qを無効にしてお
り、バッファ45はF/F37の出力QB を無効にして
いる。この状態でアドレスB0h番地をアドレスバス4
6、データ7Fhを外部データバス47から内部データ
バス48を介して指定し、ライト信号WRBによりメモ
リ31のB0h番地にデータ7Fhを書き込むことにな
る。The test signal TEST and the memory test signal MEMTEST are "LOW", the buffer 42 enables the write signal WR B from the outside of the memory IC 3 and the buffer 43 the read signal RD B from the outside of the memory IC 3. To enable. However, the output Q of the latch 33 is "HIGH" (initial value is "HIGH"), the buffer 44 invalidates the output Q of the F / F 37, and the buffer 45 outputs the output Q B of the F / F 37. It is disabled. In this state, address B0h is set to address bus 4
6. The data 7Fh is designated from the external data bus 47 via the internal data bus 48, and the data 7Fh is written to the address B0h of the memory 31 by the write signal WR B.
【0049】このとき、メモリ31のデータを読み込も
うとしてリード信号WRB を入力すると、ラッチ33の
出力Qがリード信号RDB によって“LOW”でラッチ
され、ゲート回路38を介してエラー信号ERRB (ア
クティブ“LOW”)を“LOW”にする。ゲート回路
38を介して出力されたエラー信号ERRB は、メモリ
内蔵IC3の外部から信号を入力されないようにバッフ
ァ41によりアドレスバス46を切り離す。また、ゲー
ト回路39を介して、内部データバス48のデータを全
て0としてしまう。但し、バッファ40だけはタイミン
グ発生回路32の内部のカウンタ121の出力を有効に
する。At this time, when the read signal WR B is input to read the data of the memory 31, the output Q of the latch 33 is latched at “LOW” by the read signal RD B , and the error signal ERR B is input via the gate circuit 38. (Active “LOW”) is set to “LOW”. The error signal ERR B output via the gate circuit 38 disconnects the address bus 46 by the buffer 41 so that no signal is input from the outside of the memory IC 3. Further, all the data on the internal data bus 48 is set to 0 via the gate circuit 39. However, only the buffer 40 enables the output of the counter 121 inside the timing generation circuit 32.
【0050】ゲート回路38を介して出力されたエラー
信号ERRB によりタイミング発生回路32が起動され
て、タイミング発生回路32の内部のカウンタ121か
ら出力されたアドレスにライト信号WRB でデータを書
き込む。内部データバス48のデータは0であるため、
メモリ31には0が書き込まれる。The timing signal generating circuit 32 is activated by the error signal ERR B output via the gate circuit 38, and the data is written by the write signal WR B to the address output from the counter 121 inside the timing generating circuit 32. Since the data on the internal data bus 48 is 0,
0 is written in the memory 31.
【0051】タイミング発生回路32内部のカウンタ1
21により、メモリ31のアドレスは1番地毎に増加す
るため、ライト信号WRB によって、メモリ31には順
次0が書き込まれる。そして、タイミング発生回路32
の内部のレジスタ122のメモリサイズの値をアドレス
の値が超えたときに、タイミング発生回路32の動作が
完了する。これにより、メモリ31のデータは全て0に
なる。Counter 1 in timing generation circuit 32
21 increases the address of the memory 31 for each address, so that 0 is sequentially written in the memory 31 by the write signal WR B. Then, the timing generation circuit 32
When the value of the address exceeds the value of the memory size of the internal register 122 of, the operation of the timing generation circuit 32 is completed. As a result, all the data in the memory 31 becomes zero.
【0052】次に、テストモードに切り換えて、正しく
データが書き込まれたかを確認するための動作につい
て、図8を参照して説明する。Next, the operation for switching to the test mode and confirming whether the data has been written correctly will be described with reference to FIG.
【0053】テスト信号TESTを“HIGH”にして
テストモードに切り換えると共に、メモリテストを行な
うためにメモリテスト信号を“HIGH”にする。バッ
ファ44はF/F37の出力Qを有効にし、バッファ4
5はF/F37の出力QB を有効にする。バッファ42
はメモリ内蔵IC3の外部からのライト信号WRB を無
効にしており、バッファ43はメモリ内蔵IC3の外部
からのリード信号RDB を無効にしており、外部データ
バス47と内部データバス48とはゲート回路39によ
り切り離された状態になっており、この状態でテストを
開始する。The test signal TEST is set to "HIGH" to switch to the test mode, and the memory test signal is set to "HIGH" to perform the memory test. The buffer 44 enables the output Q of the F / F 37, and the buffer 4
5 enables the output Q B of the F / F 37. Buffer 42
Is to disable the write signal WR B from the external memory built IC3, buffer 43 is disabled and the read signal RD B from the external memory built IC3, the gate and the external data bus 47 and the internal data bus 48 The circuit 39 is in the separated state, and the test is started in this state.
【0054】このとき、メモリ31のデータを読み込も
うとしてリード信号RDB を入力しても、ラッチ33の
出力Qはリード信号RDB によって“HIGH”でラッ
チされ、ゲート回路38を介したエラー信号ERRB は
“HIGH”となるので、現状態を維持することにな
る。At this time, even if the read signal RD B is input in an attempt to read the data of the memory 31, the output Q of the latch 33 is latched at “HIGH” by the read signal RD B , and the error signal via the gate circuit 38 is output. Since ERR B becomes "HIGH", the current state is maintained.
【0055】最初に、メモリ31のB0h番地からデー
タを読み出すため、アドレスバス46を介してB0h番
地を指定し、リード信号RDB を入力する。メモリ31
のB0h番地にはデータ7Fhが書き込み済みであるの
で内部データバス48を介してデータ7Fhがラッチ3
4にラッチされる。First, in order to read the data from the address B0h of the memory 31, the address B0h is designated via the address bus 46 and the read signal RD B is input. Memory 31
Since the data 7Fh has already been written to the address B0h, the data 7Fh is latched via the internal data bus 48.
Latched to 4.
【0056】次に、通常モードでメモリ31に書き込ん
だデータと異なる55hを書き込む。但し、バッファ4
2によりメモリ内蔵IC3の外部からのライト信号WR
B は切り離されており、メモリ31には入力されないた
め、メモリ31にはデータが書き込まれないことにな
る。先にラッチ34にラッチされたデータ7Fhと外部
データバス47に書き込まれたデータ55hとが比較回
路35によって比較判定される(比較回路35は比較結
果が不一致のときに“HIGH”を出力するものとす
る)。比較判定結果は不一致であるため、リード信号R
DB の立上りエッジによってラッチ36に“HIGH”
がラッチされる。ラッチ36の出力が“HIGH”にな
るので、立上りエッジによりF/F37の出力Qも“H
IGH”となり、バッファ44からメモリ内蔵IC3の
外部に、メモリテストの結果として“HIGH”が出力
される。F/F37の出力QB は“LOW”となるの
で、ゲート回路38を介してエラー信号ERRB が“L
OW”になり、タイミング発生回路32が起動し、先と
同様の動作をする。Next, 55h different from the data written in the memory 31 in the normal mode is written. However, buffer 4
2, the write signal WR from the outside of the memory built-in IC3
Since B is separated and is not input to the memory 31, no data is written to the memory 31. The data 7Fh previously latched in the latch 34 and the data 55h written in the external data bus 47 are compared and judged by the comparison circuit 35 (the comparison circuit 35 outputs "HIGH" when the comparison result does not match). And). Since the comparison and determination results do not match, the read signal R
The latch 36 is "HIGH" by the rising edge of D B.
Is latched. Since the output of the latch 36 becomes "HIGH", the output Q of the F / F 37 also becomes "H" at the rising edge.
IGH ”, and“ HIGH ”is output from the buffer 44 to the outside of the memory IC 3 as a result of the memory test. Since the output Q B of the F / F 37 is“ LOW ”, an error signal is output via the gate circuit 38. ERR B is "L
OW ", the timing generation circuit 32 is activated, and the same operation as above is performed.
【0057】図9に、先に書き込まれたデータと同一の
データが書き込まれたときのタイミングチャートを示
す。データ7Fhが書き込まれた場合には、比較回路3
5の比較判定結果は一致であるため、リード信号RDB
の立上りエッジによってラッチ36に“LOW”がラッ
チされる。ラッチ36の出力が“LOW”になるので立
上りエッジによりF/F37の出力Qも“LOW”とな
り、バッファ44からメモリ内蔵IC3の外部に、メモ
リテストの結果として“LOW”が出力される。F/F
37の出力QB は“HIGH”となるので、ゲート回路
38を介して出力されたエラー信号ERRB が“HIG
H”になり、タイミング発生回路32は起動しないこと
になる。FIG. 9 shows a timing chart when the same data as the previously written data is written. When the data 7Fh is written, the comparison circuit 3
Since the comparison judgment result of 5 is a match, the read signal RD B
"LOW" is latched in the latch 36 by the rising edge of. Since the output of the latch 36 becomes "LOW", the output Q of the F / F 37 also becomes "LOW" at the rising edge, and "LOW" is output from the buffer 44 to the outside of the memory IC 3 as a result of the memory test. F / F
Since the output Q B of 37 is “HIGH”, the error signal ERR B output via the gate circuit 38 is “HIG”.
It becomes H ″, and the timing generation circuit 32 is not activated.
【0058】本実施例においては、第1及び第2の実施
例と同様の効果を得ることができるのに加えて、メモリ
に書き込まれたデータを不正に読み出そうとすると、メ
モリ内のデータを消去してしまう。これにより、データ
の秘匿性をより一層確実にすることができる。In this embodiment, the same effect as in the first and second embodiments can be obtained, and in addition, if the data written in the memory is illegally read out, the data in the memory can be read. Will be erased. Thereby, the confidentiality of the data can be further ensured.
【0059】図10は本発明の第4の実施例に係るメモ
リ内蔵ICの構成を示すブロック図である。FIG. 10 is a block diagram showing the configuration of an IC with a built-in memory according to the fourth embodiment of the present invention.
【0060】図10に示すメモリ内蔵IC4は、メモリ
31、ラッチ33、ラッチ34、比較回路35、ラッチ
36、F/F37、ゲート回路38、バッファ40、バ
ッファ41、バッファ42、バッファ43、バッファ4
4、バッファ45、アドレスA0 〜A15のアドレスバス
46、データED0 〜ED7 の外部データバス47、デ
ータID0 〜ID7 の内部データバス48、メモリ31
のデータを消去するためにメモリ31のアドレスとライ
ト信号を発生するタイミング発生回路(以下、「タイミ
ング発生回路」と称する)49、メモリ31への指定ア
ドレスを1番地毎に増加(又は、減少)するカウンタ
(以下、「カウンタ」と称する)291、メモリ31の
メモリサイズを記憶するためのレジスタ(以下、「レジ
スタ」と称する)292、メモリ31に書き込むデータ
を記憶するレジスタ(以下、「レジスタ」と称する)2
93及び外部データバスから内部データバスにデータを
転送する片方向バッファ(以下、「片方向バッファ」と
称する)50を具備する。The memory built-in IC 4 shown in FIG. 10 includes a memory 31, a latch 33, a latch 34, a comparison circuit 35, a latch 36, an F / F 37, a gate circuit 38, a buffer 40, a buffer 41, a buffer 42, a buffer 43, and a buffer 4.
4, the buffer 45, the address bus 46 of addresses A 0 to A 15, the external data bus 47 the data ED 0 ~ED 7, the internal data bus 48 of the data ID 0 ~ID 7, memory 31
Timing generating circuit (hereinafter referred to as "timing generating circuit") 49 for generating an address and a write signal of the memory 31 to erase the data of the memory 31, and the designated address to the memory 31 is increased (or decreased) for each address. Counter (hereinafter referred to as "counter") 291, a register for storing the memory size of the memory 31 (hereinafter referred to as "register") 292, a register for storing data to be written in the memory 31 (hereinafter referred to as "register") 2)
93 and a unidirectional buffer (hereinafter, referred to as “unidirectional buffer”) 50 for transferring data from the external data bus to the internal data bus.
【0061】このメモリ内蔵IC4には、第3の実施例
と同様のクロック信号CLK、ライト信号WRB 、リー
ド信号RDB 、テスト信号TEST、メモリテスト信号
MEMTEST、アドレスA0 〜A15、外部データED
0 〜ED7 、内部データID0 〜ID7 及びリセット信
号RSTB が入出力される。The memory built-in IC 4 has the same clock signal CLK, write signal WR B , read signal RD B , test signal TEST, memory test signal MEMTEST, addresses A 0 to A 15 , external data as in the third embodiment. ED
0 to ED 7 , internal data ID 0 to ID 7, and reset signal RST B are input and output.
【0062】説明を簡単にするために、メモリ31のア
ドレスサイズはFFhビット、即ち256ビットである
と仮定し、アドレスB0h番地のみを考え、メモリのB
0h番地の正しいデータは7Fhであると仮定する(実
動作では、B0h、B1h、B2h…と連続するが、原
理は同じである)。但し、説明の便宜上、アドレスバス
46は16ビット、外部データバス47は8ビット、内
部データバス48も8ビットと仮定する。また、バッフ
ァ40、バッファ41、バッファ50、ラッチ34、比
較回路35も8ビットのデータを処理するものとする。To simplify the explanation, it is assumed that the address size of the memory 31 is FFh bits, that is, 256 bits, only the address B0h is considered, and the memory B
It is assumed that the correct data at address 0h is 7Fh (in the actual operation, B0h, B1h, B2h, ... Are continuous, but the principle is the same). However, for convenience of explanation, it is assumed that the address bus 46 is 16 bits, the external data bus 47 is 8 bits, and the internal data bus 48 is 8 bits. Further, the buffer 40, the buffer 41, the buffer 50, the latch 34, and the comparison circuit 35 also process 8-bit data.
【0063】図10において、最初に通常モードでメモ
リ31のB0h番地にデータ7Fhを書き込むときの動
作について説明する。Referring to FIG. 10, first, the operation for writing the data 7Fh to the address B0h of the memory 31 in the normal mode will be described.
【0064】テスト信号TEST及びメモリテスト信号
MEMTESTは“LOW”であり、バッファ42はメ
モリ内蔵IC4の外部からのライト信号WRB を有効に
し、バッファ43はメモリ内蔵IC4の外部からのリー
ド信号RDB を有効にするが、ラッチ33の出力Qは
“HIGH”(初期値は“HIGH”とする)であり、
バッファ44はF/F37の出力Qを無効にしており、
バッファ45はF/F37の出力QB を無効にしてい
る。この状態でアドレスB0h番地をアドレスバス4
6、データ7Fhを外部データバス47から内部データ
バス48を介して指定し、ライト信号WRB によりメモ
リ31のBOh番地にデータ7Fhを書き込むことにな
る。The test signal TEST and the memory test signal MEMTEST are "LOW", the buffer 42 validates the write signal WR B from the outside of the memory IC 4 and the buffer 43 the read signal RD B from the outside of the memory IC 4. However, the output Q of the latch 33 is "HIGH" (initial value is "HIGH"),
The buffer 44 invalidates the output Q of the F / F 37,
The buffer 45 invalidates the output Q B of the F / F 37. In this state, address B0h is set to address bus 4
6, the data 7Fh is designated from the external data bus 47 via the internal data bus 48, and the data 7Fh is written to the address BOh of the memory 31 by the write signal WR B.
【0065】このとき、メモリ31のデータを読み込も
うとしてリード信号RDB を入力すると、ラッチ33の
出力Qがリード信号RDB によって“LOW”でラッチ
され、ゲート回路38を介してエラー信号ERRB を
“LOW”にする。ゲート回路38を介して出力された
エラー信号ERRB は、メモリ内蔵IC4の外部から信
号が入力されないようにバッファ41によりアドレスバ
ス46を切り離す。但し、バッファ40だけはタイミン
グ発生回路49内部のカウンタ291の出力を有効にす
る。At this time, when the read signal RD B is input to read the data of the memory 31, the output Q of the latch 33 is latched at “LOW” by the read signal RD B , and the error signal ERR B is output via the gate circuit 38. To "LOW". The error signal ERR B output via the gate circuit 38 disconnects the address bus 46 by the buffer 41 so that the signal is not input from the outside of the memory-incorporated IC 4. However, only the buffer 40 enables the output of the counter 291 inside the timing generation circuit 49.
【0066】ゲート回路38を介して出力されたエラー
信号ERRB によりタイミング発生回路49が起動され
てタイミング発生回路49の内部のカウンタ291から
出力されたアドレスにライト信号WRB でデータを書き
込む。内部データバス48のデータはタイミング発生回
路49の内部のレジスタ293に予め設定されている値
でメモリ31にデータが書き込まれることになる。タイ
ミング発生回路49の内部のカウンタ292によりメモ
リ31のアドレスは1番地毎に増加して、ライト信号W
RB によってタイミング発生回路49の内部のレジスタ
293に設定されている値が順次書き込まれる。タイミ
ング発生回路49の内部のレジスタ291のメモリサイ
ズの値をアドレスの値が超えたときタイミング発生回路
49の動作が完了する。よって、メモリ31のデータは
全てタイミング発生回路49の内部のレジスタ293に
設定されている値になる。The timing signal generating circuit 49 is activated by the error signal ERR B output through the gate circuit 38, and the data is written by the write signal WR B to the address output from the counter 291 inside the timing generating circuit 49. The data of the internal data bus 48 is written in the memory 31 with a value preset in the register 293 inside the timing generation circuit 49. The address of the memory 31 is incremented for each address by the counter 292 inside the timing generation circuit 49, and the write signal W
Value set in the internal register 293 of the timing generating circuit 49 by R B are sequentially written. When the address value exceeds the memory size value of the register 291 inside the timing generation circuit 49, the operation of the timing generation circuit 49 is completed. Therefore, all the data in the memory 31 have the values set in the register 293 inside the timing generation circuit 49.
【0067】テストモードの状態に切り換えて、正しく
データが書き込まれたか確認するための動作について
は、図11にそのタイミングチャートを示すように、外
部データバス47と内部データバス48とをバッファ5
0により切り離した状態にしている以外は、第3の実施
例と同様である。As for the operation for confirming whether the data is correctly written by switching to the test mode state, the external data bus 47 and the internal data bus 48 are connected to the buffer 5 as shown in the timing chart of FIG.
The third embodiment is the same as the third embodiment except that it is separated by 0.
【0068】図12は外部データに書き込まれたデータ
が先に書き込まれたデートと同一の場合のタイミングチ
ャートである。データ7Fhが書き込まれた場合には、
比較回路35の比較判定結果は一致であるため、リード
信号RDBの立上りエッジによってラッチ36に“LO
W”がラッチされる。ラッチ36の出力が“LOW”に
なるので、立上りエッジによりF/F37の出力Qも
“LOW”となり、バッファ44を介してメモリ内蔵I
C4の外部に、メモリテストの結果として“LOW”が
出力される。F/F37の出力QB は“HIGH”とな
るので、ゲート回路38を介して出力されたエラー信号
ERRB が“HIGH”になり、タイミング発生回路1
2は起動しないことになる。FIG. 12 is a timing chart when the data written in the external data is the same as the date previously written. When data 7Fh is written,
For comparison decision result of the comparison circuit 35 is coincident, "the latch 36 by the rising edge of the read signal RD B LO
W ”is latched. Since the output of the latch 36 becomes“ LOW ”, the output Q of the F / F 37 also becomes“ LOW ”due to the rising edge, and the memory built-in I
"LOW" is output to the outside of C4 as a result of the memory test. Since the output Q B of the F / F 37 becomes “HIGH”, the error signal ERR B output via the gate circuit 38 becomes “HIGH”, and the timing generation circuit 1
2 will not start.
【0069】本実施例においても、第3の実施例と同様
の効果を得ることができる。Also in this embodiment, the same effect as that of the third embodiment can be obtained.
【0070】[0070]
【発明の効果】以上説明したように本願の第1発明にお
いては、通常モードのときにメモリのデータがメモリ内
蔵ICの外部に出力されないようにメモリに対する制御
信号及びメモリに接続されるバスを制御する回路と、テ
ストモードのときにメモリ内蔵IC外部から入力される
データとメモリのデータとの一致を比較判定し判定結果
を外部に出力する回路とを設けることにより、秘匿性を
保ちながらメモリの検査を可能とするメモリ内蔵ICを
提供することができる。As described above, in the first invention of the present application, the control signal for the memory and the bus connected to the memory are controlled so that the data in the memory is not output to the outside of the IC with the built-in memory in the normal mode. And a circuit for comparing and determining whether or not the data input from the IC with a built-in memory and the data in the memory are compared in the test mode and outputting the determination result to the outside of the memory while maintaining confidentiality. An IC with a built-in memory that enables inspection can be provided.
【0071】また、本願の第2発明においては、メモリ
に接続されるバスを制御する回路と、メモリに接続され
る制御信号を制御する回路と、メモリに接続される制御
信号を制御する回路と、通常動作時における所定のタイ
ミングと異なるタイミングで制御信号が与えられた場合
に前記書き換え可能なメモリのデータを消去する回路と
を備えているから、メモリに書き込まれたデータが半導
体集積回路の外部に出力されず、データを不正に読み出
そうとすればメモリのデータを消去してしまうので、よ
り確実に秘匿性を保てるという効果がある。更に、テス
トモードのときに外部データ及びメモリのデータを比較
判定する回路と、比較結果を外部に出力する回路とを備
えているから、メモリに書き込んだデータが不明であれ
ば、メモリに書き込んだデータが不明であればメモリの
検査が行なえず、メモリに書き込んだデータが判明して
いればメモリの検査が行なえるので、秘匿性を保ちなが
らメモリの検査ができるという効果がある。In the second invention of the present application, a circuit for controlling the bus connected to the memory, a circuit for controlling the control signal connected to the memory, and a circuit for controlling the control signal connected to the memory. And a circuit for erasing the data in the rewritable memory when a control signal is given at a timing different from a predetermined timing during normal operation, so that the data written in the memory is external to the semiconductor integrated circuit. If the data is not read out, the data in the memory is erased if the data is read out illegally, so that there is an effect that the confidentiality can be more surely maintained. Furthermore, since it has a circuit that compares and determines external data and memory data in the test mode and a circuit that outputs the comparison result to the outside, if the data written to the memory is unknown, it is written to the memory. If the data is unknown, the memory cannot be inspected, and if the data written in the memory is known, the memory can be inspected. Therefore, there is an effect that the memory can be inspected while maintaining confidentiality.
【図1】本発明の第1の実施例に係る半導体集積回路の
構成を示すブロック図である。FIG. 1 is a block diagram showing a configuration of a semiconductor integrated circuit according to a first embodiment of the present invention.
【図2】同じくその動作を示すタイミングチャート図で
あるFIG. 2 is a timing chart diagram showing the same operation.
【図3】同じくその動作を示すタイミングチャート図で
ある。FIG. 3 is a timing chart diagram showing the same operation.
【図4】本発明の第2の実施例の半導体集積回路の構成
を示すブロック図である。FIG. 4 is a block diagram showing a configuration of a semiconductor integrated circuit according to a second embodiment of the present invention.
【図5】同じくその動作を示すタイミングチャート図で
ある。FIG. 5 is a timing chart showing the same operation.
【図6】同じくその動作を示すタイミングチャート図で
ある。FIG. 6 is a timing chart showing the operation of the same.
【図7】本発明の第3の実施例の半導体集積回路の構成
を示すブロック図である。FIG. 7 is a block diagram showing a configuration of a semiconductor integrated circuit according to a third embodiment of the present invention.
【図8】同じくその動作を示すタイミングチャート図で
ある。FIG. 8 is a timing chart diagram showing the same operation.
【図9】同じくその動作を示すタイミングチャート図で
ある。FIG. 9 is a timing chart showing the operation of the same.
【図10】本発明の第4の実施例の半導体集積回路の構
成を示すブロック図である。FIG. 10 is a block diagram showing a configuration of a semiconductor integrated circuit according to a fourth embodiment of the present invention.
【図11】同じくその動作を示すタイミングチャート図
である。FIG. 11 is a timing chart showing the same operation.
【図12】同じくその動作を示すタイミングチャート図
である。FIG. 12 is a timing chart diagram showing the same operation.
【図13】従来の半導体集積回路の一例の構成を示すブ
ロック図である。FIG. 13 is a block diagram showing a configuration of an example of a conventional semiconductor integrated circuit.
【図14】同じくその動作を示すタイミングチャート図
である。FIG. 14 is a timing chart diagram showing the same operation.
1,2,3,4,5;半導体集積回路 11,31,51;メモリ 12,13;3ステート入力バッファ 14;双方向バッファ 15,17,24,26;ラッチ 16,25;比較回路 18;フリップフロップ 19;3ステート出力バッファ 20;アドレスバス 21;内部データバス 22;外部データバス 23;片方向バッファ 1, 2, 3, 4, 5; semiconductor integrated circuit 11, 31, 51; memory 12, 13; 3-state input buffer 14; Bidirectional buffer 15, 17, 24, 26; Latch 16, 25; comparison circuit 18; Flip-flop 19; 3-state output buffer 20; Address bus 21; Internal data bus 22; External data bus 23; one-way buffer
Claims (2)
状態と検査動作状態とを切り換える機能を有する半導体
集積回路において、前記半導体集積回路内部に、通常動
作状態のときに前記書き換え可能なメモリのデータが前
記半導体集積回路外部に出力されないように前記書き換
え可能なメモリに対する制御信号及び前記書き換え可能
なメモリに接続されるバスを制御する回路と、検査動作
状態のときに前記半導体集積回路外部から入力される外
部入力データと前記書き換え可能なメモリのデータとを
比較する回路と、この比較する回路の比較結果を前記半
導体集積回路外部に出力する回路とを有することを特徴
とする半導体集積回路。1. A semiconductor integrated circuit having a rewritable memory and having a function of switching between a normal operation state and a test operation state, wherein data of the rewritable memory in the semiconductor integrated circuit is in the normal operation state. So as not to be output to the outside of the semiconductor integrated circuit and a circuit for controlling a control signal for the rewritable memory and a bus connected to the rewritable memory; A semiconductor integrated circuit comprising: a circuit for comparing external input data with data of the rewritable memory; and a circuit for outputting a comparison result of the comparing circuit to the outside of the semiconductor integrated circuit.
状態と検査動作状態とを切り換える機能を有する半導体
集積回路において、前記半導体集積回路内部に、通常動
作状態のときに前記書き換え可能なメモリのデータが前
記半導体集積回路外部に出力されないように前記書き換
え可能なメモリに接続されるバスを制御する回路と、前
記書き換え可能なメモリに接続される制御信号を制御す
る回路と、前記制御信号が通常動作時における所定のタ
イミングと異なるタイミングで与えられた場合に前記書
き換え可能なメモリのデータを消去する回路と、検査動
作状態のときに前記半導体集積回路外部から入力される
外部入力データと前記書き換え可能なメモリの前記デー
タとを比較する回路と、この比較する回路の比較結果を
前記半導体集積回路外部に出力する回路とを有すること
を特徴とする半導体集積回路。2. In a semiconductor integrated circuit having a rewritable memory and having a function of switching between a normal operation state and a test operation state, data of the rewritable memory in the semiconductor integrated circuit in the normal operation state. A circuit for controlling a bus connected to the rewritable memory so that is not output to the outside of the semiconductor integrated circuit; a circuit for controlling a control signal connected to the rewritable memory; A circuit for erasing data in the rewritable memory when given at a timing different from a predetermined timing, and external input data input from the outside of the semiconductor integrated circuit in a test operation state and the rewritable A circuit for comparing the data of the memory and a comparison result of the comparing circuit for the semiconductor integrated circuit A semiconductor integrated circuit having a circuit for outputting to the outside.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP19581091A JP3235124B2 (en) | 1990-10-31 | 1991-07-09 | Semiconductor integrated circuit |
Applications Claiming Priority (3)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2-296463 | 1990-10-31 | ||
| JP29646390 | 1990-10-31 | ||
| JP19581091A JP3235124B2 (en) | 1990-10-31 | 1991-07-09 | Semiconductor integrated circuit |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH052899A true JPH052899A (en) | 1993-01-08 |
| JP3235124B2 JP3235124B2 (en) | 2001-12-04 |
Family
ID=26509365
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP19581091A Expired - Fee Related JP3235124B2 (en) | 1990-10-31 | 1991-07-09 | Semiconductor integrated circuit |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP3235124B2 (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2010158030A (en) * | 1999-05-21 | 2010-07-15 | Internatl Business Mach Corp <Ibm> | Method, computer program, and apparatus for initializing secure communication among and for exclusively pairing device |
-
1991
- 1991-07-09 JP JP19581091A patent/JP3235124B2/en not_active Expired - Fee Related
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2010158030A (en) * | 1999-05-21 | 2010-07-15 | Internatl Business Mach Corp <Ibm> | Method, computer program, and apparatus for initializing secure communication among and for exclusively pairing device |
Also Published As
| Publication number | Publication date |
|---|---|
| JP3235124B2 (en) | 2001-12-04 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US7721174B2 (en) | Full-speed BIST controller for testing embedded synchronous memories | |
| CN100442395C (en) | Integrated circuit with self-test device and related test method | |
| JPS6231439B2 (en) | ||
| CN1315732A (en) | Automatic test method and circuit for RAM | |
| JP3593460B2 (en) | Memory card | |
| JPH09231743A (en) | Synchronous semiconductor memory device and test method | |
| JP2550837B2 (en) | Scan path test control circuit | |
| US7143229B2 (en) | Single-chip microcomputer with dynamic burn-in test function and dynamic burn-in testing method therefor | |
| JPH10105426A (en) | Semiconductor integrated circuit | |
| WO1998014954A1 (en) | Memory tester | |
| JPH052899A (en) | Semiconductor integrated circuit | |
| JP4138291B2 (en) | Nonvolatile semiconductor memory device and control method thereof | |
| JPH07130200A (en) | Test device for semiconductor memory | |
| EP0393626A2 (en) | Microcomputer with a built-in prom | |
| JPH07111837B2 (en) | Non-volatile semiconductor memory | |
| JP2003317490A (en) | Data transfer control circuit for nonvolatile memory, rewriting circuit for nonvolatile memory, and communication control apparatus | |
| JP4121594B2 (en) | Microcomputer with built-in nonvolatile memory | |
| JP3777047B2 (en) | Erasing method of flash memory device | |
| JPH0330040A (en) | Memory circuit with self-diagnostic function | |
| JP4757196B2 (en) | Memory system and test method thereof | |
| JP3060650B2 (en) | Pattern memory device | |
| JP3917736B2 (en) | Integrated circuit | |
| JPH027284A (en) | Integrated circuit | |
| JPH0661837A (en) | Semiconductor integrated circuit device | |
| JPH0619804A (en) | Semiconductor integrated circuit |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20080928 Year of fee payment: 7 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20080928 Year of fee payment: 7 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090928 Year of fee payment: 8 |
|
| LAPS | Cancellation because of no payment of annual fees |