This application claims priority under 35 U.S.C. §119 on Patent Application No. 2006-184275 filed in Japan on Jul. 4, 2006, the entire contents of which are hereby incorporated by reference.
The present invention relates to a semiconductor device for testing an analog to digital (A/D) conversion circuit.
In recent years, a semiconductor device called a system-on-a-chip has increasingly become the mainstream. In this type of device, an A/D conversion circuit, a digital circuit for performing processing based on the A/D conversion results and the like, for example, are placed on one chip. Some of such semiconductor devices include a mode switch circuit therein for enabling testing of only the A/D conversion circuit, among circuits in the device, so that the A/D conversion results can be directly outputted outside.
However, if the influence of noise caused by electromagnetic waves originating from a testing device (LSI tester), a substrate for testing and surrounding facilities becomes great during the testing, the A/D conversion accuracy may degrade, resulting in failure to perform appropriate testing. Moreover, recently, in response to requests for higher-performance A/D conversion circuits, a larger number of bits have been used in the A/D conversion circuits, and thus the voltage resolution required during testing has been increasingly enhanced giving smaller voltages. For this reason, noise of minute voltages that would have conventionally caused no problem has become a major cause for reducing the A/D conversion accuracy.
To address the above problem, the following technology has been proposed. That is, a data storage means is provided for storing the latest m values (m is an integer equal to or more than 3) outputted from an A/D conversion circuit. Every time a value stored in the data storage means is updated, the values in the data storage means are sorted in descending order to detect a value in a specific ordinal rank or subjected to smoothing processing for smoothing a variation, to thereby remove noise (see Japanese Laid-Open Patent Publication No. 2005-167972).
However, the noise removal technology described above has the following problems. The data storage means for storing all of the latest m values temporarily is required, and moreover processing must be made every time a value in the data storage means is updated. In particular, as the number of values stored in the data storage means is greater, the circuit scale is greater and the circuit operation speed must be higher.
An object of the present invention is minimizing the circuit scale of a circuit for testing an A/D conversion circuit.
The semiconductor device of the present invention includes: an A/D conversion circuit for A/D-converting an analog input signal and outputting a resultant conversion result; and a computation circuit for performing, in synchronization with the A/D conversion circuit, computation for an updated conversion result without storing the updated conversion result every time the conversion result from the A/D conversion circuit is updated, to determine one computation result from a plurality of conversion results from the A/D conversion circuit and output the computation result.
With the above configuration, since the conversion results from the A/D conversion circuit are not stored every time the conversion result is updated, the circuit scale can be suppressed, and yet the computation result can be obtained based on a plurality of conversion results. The circuit scale does not change so largely with increase in the number of A/D conversion results used for computation. Thus, the computation can be made based on a larger number of A/D conversion results, and this can suppress the influence of noise.
According to the present invention, a noise component affecting the A/D conversion result can be removed while the circuit scale is suppressed. It is therefore easily possible to test the A/D conversion circuit correctly.
Hereinafter, preferred embodiments of the present invention will be described with reference to the accompanying drawings.
The A/D conversion circuit 11 A/D-converts an analog input signal AIN every clock cycle of a clock signal CLK supplied and outputs the result (A/D conversion result) to the digital processing circuit 12 and the computation circuit 14 as a digital signal DV. The clock signal CLK, the analog input signal AIN and a computation control signal CNT may be signals received from outside the semiconductor device of
The digital processing circuit 12, which may be a logic circuit, for example, performs predetermined processing using the A/D conversion result from the A/D conversion circuit 11, and outputs the processed result to the selector 13.
The computation circuit 14 performs computation for the A/D conversion result and outputs the computed result to the selector 13. The computation circuit 14 operates in synchronization with the A/D conversion circuit 11 according to the clock signal CLK. Resetting of a memory in the computation circuit 14 and start/stop of computation of the computation circuit 14 are controlled with the computation control signal CNT.
During normal operation, the selector 13 selects the output of the digital processing circuit 12 according to a selection signal SEL and outputs the selected one. In this case, the processed result from the digital processing circuit 12 is outputted outside the semiconductor device via an external output terminal 18.
During testing of the semiconductor device, the selector 13 selects the output of the computation circuit 14 according to the selection signal SEL and outputs the selected one. During this time, a predetermined voltage is supplied from outside the semiconductor device, for example, as the analog input signal AIN. The computation result from the computation circuit 14 is outputted outside the semiconductor device via the external output terminal 18. The conversion result can therefore be verified with a testing device (not shown) connected to this terminal. In this way, the external output terminal 18 serves as the output terminal for both normal operation and testing.
The adder 22 in
Assume that the digital signal DV as the A/D conversion result from the AID conversion circuit 11 represents a value of k bits (k is a natural number). When m=2n (n is a natural number), the output of the adder 22 can be represented by (k+n) bits. Thus, (k+n) bits are enough as the capacity of the memory 24.
The memory 24 outputs the k most significant bits of the stored value to the selector 13. In other words, the memory 24 outputs the average value obtained by dividing the accumulated m A/D conversion results by m=2n as the computation result. For example, suppose the A/D conversion result from the A/D conversion circuit 11 is a value of 10 bits and the average value of 128 A/D conversion results is to be calculated. Since k=10, m=128 and n=7 in this case, the capacity required for the memory 24 is 17 bits. If 128 values are simply stored and then averaged, a memory capable of storing k×m=1280 bits will be necessary. The circuit of
The circuit of
The memory 24 may be configured to output all bits ((k+n) bits) of the value stored. In this case, the computation circuit 14 outputs the sum of m A/D conversion results as the computation result. The noise contained in the computation result is relatively smaller than that in the respective A/D conversion results, and thus a noise removal effect can be obtained.
The computation circuit 14 may further include a circuit for dividing the sum of m A/D conversion results by m.
Thus, the circuit shown in
The signal generator 15 generates an analog input signal AIN and a clock signal CLK and outputs the generated signals to the A/D conversion circuit 11. The analog input signal AIN is similar to that described in Embodiment 1 and can be a signal as shown in
Also, the signal generator 15 generates the clock signal CLK and a computation control signal CNT and outputs the generated signals to the computation circuit 14. The computation circuit 14 is similar to that described in Embodiment 1 and thus detailed description thereof is omitted here. The computation circuit 14 outputs the computation result to the signal reader 16. The signal reader 16 performs analysis of the computation result, including verification that the conversion result falls within a predetermined range, for example.
Alternatively, for direct testing of the value outputted from the semiconductor device 2, the testing device 4 may be provided with a circuit permitting the digital output signal DV to be directly given to the signal reader 16 bypassing the computation circuit 14.
In the step S28, the initial value memory 31 stores the first AID conversion result therein as an initial value IV, and the process returns to the step S12. In the step S16, the subtractor 32 subtracts the initial value IV from the new A/D conversion result and outputs the resultant difference to the difference value distribution circuit 33.
In step S18, the difference value distribution circuit 33 increments the value of the counter corresponding to the received difference value by one. In step S20, whether or not a defined number of A/D conversion results have been taken into the computation circuit 30 is determined. If yes, the process proceeds to step S22. If no, the process returns to the step S12.
In step S22, the difference detection circuit 36 determines the value of the difference in a predetermined ordinal number, among the obtained differences, as a representative value RV, and outputs the resultant value to the adder 37. For example, the difference detection circuit 36 determines the value of the difference located in the middle among the obtained differences when they are sorted in descending order, as a representative value RV. In the case of
In step S24, the adder 37 adds the representative value RV to the initial value IV and outputs the result as the computation result. For example, if the initial value IV is “8”, the computation result will be “9” in the case of
The computation circuit 30 in
For example, assuming that the A/D conversion result from the A/D conversion circuit 11 is of 10 (=k) bits and one A/D conversion result from 128 values is determined as the computation result, for example, the greatest count value of each counter is 128=27. The capacity required for each counter is therefore 7 (=n). If the range of the difference values is from −16 to +16 (j=16), the number of counters in the counter section 34 is 33. The capacity of the counter section 34 is therefore n×(2j+1)=7×33=231 bits.
Additionally, a capacity of 10 bits is necessary for the initial value memory. If 128 values are simply stored and then one A/D conversion result is determined in a similar manner, a memory capable of storing k×m=1280 bits will be necessary. The circuit of
As described above, in the computation circuit 30 of
Alternatively, in the case of
Also, in the testing device 4 of
As described above, the present invention can provide a highly accurate value as the A/D conversion result while suppressing the circuit scale, and thus is useful as a semiconductor device for testing an A/D conversion circuit and the like.
While the present invention has been described in preferred embodiments, it will be apparent to those skilled in the art that the disclosed invention may be modified in numerous ways and may assume many embodiments other than those specifically set out and described above. Accordingly, it is intended by the appended claims to cover all modifications of the invention which fall within the true spirit and scope of the invention.
Number | Date | Country | Kind |
---|---|---|---|
2006-184275 | Jul 2006 | JP | national |
Number | Name | Date | Kind |
---|---|---|---|
6369857 | Balaban et al. | Apr 2002 | B1 |
6614378 | Miyazaki et al. | Sep 2003 | B2 |
6690311 | Lundin et al. | Feb 2004 | B2 |
6933867 | Honda | Aug 2005 | B2 |
6967603 | Lin | Nov 2005 | B1 |
7009536 | Gaus, Jr. | Mar 2006 | B1 |
20050102334 | Honda | May 2005 | A1 |
Number | Date | Country |
---|---|---|
2005-167972 | Jun 2005 | JP |
Number | Date | Country | |
---|---|---|---|
20080007440 A1 | Jan 2008 | US |