JPH0644241B2 - Single-chip micro computer - Google Patents
Single-chip micro computerInfo
- Publication number
- JPH0644241B2 JPH0644241B2 JP60291134A JP29113485A JPH0644241B2 JP H0644241 B2 JPH0644241 B2 JP H0644241B2 JP 60291134 A JP60291134 A JP 60291134A JP 29113485 A JP29113485 A JP 29113485A JP H0644241 B2 JPH0644241 B2 JP H0644241B2
- Authority
- JP
- Japan
- Prior art keywords
- output
- rom
- address
- decoder
- 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.)
- Expired - Lifetime
Links
- 230000004044 response Effects 0.000 claims description 6
- 238000012360 testing method Methods 0.000 description 9
- 238000010586 diagram Methods 0.000 description 3
- 230000000694 effects Effects 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 238000007796 conventional method Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000000034 method Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01R—MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
- G01R31/00—Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
- G01R31/28—Testing of electronic circuits, e.g. by signal tracer
- G01R31/317—Testing of digital circuits
- G01R31/3181—Functional testing
- G01R31/319—Tester hardware, i.e. output processing circuits
- G01R31/31917—Stimuli generation or application of test patterns to the device under test [DUT]
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Test And Diagnosis Of Digital Computers (AREA)
- Microcomputers (AREA)
Description
【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、一般にユーザーが任意にプログラムできる読
出し専用メモリ(以下ROMと称す)を内蔵したシング
ルチップマイクロコンピュータ(以下マイコンと称す)
のROMを読出すテスト回路に関する。DETAILED DESCRIPTION OF THE INVENTION [Industrial Field of Application] The present invention generally relates to a single-chip microcomputer (hereinafter referred to as a microcomputer) having a built-in read-only memory (hereinafter referred to as ROM) which can be arbitrarily programmed by a user.
The present invention relates to a test circuit for reading the ROM.
一般にROMを内蔵するマイコンは、製造工程及び組立
工程中に発生する不良を検出するために各種テストモー
ドを有し、マイコン内部のすべての機能をテストされ
る。このテストモードのひとつに内蔵するROMをテス
トするROMベリファイモードがある。第3図は、この
モードにおける従来の機能ブロックの一例である。外部
から与えられる信号RDは、ROMを読出す信号になる
と共にプログラムカウンタ10のインクリメント信号とも
なる。LSIテスタ等により外部端子からこの信号RD
を入力するたびに、内蔵ROMのプログラムカウンタ10
は順次インクリメントされる。プログラムカウンタ10の
出力信号はアドレスデコーダ20に入力され、アドレスデ
コーダ20により選択されたROM30の出力データはRO
M出力レジスタ40を通して定められた出力ポートラッチ
50へ出力され、外部端子Pへ出力される。第4図にRO
Mベリファイモードにおけるタイミングチャートを示
す。10はプログラムカウンタの指す内蔵ROMのアドレ
スで、外部から与えられる内蔵ROM読出し信号RDに
よって順次インクリメントされる。40は読出し信号RD
によってROM出力レジスタへラッチされたデータを示
す。TPはLSIテスタに用意されている期待値で、読
出し信号RDによってポートへ読出された内部ROMデ
ータPと、テスタから出力される期待値TPは、判定ス
トローブ信号STの位置で比較される。PTNは、プロ
グラムメモリ読出しテスト時において、LSIテスタが
必要とするパターン数を表わす。Generally, a microcomputer having a built-in ROM has various test modes for detecting defects that occur during the manufacturing process and the assembling process, and all functions inside the microcomputer are tested. One of the test modes is a ROM verify mode for testing the built-in ROM. FIG. 3 is an example of a conventional functional block in this mode. The signal RD given from the outside serves as a signal for reading the ROM and also as an increment signal for the program counter 10. This signal RD from the external terminal by LSI tester etc.
Each time you enter, the program counter 10 in the built-in ROM
Are sequentially incremented. The output signal of the program counter 10 is input to the address decoder 20, and the output data of the ROM 30 selected by the address decoder 20 is RO.
Output port latch defined through M output register 40
It is output to 50 and is output to the external terminal P. RO in Figure 4
9 shows a timing chart in the M-verify mode. Reference numeral 10 is an address of the built-in ROM pointed to by the program counter, which is sequentially incremented by a built-in ROM read signal RD given from the outside. 40 is a read signal RD
Shows the data latched by the ROM output register. TP is an expected value prepared in the LSI tester, and the internal ROM data P read to the port by the read signal RD and the expected value TP output from the tester are compared at the position of the determination strobe signal ST. PTN represents the number of patterns required by the LSI tester during the program memory read test.
上述した従来の方法では、LSIテスタにより与えられ
たROM読出し信号に同期して出力ポートから出力され
るROM出力データと比較するためのLSIテスタの期
待出力パターンは1アドレス毎に用意する必要があり、
ROMの容量増加に伴ってLSIテスタのパターンメモ
リの容量とテスト時間が増加してしまうという欠点があ
った。In the conventional method described above, it is necessary to prepare an expected output pattern of the LSI tester for each address in order to compare with the ROM output data output from the output port in synchronization with the ROM read signal given by the LSI tester. ,
There is a drawback that the capacity of the pattern memory of the LSI tester and the test time increase as the capacity of the ROM increases.
本発明によるマイクロコンピュータは、プログラムメモ
リと、プログラムカウンタと、このプログラムカウンタ
の内容をデコードして前記プログラムメモリの所定アド
レスを指定するデコーダと、このデコーダにより指定さ
れた前記プログラムメモリのアドレスにストアされてい
る情報をバスに出力する手段と、複数の出力ポートであ
って夫々対応する読込み信号に応答して前記バス上の情
報を取り込み出力する複数の出力ポートとを備えてお
り、さらにベリファイ指定信号に応答して前記プログラ
ムカウンタの内容を順次更新させる手段と、前記デコー
ダのデコード出力の一部に応答して前記複数の出力ポー
トへの読込み信号を順次発生する手段とを備えており、
これによってプログラムベリファイ時に前記プログラム
メモリから出力された情報を前記複数の出力ポートに順
次取り込ませ出力させている。A microcomputer according to the present invention stores a program memory, a program counter, a decoder for decoding the contents of the program counter to specify a predetermined address of the program memory, and an address of the program memory specified by the decoder. Means for outputting information on the bus, and a plurality of output ports for receiving and outputting the information on the bus in response to the corresponding read signals, and the verify designation signal. In response to, sequentially updating the contents of the program counter, and in response to a part of the decode output of the decoder, sequentially generates a read signal to the plurality of output ports,
As a result, the information output from the program memory at the time of program verification is sequentially captured and output to the plurality of output ports.
次に、第1図と第2図を用い本発明について説明する。 Next, the present invention will be described with reference to FIGS. 1 and 2.
第1図は本発明による実施例を示したブロック図であ
り、プログラムカウンタ10、Xデコーダ21、Yセレクタ
22、Zセレクタ23、内蔵ROM30、MOSFET群61,62、MO
SFET63,64、ROM出力レジスタ40、データバス80、端
子PA0〜PA7から成る出力ポートAのラッチ51、端子P
B0〜PB7から成る出力ポートBのラッチ52、アンドゲー
ト回路71,72から構成される。ブロック101〜107の構成
は、ブロック100の構成と同様である。まずLSIテス
タによりマイコンの外部端子に電源及び入力信号を与
え、マイコンを内部ROMベリファイモードにすると、
内蔵ROMベリファイモード信号Mがセットされ、さら
にプログラムカウンタ10がリセットされて内蔵ROM30
のアドレス0番地を指す。以後、外部より入力されるR
OM読出し信号RDによりプログラムカウンタの値はイ
ンクリメントされ、内蔵ROM30のアドレスは順次増加
していく。いま内蔵ROM30の容量が8kビットとする
と、ROMアドレスとして13ビット(A12〜A0)必要
である。このうち上位8ビット(A12〜A5)はXデコ
ーダ21によってデコードされ、256本のワード線のうち
1本がセレクトされる。そしてROM30の出力線(ビッ
ト線)32本のうちの1本が、アドレスの下位5ビット
(A4〜A0)を入力としたYセレクタ22,Zセレクタ23
のデコード信号によりセレクトされる。このようにして
13ビットのアドレスによってアクセスされたROM出力
は、ROM出力レジスタ40へ格納される。ブロック101
〜107も同様の動作を行ない、読出し信号RDによって
データバス80上には8ビットのデータが出力される。こ
こまでは従来のマイコンにおけるROMベリファイモー
ド時の動作と同じであるが、本発明による出力ポートを
選択する機能を有するマイコンにおいて、ROM出力レ
ジスタ40へ格納されたROM出力データが、Zセレクタ
23の出力信号、すなわちROMアドレスの最下位ビットA0
のデコード出力Z1,Z0により、出力ポートAのラッチ
51か出力ポートBのラッチ52へ転送される。第2図は、
第1図におけるROMベリファイモード時のタイミング
チャートで、ブロック100について示したものである。
内蔵ROMベリファイモード信号Mがセットされ、プロ
グラムカウンタ10がリセットされて0番地を指すと、R
OM読出し信号RDによってROM出力レジスタ40へ読
み出された0番地のROMデータ出力は、Zセレクタ23
の出力Z1がアクティブであるため、ポートAのラッチ
の読込み信号RAによって出力ポートAラッチ51へ転送
され、出力端子PA0に出力される。次にROM読出し信
号RDによりROMアドレスが1番地となりZセレクタ
の出力Z0がアクティブになると、読出された1番地の
ROMデータは、ポートBのラッチの読込み信号RBに
より出力ポートBのラッチ52へ転送され、出力端子PB0
に出力される。これらの動作が他のブロック(101〜10
7)についても同様に行なわれ、偶数アドレスのROM
データ(8ビット)はポートAのPA7〜PA0端子へ、奇
数アドレスのROMデータ(8ビット)はポートBのP
B7〜PB0端子へ振り分け出力される。このときLSIテ
スタが図中の判定ストローブSTの位置で各出力ポート
へ振り分けられたROM出力データPA0,PB0(第2図
には最下位の1ビットのデータを示した)と、テスタの
メモリ中の判定期待値(ポートAの期待値TPA及びポ
ートBの期待値TPB)とを比較すれば、従来2パター
ンを必要としていたテストパターンを1パターンで実現
でき、テスタに必要とされるメモリのアドレスが半分で
すむことになる。FIG. 1 is a block diagram showing an embodiment according to the present invention, which includes a program counter 10, an X decoder 21 and a Y selector.
22, Z selector 23, built-in ROM 30, MOSFET groups 61, 62, MO
SFET 63, 64, ROM output register 40, data bus 80, output port A latch 51 consisting of terminals P A0 to P A7 , terminal P
It is composed of an output port B latch 52 composed of B0 to P B7 and AND gate circuits 71 and 72. The configurations of blocks 101 to 107 are similar to the configuration of block 100. First, by supplying power and input signal to the external terminal of the microcomputer by the LSI tester and setting the microcomputer to the internal ROM verify mode,
The built-in ROM verify mode signal M is set, the program counter 10 is reset, and the built-in ROM 30
Indicates the address 0 of. After that, R input from the outside
The value of the program counter is incremented by the OM read signal RD, and the address of the built-in ROM 30 is sequentially increased. Assuming that the capacity of the built-in ROM 30 is 8 k bits, 13 bits (A 12 to A 0 ) are required as a ROM address. Of these, the upper 8 bits (A 12 to A 5 ) are decoded by the X decoder 21 and one of the 256 word lines is selected. One of the 32 output lines (bit lines) of the ROM 30 receives the lower 5 bits (A 4 to A 0 ) of the address as an input, the Y selector 22 and the Z selector 23.
Is selected by the decode signal of. In this way
The ROM output accessed by the 13-bit address is stored in the ROM output register 40. Block 101
.About.107 also perform the same operation, and 8-bit data is output onto the data bus 80 by the read signal RD. The operation up to this point is the same as the operation in the ROM verify mode in the conventional microcomputer, but in the microcomputer having the function of selecting the output port according to the present invention, the ROM output data stored in the ROM output register 40 is the Z selector.
23 output signals, that is, the least significant bit A 0 of the ROM address
Latch of output port A by decode outputs Z 1 and Z 0 of
51 or the latch 52 of the output port B. Figure 2 shows
The timing chart in the ROM verify mode in FIG. 1 shows the block 100.
When the built-in ROM verify mode signal M is set and the program counter 10 is reset to point to address 0, R
The ROM data output at address 0 read to the ROM output register 40 by the OM read signal RD is the Z selector 23.
Since the output Z 1 thereof is active, it is transferred to the output port A latch 51 by the read signal RA of the port A latch and output to the output terminal P A0 . Next, when the output Z 0 of the Z selector will ROM address 1 address a ROM read signal RD is activated, ROM data of one address which is read is output port B by reading signals R B of the port latch B latch 52 To the output terminal P B0
Is output to. These operations are performed by other blocks (101-10
The same is done for 7), and the ROM with even addresses
Data (8 bits) goes to the P A7 to P A0 terminals of port A, and ROM data (8 bits) at odd addresses goes to the port B P
It is distributed and output to the B7 to P B0 terminals. At this time, the LSI tester outputs the ROM output data P A0 and P B0 (the least significant 1-bit data is shown in FIG. 2) distributed to each output port at the position of the determination strobe ST in the figure, and By comparing the judgment expected values (expected value TP A of port A and expected value TP B of port B) in the memory, it is possible to realize a test pattern that used to require two patterns with one pattern, which is necessary for a tester. It only takes half the memory address.
本例では、アドレスの最下位1ビットのデコード信号を
用い2つの出力ポートへROM出力を振り分けたが、ア
ドレスの任意の複数ビットをデコードし、その信号を利
用することにより、マイコンに内蔵する出力ポートの数
だけROM出力を振り分けることができることは明白で
ある。In this example, the ROM output is distributed to the two output ports by using the decode signal of the least significant 1 bit of the address, but by decoding the arbitrary multiple bits of the address and using that signal, the output built into the microcomputer is output. It is obvious that the ROM output can be distributed according to the number of ports.
以上述べたように本発明によれば、マイコンに内蔵され
るROMのベリファイチェックに使用されるLSIテス
タのテストパターンの数を大幅に削減することができ、
テスタの使用効率を向上させ、テスト時間を減少できる
効果がある。As described above, according to the present invention, it is possible to significantly reduce the number of test patterns of the LSI tester used for the verify check of the ROM incorporated in the microcomputer.
It has the effect of improving the tester usage efficiency and reducing the test time.
第1図は本発明によるマイコンに内蔵するROM読出し
回路の一例を示すブロック図、第2図は第1図の機能ブ
ロックを説明するためのタイミングチャート、第3図は
従来のマイコンに内蔵するROM読出し回路の機能ブロ
ック図、第4図は第3図を説明するためのタイミングチ
ャートである。 (符号の説明) 10……プログラムカウンタ、20……ROMアドレスデコ
ーダ、21……Xデコーダ、22……Yセレクタ、23……Z
セレクタ、30……ROM、40……ROM出力レジスタ、
50……出力ポートラッチ、51……出力ポートAのラッ
チ、52……出力ポートBのラッチ、61,62……MOSF
ET群、63,64……MOSFET、71,72……アンドゲ
ート回路、80……データバス、RD……ROM読出し信
号、M……内蔵ROMベリファイモード信号。FIG. 1 is a block diagram showing an example of a ROM read circuit incorporated in a microcomputer according to the present invention, FIG. 2 is a timing chart for explaining the functional blocks of FIG. 1, and FIG. 3 is a ROM incorporated in a conventional microcomputer. A functional block diagram of the read circuit, and FIG. 4 is a timing chart for explaining FIG. (Explanation of symbols) 10 ... Program counter, 20 ... ROM address decoder, 21 ... X decoder, 22 ... Y selector, 23 ... Z
Selector, 30 …… ROM, 40 …… ROM output register,
50 ... Output port latch, 51 ... Output port A latch, 52 ... Output port B latch, 61, 62 ... MOSF
ET group, 63, 64 ... MOSFET, 71, 72 ... AND gate circuit, 80 ... Data bus, RD ... ROM read signal, M ... Built-in ROM verify mode signal.
───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 昭57−60447(JP,A) 特開 昭58−35661(JP,A) 特開 昭60−211561(JP,A) 特開 昭60−189047(JP,A) 特開 昭58−220298(JP,A) 特開 昭54−98546(JP,A) 特開 昭62−145438(JP,A) ─────────────────────────────────────────────────── ─── Continuation of the front page (56) Reference JP-A-57-60447 (JP, A) JP-A-58-35661 (JP, A) JP-A-60-211561 (JP, A) JP-A-60- 189047 (JP, A) JP 58-220298 (JP, A) JP 54-98546 (JP, A) JP 62-145438 (JP, A)
Claims (1)
と、このプログラムカウンタの内容をデコードして前記
プログラムメモリの所定アドレスを指定するデコーダ
と、このデコーダにより指定された前記プログラムメモ
リのアドレスにストアされている情報をバスに出力する
手段と、複数の出力ポートであって夫々対応する読込み
信号に応答して前記バス上の情報を取り込み出力する複
数の出力ポートとを備えるシングルチップマイクロコン
ピュータにおいて、ベリファイ指定信号に応答して前記
プログラムカウンタの内容を順次更新させる手段と、前
記デコーダのデコード出力の一部に応答して前記複数の
出力ポートへの読込み信号を順次発生する手段とを設
け、プログラムベリファイ時に前記プログラムメモリか
ら出力された情報を前記複数の出力ポートに順次取り込
ませ出力させることを特徴とするシングルチップマイク
ロコンピュータ。1. A program memory, a program counter, a decoder which decodes the contents of the program counter to specify a predetermined address of the program memory, and a decoder which is stored at an address of the program memory specified by the decoder. In a single-chip microcomputer provided with means for outputting information to a bus and a plurality of output ports for receiving and outputting information on the bus in response to respective corresponding read signals, a verify designation signal Means for sequentially updating the contents of the program counter in response to, and means for sequentially generating read signals to the plurality of output ports in response to a part of the decode output of the decoder. The information output from the program memory is Single-chip microcomputer for causing sequentially read to output a plurality of output ports.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP60291134A JPH0644241B2 (en) | 1985-12-23 | 1985-12-23 | Single-chip micro computer |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP60291134A JPH0644241B2 (en) | 1985-12-23 | 1985-12-23 | Single-chip micro computer |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS62150441A JPS62150441A (en) | 1987-07-04 |
| JPH0644241B2 true JPH0644241B2 (en) | 1994-06-08 |
Family
ID=17764888
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP60291134A Expired - Lifetime JPH0644241B2 (en) | 1985-12-23 | 1985-12-23 | Single-chip micro computer |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0644241B2 (en) |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS5760447A (en) * | 1980-09-30 | 1982-04-12 | Nec Corp | Integrated circuit |
-
1985
- 1985-12-23 JP JP60291134A patent/JPH0644241B2/en not_active Expired - Lifetime
Also Published As
| Publication number | Publication date |
|---|---|
| JPS62150441A (en) | 1987-07-04 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO1998014954A1 (en) | Memory tester | |
| KR100564033B1 (en) | Semiconductor memory and semiconductor memory test method with single buffer select input terminal | |
| JPH0644241B2 (en) | Single-chip micro computer | |
| JPH0474388A (en) | Decoder check circuit of semiconductor memory | |
| EP1160668A2 (en) | Semiconductor integrated circuit and method of testing semiconductor integrated circuit | |
| JPH0812226B2 (en) | Semiconductor device | |
| JPH0512900A (en) | Semiconductor storage containing test function and its test method | |
| JP3177975B2 (en) | One-chip microcomputer | |
| JP2901828B2 (en) | Semiconductor integrated circuit | |
| JPS63108747A (en) | Gate array integrated circuit | |
| JPH02253453A (en) | Memory test circuit | |
| JP3099774B2 (en) | Semiconductor integrated circuit | |
| JPH08203299A (en) | Content addressable memory | |
| JPH07312081A (en) | Random access memory circuit | |
| JPH0235700A (en) | Memory circuit | |
| JPH0599989A (en) | Test circuit for ram with gate array | |
| JPS6116099B2 (en) | ||
| JPH03269900A (en) | Semiconductor integrated circuit | |
| JPH09305444A (en) | Coverage memory | |
| JPH04147500A (en) | Test circuit for semiconductor integrated circuit | |
| JP2000181900A (en) | Single chip microcomputer | |
| JPH07220499A (en) | Pattern generator | |
| JPH02188854A (en) | Lsi circuit | |
| JP2003058494A (en) | Semiconductor integrated circuit | |
| JPH11120022A (en) | Test device for printed board |