The present invention relates to a semiconductor device having a logic section and a memory section mounted together on a single chip and a test method thereof.
In the recent trend of high integration of semiconductor devices (LSIs), such as ASICs and microprocessors, LSIs have become to have a macro memory (memory section) mounted together with a logic section on the same chip. Such memory-embedded LSIs are subjected to a performance test before shipping to check whether the logic sections and macro memories operate normally. There is a demand for technology that shortens the test time for macro memories with a simple circuit configuration.
In a memory-embedded LSI, ordinary operations (write operation and read operation) of a macro memory are controlled by a signal from a logic section. For example, when a read command is issued from the logic section, the macro memory is provided with an address together with this command, and data selected based on this address is output from the macro memory to the logic section. When a write command is issued from the logic section, the macro memory is provided with an address and data together with this command, and the macro memory writes the data in a storage area selected based on the address.
As the methods for testing a macro memory in the memory-embedded LSI configured in this manner, the following two methods are known.
The first one is a method to conduct a test by controlling the operation of the macro memory by the use of the logic section without any special test circuit.
The second one is a method in which the macro memory is tested without using the logic section by incorporating an exclusive test circuit exclusively and providing test I/O terminals so that a test signal is provided from the test input terminal to operate the test circuit. As such test circuit, a BIST (built-in self-test) circuit is known.
If the macro memory is tested by using the logic section as in the first method, the logic section must function to perform processing for entering the test mode. This leads to a longer test time, and hence the first method is not practical. Therefore, many memory-embedded LSIs provided with a built-in test circuit in accordance with the second method have come into practical use.
A test circuit incorporated in a memory-embedded LSI is principally comprised of a multiplexer for switching a signal transferred between a logic section and a macro memory during normal operation and a test signal provided from test I/O terminals.
As the test I/O terminals, there are provided terminals for inputting and outputting signals required for controlling the macro memory by means of the logic section during normal operation (address signals, data signals, and other control signals), and the macro memory is tested by a method referred to as direct access method (see Japanese Laid-Open Patent Publication No. 10-65104 (
Japanese Laid-Open Patent Publication No. 11-250700 discloses a method of testing a macro memory by coding control signals, except for address signals and data signals, and providing the codes to a test circuit through test terminals.
Japanese Laid-Open Patent Publication No. 2000-57120 discloses a technique to shorten the test time by providing a plurality of test pads directly connected to a memory by a test entry signal, and concentrating the pads along one side of a chip to increase the number of chips that can be tested at a time.
However, such conventional memory-embedded LSI provided with a test circuit requires a circuit for decoding a test code and a plurality of test terminals for providing test signals. This increases the circuit area, which leads to a problem that the die size of the LSI is increased.
It is an object of the present invention to provide a semiconductor device and a test method thereof capable of shortening the test time with a simple circuit configuration and preventing an increase in the circuit area used for testing.
A first aspect of the present invention provides a semiconductor device provided with a test mode having a logic section and a memory section mounted together thereon. The memory section includes an operation control circuit for receiving an input signal containing an address, data, and a command from the logic section, and executing a read/write operation of the data in accordance with the input signal. A test memory circuit, connected to the operation control circuit and provided in a storage area of the memory section that is selectable by the address, stores data to select the test mode. A write circuit, connected to the operation control circuit and the test memory circuit, generates a control signal and enables writing of data to the test memory circuit in response to a write command provided from the operation control circuit and in accordance with the input signal.
A second aspect of the present invention provides a macro memory mounted on a single-chip semiconductor device, provided with a test mode, together with a logic section. The macro memory includes a register area and a memory area, and an operation control circuit for receiving an input signal containing an address, data, and a command from the logic section to access the register area and the memory area, and executing a read/write operation of the data in accordance with the input signal. A test register, connected to the operation control circuit and arranged in a register area selectable by the address, stores a test code for selecting the test mode. A write circuit is connected to the operation control circuit and the test register to generate a control signal to enable the writing of data to the test register in response to a write command provided from the operation control circuit and in accordance with the input signal.
A third aspect of the present invention provides a test method for a semiconductor device having a logic section and a memory section mounted together thereon. The memory section includes an operation control circuit for receiving an input signal containing an address, data, and a command from the logic section and executing a read/write operation of the data, The test method includes a first step of providing a test entry signal to the memory section through a test entry terminal, a second step of writing the data to a test register, arranged in a storage area that is selectable by the address, in accordance with the write operation of the operation control circuit, and
a third step of selecting a test mode to test the memory section in accordance with the data written to the test register.
A fourth aspect of the present invention provides a method for selecting a test mode to test a semiconductor device having a logic section and a memory section mounted together thereon. The memory section has a storage area and receives an address and data from the logic section. The method includes the steps of arranging a test register designated by the address in the storage area of the memory section, providing a test entry signal to the memory section, designating the test register with the address in correspondence with the test entry signal, writing data for selecting the test mode in the test register in correspondence with the test entry signal, and selecting the test mode in accordance with the data written to the test register.
Other aspects and advantages of the present invention will become apparent from the following description, taken in conjunction with the accompanying drawings, illustrating by way of example the principles of the invention.
The invention, together with objects and advantages thereof, may best be understood by reference to the following description of the presently preferred embodiment together with the accompanying drawings in which:
The operation control circuit 12 is a circuit for accessing register area and memory area of the macro memory 11 based on an input signal from the logic section. The test memory circuit 16 is a test register provided in the register area. In other words, the test register 16 is allocated to the same address space as the memory area. A test code for selecting a test mode is written to the test register 16 in the same manner as when data is written to the memory area.
An output signal TRG of the test register 16 is provided to a test control circuit 14 and decoded by the test control circuit 14. The test control circuit 14 outputs a predetermined test mode select signal Tx corresponding to the output signal TRG from the test register 16.
The test mode select signal Tx of the test control circuit 14 is provided to an I/O selector 17. The I/O selector 17 selects and outputs one of a plurality of internal signals based on the test mode select signal Tx.
The test control circuit 14 is provided with a test entry signal RTE via a test entry terminal 20 provided outside of the macro memory 11. The test entry signal RTE has a higher voltage than an operational voltage of the macro memory 11, and the test control circuit 14 is provided with a detection circuit for detecting high voltage.
When detecting an input of the test entry signal RTE, the test control circuit 14 provides a test activation signal TESTM to the test register 16. The test activation signal TESTM enables writing of data to the test register 16.
A test method for the macro memory 11 includes the following first to third steps. In the first step, a test entry signal RTE is provided to the macro memory 11 via an external test entry terminal 20. In the second step, by the write operation of the operation control circuit 12, data is written to the test register 16 provided in a storage area that is selectable by an address. In the third step, a test mode is selected to test the macro memory 11 based on the output signal TRG from the test register 16.
The test entry signal is a signal having a higher voltage than an operational voltage of the macro memory 11, and a high voltage signal is detected in the first step. The data written in the test register 16 in the second step is a coded test code, and the output signal TRG from the test register 16 is decoded in the third step.
The macro memory 11 includes the read/write operation control circuit 12, an internal circuit 13, the test control circuit 14, the test code write circuit 15, the test register 16, and macro I/O selectors 17a and 17b.
The read/write operation control circuit 12 is provided with an input signal, such as an address/data/command or the like, from the logic section. The read/write operation control circuit 12 controls the data read and write operations in the macro memory 11 based on the input signal.
The internal circuit 13 includes a plurality of memory cells for storing data and a circuit (such as an X decoder, a Y decoder, and a read amplifier) for accessing the memory cells. In the present embodiment, the memory cells provided in the internal circuit 13 are nonvolatile memory cells.
The test control circuit 14 is provided with a test entry signal RTE from the test entry terminal 20. The test entry terminal 20 is a package pin (external terminal) of the semiconductor device. The test entry signal RTE has a voltage (e.g. about 10V), which is higher than the operational voltage of the macro memory 11 (e.g. 3V), and is provided from a test apparatus (not shown) connected to the test entry terminal 20.
Upon detecting a high-voltage test entry signal RTE, the test control circuit 14 provides a test activation signal TESTM to the test code write circuit 15 and the test register 16.
Upon receiving the activation signal TESTM from the test control circuit 14 and further receiving a register write command WR from the read/write operation control circuit 12, the test code write circuit 15 provides a write control signal RGT to the test register 16. In response to the control signal RGT, the test register 16 stores the data contained in the input signal as a test code.
The test register 16 provides the test control circuit 14 with an output signal TRG corresponding to the stored test code. The test control circuit 14 decodes the output signal TRG from the test register 16 and selects a test mode. The test control circuit 14 provides a test mode select signal (one of signals TMRW, TAC, and TWLL) to the read/write operation control circuit 12 and the macro I/O selectors 17a and 17b.
The test mode select signal TMRW is a signal for conducting a data read test of the memory cells by adjusting voltage of the floating gate of a test reference cell, and the test mode select signal TAC is a signal for conducting a test to measure electric current flowing through the memory cells. The test mode select signal TWLL is a signal for conducting a test to detect leakage from a word line.
The read/write operation control circuit 12 determines the type of the provided test mode select signal and provides the internal circuit 13 with a signal according to the test mode. The signal provided from the read/write operation control circuit 12 to the internal circuit 13 includes an address, data, and a command.
The macro I/O selector 17a provides a signal from the internal circuit 13 (such as data read from the memory cells or an internal signal) to a switch 21a as an output signal RANAOUT, in accordance with the test mode select signal. The macro I/O selector 17b provides an input signal RANAIN to the internal circuit 13 via a switch 21b, in accordance with the test mode select signal.
The switches 21a and 21 are provided outside of the macro memory 11 and connected to external terminals 22a and 22b, respectively. The external terminals 22a and 22b are used commonly by the macro memory 11 and the logic section. That is, the respective connections of the external terminals 22a and 22b are switched between the macro memory 11 and the logic section by the switches 21a and 21b.
Registers allocated to the register area include an A/D conversion register for saving an A/D conversion result, a command/status register for storing a command to start A/D conversion and a conversion status, a port register for designating a port output level, and a power status register for indicating a power source condition. The test register 16 for saving a test code is mapped in the register area used for maintenance.
In the present embodiment, the register area is a volatile storage area and separated from the nonvolatile memory area in the macro memory 11. When accessing the register area from the outside of the macro memory 11, an input signal, such as an address/data/command or the like, is provided to the macro memory 11 in the same manner as when accessing the memory area. When accessing the test register 16 for writing the test code, the test entry terminal 20 is activated (high-voltage test entry signal RTE is provided), and the address/data/command are provided in the same manner as when accessing the memory area.
The configuration of each circuit in the macro memory 11 will now be described in detail.
The test control circuit 14 according to the present embodiment includes a test entry detection circuit 31 shown in
As shown in
As shown in
A register write command WR is provided to a first input terminal of the NAND circuit 36, address signals YB0 through YB2 are provided to second to fourth input terminals of the NAND circuit 36, and an output signal from the NAND circuit 35 is provided to a fifth input terminal of the NAND circuit 36 via an inverter circuit 37. An output signal of the NAND circuit 36 is output via an inverter circuit 38 as a control signal RGT0.
In the test code write circuit 15, when all of the input signals XD0 through XD2, TESTM, YTPULSE, WR, and XB0 through XB2 have an H level, the control signal RGT0 shifts to the H level, and when any of the input signals has an L level, the control signal RGT0 shifts to the L level.
The test register 16 has a data latch circuit 39, and write data WDB0 provided via an NMOS transistor Tn1 is stored in the data latch circuit 39. A control signal RGT0 from the test code write circuit 15 is provided to the gate of the NMOS transistor Tn1, and the NMOS transistor Tn1 is turned on by an H level control signal RGT0.
The data latch circuit 39 is configured by first and second inverter circuits 40a and 40b. Each of the inverter circuits 40a and 40b is configured by a PMOS transistor and an NMOS transistor connected in series between the power supply Vcc and the ground. The output terminal of the first inverter circuit 40a (node between the drains of the PMOS and NMOS transistors) is connected to the input terminal of the second inverter circuit 40b (node of the gates of the respective transistors). The output terminal of the second inverter circuit 40b is connected to the input terminal of the first inverter circuit 40a.
The node between the data latch circuit 39 and the NMOS transistor Tn1 is connected to the power supply Vcc via a PMOS transistor Tp1. A test activation signal TESTM is provided to the gate of the PMOS transistor Tp1 so that the transistor Tp1 is controlled by the test activation signal TESTM.
In the test register 16, the PMOS transistor Tp1 is turned off by an H level test activation signal TESTM. When the NMOS transistor Tn1 is turned on by an H level control signal RGT0, write data WDB0 is latched in the data latch circuit 39 via the transistor Tn1. A latch signal from the data latch circuit 39 is provided to the test control circuit 14 as an output signal TRG0 from the test register 16. The output signal TRG0 is a signal of an inverted logic level with respect to the write data WDB0. More specifically, if the write data WDB0 has an L level, the H level output signal TRG0 is output.
If the test activation signal TESTM has an L level, the PMOS transistor Tp1 is turned on and the control signal RGT0 shifts to an L level. This turns off the NMOS transistor Tn1. Therefore, when the test activation signal TESTM has an L level, the input signal to the data latch circuit 39 always has an H level, and the output signal TRG0 output from the data latch circuit 39 shifts to an L level.
As shown in
A signal TRGB0 obtained by inverting the signal TRG0 with an inverter circuit 45 is provided to one of the input terminals of a second NAND circuit 44, and the signal TRG1 is provided to the other one of the input terminals of the second NAND circuit 44. An output signal of the second NAND circuit 44 is output from the test mode selection circuit 41 via an inverter circuit 46 as the test mode select signal TAC.
Further, the signal TRG0 is provided to one of the input terminals of a third NAND circuit 47, and a signal TRGB1 obtained by inverting the signal TRG1 with an inverter circuit 48 is provided to the other one of the input terminals of the third NAND circuit 47. An output signal of the third NAND circuit is output from the test mode selection circuit 41 via an inverter circuit 49 as the test mode select signal TMRW.
Accordingly, if the signals TRG0 and TRG1 have an H level, the test mode select signal TWLL shifts to an H level and the other select signals TAC and TMRW shift to an L level. If the signal TRG0 has an L level and the signal TRG1 has an H level, the test mode select signal TAC shifts to an H level and the other select signals TWLL and TMRW shifts to an L level. Further, if the signal TRG0 has an H level and the signal TRG1 has an L level, the test mode select signal TMRW shifts to an H level and the other select signals TWLL and TAC shift to an L level.
As shown in
Accordingly, if the test mode select signal TAC has an H level, the transfer gate 60 is turned on (the analog switch 51 is turned on). Thus, a signal in a data bus RDB (value of current flowing through the data bus) is output to the outside of the macro memory 11 as an output signal RANAOUT. Thus, a test is conducted to measure the current flowing through the memory cells.
The other analog switches 52 through 54 have the same circuit configuration as the analog switch 51 shown in
If the test mode select signal TWLL has an H level, the analog switch 53 is turned on. This outputs an oscillation signal OSC of an oscillator in the internal circuit 13 from the macro memory 11 as an output signal RANAOUT.
A control signal for turning the analog switch 54 on is generated by a NOR circuit 56, a NAND circuit 57, and an inverter circuit 58. More specifically, the test mode select signals TAC, TMRW, and TWLL are provided to the first to third input terminals of the NOR circuit 56, respectively. An output signal of the NOR circuit 56 is provided to a first input terminal of the NAND circuit 57, while a test activation signal TESTM is provided to a second input terminal of the NAND circuit 57. An output signal of the NAND circuit 57 is inverted via the inverter circuit 58 and provided as a control signal for the analog switch 54.
Accordingly, if all the test mode select signals TAC, TMRW, and TWLL have an L level and the test activation signal TESTM has an H level, the analog switch 54 is turned on. This outputs a reference current ISREF flowing to a sense amplifier in the internal circuit 13 from the macro memory 11 as an output signal RANAOUT.
In the macro I/O selector 17, the test activation signal TESTM is provided to the gates of NMOS transistors Tn11 and Tn12 via an inverter circuit 59. If the test activation signal TESTM has an L level, the transistor Tn11 is turned on to set the input signal RANAIN to the ground level, and the transistor Tn12 is turned on to set the output signal RANAOUT to the ground level.
A test method for the macro memory 11 includes the following first to third steps.
In the first step, a test apparatus, which is not shown in the drawings, provides a high-voltage test entry signal RTE to the test entry terminal 20. The test entry signal RTE is provided to the test control circuit 14 in the macro memory 11. When detecting an input of the high-voltage test entry signal RTE at the test entry detection circuit 31, the test control circuit 14 provides a test activation signal TESTM to the test code write circuit 15 and the test register 16. The test activation signal TESTM enables writing of a test code to the test register 16.
In the second step, the test code is written to the test register 16 by the write operation of the read/write operation control circuit 12. In this state, the test register 16, to which the test code is to be written, is designated based on an address included in the input signal from the logic section, and the data included in the input signal is stored in the test register 16 as the test code.
In the third step, the output signals TRG0 and TRG1 of the test register 16 are decoded by the test mode selection circuit 41 of the test control circuit 14 to select a test mode. The test control circuit 14 outputs select signals TAC, TMRW, and TWLL according to the selected test mode. Based on these select signals, the macro I/O selectors 17a and 17b select one the plurality of signals. Further, the macro I/O selectors 17a and 17b are connected to the external terminal 22a and 22b by the switches 21a and 21b, respectively to conduct a desired performance test on the macro memory 11.
During testing, the macro memory 11 is accessed when an input signal (address/data/command) is appropriately provided from the logic section. More specifically, a data write command or read command, and an address and data corresponding to the command are provided and a desired internal signal (including read data) is output from the internal circuit 13 via the macro I/O selector 17.
The semiconductor device of the present embodiment has the following advantages.
(1) The test register 16 is arranged in the register area of the macro memory 11, and a test code is written to the test register 16 in the same manner as when accessing other register areas. That is, the interface used for providing the address/data/command to the macro memory 11 from the logic section when writing to the test register 16 is the same as that used for accessing other registers. In this case, the processing time for writing a test code to the test register 16 is short. As a result, the test time for the macro memory 11 is shortened with a simple configuration and enlargement of the circuit area used for conducting the test is prevented.
(2) In the macro memory 11, the test mode selection circuit 41 is provided for decoding the output signals (register signals) TRG0 and TRG1 of the test register 16, and the test mode select signals TMRW, TAC, and TWLL according to the test code of the test register 16 are output from the test mode selection circuit 41. According to such configuration, the logic section does not have to be provided with an additional function of decoding a test command or the like to test the macro memory 11, and no sequence is required due to generation of a new command. More specifically, the need to add a new command for testing is eliminated by using a read command for a test which requires data to be output and by using a write command for a test which requires data to be input.
(3) The macro I/O selectors 17a and 17b are provided to select and output one of a plurality of internal signals based on the test mode select signals TAC, MRW, and TWLL, which are output from the test mode selection circuit 41. The switches 21a, 21b are provided outside of the macro memory 11 to select either a signal from the macro memory 11 or a signal from the logic section. By providing the macro I/O selectors 17a and 17b and the switches 21a and 21b, the input and output of signals required for testing the macro memory 11 via the external terminals 22a and 22b are enabled. The external terminals 22a and 22b are used commonly by the logic section and the macro memory 11. Therefore, the number of external terminals 22 required for testing is prevented from being increased.
(4) The test entry signal RTE has a higher voltage than an operational voltage of the macro memory 11, and when the test entry detection circuit 31 of the macro memory 11 detects that the test entry signal RTE has been provided, the test activation signal TESTM is provided to the test code write circuit 15 and the test register 16. The test activation signal TESTM enables writing of a test code to the test register 16. This ensures prevention of erroneous writing to the test register 16.
It should be apparent to those skilled in the art that the present invention may be embodied in many other specific forms without departing from the spirit or scope of the invention. Particularly, it should be understood that the present invention may be embodied in the following forms.
The test entry detection circuit 31 may be arranged outside of the macro memory 11. In this case, the test activation signal TESTM of the test entry detection circuit 31 is provided to the circuits 15 and 16 of the macro memory 11.
Data stored in the test register 16 may be output directly as a test mode select signal without being decoded bit by bit. However, it is desirable from a practical viewpoint to decode the test code as in the embodiment since several types of test modes can be stored in the test register 16, which is a limited storage area.
The test code may be stored in a nonvolatile memory area. In this case, the test code is held even if the power supply is shut off. Therefore, in a test mode which requires the power supply to be shut-off, the test time is shortened since the test code need not be rewritten.
The present examples and embodiments are to be considered as illustrative and not restrictive, and the invention is not to be limited to the details given herein, but may be modified within the scope and equivalence of the appended claims.
Number | Date | Country | Kind |
---|---|---|---|
2002-370274 | Dec 2002 | JP | national |
This application is a continuation of, and claims priority from International PCT Application No. PCT/JP03/016156, filed on Dec. 17, 2003, the contents being incorporated herein in entirety by reference.
Number | Date | Country | |
---|---|---|---|
Parent | PCT/JP03/16156 | Dec 2003 | US |
Child | 11030129 | Jan 2005 | US |