JP2006172623A - Semiconductor device - Google Patents

Semiconductor device Download PDF

Info

Publication number
JP2006172623A
JP2006172623A JP2004364496A JP2004364496A JP2006172623A JP 2006172623 A JP2006172623 A JP 2006172623A JP 2004364496 A JP2004364496 A JP 2004364496A JP 2004364496 A JP2004364496 A JP 2004364496A JP 2006172623 A JP2006172623 A JP 2006172623A
Authority
JP
Japan
Prior art keywords
terminal
terminals
external terminal
semiconductor device
sram
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
JP2004364496A
Other languages
Japanese (ja)
Inventor
Seiji Nakamura
清治 中村
Hiroshi Hoshika
浩志 星加
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 JP2004364496A priority Critical patent/JP2006172623A/en
Publication of JP2006172623A publication Critical patent/JP2006172623A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide a semiconductor device in which the test of a built-in RAM can be carried out with reduced number of external terminals, a defective point can be simply specified, and connection of an input/output terminal of the outside terminal and a memory part can be switched on the basis of package information. <P>SOLUTION: When the input/output of the RAM is connected to the external terminal of a semiconductor device, flip-flops constituting first and second latch circuits 110, 111 are provided between the external terminal and the address terminal 115 and a data input terminal 116 of an SRAM 101. Since an address/data external terminal 107 can be shared by the address terminal 115 and the data input terminal 116 by latching data by the first and second latch circuits 110, 111 so that test vector can be inputted simultaneously to the SRAM 101, inspection of the RAM can be carried out even when the number of external terminals are reduced. <P>COPYRIGHT: (C)2006,JPO&NCIPI

Description

本発明は半導体装置に関し、特にシステムLSIに組み込まれたRAMのテスト回路を有する半導体装置に関する。   The present invention relates to a semiconductor device, and more particularly to a semiconductor device having a RAM test circuit incorporated in a system LSI.

近年の半導体集積回路は、超微細加工技術の進歩により、その面積を低減させることに成功している。そういった中で半導体集積回路に求められる要求は非常に高まり、回路内に組み込まれるトランジスタ数は格段に増大している。そのため、半導体集積回路の検査を実施することは非常に困難になってきている。特に半導体集積回路にはほぼ必要不可欠となったランダムアクセスメモリ(以後、RAMと示す)の検査を容易に実施できる検査容易化設計は必須となってきている。   In recent years, semiconductor integrated circuits have succeeded in reducing the area due to advances in ultrafine processing technology. Under such circumstances, demands for semiconductor integrated circuits have been greatly increased, and the number of transistors incorporated in the circuit has been remarkably increased. For this reason, it has become very difficult to inspect a semiconductor integrated circuit. In particular, an easy-to-inspect design that can easily inspect a random access memory (hereinafter referred to as RAM) that has become almost indispensable for a semiconductor integrated circuit has become essential.

図20は、一般的なSRAMのテスト回路を内蔵した半導体装置の構成を示すものである。
図20において、2000は半導体装置である。半導体装置2000は、SRAM2001、テスト回路2002、モード記憶部2003、CLK外部端子2004、WEN外部端子2005、REN外部端子2006、ADR外部端子2007、DIN外部端子2008、DOUT外部端子2009を有する。
FIG. 20 shows a configuration of a semiconductor device incorporating a general SRAM test circuit.
In FIG. 20, reference numeral 2000 denotes a semiconductor device. The semiconductor device 2000 includes an SRAM 2001, a test circuit 2002, a mode storage unit 2003, a CLK external terminal 2004, a WEN external terminal 2005, a REN external terminal 2006, an ADR external terminal 2007, a DIN external terminal 2008, and a DOUT external terminal 2009.

半導体装置2000は、CLK外部端子2004、WEN外部端子2005、REN外部端子2006、ADR外部端子2007、DIN外部端子2008、DOUT外部端子2009を経由して外部のデバイスと信号の伝送をすることができる。CLK外部端子2004は、RAMテストモード時にSRAM2001へのクロックを入力する端子である。WEN外部端子2005は、RAMテストモード時にSRAM2001への書き込み許可(ライトイネーブル)信号を入力する端子である。REN外部端子2006は、RAMテストモード時にSRAM2001への読み出し許可(リードイネーブル)信号を入力する端子である。ADR外部端子2007は、RAMテストモード時にSRAM2001へのアドレス信号を入力するための端子である。DIN外部端子2008は、RAMテストモード時にSRAM2001へのデータ信号を入力するための端子である。DOUT外部端子2009は、RAMテストモード時にSRAM2001からのデータを外部に出力する端子である。   The semiconductor device 2000 can transmit signals with an external device via the CLK external terminal 2004, the WEN external terminal 2005, the REN external terminal 2006, the ADR external terminal 2007, the DIN external terminal 2008, and the DOUT external terminal 2009. . The CLK external terminal 2004 is a terminal for inputting a clock to the SRAM 2001 in the RAM test mode. A WEN external terminal 2005 is a terminal for inputting a write enable signal to the SRAM 2001 in the RAM test mode. The REN external terminal 2006 is a terminal for inputting a read permission (read enable) signal to the SRAM 2001 in the RAM test mode. The ADR external terminal 2007 is a terminal for inputting an address signal to the SRAM 2001 in the RAM test mode. The DIN external terminal 2008 is a terminal for inputting a data signal to the SRAM 2001 in the RAM test mode. The DOUT external terminal 2009 is a terminal for outputting data from the SRAM 2001 to the outside in the RAM test mode.

SRAM2001は、CLK端子2011、WEN端子2012、REN端子2013、ADR端子2014、DIN端子2015、DOUT端子2016を有し、これを経由して半導体装置2000内の他の回路と信号の伝送をすることができる。CLK端子2011は、SRAM2001の動作クロックを入力する端子である。WEN端子2012は、書き込み許可(ライトイネーブル)信号を入力するための端子である。REN端子2013は、読み出し許可(リードイネーブル)信号を入力するための端子である。ADR端子2014は、SRAM2001のアドレス信号を入力する端子である。DIN端子2015は、SRAM2001の書き込みデータを入力する端子である。DOUT端子2016は、SRAM2001に書き込まれているデータを出力する端子である。   The SRAM 2001 includes a CLK terminal 2011, a WEN terminal 2012, a REN terminal 2013, an ADR terminal 2014, a DIN terminal 2015, and a DOUT terminal 2016, and transmits signals to and from other circuits in the semiconductor device 2000 via these terminals. Can do. A CLK terminal 2011 is a terminal for inputting an operation clock of the SRAM 2001. The WEN terminal 2012 is a terminal for inputting a write permission (write enable) signal. The REN terminal 2013 is a terminal for inputting a read permission (read enable) signal. The ADR terminal 2014 is a terminal for inputting an address signal of the SRAM 2001. The DIN terminal 2015 is a terminal for inputting write data of the SRAM 2001. The DOUT terminal 2016 is a terminal for outputting data written in the SRAM 2001.

モード記憶部2003は、半導体装置2000の動作モードを記憶し、また周辺回路にその情報を伝達し、ノーマルモード、テストモードの切り替えを可能にする。   The mode storage unit 2003 stores the operation mode of the semiconductor device 2000 and transmits the information to the peripheral circuit, thereby enabling switching between the normal mode and the test mode.

テスト回路2002は、前記モード記憶部2003によって動作モードを変化させる。前記モード記憶部2003によってRAMテストモードに移行した後、制御回路2010の制御信号により、CLK外部端子2004はCLK端子2011と接続し、WEN外部端子2005はWEN端子2012と接続し、REN外部端子2006はREN端子2013と接続し、ADR外部端子2007はADR端子2014と接続する。DIN外部端子2008はDIN端子2015と接続する。   The test circuit 2002 changes the operation mode by the mode storage unit 2003. After shifting to the RAM test mode by the mode storage unit 2003, the CLK external terminal 2004 is connected to the CLK terminal 2011, the WEN external terminal 2005 is connected to the WEN terminal 2012, and the REN external terminal 2006 by a control signal of the control circuit 2010. Is connected to the REN terminal 2013 and the ADR external terminal 2007 is connected to the ADR terminal 2014. The DIN external terminal 2008 is connected to the DIN terminal 2015.

これによって、検査時にはSRAM2001に対して直接テストベクタを入力し、SRAMの検査を行うことができる。また、複数のSRAMが存在した場合でも、制御回路によって、複数のSRAMのうち検査を行なうSRAMを選択することができる。   Thereby, at the time of inspection, the test vector can be directly input to the SRAM 2001 to inspect the SRAM. Even when there are a plurality of SRAMs, the control circuit can select the SRAM to be inspected from among the plurality of SRAMs.

しかし、従来の半導体装置では、メモリの検査の際、SRAMの入力端子数、出力端子数と同じ数の外部端子が必要となり、外部端子数が少ない半導体装置ではSRAMの検査が困難になっている。また、従来の半導体装置では、外部端子数が十分であっても、パッケージのピン数が少なく、パッケージのピンと接続される外部端子数が限定される場合、SRAMの検査が困難になっている。   However, the conventional semiconductor device requires the same number of external terminals as the number of input terminals and output terminals of the SRAM when inspecting the memory, and it is difficult to inspect the SRAM with a semiconductor device having a small number of external terminals. . Further, in the conventional semiconductor device, even if the number of external terminals is sufficient, the inspection of the SRAM becomes difficult when the number of pins of the package is small and the number of external terminals connected to the pins of the package is limited.

このような理由から、SRAMの出力端子と外部端子の間に良否判定を実施できる回路を組込み、その結果を良品ならばLow出力、不良品ならばHigh出力というように、1ビットで判定できる技術もある。この技術により、検査に使用する外部端子数を低減させることができることが報告されている(特許文献1参照)。
特開平5−20898号公報
For this reason, a technology that incorporates a circuit that can perform pass / fail judgment between the output terminal and the external terminal of the SRAM, and the result can be judged by 1 bit, such as low output for a non-defective product and high output for a non-defective product. There is also. It has been reported that this technique can reduce the number of external terminals used for inspection (see Patent Document 1).
JP-A-5-20898

しかしながら、従来の半導体装置では、半導体装置に組み込まれるRAMの容量アップに伴い、RAM入出力端子数が増大していることから、必要とする外部端子数はさらに増加傾向にあるという問題があった。   However, in the conventional semiconductor device, since the number of RAM input / output terminals has increased as the capacity of the RAM incorporated in the semiconductor device has increased, there has been a problem that the number of required external terminals tends to increase further. .

また、RAM入出力端子数と同数の外部端子数を有する場合であっても、例えば、デバック用の端子のように、パッケージングの際にパッケージのピンと接続されない外部端子もあるため、効率的にRAMテストを実施できないという問題があった。   Even when the number of external input / output terminals is the same as the number of RAM input / output terminals, for example, there are external terminals that are not connected to package pins during packaging, such as debugging terminals. There was a problem that the RAM test could not be performed.

本発明は、上記のような従来の問題点を解決するためになされたもので、少ない外部端子数で組込みRAMのテストが可能でかつ不良箇所の特定を簡単に行なうことができ、また、パッケージ情報に基づき外部端子とメモリ部の入出力端子の接続を切り替えることができる半導体装置を提供することを目的とする。   The present invention has been made in order to solve the above-described conventional problems. The built-in RAM can be tested with a small number of external terminals, and a defective portion can be easily identified. An object of the present invention is to provide a semiconductor device capable of switching connection between an external terminal and an input / output terminal of a memory portion based on information.

上記課題を解決するため、本発明は以下の構成を有する。本発明の請求項1による半導体装置は、電気的に書き換え可能な揮発性のメモリ部と、前記メモリ部の動作をテストするメモリテストモードを含む複数の動作モードを記憶する動作モード記憶部と、前記メモリ部をテストするテスト回路と、外部との信号の伝送を行なう複数の外部端子と、を備え、前記外部端子は、メモリテストモード時に前記メモリ部のライトイネーブル端子と接続されるWEN外部端子と、メモリテストモード時に前記メモリ部のアドレス信号およびデータ信号を入力するADR/DIN外部端子を有し、前記テスト回路は、メモリテストモード時に前記ADR/DIN外部端子から入力したアドレス信号およびデータ信号を一時記憶するラッチ回路を有することを特徴とするものである。   In order to solve the above problems, the present invention has the following configuration. A semiconductor device according to claim 1 of the present invention includes an electrically rewritable volatile memory unit, an operation mode storage unit that stores a plurality of operation modes including a memory test mode for testing the operation of the memory unit, A test circuit for testing the memory unit; and a plurality of external terminals for transmitting signals to the outside, wherein the external terminal is a WEN external terminal connected to a write enable terminal of the memory unit in a memory test mode And an ADR / DIN external terminal for inputting an address signal and a data signal of the memory unit in the memory test mode, and the test circuit receives an address signal and a data signal input from the ADR / DIN external terminal in the memory test mode. It has a latch circuit which memorizes temporarily.

本発明の請求項2による半導体装置は、請求項1記載の半導体装置において、前記ラッチ回路は、シフトレジスタで構成されていることを特徴とするものである。   A semiconductor device according to a second aspect of the present invention is the semiconductor device according to the first aspect, wherein the latch circuit is constituted by a shift register.

本発明の請求項3による半導体装置は、電気的に書き換え可能な揮発性のメモリ部と、前記メモリ部の動作をテストするメモリテストモードを含む複数の動作モードを記憶する動作モード記憶部と、外部との信号の伝送を行なう、第一の外部端子、及び第二の外部端子と、前記メモリ部をテストするテスト回路と、を備え、メモリテストモードが選択されている時は、前記メモリ部のデータ入力端子のすべての偶数番目の端子と前記第一の外部端子とを接続し、かつ、前記メモリ部のデータ入力端子のすべての奇数番目の端子と前記第二の外部端子とを接続することを特徴とするものである。   According to a third aspect of the present invention, there is provided a semiconductor device comprising: an electrically rewritable volatile memory portion; an operation mode storage portion for storing a plurality of operation modes including a memory test mode for testing the operation of the memory portion; A first external terminal and a second external terminal for transmitting signals to and from the outside, and a test circuit for testing the memory unit, and when the memory test mode is selected, the memory unit Connecting all even-numbered terminals of the data input terminals and the first external terminals, and connecting all odd-numbered terminals of the data input terminals of the memory unit and the second external terminals. It is characterized by this.

本発明の請求項4による半導体装置は、請求項3記載の半導体装置において、外部との信号の伝送を行なう、第三の外部端子、及び第四の外部端子をさらに備え、前記テスト回路は、前記メモリ部のデータ出力端子の偶数番目の端子からのデータ出力の論理積と論理和を選択し出力する第一のデータ出力回路と、前記メモリ部のデータ出力端子の奇数番目の端子からのデータ出力の論理積と論理和を選択し出力する第二のデータ出力回路を更に有し、前記メモリテストモードが選択されている時は、前記第一のデータ出力回路の出力を前記第三の外部端子から外部に出力し、かつ前記第二のデータ出力回路の出力を前記第四の外部端子から外部に出力することを特徴とするものである。   A semiconductor device according to a fourth aspect of the present invention is the semiconductor device according to the third aspect, further comprising a third external terminal and a fourth external terminal for transmitting a signal to the outside, wherein the test circuit comprises: A first data output circuit that selects and outputs a logical product and a logical sum of data outputs from even-numbered terminals of the data output terminals of the memory unit; and data from odd-numbered terminals of the data output terminals of the memory unit. A second data output circuit for selecting and outputting a logical product and a logical sum of the outputs; and when the memory test mode is selected, the output of the first data output circuit is transmitted to the third external output The output from the terminal is output to the outside, and the output of the second data output circuit is output from the fourth external terminal to the outside.

本発明の請求項5による半導体装置は、請求項4記載の半導体装置において、1つ以上の前記メモリ部を備え、メモリテストモードが選択されている時は、メモリ部のデータ入力端子のすべての偶数番目の端子と前記第一の外部端子とを接続し、メモリ部のデータ入力端子のすべての奇数番目の端子と前記第二の外部端子とを接続し、メモリ部のデータ出力端子のすべての偶数番目の端子と前記第一のデータ出力回路とを接続し、及びメモリ部のデータ出力端子のすべての奇数番目の端子と前記第二のデータ出力回路とを接続することを特徴とするものである。   A semiconductor device according to a fifth aspect of the present invention is the semiconductor device according to the fourth aspect, comprising one or more of the memory units, and when the memory test mode is selected, all of the data input terminals of the memory unit are selected. Connect even-numbered terminals and the first external terminal, connect all odd-numbered terminals of the data input terminal of the memory unit and the second external terminal, and connect all of the data output terminals of the memory unit An even-numbered terminal is connected to the first data output circuit, and all odd-numbered terminals of the data output terminals of the memory unit are connected to the second data output circuit. is there.

本発明の請求項6による半導体装置は、請求項5記載の半導体装置において、前記メモリ部に対してカラム数が異なる第二のメモリ部を備え、前記テスト回路は、前記第二のメモリ部のアドレス入力をカラム数に基づき変換するアドレス変換回路をさらに有することを特徴とするものである。   A semiconductor device according to a sixth aspect of the present invention is the semiconductor device according to the fifth aspect, further comprising a second memory unit having a different number of columns from the memory unit, wherein the test circuit includes the second memory unit. It further has an address conversion circuit for converting an address input based on the number of columns.

本発明の請求項7による半導体装置は、請求項1〜6のいずれかに記載の半導体装置において、パッケージ情報を入力するパッケージ選択外部端子をさらに備え、パッケージのピンと接続する外部端子数が前記メモリ部の入出力端子数よりも大きい場合で、かつメモリテストモード時に、前記メモリ部のすべての入出力端子を所定の複数の外部端子に直接接続するよう切り替わることを特徴とするものである。   A semiconductor device according to a seventh aspect of the present invention is the semiconductor device according to any one of the first to sixth aspects, further comprising a package selection external terminal for inputting package information, wherein the number of external terminals connected to package pins is the memory. When the number of input / output terminals is larger than the number of input / output terminals, and in the memory test mode, all the input / output terminals of the memory section are switched to be directly connected to a plurality of predetermined external terminals.

本発明の請求項1による半導体装置によれば、電気的に書き換え可能な揮発性のメモリ部と、前記メモリ部の動作をテストするメモリテストモードを含む複数の動作モードを記憶する動作モード記憶部と、前記メモリ部をテストするテスト回路と、外部との信号の伝送を行なう複数の外部端子と、を備え、前記外部端子は、メモリテストモード時に前記メモリ部のライトイネーブル端子と接続されるWEN外部端子と、メモリテストモード時に前記メモリ部のアドレス信号およびデータ信号を入力するADR/DIN外部端子を有し、前記テスト回路は、メモリテストモード時に前記ADR/DIN外部端子から入力したアドレス信号およびデータ信号を一時記憶するラッチ回路を有するようにしたので、メモリテストモード時においてメモリ装置のアドレス入力およびデータ入力に必要な外部端子の本数を簡単に減らすことができるという効果が得られる。   According to the semiconductor device of the first aspect of the present invention, the operation mode storage unit stores a plurality of operation modes including an electrically rewritable volatile memory unit and a memory test mode for testing the operation of the memory unit. And a test circuit for testing the memory unit and a plurality of external terminals for transmitting signals to the outside, and the external terminal is connected to the write enable terminal of the memory unit in the memory test mode An external terminal and an ADR / DIN external terminal for inputting an address signal and a data signal of the memory unit in the memory test mode, and the test circuit includes an address signal input from the ADR / DIN external terminal in the memory test mode, and Since it has a latch circuit that temporarily stores data signals, it is Effect that it is possible to reduce the number of external terminals required for the address input and data input device easy to obtain.

本発明の請求項2による半導体装置によれば、請求項1記載の半導体装置において、前記ラッチ回路は、シフトレジスタで構成されるようにしたので、メモリテストモード時においてメモリ部のアドレス入力およびデータ入力に必要な外部端子の本数を簡単に減らし、かつその際にラッチ回路に入力するクロック生成を簡単にできる効果が得られる。   According to a second aspect of the semiconductor device of the present invention, in the semiconductor device according to the first aspect, the latch circuit is constituted by a shift register. An effect is obtained in which the number of external terminals required for input can be easily reduced, and generation of a clock input to the latch circuit at that time can be simplified.

本発明の請求項3による半導体装置によれば、電気的に書き換え可能な揮発性のメモリ部と、前記メモリ部の動作をテストするメモリテストモードを含む複数の動作モードを記憶する動作モード記憶部と、外部との信号の伝送を行なう、第一の外部端子、及び第二の外部端子と、前記メモリ部をテストするテスト回路と、を備え、メモリテストモードが選択されている時は、前記メモリ部のデータ入力端子のすべての偶数番目の端子と前記第一の外部端子とを接続し、かつ、前記メモリ部のデータ入力端子のすべての奇数番目の端子と前記第二の外部端子とを接続するようにしたので、メモリテストモード時においてメモリ部に対して”00”、”FF”、”55”、”AA”(8ビット時)のデータを2本の外部端子で入力することができる効果が得られる。   According to a semiconductor device of a third aspect of the present invention, an operation mode storage unit for storing a plurality of operation modes including an electrically rewritable volatile memory unit and a memory test mode for testing the operation of the memory unit. And a first external terminal for transmitting a signal to the outside, a second external terminal, and a test circuit for testing the memory unit, and when the memory test mode is selected, Connecting all even-numbered terminals of the data input terminals of the memory unit and the first external terminal; and connecting all odd-numbered terminals of the data input terminals of the memory unit and the second external terminals. Since the connection is made, data of “00”, “FF”, “55”, “AA” (when 8-bit) can be input to the memory section in two memory terminals in the memory test mode. Can Effect can be obtained.

本発明の請求項4による半導体装置によれば、請求項3記載の半導体装置において、外部との信号の伝送を行なう、第三の外部端子、及び第四の外部端子をさらに備え、前記テスト回路は、前記メモリ部のデータ出力端子の偶数番目の端子からのデータ出力の論理積と論理和を選択し出力する第一のデータ出力回路と、前記メモリ部のデータ出力端子の奇数番目の端子からのデータ出力の論理積と論理和を選択し出力する第二のデータ出力回路を更に有し、前記メモリテストモードが選択されている時は、前記第一のデータ出力回路の出力を前記第三の外部端子から外部に出力し、かつ前記第二のデータ出力回路の出力を前記第四の外部端子から外部に出力するようにしたので、メモリテストモード時において”00”、”FF”、”55”、”AA”(8ビット時)の値が書かれているメモリ部のデータを2本の外部端子を使用して簡単に読み出せるという効果が得られる。   According to a semiconductor device according to a fourth aspect of the present invention, in the semiconductor device according to the third aspect, the test circuit further comprises a third external terminal and a fourth external terminal for transmitting a signal to the outside. The first data output circuit for selecting and outputting the logical product and the logical sum of the data outputs from the even-numbered terminals of the data output terminals of the memory unit, and the odd-numbered terminals of the data output terminals of the memory unit A second data output circuit that selects and outputs a logical product and a logical sum of the data outputs of the first and second data outputs, and when the memory test mode is selected, outputs the first data output circuit to the third data output circuit. Since the output of the second data output circuit and the output of the second data output circuit are output to the outside from the fourth external terminal, in the memory test mode, “00”, “FF”, “ 55 " "AA" is the effect that the value of (8 when bits) can be read easily by using two external terminals the data in the memory unit that is written is obtained.

本発明の請求項5による半導体装置によれば、請求項4記載の半導体装置において、1つ以上の前記メモリ部を備え、メモリテストモードが選択されている時は、メモリ部のデータ入力端子のすべての偶数番目の端子と前記第一の外部端子とを接続し、メモリ部のデータ入力端子のすべての奇数番目の端子と前記第二の外部端子とを接続し、メモリ部のデータ出力端子のすべての偶数番目の端子と前記第一のデータ出力回路とを接続し、及びメモリ部のデータ出力端子のすべての奇数番目の端子と前記第二のデータ出力回路とを接続するようにしたので、同一タイプのメモリ部が複数存在する場合においても、少ない外部端子でメモリのテストをすることができるという効果がある。   According to a semiconductor device of a fifth aspect of the present invention, in the semiconductor device according to the fourth aspect, when one or more of the memory units are provided and the memory test mode is selected, the data input terminal of the memory unit is selected. Connect all even-numbered terminals and the first external terminal, connect all odd-numbered terminals of the data input terminal of the memory unit and the second external terminal, and connect the data output terminal of the memory unit Since all the even-numbered terminals and the first data output circuit are connected, and all the odd-numbered terminals of the data output terminals of the memory unit are connected to the second data output circuit. Even when there are a plurality of memory portions of the same type, there is an effect that the memory can be tested with a small number of external terminals.

本発明の請求項6による半導体装置によれば、請求項5記載の半導体装置において、カラム数の異なるメモリ部が混在する場合でも、アドレス変換回路を用いることにより少ない外部端子でメモリ部のテストをすることができるという効果がある。   According to a semiconductor device of a sixth aspect of the present invention, in the semiconductor device according to the fifth aspect, even when memory units having different numbers of columns coexist, the memory unit can be tested with a small number of external terminals by using an address conversion circuit. There is an effect that can be done.

本発明の請求項7による半導体装置によれば、請求項1〜6のいずれかに記載の半導体装置において、パッケージ情報を入力するパッケージ選択外部端子をさらに備え、パッケージのピンと接続する外部端子数が前記メモリ部の入出力端子数よりも大きい場合で、かつメモリテストモード時に、前記メモリ部のすべての入出力端子を所定の複数の外部端子に直接接続するよう切り替わるようにしたので、効率的にテストを行うことができ、テストの時間短縮をすることができるという効果がある。   According to a semiconductor device of a seventh aspect of the present invention, in the semiconductor device according to any one of the first to sixth aspects of the present invention, the semiconductor device further includes a package selection external terminal for inputting package information, and the number of external terminals connected to the pins of the package is Since the number of input / output terminals of the memory unit is larger than the number of input / output terminals and in the memory test mode, all the input / output terminals of the memory unit are switched so as to be directly connected to a plurality of predetermined external terminals. The test can be performed and the test time can be shortened.

以下、本発明の実施の形態について、図面を用いて説明する。   Hereinafter, embodiments of the present invention will be described with reference to the drawings.

(実施の形態1)
図1、図2を用いて、本発明の実施の形態1にかかる半導体装置について説明する。
図1は、本発明の実施の形態1にかかる半導体装置の構成を示すものである。
図1において、100は半導体装置である。半導体装置100は、SRAM101、テスト回路102、モード記憶部103、CLK外部端子104、WEN外部端子105、REN外部端子106、ADR/DIN外部端子107、DOUT外部端子108、パッケージ選択外部端子118を有する。半導体装置100は、CLK外部端子104、WEN外部端子105、REN外部端子106、ADR/DIN外部端子107、DOUT外部端子108、パッケージ選択外部端子118を経由して外部のデバイスと信号の伝送をすることができる。CLK外部端子104は、メモリテストモード(後述する)時にSRAM101へのクロックを入力する端子である。WEN外部端子105は、メモリテストモード時にSRAM101への書き込み許可(ライトイネーブル)信号を入力する端子である。REN外部端子106は、メモリテストモード時にSRAM101への読み出し許可(リードイネーブル)信号を入力する端子である。ADR/DIN外部端子107は、メモリテストモード時にSRAM101へのアドレス信号及びデータ信号を入力するための端子である。DOUT外部端子108は、RAMテストモード時にSRAM101からのデータを外部に出力する端子である。パッケージ選択外部端子118は、パッケージの種類やピン数などの情報を入力する端子である。
(Embodiment 1)
A semiconductor device according to the first embodiment of the present invention will be described with reference to FIGS.
FIG. 1 shows a configuration of a semiconductor device according to a first embodiment of the present invention.
In FIG. 1, reference numeral 100 denotes a semiconductor device. The semiconductor device 100 includes an SRAM 101, a test circuit 102, a mode storage unit 103, a CLK external terminal 104, a WEN external terminal 105, a REN external terminal 106, an ADR / DIN external terminal 107, a DOUT external terminal 108, and a package selection external terminal 118. . The semiconductor device 100 transmits signals to and from an external device via the CLK external terminal 104, the WEN external terminal 105, the REN external terminal 106, the ADR / DIN external terminal 107, the DOUT external terminal 108, and the package selection external terminal 118. be able to. The CLK external terminal 104 is a terminal for inputting a clock to the SRAM 101 in the memory test mode (described later). The WEN external terminal 105 is a terminal for inputting a write enable signal to the SRAM 101 in the memory test mode. The REN external terminal 106 is a terminal for inputting a read permission (read enable) signal to the SRAM 101 in the memory test mode. The ADR / DIN external terminal 107 is a terminal for inputting an address signal and a data signal to the SRAM 101 in the memory test mode. The DOUT external terminal 108 is a terminal for outputting data from the SRAM 101 to the outside in the RAM test mode. The package selection external terminal 118 is a terminal for inputting information such as the type of package and the number of pins.

SRAM101は、CLK端子112、WEN端子113、REN端子114、ADR端子115、DIN端子116、DOUT端子117を有し、これを経由して半導体装置100内の他の回路と信号の伝送をすることができる。CLK端子112は、SRAM101の動作クロックを入力する端子である。WEN端子113は、書き込み許可(ライトイネーブル)信号を入力するための端子である。REN端子114は、読み出し許可(リードイネーブル)信号を入力するための端子である。本実施の形態1ではライトイネーブルまたはリードイネーブル時にはそれぞれLowでイネーブル状態とする。ADR端子115は、SRAM101のアドレス信号を入力する端子であり、本実施の形態1のSRAM101は8本のADR端子(256アドレス)を持っているものとする。DIN端子116は、SRAM101の書き込みデータを入力する端子であり、本実施の形態1のSRAM101では16本のDIN端子116を持っているものとする。DOUT端子117は、SRAM101に書き込まれているデータを出力する端子であり、本実施の形態1のSRAM101では16本のDOUT端子を持っているものとする。本実施の形態1においてはライトイネーブル信号がアサートされ、かつSRAM101の動作クロックがHighからLowに変化した瞬間にデータが書き込まれるものとする。本実施の形態1においては、リードイネーブル信号がアサートされ、かつSRAM101の動作クロックがHighからLowに変化した瞬間からデータが出力されるものとする。   The SRAM 101 has a CLK terminal 112, a WEN terminal 113, a REN terminal 114, an ADR terminal 115, a DIN terminal 116, and a DOUT terminal 117, and transmits signals to and from other circuits in the semiconductor device 100 via these terminals. Can do. The CLK terminal 112 is a terminal for inputting an operation clock of the SRAM 101. The WEN terminal 113 is a terminal for inputting a write permission (write enable) signal. The REN terminal 114 is a terminal for inputting a read permission (read enable) signal. In the first embodiment, at the time of write enable or read enable, each is enabled at Low. The ADR terminal 115 is a terminal for inputting an address signal of the SRAM 101, and the SRAM 101 of the first embodiment is assumed to have eight ADR terminals (256 addresses). The DIN terminal 116 is a terminal for inputting write data of the SRAM 101, and the SRAM 101 of the first embodiment is assumed to have 16 DIN terminals 116. The DOUT terminal 117 is a terminal for outputting data written in the SRAM 101, and the SRAM 101 of the first embodiment is assumed to have 16 DOUT terminals. In the first embodiment, it is assumed that data is written at the moment when the write enable signal is asserted and the operation clock of the SRAM 101 changes from High to Low. In the first embodiment, it is assumed that data is output from the moment when the read enable signal is asserted and the operation clock of the SRAM 101 changes from High to Low.

モード記憶部103は、半導体装置100の動作モードを記憶し、また周辺回路にその情報を伝達する。動作モードは通常の機能を果たすノーマルモード、テストモードに大きく分けられる。テストモードには例えば半導体装置100内のすべてのロジック回路を検査するスキャンモード、通常動作時よりも高い電圧をかけるバーンインモード、SRAMの動作を検査するメモリテストモードなどがある。本実施の形態1においては、SRAMの動作を検査するメモリテストモードに入っている。動作モードの設定方法は、例えば外部端子(図示せず)からHighかLowで設定する。   The mode storage unit 103 stores the operation mode of the semiconductor device 100 and transmits the information to peripheral circuits. The operation mode is roughly divided into a normal mode and a test mode that perform normal functions. For example, the test mode includes a scan mode in which all logic circuits in the semiconductor device 100 are inspected, a burn-in mode in which a higher voltage is applied than in normal operation, and a memory test mode in which the operation of the SRAM is inspected. In the first embodiment, the memory test mode for inspecting the operation of the SRAM is entered. The operation mode is set by, for example, high or low from an external terminal (not shown).

テスト回路102は、クロック制御回路109、第1のラッチ回路110、第2のラッチ回路111を有する。なお、図1において、テスト回路102は、メモリテストモードでの回路構成になっており、通常モード時からの切り替え回路などは図示してない。クロック制御回路109は、クロックを入力し、第1のラッチ回路110および第2のラッチ回路111に所定のタイミングでクロックを送る。第1のラッチ回路110および第2のラッチ回路111は、それぞれ8つのフリップフロップで構成されている。なお、図1において、第1、第2のラッチ回路110、111のフリップフロップは1つだけ図示している。第1のラッチ回路110および第2のラッチ回路111は、ADR/DIN外部端子107からの入力を一時記憶する。第1のラッチ回路110の出力はSRAM101のADR端子115と接続されており、第2のラッチ回路111の出力はSRAM101のDIN端子116の下位8ビットと接続されている。また、ADR/DIN外部端子107とSRAM101のDIN端子116とはテスト回路102を経由して接続されている。   The test circuit 102 includes a clock control circuit 109, a first latch circuit 110, and a second latch circuit 111. In FIG. 1, the test circuit 102 has a circuit configuration in the memory test mode, and a switching circuit from the normal mode is not shown. The clock control circuit 109 inputs a clock and sends the clock to the first latch circuit 110 and the second latch circuit 111 at a predetermined timing. Each of the first latch circuit 110 and the second latch circuit 111 includes eight flip-flops. In FIG. 1, only one flip-flop of each of the first and second latch circuits 110 and 111 is shown. The first latch circuit 110 and the second latch circuit 111 temporarily store the input from the ADR / DIN external terminal 107. The output of the first latch circuit 110 is connected to the ADR terminal 115 of the SRAM 101, and the output of the second latch circuit 111 is connected to the lower 8 bits of the DIN terminal 116 of the SRAM 101. The ADR / DIN external terminal 107 and the DIN terminal 116 of the SRAM 101 are connected via the test circuit 102.

テスト回路102は、パッケージのピンと接続する外部端子数がメモリ装置(SRAM)の入出力端子数よりも多く、かつ前記メモリテストモードの場合、前記メモリ装置のすべての入出力端子を所定の複数の外部端子に直接接続されるように切り替わる。   In the test circuit 102, when the number of external terminals connected to the pins of the package is larger than the number of input / output terminals of the memory device (SRAM), and in the memory test mode, all the input / output terminals of the memory device are set to a predetermined plural number. Switch to connect directly to external terminal.

次に図2を用いてSRAMにデータを書き込む手順について説明する。
図2は、本発明の実施の形態1による半導体装置における、メモリテストモード時に外部端子からSRAM101にデータを書き込む際のフローチャートである。
Next, a procedure for writing data to the SRAM will be described with reference to FIG.
FIG. 2 is a flowchart for writing data from the external terminal to the SRAM 101 in the memory test mode in the semiconductor device according to the first embodiment of the present invention.

図2において、まずステップ201で、8本のADR/DIN外部端子107から8ビットの信号を入力する。次にステップ202で、第1のラッチ回路110がこの信号を一時記憶する。この際、第1のラッチ回路110を構成する8つのフリップフロップにはクロックが供給され、クロックの変化のタイミングで8つのフリップフロップに同時にデータが記憶される。次にステップ203で、再度8本のADR/DIN端子107から8ビットの信号を入力する。   In FIG. 2, first, in step 201, 8-bit signals are input from the eight ADR / DIN external terminals 107. Next, at step 202, the first latch circuit 110 temporarily stores this signal. At this time, a clock is supplied to the eight flip-flops constituting the first latch circuit 110, and data is simultaneously stored in the eight flip-flops at the timing of the clock change. Next, at step 203, 8-bit signals are input again from the eight ADR / DIN terminals 107.

次にステップ204で、今度は第2のラッチ回路111がこの信号を一時記憶する。この際、第2のラッチ回路111を構成する8つのフリップフロップにはクロックが供給され、クロックの変化のタイミングで8つのフリップフロップに同時にデータが記憶される。次にステップ205で、再々度8本のADR/DIN外部端子107から8ビットの信号を入力する。このタイミングでSRAM101のADR端子115およびDIN端子116には入力すべき信号が揃ったことになる。   In step 204, the second latch circuit 111 temporarily stores this signal. At this time, a clock is supplied to the eight flip-flops constituting the second latch circuit 111, and data is simultaneously stored in the eight flip-flops at the timing of the clock change. Next, at step 205, 8-bit signals are inputted again from the eight ADR / DIN external terminals 107 again. At this timing, the signals to be input are prepared at the ADR terminal 115 and the DIN terminal 116 of the SRAM 101.

次にステップ206で、WEN端子113をLowにドライブしライトイネーブル状態にした後、ステップ207でクロック信号をHighからLowに変化させる。これによりステップ208においてADR端子115で指定されたアドレスにDIN端子116で指定されたデータを書き込むことができる。   Next, in step 206, the WEN terminal 113 is driven low to make it in the write enable state, and then in step 207, the clock signal is changed from high to low. As a result, in step 208, the data designated by the DIN terminal 116 can be written to the address designated by the ADR terminal 115.

このように本実施の形態1によれば、SRAM101をテストするテスト回路102と、外部との信号の伝送を行なう複数の外部端子とを備え、前記外部端子は、メモリテストモード時に前記SRAM101のライトイネーブル端子113と接続されるWEN外部端子105と、メモリテストモード時にSRAM101のアドレス信号およびデータ信号を入力するADR/DIN外部端子107を有し、前記テスト回路102は、メモリテストモード時に前記ADR/DIN外部端子107から入力したアドレス信号およびデータ信号を一時記憶する第1、第2のラッチ回路110、111を有するようにしたので、ADR端子およびDIN端子用の外部端子が従来は合計24本必要なところを、8本の外部端子でRAMのテストを実現することができるという効果がある。   As described above, according to the first embodiment, the test circuit 102 for testing the SRAM 101 and the plurality of external terminals for transmitting signals to the outside are provided, and the external terminals are written to the SRAM 101 in the memory test mode. A WEN external terminal 105 connected to the enable terminal 113 and an ADR / DIN external terminal 107 for inputting an address signal and a data signal of the SRAM 101 in the memory test mode. The test circuit 102 has the ADR / DIN in the memory test mode. Since the first and second latch circuits 110 and 111 for temporarily storing the address signal and the data signal input from the DIN external terminal 107 are provided, a total of 24 external terminals for the ADR terminal and the DIN terminal are conventionally required. The test of RAM is realized with 8 external terminals. There is an effect that theft can be.

また、本発明の実施の形態1では、8本のADR/DIN端子から入力される8ビットの信号を第1、第2のラッチ回路で合計2回ラッチし、ADR端子及びDIN端子に入力すべき信号が揃う構成としたが、ラッチ回路により信号をラッチする回数は2回に限定されるものではない。例えば、4本のADR/DIN端子から入力される4ビットの信号を第1、第2のラッチ回路で合計5回ラッチし、ADR端子及びDIN端子に入力すべき信号が揃う構成としてもよく、このようにラッチ回路に一度にラッチするデータの量を減らしてラッチする回数を増やすことにより、ADR/DIN外部端子数を少なくすることができる。   In the first embodiment of the present invention, an 8-bit signal input from eight ADR / DIN terminals is latched twice in total by the first and second latch circuits, and input to the ADR terminal and the DIN terminal. However, the number of times the signal is latched by the latch circuit is not limited to two. For example, a 4-bit signal input from four ADR / DIN terminals may be latched a total of five times by the first and second latch circuits, and the signals to be input to the ADR terminal and the DIN terminal may be arranged. In this way, the number of ADR / DIN external terminals can be reduced by reducing the amount of data latched in the latch circuit at a time and increasing the number of times of latching.

また本実施の形態1ではSRAMのサイズはデータバス幅16ビット、アドレスバス幅8ビットであったが、これに限定されるものではない。   In the first embodiment, the SRAM has a data bus width of 16 bits and an address bus width of 8 bits. However, the present invention is not limited to this.

(実施の形態2)
図3、図4を用いて、本発明の実施の形態2にかかる半導体装置について説明する。
図3は、本発明の実施の形態2にかかる半導体装置の構成を示すブロック図である。
(Embodiment 2)
A semiconductor device according to the second embodiment of the present invention will be described with reference to FIGS.
FIG. 3 is a block diagram showing the configuration of the semiconductor device according to the second embodiment of the present invention.

図3に示す実施の形態2に係る半導体装置300が図1に示す実施の形態1に係る半導体装置100と異なる点は以下の通りである。なお、実施の形態1と同じ構成ブロックについては図1と同じ番号を付与し、説明を省略する。   The semiconductor device 300 according to the second embodiment shown in FIG. 3 is different from the semiconductor device 100 according to the first embodiment shown in FIG. 1 as follows. The same constituent blocks as those in the first embodiment are given the same numbers as in FIG.

図3において、第1のラッチ回路310と第2のラッチ回路311は、シフトレジスタで構成される。ここで、実施の形態2では、第1のラッチ回路310と第2のラッチ回路311は2段構成となっている。例えば、第1のラッチ回路310の1番目のフリップフロップのQ出力は第2のラッチ回路311の1番目のフリップフロップのD入力に接続される。   In FIG. 3, the first latch circuit 310 and the second latch circuit 311 are formed of shift registers. Here, in the second embodiment, the first latch circuit 310 and the second latch circuit 311 have a two-stage configuration. For example, the Q output of the first flip-flop of the first latch circuit 310 is connected to the D input of the first flip-flop of the second latch circuit 311.

クロック制御回路309は、それぞれのラッチ回路ごとにクロックを生成する必要がなく、第1のラッチ回路310、第2のラッチ回路311の両方に同一のクロックを供給する。   The clock control circuit 309 does not need to generate a clock for each latch circuit, and supplies the same clock to both the first latch circuit 310 and the second latch circuit 311.

次に図4を用いて、SRAM101にデータを書き込む手順について説明する。
図4は、本発明の実施の形態2による半導体装置における、メモリテストモード時に外部端子からSRAM101にデータを書き込む際のフローチャートである。
Next, a procedure for writing data to the SRAM 101 will be described with reference to FIG.
FIG. 4 is a flowchart for writing data from the external terminal to the SRAM 101 in the memory test mode in the semiconductor device according to the second embodiment of the present invention.

図4において、まずステップ401で、8本のADR/DIN外部端子107から8ビットの信号を入力する。次にステップ402で、第1のラッチ回路310がこの信号を一時記憶する。この際、第1のラッチ回路310を構成する8つのフリップフロップにはクロックが供給され、クロックの変化のタイミングで8つのフリップフロップに同時にデータが記憶される。同時に第2のラッチ回路311を構成する8つのフリップフロップにもクロックが供給され、第1のラッチ回路310のQ出力を一時記憶する。   In FIG. 4, first, in step 401, 8-bit signals are input from the eight ADR / DIN external terminals 107. Next, at step 402, the first latch circuit 310 temporarily stores this signal. At this time, a clock is supplied to the eight flip-flops constituting the first latch circuit 310, and data is simultaneously stored in the eight flip-flops at a clock change timing. At the same time, a clock is supplied to the eight flip-flops constituting the second latch circuit 311 to temporarily store the Q output of the first latch circuit 310.

次にステップ403で、再度8本のADR/DIN外部端子107から8ビットの信号を入力する。次にステップ404で、第1のラッチ回路310がステップ403で入力した信号を一時記憶し、同時に第2のラッチ回路311がステップ401で入力した信号、すなわち第1のラッチ回路310の出力信号を一時記憶する。   Next, at step 403, 8-bit signals are input from the eight ADR / DIN external terminals 107 again. Next, in step 404, the first latch circuit 310 temporarily stores the signal input in step 403, and at the same time, the second latch circuit 311 receives the signal input in step 401, that is, the output signal of the first latch circuit 310. Memorize temporarily.

次にステップ405で、再々度8本のADR/DIN外部端子107から8ビットの信号を入力する。このタイミングでSRAM101のADR端子115およびDIN端子116には入力すべき信号が揃ったことになる。次にステップ406で、WEN端子113をLowにドライブしライトイネーブル状態にした後、ステップ407でクロック信号をHighからLowに変化させる。これによりステップ408においてADR端子115で指定されたアドレスにDIN端子116で指定されたデータを書き込むことができる。   Next, at step 405, the 8-bit signal is inputted again from the eight ADR / DIN external terminals 107 again. At this timing, the signals to be input are prepared at the ADR terminal 115 and the DIN terminal 116 of the SRAM 101. Next, in step 406, the WEN terminal 113 is driven low to make it in the write enable state, and then in step 407, the clock signal is changed from high to low. As a result, the data designated by the DIN terminal 116 can be written at the address designated by the ADR terminal 115 in step 408.

このように本実施の形態2によれば、第1のラッチ回路310、及び第2のラッチ回路311は、シフトレジスタで構成されるようにしたので、ADR端子およびDIN端子用の外部端子が従来は合計24本必要なところを、8本の外部端子でRAMのテストを実現することができるという効果がある。   As described above, according to the second embodiment, since the first latch circuit 310 and the second latch circuit 311 are configured by shift registers, external terminals for the ADR terminal and the DIN terminal are conventionally provided. This has the effect that a RAM test can be realized with eight external terminals, where a total of 24 are required.

また、クロック制御回路309から出力するクロック系統は1本で良いので、クロック制御回路309の構成を簡単にすることができるという効果がある。   In addition, since only one clock system is output from the clock control circuit 309, the configuration of the clock control circuit 309 can be simplified.

また、本発明ではADR/DIN端子からの入力をラッチする回数を2回に分けて行なう場合について説明したが、実施の形態1同様、2回に限定されるものではない。さらにSRAMのサイズはデータバス幅16ビット、アドレスバス幅8ビットであったが、これに限定されるものではない。   In the present invention, the case where the number of times of latching the input from the ADR / DIN terminal is divided into two is described, but it is not limited to two as in the first embodiment. Furthermore, the SRAM has a data bus width of 16 bits and an address bus width of 8 bits, but is not limited to this.

(実施の形態3)
図5〜図9を用いて、本発明の実施の形態3にかかる半導体装置について説明する。
図5は、本発明の実施の形態3にかかる半導体装置の構成を示すものである。
(Embodiment 3)
A semiconductor device according to the third embodiment of the present invention will be described with reference to FIGS.
FIG. 5 shows a configuration of a semiconductor device according to the third embodiment of the present invention.

図5において、500は半導体装置である。半導体装置500は、SRAM101、テスト回路102、モード記憶部103、CLK外部端子104、WEN外部端子105、REN外部端子106、ADR外部端子507、DIN_EVEN外部端子(第一の外部端子)508、DIN_ODD外部端子(第二の外部端子)509、DOUT外部端子108を有する。半導体装置100は、CLK外部端子104、WEN外部端子105、REN外部端子106、ADR外部端子507、DIN_EVEN外部端子508、DIN_ODD外部端子509、DOUT外部端子108を経由して外部のデバイスと信号の伝送をすることができる。CLK外部端子104は、RAMテストモード時にSRAM101へのクロックを入力する端子である。WEN外部端子105は、RAMテストモード時にSRAM101への書き込み許可(ライトイネーブル)信号を入力する端子である。REN外部端子106は、RAMテストモード時にSRAM101への読み出し許可(リードイネーブル)信号を入力する端子である。ADR外部端子507は、RAMテストモード時にSRAM101へのアドレス信号を入力するための端子である。DIN_EVEN外部端子508およびDIN_ODD外部端子509は、RAMテストモード時にSRAM101へのデータ信号を入力するための端子である。DOUT外部端子108は、RAMテストモード時にSRAM101からのデータを外部に出力する端子である。   In FIG. 5, reference numeral 500 denotes a semiconductor device. The semiconductor device 500 includes an SRAM 101, a test circuit 102, a mode storage unit 103, a CLK external terminal 104, a WEN external terminal 105, a REN external terminal 106, an ADR external terminal 507, a DIN_EVEN external terminal (first external terminal) 508, an external DIN_ODD. A terminal (second external terminal) 509 and a DOUT external terminal 108; The semiconductor device 100 transmits signals to and from an external device via the CLK external terminal 104, WEN external terminal 105, REN external terminal 106, ADR external terminal 507, DIN_EVEN external terminal 508, DIN_ODD external terminal 509, and DOUT external terminal 108. Can do. The CLK external terminal 104 is a terminal for inputting a clock to the SRAM 101 in the RAM test mode. The WEN external terminal 105 is a terminal for inputting a write enable signal to the SRAM 101 in the RAM test mode. The REN external terminal 106 is a terminal for inputting a read permission (read enable) signal to the SRAM 101 in the RAM test mode. The ADR external terminal 507 is a terminal for inputting an address signal to the SRAM 101 in the RAM test mode. The DIN_EVEN external terminal 508 and the DIN_ODD external terminal 509 are terminals for inputting data signals to the SRAM 101 in the RAM test mode. The DOUT external terminal 108 is a terminal for outputting data from the SRAM 101 to the outside in the RAM test mode.

SRAM101は、CLK端子112、WEN端子113、REN端子114、ADR端子115、DIN端子116、DOUT端子117を有し、これを経由して半導体装置500内の他の回路と信号の伝送をすることができる。CLK端子112は、SRAM101の動作クロックを入力する端子である。WEN端子113は、書き込み許可(ライトイネーブル)信号を入力するための端子である。REN端子114は、読み出し許可(リードイネーブル)信号を入力するための端子である。ADR端子115は、SRAM101のアドレス信号を入力する端子であり、本実施の形態3のSRAM101は8本のADR端子(256アドレス)を持っているものとする。DIN端子116は、SRAM101の書き込みデータを入力する端子であり、本実施の形態3のSRAM101では8本のDIN端子を持っているものとする。DOUT端子117は、SRAM101に書き込まれているデータを出力する端子であり、本実施の形態3のSRAM101では8本のDOUT端子を持っているものとする。   The SRAM 101 includes a CLK terminal 112, a WEN terminal 113, a REN terminal 114, an ADR terminal 115, a DIN terminal 116, and a DOUT terminal 117, and transmits signals to and from other circuits in the semiconductor device 500 via these terminals. Can do. The CLK terminal 112 is a terminal for inputting an operation clock of the SRAM 101. The WEN terminal 113 is a terminal for inputting a write permission (write enable) signal. The REN terminal 114 is a terminal for inputting a read permission (read enable) signal. The ADR terminal 115 is a terminal for inputting an address signal of the SRAM 101, and the SRAM 101 of the third embodiment is assumed to have eight ADR terminals (256 addresses). The DIN terminal 116 is a terminal for inputting write data of the SRAM 101, and the SRAM 101 of the third embodiment has eight DIN terminals. The DOUT terminal 117 is a terminal for outputting data written in the SRAM 101, and the SRAM 101 of the third embodiment has eight DOUT terminals.

モード記憶部103は、半導体装置500の動作モードを記憶し、また周辺回路にその情報を伝達する。動作モードは通常の機能を果たすノーマルモード、テストモードに大きく分けられる。   The mode storage unit 103 stores the operation mode of the semiconductor device 500 and transmits the information to peripheral circuits. The operation mode is roughly divided into a normal mode and a test mode that perform normal functions.

テスト回路102は、前記モード記憶部103によって動作モードを変化させる。本実施の形態3においては、RAMテストモードでの回路構成になっている。前記モード記憶部103によってテストモードに移行した後、CLK外部端子104はCLK端子112と接続し、WEN外部端子105はWEN端子113と接続し、REN外部端子508はREN端子114と接続し、ADR外部端子507(8ビット)はADR端子115(8ビット)と接続する。DIN_EVEN外部端子508は、DIN端子116の偶数番目のビット、DIN(0)、DIN(2)、DIN(4)、DIN(6)と接続する。DIN_ODD外部端子509は、DIN端子116の奇数番目のビット、DIN(1)、DIN(3)、DIN(5)、DIN(7)と接続する。   The test circuit 102 changes the operation mode by the mode storage unit 103. The third embodiment has a circuit configuration in the RAM test mode. After shifting to the test mode by the mode storage unit 103, the CLK external terminal 104 is connected to the CLK terminal 112, the WEN external terminal 105 is connected to the WEN terminal 113, the REN external terminal 508 is connected to the REN terminal 114, and the ADR The external terminal 507 (8 bits) is connected to the ADR terminal 115 (8 bits). The DIN_EVEN external terminal 508 is connected to the even-numbered bits of the DIN terminal 116, DIN (0), DIN (2), DIN (4), and DIN (6). The DIN_ODD external terminal 509 is connected to the odd-numbered bits of the DIN terminal 116, DIN (1), DIN (3), DIN (5), and DIN (7).

次に図6〜図9を使用してSRAMにデータを書き込む手順について説明する。本実施の形態3によって入力される検査用入力データは、SRAM101のDIN端子116に対し、「00」、「FF」、「55」、「AA」のデータのみを入力するものとする。これは、前記データを書き込むことで、SRAMのデータ保持の状態を最も変化させることができるためである。   Next, a procedure for writing data to the SRAM will be described with reference to FIGS. As the inspection input data input according to the third embodiment, only “00”, “FF”, “55”, and “AA” data are input to the DIN terminal 116 of the SRAM 101. This is because the data holding state of the SRAM can be changed most by writing the data.

まず、SRAM101に対し、ADR外部端子507からADR端子115にアドレス信号を入力し、ライトイネーブル信号がアサートされ、かつSRAM101の動作クロックがHighからLowに変化した瞬間にデータが書き込まれる。本実施の形態3において、書き込まれるデータは、DIN_EVEN外部端子508、DIN_ODD外部端子509から入力されるため、SRAMのDIN端子116のビット数に関わらず、2ビットで入力できる。   First, an address signal is input to the SRAM 101 from the ADR external terminal 507 to the ADR terminal 115, the write enable signal is asserted, and data is written at the moment when the operation clock of the SRAM 101 changes from High to Low. In the third embodiment, since the data to be written is input from the DIN_EVEN external terminal 508 and the DIN_ODD external terminal 509, it can be input with 2 bits regardless of the number of bits of the DIN terminal 116 of the SRAM.

次に、図6を用いて、本実施の形態3による半導体装置において、DIN_EVEN外部端子508、DIN_ODD外部端子509に(0、0)を入力した場合を説明する。この場合、SRAM101のDIN端子116には、偶数ビット、奇数ビット共に「0」が入力されるため、SRAMのDIN端子116に「00」が入力される。   Next, a case where (0, 0) is input to the DIN_EVEN external terminal 508 and the DIN_ODD external terminal 509 in the semiconductor device according to the third embodiment will be described with reference to FIG. In this case, “0” is input to the DIN terminal 116 of the SRAM 101 for both even and odd bits, so “00” is input to the DIN terminal 116 of the SRAM 101.

また図7を用いて、本実施の形態3による半導体装置において、DIN_EVEN外部端子508、DIN_ODD端子外部509に(1、1)を入力した場合を説明する。この場合、SRAM101のDIN端子116には、偶数ビット、奇数ビット共に「0」が入力されるため、SRAMのDIN端子116に「FF」が入力される。   In addition, a case where (1, 1) is input to the DIN_EVEN external terminal 508 and the DIN_ODD terminal external 509 in the semiconductor device according to the third embodiment will be described with reference to FIG. In this case, since “0” is input to the DIN terminal 116 of the SRAM 101 for both the even and odd bits, “FF” is input to the DIN terminal 116 of the SRAM.

また図8を用いて、本実施の形態3による半導体装置において、DIN_EVEN外部端子508、DIN_ODD外部端子509に(0、1)を入力した場合を説明する。この場合、SRAM101のDIN端子116には、偶数ビット、奇数ビット共に「0」が入力されるため、SRAMのDIN端子116に「55」が入力される。   In addition, the case where (0, 1) is input to the DIN_EVEN external terminal 508 and the DIN_ODD external terminal 509 in the semiconductor device according to the third embodiment will be described with reference to FIG. In this case, since “0” is input to the DIN terminal 116 of the SRAM 101 for both the even and odd bits, “55” is input to the DIN terminal 116 of the SRAM.

また図9を用いて、本実施の形態3による半導体装置において、DIN_EVEN外部端子508、DIN_ODD外部端子509に(1、0)を入力した場合を説明する。この場合、SRAM101のDIN端子116には、偶数ビット、奇数ビット共に「0」が入力されるため、SRAMのDIN端子116に「AA」が入力される。   Further, the case where (1, 0) is input to the DIN_EVEN external terminal 508 and the DIN_ODD external terminal 509 in the semiconductor device according to the third embodiment will be described with reference to FIG. In this case, since “0” is input to the DIN terminal 116 of the SRAM 101 for both even and odd bits, “AA” is input to the DIN terminal 116 of the SRAM.

このように本実施の形態3によれば、外部との信号の伝送を行なう、DIN_EVEN外部端子508、及びDIN_ODD外部端子509を含む複数の外部端子と、SRAM101をテストするテスト回路302とを備え、前記テスト回路302は、メモリテストモードが選択されている時は、前記SRAM101のデータ入力端子116の偶数番目の全端子と前記DIN_EVEN外部端子508を接続し、かつ、前記SRAM101のデータ入力端子116の奇数番目の全端子と前記DIN_ODD外部端子509を接続するようにしたので、SRAMのDINのビット数に関わらず、2本の信号線で、検査用データを入力することができるという効果がある。   As described above, according to the third embodiment, a plurality of external terminals including the DIN_EVEN external terminal 508 and the DIN_ODD external terminal 509 that transmit signals to the outside are provided, and the test circuit 302 that tests the SRAM 101. When the memory test mode is selected, the test circuit 302 connects all the even-numbered terminals of the data input terminal 116 of the SRAM 101 and the DIN_EVEN external terminal 508, and connects the data input terminal 116 of the SRAM 101. Since all the odd-numbered terminals are connected to the DIN_ODD external terminal 509, there is an effect that the inspection data can be input through two signal lines regardless of the number of DIN bits of the SRAM.

(実施の形態4)
図10〜図15を用いて、本発明の実施の形態4にかかる半導体装置について説明する。
図10は、本発明の実施の形態4にかかる半導体装置の構成を示すものである。
(Embodiment 4)
A semiconductor device according to a fourth embodiment of the present invention will be described with reference to FIGS.
FIG. 10 shows a configuration of the semiconductor device according to the fourth embodiment of the present invention.

図10において、1000は半導体装置である。半導体装置1000は、SRAM101、テスト回路102、モード記憶部103、CLK外部端子104、WEN外部端子105、REN外部端子106、ADR外部端子507、DIN外部端子1008、DOUT_EVEN外部端子(第三の外部端子)1009、DOUT_ODD外部端子(第四の外部端子)1010を有する。半導体装置100は、CLK外部端子104、WEN外部端子105、REN外部端子106、ADR外部端子507、DIN外部端子1008、DOUT_EVEN外部端子1009、DOUT_ODD外部端子1010を経由して外部のデバイスと信号の伝送をすることができる。CLK外部端子104は、RAMテストモード時にSRAM101へのクロックを入力する端子である。WEN外部端子105は、RAMテストモード時にSRAM101への書き込み許可(ライトイネーブル)信号を入力する端子である。REN外部端子106は、RAMテストモード時にSRAM101への読み出し許可(リードイネーブル)信号を入力する端子である。ADR外部端子507は、RAMテストモード時にSRAM101へのアドレス信号を入力するための端子である。DIN外部端子1008は、RAMテストモード時にSRAM101へのデータ信号を入力するための端子である。DOUT_EVEN外部端子1009、およびDOUT_ODD外部端子1010は、RAMテストモード時にSRAM101からのデータを外部に出力する端子である。   In FIG. 10, reference numeral 1000 denotes a semiconductor device. The semiconductor device 1000 includes an SRAM 101, a test circuit 102, a mode storage unit 103, a CLK external terminal 104, a WEN external terminal 105, a REN external terminal 106, an ADR external terminal 507, a DIN external terminal 1008, a DOUT_EVEN external terminal (third external terminal). ) 1009 and DOUT_ODD external terminal (fourth external terminal) 1010. The semiconductor device 100 transmits signals to and from an external device via the CLK external terminal 104, the WEN external terminal 105, the REN external terminal 106, the ADR external terminal 507, the DIN external terminal 1008, the DOUT_EVEN external terminal 1009, and the DOUT_ODD external terminal 1010. Can do. The CLK external terminal 104 is a terminal for inputting a clock to the SRAM 101 in the RAM test mode. The WEN external terminal 105 is a terminal for inputting a write enable signal to the SRAM 101 in the RAM test mode. The REN external terminal 106 is a terminal for inputting a read permission (read enable) signal to the SRAM 101 in the RAM test mode. The ADR external terminal 507 is a terminal for inputting an address signal to the SRAM 101 in the RAM test mode. The DIN external terminal 1008 is a terminal for inputting a data signal to the SRAM 101 in the RAM test mode. The DOUT_EVEN external terminal 1009 and the DOUT_ODD external terminal 1010 are terminals for outputting data from the SRAM 101 to the outside in the RAM test mode.

SRAM101は、CLK端子112、WEN端子113、REN端子114、ADR端子115、DIN端子116、DOUT端子117を有し、これを経由して半導体装置1000内の他の回路と信号の伝送をすることができる。CLK端子112は、SRAM101の動作クロックを入力する端子である。WEN端子113は、書き込み許可(ライトイネーブル)信号を入力するための端子である。REN端子114は、読み出し許可(リードイネーブル)信号を入力するための端子である。ADR端子115は、SRAM101のアドレス信号を入力する端子であり、本実施の形態4のSRAM101は、8本のADR端子(256アドレス)を持っているものとする。DIN端子116は、SRAM101の書き込みデータを入力する端子であり、本実施の形態4のSRAM101では8本のDIN端子を持っているものとする。DOUT端子117は、SRAM101に書き込まれているデータを出力する端子であり、本実施の形態4のSRAM101では8本のDOUT端子を持っているものとする。   The SRAM 101 includes a CLK terminal 112, a WEN terminal 113, a REN terminal 114, an ADR terminal 115, a DIN terminal 116, and a DOUT terminal 117, and transmits signals to and from other circuits in the semiconductor device 1000 via the terminal. Can do. The CLK terminal 112 is a terminal for inputting an operation clock of the SRAM 101. The WEN terminal 113 is a terminal for inputting a write permission (write enable) signal. The REN terminal 114 is a terminal for inputting a read permission (read enable) signal. The ADR terminal 115 is a terminal for inputting an address signal of the SRAM 101, and the SRAM 101 of the fourth embodiment is assumed to have eight ADR terminals (256 addresses). The DIN terminal 116 is a terminal for inputting write data of the SRAM 101, and the SRAM 101 of the fourth embodiment has eight DIN terminals. The DOUT terminal 117 is a terminal for outputting data written in the SRAM 101, and the SRAM 101 of the fourth embodiment has eight DOUT terminals.

モード記憶部103は、半導体装置1000の動作モードを記憶し、また周辺回路にその情報を伝達する。動作モードは通常の機能を果たすノーマルモード、テストモードに大きく分けられる。   The mode storage unit 103 stores the operation mode of the semiconductor device 1000 and transmits the information to peripheral circuits. The operation mode is roughly divided into a normal mode and a test mode that perform normal functions.

テスト回路102は、前記モード記憶部103によって動作モードを変化させる。本実施の形態4においては、RAMテストモードでの回路構成になっている。前記モード記憶部103によってテストモードに移行した後、CLK外部端子104はCLK端子112と接続し、WEN外部端子105はWEN端子113と接続し、REN外部端子1008はREN端子114と接続し、ADR外部端子507(8ビット)はADR端子115(8ビット)と接続し、DIN外部端子1008はDIN端子116と接続する。DOUT_EVEN外部端子1009は、DOUT端子116の偶数番目のビット、DOUT(0)、DOUT(2)、DOUT(4)、DOUT(6)と偶数DOUT判定回路(第一のデータ出力回路)1011と接続し、その判定ビットと接続する。DOUT_ODD外部端子1010は、DOUT端子116の奇数番目のビット、DOUT(1)、DOUT(3)、DOUT(5)、DOUT(7)と奇数DOUT判定回路(第二のデータ出力回路)1012と接続し、その判定ビットと接続する。   The test circuit 102 changes the operation mode by the mode storage unit 103. The fourth embodiment has a circuit configuration in the RAM test mode. After shifting to the test mode by the mode storage unit 103, the CLK external terminal 104 is connected to the CLK terminal 112, the WEN external terminal 105 is connected to the WEN terminal 113, the REN external terminal 1008 is connected to the REN terminal 114, and the ADR The external terminal 507 (8 bits) is connected to the ADR terminal 115 (8 bits), and the DIN external terminal 1008 is connected to the DIN terminal 116. The DOUT_EVEN external terminal 1009 is connected to the even-numbered bits of the DOUT terminal 116, DOUT (0), DOUT (2), DOUT (4), DOUT (6) and the even-numbered DOUT determination circuit (first data output circuit) 1011. And connected to the determination bit. The DOUT_ODD external terminal 1010 is connected to the odd-numbered bits of the DOUT terminal 116, DOUT (1), DOUT (3), DOUT (5), DOUT (7) and the odd-numbered DOUT determination circuit (second data output circuit) 1012. And connected to the determination bit.

偶数DOUT判定回路1011は、図11に示すように、SRAM101のDOUT端子116の偶数番目のビット、DOUT(0)、DOUT(2)、DOUT(4)、DOUT(6)のH出力判定回路1100とL出力判定回路1101の判定結果を第1のセレクタ1103により選択し、制御回路1104により判定結果を出力する。   As shown in FIG. 11, the even-numbered DOUT determination circuit 1011 is an H-output determination circuit 1100 for even-numbered bits DOUT (0), DOUT (2), DOUT (4), and DOUT (6) of the DOUT terminal 116 of the SRAM 101. The determination result of the L output determination circuit 1101 is selected by the first selector 1103, and the determination result is output by the control circuit 1104.

なお、奇数DOUT判定回路1012も上記偶数DOUT判定回路1011と同様の構成であり、SRAM101のDOUT端子116の奇数番目のビット、DOUT(1)、DOUT(3)、DOUT(5)、DOUT(7)のH出力判定回路1100とL出力判定回路1101の判定結果を第2のセレクタ1105により選択し、制御回路1104により判定結果を出力する。   The odd-numbered DOUT determination circuit 1012 has the same configuration as the even-numbered DOUT determination circuit 1011. The odd-numbered bits of the DOUT terminal 116 of the SRAM 101, DOUT (1), DOUT (3), DOUT (5), DOUT (7 ) Of the H output determination circuit 1100 and the L output determination circuit 1101 are selected by the second selector 1105, and the determination result is output by the control circuit 1104.

次に図11〜図15を使用してSRAMにデータを読み出す手順について説明する。本実施の形態4によって出力される検査用入力データとしては、DIN外部端子1108から入力された「00」、「FF」、「55」、「AA」のデータのみを、SRAM101のDIN端子116に対し出力するものとする。これは、前記データを書き込むことで、SRAMのデータ保持の状態を最も変化させることができるためである。   Next, a procedure for reading data into the SRAM will be described with reference to FIGS. As the inspection input data output by the fourth embodiment, only “00”, “FF”, “55”, and “AA” data input from the DIN external terminal 1108 are input to the DIN terminal 116 of the SRAM 101. In contrast, it shall be output. This is because the data holding state of the SRAM can be changed most by writing the data.

まず、SRAM101に対し、ADR外部端子507からADR端子115にアドレス信号を入力し、リードイネーブル.信号がアサートされ、かつSRAM101の動作クロックがHighからLowに変化した瞬間からデータが読み出される。本実施の形態4において読み出されるデータは、偶数DOUT判定回路1011、奇数DOUT判定回路1102を介して出力されるため、SRAMのDOUTのビット数に関わらず、2ビットで出力される。本実施の形態4の偶数DOUT判定回路1011、及び奇数DOUT判定回路1102は4本の入力端子を持っているものとする。その偶数DOUT判定回路1011、及び奇数DOUT判定回路1102は上述したとおり、DOUT端子116の偶数ビット、奇数ビットをそれぞれ接続しているため、両DOUT判定回路に入力されるデータは「0」、「1」のどちらかとなる。   First, an address signal is input to the SRAM 101 from the ADR external terminal 507 to the ADR terminal 115, the read enable signal is asserted, and data is read from the moment when the operation clock of the SRAM 101 changes from High to Low. Since the data read in the fourth embodiment is output via the even-numbered DOUT determination circuit 1011 and the odd-numbered DOUT determination circuit 1102, it is output in 2 bits regardless of the number of DOUT bits in the SRAM. It is assumed that the even DOUT determination circuit 1011 and the odd DOUT determination circuit 1102 of the fourth embodiment have four input terminals. Since the even-numbered DOUT determination circuit 1011 and the odd-numbered DOUT determination circuit 1102 are connected to the even-numbered bit and the odd-numbered bit of the DOUT terminal 116 as described above, the data input to both DOUT determination circuits is “0”, “ 1 ".

ここでは偶数DOUT判定回路1011を例として説明する。
図11に示すように、偶数DOUT判定回路1011は、H出力判定回路1100、及びL出力判定回路1101を備えており、H出力判定回路1100、及びL出力判定回路1101からの出力を制御回路1104からの入力に基づいて、第1のセレクタ1103で選択し出力する。
Here, the even-numbered DOUT determination circuit 1011 will be described as an example.
As shown in FIG. 11, the even-numbered DOUT determination circuit 1011 includes an H output determination circuit 1100 and an L output determination circuit 1101, and outputs from the H output determination circuit 1100 and the L output determination circuit 1101 to the control circuit 1104. Is selected by the first selector 1103 and output.

まず、図12において、偶数DOUT判定回路1011の4入力に「0」が入力された場合、L出力判定回路1101にて論理和計算する。本実施の形態4の第1のセレクタ1103は、0入力でL出力判定回路1101、1入力でH出力判定回路1100の結果を選択するものとする。この時第1のセレクタ1103は、制御回路1104から「0」を入力されることにより、L出力判定回路1101からの「0」を出力する。   First, in FIG. 12, when “0” is input to the four inputs of the even-numbered DOUT determination circuit 1011, the L output determination circuit 1101 performs a logical sum calculation. The first selector 1103 of the fourth embodiment selects the result of the L output determination circuit 1101 with 0 input and the result of the H output determination circuit 1100 with 1 input. At this time, the first selector 1103 receives “0” from the control circuit 1104 and outputs “0” from the L output determination circuit 1101.

次に図13において、偶数DOUT判定回路1011の4入力に「1」が入力された場合、H出力判定回路1100にて論理積計算する。この時第1のセレクタ1103は、制御回路1104から「1」を入力されることにより、H出力判定回路1100からの「1」を出力する。   Next, in FIG. 13, when “1” is input to the four inputs of the even-numbered DOUT determination circuit 1011, the H output determination circuit 1100 performs a logical product calculation. At this time, the first selector 1103 receives “1” from the control circuit 1104 and outputs “1” from the H output determination circuit 1100.

次に図14では、偶数DOUT判定回路1011の4入力に「0」が入力されるはずが、異なるデータが入力された場合を説明する。図14に示すように、偶数DOUT判定回路1011の4入力のうちの1入力に「0」が入力される代わりに「1」が入力されたとき、第1のセレクタ1103は、制御回路1104から「0」が入力されることによりL出力判定回路1101の結果を選択するが、そのときに、L出力判定回路1101からは「0」が出力されるべきところ、「1」が出力されるため、不良と判定することができる。   Next, in FIG. 14, a case where “0” should be input to the four inputs of the even-numbered DOUT determination circuit 1011, but different data is input will be described. As illustrated in FIG. 14, when “1” is input to one of the four inputs of the even-numbered DOUT determination circuit 1011 instead of “0”, the first selector 1103 receives the control signal from the control circuit 1104. When “0” is input, the result of the L output determination circuit 1101 is selected. At that time, “0” is output from the L output determination circuit 1101, but “1” is output. , Can be determined as defective.

また、図15では、偶数DOUT判定回路1011の4入力に「1」が入力されるはずが、異なるデータが入力された場合を説明する。図15に示すように、偶数DOUT判定回路1011の4入力のうちの1入力に「1」が入力される代わりに「0」が入力されたとき、第1のセレクタ1103は、制御回路1104から「1」が入力されることによりH出力判定回路1100の結果を選択するが、そのときに、H出力判定回路1100からは「1」が出力されるべきところ、「0」が出力されるため、不良と判定することができる。   FIG. 15 illustrates a case where “1” should be input to the four inputs of the even-numbered DOUT determination circuit 1011 but different data is input. As shown in FIG. 15, when “0” is input instead of “1” to one of the four inputs of the even-numbered DOUT determination circuit 1011, the first selector 1103 receives the control signal from the control circuit 1104. When “1” is input, the result of the H output determination circuit 1100 is selected. At that time, “1” is output from the H output determination circuit 1100, but “0” is output. , Can be determined as defective.

このように本実施の形態4によれば、DOUT_EVEN外部端子1009、及びDOUT_ODD外部端子1010をさらに含み、テスト回路102は、SRAM101のデータ出力端子116の偶数番目の端子からのデータ出力の論理積と論理和を選択し出力する偶数DOUT判定回路1011と、SRAM101のデータ出力端子116の奇数番目の端子からのデータ出力の論理積と論理和を選択し出力する奇数DOUT判定回路1012を更に有し、メモリテストモードが選択されている時は、前記偶数DOUT判定回路1011の出力を前記DOUT_EVEN外部端子1009から外部に出力し、かつ前記奇数DOUT判定回路1012の出力を前記DOUT_ODD外部端子1010から出力するようにしたので、SRAMのDOUTのビット数に関わらず、2本の信号線で、検査用データの期待値比較ができるという効果がある。   As described above, according to the fourth embodiment, the DOUT_EVEN external terminal 1009 and the DOUT_ODD external terminal 1010 are further included, and the test circuit 102 calculates the logical product of the data output from the even-numbered terminals of the data output terminal 116 of the SRAM 101 and An even-numbered DOUT determination circuit 1011 that selects and outputs a logical sum; and an odd-numbered DOUT determination circuit 1012 that selects and outputs a logical product and logical sum of data outputs from odd-numbered terminals of the data output terminal 116 of the SRAM 101; When the memory test mode is selected, the output of the even DOUT determination circuit 1011 is output to the outside from the DOUT_EVEN external terminal 1009, and the output of the odd DOUT determination circuit 1012 is output from the DOUT_ODD external terminal 1010. Because of the SRAM Regardless OUT number of bits, with two signal lines, there is an effect that it is the expected value comparing the test data.

(実施の形態5)
図16〜図19を用いて、本発明の実施の形態5にかかる半導体装置について説明する。本実施の形態5にかかる半導体装置は、上記実施の形態3、実施の形態4と同様の構成であり、かつ、それぞれカラム数が異なるSRAMを2個有しているものとする。カラム数とはメモリ装置の縦方向の大きさ(列数)を表す。
(Embodiment 5)
A semiconductor device according to Embodiment 5 of the present invention will be described with reference to FIGS. The semiconductor device according to the fifth embodiment has the same configuration as that of the third and fourth embodiments, and has two SRAMs each having a different number of columns. The number of columns represents the vertical size (number of columns) of the memory device.

図16は、本発明の実施の形態5にかかる半導体装置の構成を示すものである。
図16において1600は半導体装置である。半導体装置1600は、第1のSRAM101、第2のSRAM1602、テスト回路102、モード記憶部103、CLK外部端子104、WEN外部端子105、REN外部端子106、ADR外部端子507、DIN_EVEN外部端子508、DIN_ODD外部端子509、DOUT_EVEN外部端子1009、DOUT_ODD外部端子1010を有する。半導体装置1600は、CLK外部端子104、WEN外部端子105、REN外部端子106、ADR外部端子507、DIN_EVEN外部端子508、DIN_ODD端子509、DOUT_EVEN端子1009、DOUT_ODD端子1010を経由して外部のデバイスと信号の伝送をすることができる。CLK外部端子104は、RAMテストモード時に第1のSRAM101、第2のSRAM1602へのクロックを入力する端子である。WEN外部端子105は、RAMテストモード時に第1のSRAM101、第2のSRAM1602への書き込み許可(ライトイネーブル)信号を入力する端子である。REN外部端子106は、RAMテストモード時に第1のSRAM101、第2のSRAM1602への読み出し許可(リードイネーブル)信号を入力する端子である。ADR外部端子507は、RAMテストモード時に第1のSRAM101、第2のSRAM1602へのアドレス信号を入力するための端子である。DIN_EVEN外部端子508およびDIN_ODD外部端子509は、RAMテストモード時に第1のSRAM101、第2のSRAM1602へのデータ信号を入力するための端子である。DOUT_EVEN外部端子1009、DOUT_ODD外部端子1010は、RAMテストモード時に第1のSRAM101、第2のSRAM1602からのデータを外部に出力する端子である。
FIG. 16 shows the configuration of the semiconductor device according to the fifth embodiment of the present invention.
In FIG. 16, reference numeral 1600 denotes a semiconductor device. The semiconductor device 1600 includes a first SRAM 101, a second SRAM 1602, a test circuit 102, a mode storage unit 103, a CLK external terminal 104, a WEN external terminal 105, a REN external terminal 106, an ADR external terminal 507, a DIN_EVEN external terminal 508, and a DIN_ODD. An external terminal 509, a DOUT_EVEN external terminal 1009, and a DOUT_ODD external terminal 1010 are provided. The semiconductor device 1600 receives signals from external devices via the CLK external terminal 104, the WEN external terminal 105, the REN external terminal 106, the ADR external terminal 507, the DIN_EVEN external terminal 508, the DIN_ODD terminal 509, the DOUT_EVEN terminal 1009, and the DOUT_ODD terminal 1010. Can be transmitted. The CLK external terminal 104 is a terminal for inputting a clock to the first SRAM 101 and the second SRAM 1602 in the RAM test mode. The WEN external terminal 105 is a terminal for inputting a write enable signal to the first SRAM 101 and the second SRAM 1602 in the RAM test mode. The REN external terminal 106 is a terminal for inputting a read permission (read enable) signal to the first SRAM 101 and the second SRAM 1602 in the RAM test mode. The ADR external terminal 507 is a terminal for inputting an address signal to the first SRAM 101 and the second SRAM 1602 in the RAM test mode. The DIN_EVEN external terminal 508 and the DIN_ODD external terminal 509 are terminals for inputting data signals to the first SRAM 101 and the second SRAM 1602 in the RAM test mode. The DOUT_EVEN external terminal 1009 and the DOUT_ODD external terminal 1010 are terminals for outputting data from the first SRAM 101 and the second SRAM 1602 to the outside in the RAM test mode.

第1のSRAM101は、第1のCLK端子112、第1のWEN端子113、第1のREN端子114、第1のADR端子115、第1のDIN端子116、第1のDOUT端子117を有し、これを経由して半導体装置1600内の他の回路と信号の伝送をすることができる。第1のCLK端子112は、第1のSRAM101の動作クロックを入力する端子である。第1のWEN端子113は、書き込み許可(ライトイネーブル)信号を入力するための端子である。第1のREN端子114は、読み出し許可(リードイネーブル)信号を入力するための端子である。第1のADR端子115は、第1のSRAM101のアドレス信号を入力する端子であり、本実施の形態5の第1のSRAM101は、8本のADR端子(256アドレス)を持っているものとする。第1のDIN端子116は、第1のSRAM101の書き込みデータを入力する端子であり、本実施の形態5の第1のSRAM101では8本のDIN端子を持っているものとする。第1のDOUT端子117は、第1のSRAM101に書き込まれているデータを出力する端子であり、本実施の形態5の第1のSRAM101では8本のDOUT端子を持っているものとする。   The first SRAM 101 includes a first CLK terminal 112, a first WEN terminal 113, a first REN terminal 114, a first ADR terminal 115, a first DIN terminal 116, and a first DOUT terminal 117. Through this, signals can be transmitted to other circuits in the semiconductor device 1600. The first CLK terminal 112 is a terminal for inputting an operation clock of the first SRAM 101. The first WEN terminal 113 is a terminal for inputting a write permission (write enable) signal. The first REN terminal 114 is a terminal for inputting a read permission (read enable) signal. The first ADR terminal 115 is a terminal for inputting an address signal of the first SRAM 101, and the first SRAM 101 of the fifth embodiment has eight ADR terminals (256 addresses). . The first DIN terminal 116 is a terminal for inputting write data of the first SRAM 101, and the first SRAM 101 of the fifth embodiment has eight DIN terminals. The first DOUT terminal 117 is a terminal for outputting data written in the first SRAM 101, and the first SRAM 101 of the fifth embodiment has eight DOUT terminals.

第2のSRAM1602は、第2のCLK端子1612、第2のWEN端子1613、第2のREN端子1614、第2のADR端子1615、第2のDIN端子1616、第2のDOUT端子1617を有し、これを経由して半導体装置1600内の他の回路と信号の伝送をすることができる。第2のCLK端子1612は、第2のSRAM1602の動作クロックを入力する端子である。第2のWEN端子1613は、書き込み許可(ライトイネーブル)信号を入力するための端子である。第2のREN端子1614は、読み出し許可(リードイネーブル)信号を入力するための端子である。第2のADR端子1615は、第2のSRAM1602のアドレス信号を入力する端子であり、本実施の形態5の第2のSRAM1602は8本のADR端子(256アドレス)を持っているものとする。第2のDIN端子1616は、第2のSRAM1602の書き込みデータを入力する端子であり、本実施の形態5の第2のSRAM1602では8本のDIN端子を持っているものとする。第2のDOUT端子1617は、第2のSRAM1602に書き込まれているデータを出力する端子であり、本実施の形態5の第2のSRAM1602では8本のDOUT端子を持っているものとする。   The second SRAM 1602 includes a second CLK terminal 1612, a second WEN terminal 1613, a second REN terminal 1614, a second ADR terminal 1615, a second DIN terminal 1616, and a second DOUT terminal 1617. Through this, signals can be transmitted to other circuits in the semiconductor device 1600. The second CLK terminal 1612 is a terminal for inputting an operation clock of the second SRAM 1602. The second WEN terminal 1613 is a terminal for inputting a write enable (write enable) signal. The second REN terminal 1614 is a terminal for inputting a read permission (read enable) signal. The second ADR terminal 1615 is a terminal for inputting an address signal of the second SRAM 1602. The second SRAM 1602 of the fifth embodiment is assumed to have eight ADR terminals (256 addresses). The second DIN terminal 1616 is a terminal for inputting the write data of the second SRAM 1602, and the second SRAM 1602 of the fifth embodiment has eight DIN terminals. The second DOUT terminal 1617 is a terminal for outputting data written in the second SRAM 1602, and the second SRAM 1602 of the fifth embodiment has eight DOUT terminals.

モード記憶部103は、半導体装置1600の動作モードを記憶し、また周辺回路にその情報を伝達する。動作モードは通常の機能を果たすノーマルモード、テストモードに大きく分けられる。   The mode storage unit 103 stores the operation mode of the semiconductor device 1600 and transmits the information to peripheral circuits. The operation mode is roughly divided into a normal mode and a test mode that perform normal functions.

第1のテスト回路102、及び第2のテスト回路1621は、前記モード記憶部103によって動作モードを変化させる。本実施の形態5においては、RAMテストモードでの回路構成になっている。前記モード記憶部103によってテストモードに移行した後、CLK外部端子104は第1のCLK端子112、及び第2のCLK端子1612と接続し、WEN外部端子105は第1のWEN端子113、及び第2のWEN端子1613と接続し、REN外部端子106は第1のREN端子114、及び第2のREN端子1614と接続し、ADR外部端子507(8ビット)は第1のADR端子115(8ビット)、及びアドレス変換回路1618を介して第2のADR端子1615(8ビット)と接続する。DIN_EVEN外部端子508は、第1のDIN端子116、及び第2のDIN端子1616の偶数番目のビットと接続する。DIN_ODD外部端子509は、第1のDIN端子116、及び第2のDIN端子1616の奇数番目のビットと接続する。DOUT_EVEN外部端子1009は、第1のDOUT端子117、及び第2のDOUT端子1617の偶数番目のビットと偶数DOUT判定回路1619を接続しており、その判定ビットと接続する。DOUT_ODD外部端子1010は、第1のDOUT端子117、及び第2のDOUT端子1617の奇数番目のビットと奇数DOUT判定回路1620を接続しており、その判定ビットと接続する。   The first test circuit 102 and the second test circuit 1621 change the operation mode by the mode storage unit 103. The fifth embodiment has a circuit configuration in the RAM test mode. After shifting to the test mode by the mode storage unit 103, the CLK external terminal 104 is connected to the first CLK terminal 112 and the second CLK terminal 1612, and the WEN external terminal 105 is connected to the first WEN terminal 113 and the second CLK terminal. 2, the REN external terminal 106 is connected to the first REN terminal 114 and the second REN terminal 1614, and the ADR external terminal 507 (8 bits) is connected to the first ADR terminal 115 (8 bits). And the second ADR terminal 1615 (8 bits) through the address conversion circuit 1618. The DIN_EVEN external terminal 508 is connected to the even-numbered bits of the first DIN terminal 116 and the second DIN terminal 1616. The DIN_ODD external terminal 509 is connected to the odd-numbered bits of the first DIN terminal 116 and the second DIN terminal 1616. The DOUT_EVEN external terminal 1009 connects the even-numbered bits of the first DOUT terminal 117 and the second DOUT terminal 1617 and the even-numbered DOUT determination circuit 1619, and is connected to the determination bits. The DOUT_ODD external terminal 1010 connects the odd-numbered bits of the first DOUT terminal 117 and the second DOUT terminal 1617 and the odd-numbered DOUT determination circuit 1620, and is connected to the determination bits.

次に図17〜図19を使用してSRAMにデータを書き込む手順について説明する。本実施の形態5によって入力される検査用入力データは、図16に示した第1のSRAM101の有する第1のDIN端子116、および第2のSRAM1602の有する第2のDIN端子1616に対し、「00」、「FF」、「55」、「AA」のデータのみを入力するものとする。これは、前記データを書き込むことで、SRAMのデータ保持の状態を最も変化させることができるためである。   Next, a procedure for writing data to the SRAM will be described with reference to FIGS. The inspection input data input according to the fifth embodiment is supplied to the first DIN terminal 116 included in the first SRAM 101 and the second DIN terminal 1616 included in the second SRAM 1602 shown in FIG. Only data of “00”, “FF”, “55”, and “AA” are input. This is because the data holding state of the SRAM can be changed most by writing the data.

図17は、本発明の実施の形態5にかかる半導体装置における、第1のSRAM101に対して入力するデータを示した図であり、図18は本発明の実施の形態5にかかる半導体装置における第2のSRAM1602に対して入力するデータを示した図であり、図19は、本発明の実施の形態5にかかる半導体装置における、アドレス変換回路を利用した場合の第2のSRAM1602に対して入力するデータを示した図である。   FIG. 17 is a diagram illustrating data input to the first SRAM 101 in the semiconductor device according to the fifth embodiment of the present invention. FIG. 18 is a diagram illustrating data input to the first SRAM 101 in the semiconductor device according to the fifth embodiment of the present invention. FIG. 19 is a diagram showing data input to the second SRAM 1602, and FIG. 19 is input to the second SRAM 1602 when the address conversion circuit is used in the semiconductor device according to the fifth embodiment of the present invention. It is the figure which showed data.

図16に示した第1のSRAM101に対してのデータの書き込みは、上記実施の形態3と同じである。その時、カラム数が「8」の第1のSRAM101に対する書き込みデータは、図17に示すようにアドレス0から順に1ずつインクリメントすると同時に「00」、「FF」を書き込み、アドレス8個分書き込み後、反転させるとする。それに対し、カラム数が「4」の第2のSRAM1602に対する書き込みデータは、図18に示すように、アドレス0から順に1ずつインクリメントすると同時に「00」、「FF」を書き込み、アドレス4個分書き込み後、反転させるとする。このとき、ADR外部端子507をそのまま第2のADR端子1615に接続すると、意図する検査用データが第2のSRAM1602に対し、入力できない。   Data writing to the first SRAM 101 shown in FIG. 16 is the same as that in the third embodiment. At that time, the write data to the first SRAM 101 with the column number “8” is incremented by 1 sequentially from address 0 as shown in FIG. 17 and simultaneously “00” and “FF” are written, and after writing eight addresses, Let it be reversed. On the other hand, as shown in FIG. 18, the write data to the second SRAM 1602 with the number of columns “4” is incremented by 1 in order from address 0, and simultaneously “00” and “FF” are written and written for four addresses. Later, it will be inverted. At this time, if the ADR external terminal 507 is connected to the second ADR terminal 1615 as it is, the intended inspection data cannot be input to the second SRAM 1602.

そこで、第2のSRAM1602のアドレスに対し、図19に示すようにアドレス4個分書き込み後、4アドレス分スキップし、4個分アドレスを書き込み、その後スキップした4アドレスのデータを書き込むようにアドレスを変換するアドレス変換回路1618を設ける。これにより、カラム数が異なるSRAMが複数存在しても、DIN端子、DOUT端子への接続はすべて上記実施の形態3、実施の形態4の発明と同様の構成を利用することができる。   Therefore, the address of the second SRAM 1602 is written so that four addresses are skipped after writing four addresses as shown in FIG. 19, four addresses are written, and then the data of the skipped four addresses is written. An address conversion circuit 1618 for conversion is provided. As a result, even when there are a plurality of SRAMs having different numbers of columns, all the connections to the DIN terminal and DOUT terminal can use the same configuration as that of the third and fourth embodiments.

このように本実施の形態5によれば、第1のSRAM101、及び第2のSRAM1602を備え、第1、第2のテスト回路102、1621は、メモリテストモードが選択されている時は、全てのメモリ部のデータ入力端子116、1616の偶数番目の端子とDIN_EVEN外部端子508を接続し、全てのメモリ部のデータ入力端子116、1616の奇数番目の端子とDIN_ODD外部端子509を接続し、全てのメモリ部のデータ出力端子117、1617の偶数番目の端子とDOUT_EVEN外部端子1009を接続し、及び全てのメモリ部のデータ出力端子117、1617の奇数番目の端子とDOUT_ODD外部端子1010を接続するようにしたので、SRAMのDINのビット数に関わらず、2本の信号線で検査用データを入力することができ、SRAMのDOUTのビット数に関わらず、2本の信号線で検査用データの期待値比較ができるという効果がある。   As described above, according to the fifth embodiment, the first SRAM 101 and the second SRAM 1602 are provided, and the first and second test circuits 102 and 1621 are all when the memory test mode is selected. The even-numbered terminals of the data input terminals 116 and 1616 of the memory section are connected to the DIN_EVEN external terminal 508, and the odd-numbered terminals of the data input terminals 116 and 1616 of all the memory sections are connected to the DIN_ODD external terminal 509. The even-numbered terminals of the data output terminals 117 and 1617 of the memory section are connected to the DOUT_EVEN external terminal 1009, and the odd-numbered terminals of the data output terminals 117 and 1617 of all the memory sections are connected to the DOUT_ODD external terminal 1010. Therefore, the two signal lines are used for detection regardless of the number of DIN bits in the SRAM. Can enter use data, regardless of the number of bits DOUT of SRAM, there is an effect that on two signal lines can expected value comparison of the test data.

また、本実施の形態5によれば、第1のSRAM101とカラム数の異なる第2のSRAM1602を備え、テスト回路102は、第2のSRAM1602のアドレス入力をカラム数に合わせて変換するアドレス変換回路1618をさらに有するようにしたので、複数のカラム数の異なるSRAMを備える場合でも、少ない外部端子数でメモリのテストをすることができるという効果がある。   Further, according to the fifth embodiment, the second SRAM 1602 having a different number of columns from the first SRAM 101 is provided, and the test circuit 102 converts the address input of the second SRAM 1602 according to the number of columns. Since 1618 is further provided, even when a plurality of SRAMs having different numbers of columns are provided, there is an effect that the memory can be tested with a small number of external terminals.

本発明は、搭載したRAMの動作をテストするテスト回路を含むシステムLSIとして有用である。   The present invention is useful as a system LSI including a test circuit for testing the operation of the mounted RAM.

本発明の実施の形態1にかかる半導体装置の構成を示す図The figure which shows the structure of the semiconductor device concerning Embodiment 1 of this invention. 本発明の実施の形態1にかかる半導体装置のメモリ装置の書き込みにおける概略的なフローチャートSchematic flowchart of writing in the memory device of the semiconductor device according to the first embodiment of the present invention. 本発明の実施の形態2にかかる半導体装置の構成を示す図The figure which shows the structure of the semiconductor device concerning Embodiment 2 of this invention. 本発明の実施の形態2にかかる半導体装置のメモリ装置の書き込みにおける概略的なフローチャートSchematic flowchart of writing in the memory device of the semiconductor device according to the second embodiment of the present invention. 本発明の実施の形態3にかかる半導体装置の構成を示す図The figure which shows the structure of the semiconductor device concerning Embodiment 3 of this invention. 本発明の実施の形態3にかかる半導体装置における、DIN_EVEN、DIN_ODD端子に00を入力したときのSRAMの入力データを示す図The figure which shows the input data of SRAM when 00 is input into DIN_EVEN and DIN_ODD terminal in the semiconductor device concerning Embodiment 3 of this invention. 本発明の実施の形態3にかかる半導体装置における、DIN_EVEN、DIN_ODD端子に11を入力したときのSRAMの入力データを示す図The figure which shows the input data of SRAM when 11 is input into DIN_EVEN and DIN_ODD terminal in the semiconductor device concerning Embodiment 3 of this invention. 本発明の実施の形態3にかかる半導体装置における、DIN_EVEN、DIN_ODD端子に01を入力したときのSRAMの入力データを示す図The figure which shows the input data of SRAM when inputting 01 into DIN_EVEN and DIN_ODD terminal in the semiconductor device concerning Embodiment 3 of this invention. 本発明の実施の形態3にかかる半導体装置における、DIN_EVEN、DIN_ODD端子に10を入力したときのSRAMの入力データを示す図The figure which shows the input data of SRAM when 10 is input into DIN_EVEN and DIN_ODD terminal in the semiconductor device concerning Embodiment 3 of this invention. 本発明の実施の形態4にかかる半導体装置の構成を示す図The figure which shows the structure of the semiconductor device concerning Embodiment 4 of this invention. 本発明の実施の形態4にかかる半導体装置における、DOUT判定回路の回路構成を示す図The figure which shows the circuit structure of the DOUT determination circuit in the semiconductor device concerning Embodiment 4 of this invention. 本発明の実施の形態4にかかる半導体装置における、SRAMから正常データ00が出力されたときのDOUT判定回路の判定を示す図The figure which shows the determination of the DOUT determination circuit when the normal data 00 is output from SRAM in the semiconductor device concerning Embodiment 4 of this invention. 本発明の実施の形態4にかかる半導体装置における、SRAMから正常データFFが出力されたときのDOUT判定回路の判定を示す図The figure which shows the determination of the DOUT determination circuit when the normal data FF is output from SRAM in the semiconductor device concerning Embodiment 4 of this invention. 本発明の実施の形態4にかかる半導体装置における、SRAMから00の異常データが出力されたときのDOUT判定回路の判定を示す図The figure which shows the determination of the DOUT determination circuit when the abnormal data of 00 is output from SRAM in the semiconductor device concerning Embodiment 4 of this invention. 本発明の実施の形態4にかかる半導体装置における、SRAMからFFの異常データが出力されたときのDOUT判定回路の判定を示す図The figure which shows the determination of the DOUT determination circuit when the abnormal data of FF is output from SRAM in the semiconductor device concerning Embodiment 4 of this invention. 本発明の実施の形態5にかかる半導体装置の構成を示す図The figure which shows the structure of the semiconductor device concerning Embodiment 5 of this invention. 本発明の実施の形態5にかかる半導体装置における、カラム数8のSRAMに対して入力するADRデータとDINデータを示す図The figure which shows the ADR data and DIN data which are input with respect to SRAM with 8 columns in the semiconductor device concerning Embodiment 5 of this invention. 本発明の実施の形態5にかかる半導体装置における、カラム数4のSRAMに対して入力するADRデータとDINデータを示す図The figure which shows the ADR data and DIN data which are input with respect to SRAM with 4 columns in the semiconductor device concerning Embodiment 5 of this invention 本発明の実施の形態5にかかる半導体装置における、アドレス変換回路を利用した場合の、カラム数4のSRAMに対して入力するADRデータとDINデータを示す図The figure which shows the ADR data and DIN data which are input with respect to SRAM of the number of columns 4 at the time of using the address translation circuit in the semiconductor device concerning Embodiment 5 of this invention. 従来例の半導体装置の構成を示す図The figure which shows the structure of the semiconductor device of a prior art example

符号の説明Explanation of symbols

100、300、500、1000、1600 半導体装置
101 SRAM
102、302 テスト回路
103 モード記憶部
104 CLK外部端子
105 WEN外部端子
106 REN外部端子107 ADR/DIN外部端子
108 DOUT外部端子
109 クロック制御回路
110 第1のラッチ回路
111 第2のラッチ回路
112 CLK端子
113 WEN端子
114 REN端子
115 ADR端子
116 DIN端子
117 DOUT端子
118 パッケージ選択外部端子
507 ADR外部端子
508 DIN_EVEN端子
509 DIN_ODD端子
1008 DIN外部端子
1009 DOUT_EVEN端子
1010 DOUT_ODD端子
1011 偶数DOUT判定回路
1012 奇数DOUT判定回路
1100 H出力判定回路
1101 L出力判定回路
1103、1104 セレクタ
1602 SRAM
1612 CLK端子
1613 WEN端子
1614 REN端子
1615 ADR端子
1616 DIN端子
1617 DOUT端子
1618 アドレス変換回路
1619 偶数DOUT判定回路
1620 奇数DOUT判定回路
1621 テスト回路
100, 300, 500, 1000, 1600 Semiconductor device 101 SRAM
102, 302 Test circuit 103 Mode storage unit 104 CLK external terminal 105 WEN external terminal 106 REN external terminal 107 ADR / DIN external terminal 108 DOUT external terminal 109 Clock control circuit 110 First latch circuit 111 Second latch circuit 112 CLK terminal 113 WEN terminal 114 REN terminal 115 ADR terminal 116 DIN terminal 117 DOUT terminal 118 Package selection external terminal 507 ADR external terminal 508 DIN_EVEN terminal 509 DIN_ODD terminal 1008 DIN external terminal 1009 DOUT_EVEN terminal 1010 DOUT_ODD terminal 1011 Odd DOUT determination circuit 1012 1100 H output determination circuit 1101 L output determination circuit 1103, 1104 selector 1602 SRAM
1612 CLK terminal 1613 WEN terminal 1614 REN terminal 1615 ADR terminal 1616 DIN terminal 1617 DOUT terminal 1618 Address conversion circuit 1619 Even DOUT determination circuit 1620 Odd DOUT determination circuit 1621 Test circuit

Claims (7)

電気的に書き換え可能な揮発性のメモリ部と、
前記メモリ部の動作をテストするメモリテストモードを含む複数の動作モードを記憶する動作モード記憶部と、
前記メモリ部をテストするテスト回路と、
外部との信号の伝送を行なう複数の外部端子と、を備え、
前記外部端子は、メモリテストモード時に前記メモリ部のライトイネーブル端子と接続されるWEN外部端子と、メモリテストモード時に前記メモリ部のアドレス信号およびデータ信号を入力するADR/DIN外部端子を有し、
前記テスト回路は、メモリテストモード時に前記ADR/DIN外部端子から入力したアドレス信号およびデータ信号を一時記憶するラッチ回路を有する、
ことを特徴とする半導体装置。
An electrically rewritable volatile memory section;
An operation mode storage unit for storing a plurality of operation modes including a memory test mode for testing the operation of the memory unit;
A test circuit for testing the memory unit;
A plurality of external terminals for transmitting signals with the outside,
The external terminal has a WEN external terminal connected to the write enable terminal of the memory unit in the memory test mode, and an ADR / DIN external terminal for inputting an address signal and a data signal of the memory unit in the memory test mode,
The test circuit includes a latch circuit that temporarily stores an address signal and a data signal input from the ADR / DIN external terminal in the memory test mode.
A semiconductor device.
請求項1記載の半導体装置において、
前記ラッチ回路は、シフトレジスタで構成されている、
ことを特徴とする半導体装置。
The semiconductor device according to claim 1,
The latch circuit is composed of a shift register.
A semiconductor device.
電気的に書き換え可能な揮発性のメモリ部と、
前記メモリ部の動作をテストするメモリテストモードを含む複数の動作モードを記憶する動作モード記憶部と、
外部との信号の伝送を行なう、第一の外部端子、及び第二の外部端子と、
前記メモリ部をテストするテスト回路と、を備え、
メモリテストモードが選択されている時は、前記メモリ部のデータ入力端子のすべての偶数番目の端子と前記第一の外部端子とを接続し、かつ、前記メモリ部のデータ入力端子のすべての奇数番目の端子と前記第二の外部端子とを接続する、
ことを特徴とする半導体装置。
An electrically rewritable volatile memory section;
An operation mode storage unit for storing a plurality of operation modes including a memory test mode for testing the operation of the memory unit;
A first external terminal and a second external terminal for transmitting signals with the outside;
A test circuit for testing the memory unit,
When the memory test mode is selected, all even-numbered terminals of the data input terminals of the memory section are connected to the first external terminals, and all odd-numbered data input terminals of the memory section are connected. Connecting the second terminal and the second external terminal,
A semiconductor device.
請求項3記載の半導体装置において、
外部との信号の伝送を行なう、第三の外部端子、及び第四の外部端子をさらに備え、
前記テスト回路は、
前記メモリ部のデータ出力端子の偶数番目の端子からのデータ出力の論理積と論理和を選択し出力する第一のデータ出力回路と、
前記メモリ部のデータ出力端子の奇数番目の端子からのデータ出力の論理積と論理和を選択し出力する第二のデータ出力回路を更に有し、
前記メモリテストモードが選択されている時は、前記第一のデータ出力回路の出力を前記第三の外部端子から外部に出力し、かつ前記第二のデータ出力回路の出力を前記第四の外部端子から外部に出力する、
ことを特徴とする半導体装置。
The semiconductor device according to claim 3.
Further comprising a third external terminal and a fourth external terminal for transmitting a signal with the outside,
The test circuit includes:
A first data output circuit that selects and outputs a logical product and a logical sum of data outputs from even-numbered terminals of the data output terminals of the memory unit;
A second data output circuit for selecting and outputting a logical product and a logical sum of data outputs from odd-numbered terminals of the data output terminals of the memory unit;
When the memory test mode is selected, the output of the first data output circuit is output to the outside from the third external terminal, and the output of the second data output circuit is output to the fourth external Output from the terminal to the outside,
A semiconductor device.
請求項4記載の半導体装置において、
1つ以上の前記メモリ部を備え、
メモリテストモードが選択されている時は、メモリ部のデータ入力端子のすべての偶数番目の端子と前記第一の外部端子とを接続し、メモリ部のデータ入力端子のすべての奇数番目の端子と前記第二の外部端子とを接続し、メモリ部のデータ出力端子のすべての偶数番目の端子と前記第一のデータ出力回路とを接続し、及びメモリ部のデータ出力端子のすべての奇数番目の端子と前記第二のデータ出力回路とを接続する、
ことを特徴とする半導体装置。
The semiconductor device according to claim 4.
Including one or more memory units;
When the memory test mode is selected, all the even-numbered terminals of the data input terminals of the memory section and the first external terminal are connected, and all the odd-numbered terminals of the data input terminals of the memory section are connected. Connecting the second external terminal, connecting all even-numbered terminals of the data output terminals of the memory unit and the first data output circuit, and connecting all odd-numbered terminals of the data output terminals of the memory unit; Connecting the terminal and the second data output circuit;
A semiconductor device.
請求項5記載の半導体装置において、
前記メモリ部に対してカラム数が異なる第二のメモリ部を備え、
前記テスト回路は、前記第二のメモリ部のアドレス入力をカラム数に基づき変換するアドレス変換回路をさらに有する、
ことを特徴とする半導体装置。
The semiconductor device according to claim 5.
A second memory unit having a different number of columns from the memory unit;
The test circuit further includes an address conversion circuit that converts an address input of the second memory unit based on the number of columns.
A semiconductor device.
請求項1〜6のいずれかに記載の半導体装置において、
パッケージ情報を入力するパッケージ選択外部端子をさらに備え、
パッケージのピンと接続する外部端子数が前記メモリ部の入出力端子数よりも大きい場合で、かつメモリテストモード時に、前記メモリ部のすべての入出力端子を所定の複数の外部端子に直接接続するよう切り替わる、
ことを特徴とする半導体装置。
In the semiconductor device according to claim 1,
A package selection external terminal for inputting package information;
When the number of external terminals connected to the pins of the package is larger than the number of input / output terminals of the memory unit, and in the memory test mode, all the input / output terminals of the memory unit are directly connected to a plurality of predetermined external terminals. Switch,
A semiconductor device.
JP2004364496A 2004-12-16 2004-12-16 Semiconductor device Pending JP2006172623A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004364496A JP2006172623A (en) 2004-12-16 2004-12-16 Semiconductor device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004364496A JP2006172623A (en) 2004-12-16 2004-12-16 Semiconductor device

Publications (1)

Publication Number Publication Date
JP2006172623A true JP2006172623A (en) 2006-06-29

Family

ID=36673195

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004364496A Pending JP2006172623A (en) 2004-12-16 2004-12-16 Semiconductor device

Country Status (1)

Country Link
JP (1) JP2006172623A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100830959B1 (en) 2007-04-11 2008-05-20 주식회사디아이 Apparatus for test of nand flash memory device
JP2008128896A (en) * 2006-11-22 2008-06-05 Denso Corp Semiconductor integrated circuit
JP2017045498A (en) * 2015-08-28 2017-03-02 株式会社東芝 Memory system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008128896A (en) * 2006-11-22 2008-06-05 Denso Corp Semiconductor integrated circuit
KR100830959B1 (en) 2007-04-11 2008-05-20 주식회사디아이 Apparatus for test of nand flash memory device
JP2017045498A (en) * 2015-08-28 2017-03-02 株式会社東芝 Memory system

Similar Documents

Publication Publication Date Title
US20060184848A1 (en) Semiconductor integrated circuit having test function and manufacturing method
US7275187B2 (en) Test circuit for memory
JP2003346500A (en) Semiconductor integrated circuit and its test method
US7230861B2 (en) Semiconductor integrated circuit
JP2004055030A (en) Semiconductor circuit device
US20080013389A1 (en) Random access memory including test circuit
US6571364B1 (en) Semiconductor integrated circuit device with fault analysis function
US7640467B2 (en) Semiconductor memory with a circuit for testing the same
JP4315775B2 (en) Semiconductor integrated circuit device
JP5169597B2 (en) Integrated circuit and test method
KR100564033B1 (en) Semiconductor memory having a single buffer selecting input terminal and method of testing the same
JP2006172623A (en) Semiconductor device
JP2005038526A (en) Semiconductor storage device
US7450449B2 (en) Semiconductor memory device and its test method
JP2008084472A (en) Semiconductor device
JP4773791B2 (en) Semiconductor memory device and memory test circuit
US20080155363A1 (en) Bist circuit device and self test method thereof
JP2004030829A (en) Semiconductor storage device
US7085974B2 (en) Semiconductor device, method of testing the same and electronic instrument
KR100537115B1 (en) Semiconductor memory device
JP4894376B2 (en) Semiconductor integrated circuit device
JP2004334930A (en) Semiconductor integrated circuit device
KR100459690B1 (en) Semiconductor memory device for direct access mode test and method thereof, especially using latched data error in direct access mode test
US20220180956A1 (en) Circuit for testing memory
KR100491052B1 (en) Testing circuit for SoC and method of testing the SoC

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20080208

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20080219

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20080624