The present application relates to devices and methods for multi-channel sampling, i.e. for sampling signals on a plurality of channels or inputs.
In some applications, a plurality of signals have to be sampled. Sampling in this respect relates to generating output values in regular or irregular intervals based on an input signal. For example, an analog signal may be digitized by an analog-to-digital converter (ADC) to output digital values (also referred to as samples) at a sampling rate. Also, instead of using an ADC an input signal may be compared to a threshold using a comparator, which results in one of two values (one indicating that the signal value exceeds the threshold and the other indicating that the signal value is below the threshold), thus essentially corresponding to a one-bit ADC.
One application where such a multi-channel sampling may be implemented is a monitoring of a plurality of different supply voltages in a device, e.g. a semiconductor device. For such a monitoring, each of the voltages may e.g. be compared to one or more respective thresholds, and when the respective voltage falls below a respective threshold, this may indicate an undervoltage, or, when the respective voltage is above a respective other threshold, this may indicate an overvoltage, where correct operation of the device may not be guaranteed. For example, such monitoring may be of particular importance in safety critical applications, e.g. automotive applications.
A conventional approach to monitoring a plurality of supply voltages is to provide one or more respective comparators for each of the supply voltages, each comparator having a respective threshold voltage. To test the device in a production test, a slow high-resolution linear ramp on the respective voltage rails for the supply voltages is used to determine a switching threshold hysteresis for each of the comparators. In some situations such comparators may not be accessible from outside the device, which requires additional effort as a unique special path for testing purposes may have to be provided.
Providing a plurality of comparators requires a comparatively large amount of circuit area which increases with the number of comparators required. Furthermore, in safety critical functions a second comparator may have to be added for redundancy for each supply voltage, leading to additional area requirements. Also, if testing circuitry is required, this may add to the total area.
One straightforward way to remedy this would be to multiplex all the channels into a single comparator, and also to multiplex corresponding thresholds to the comparator e.g. in a round robin fashion. However, this leads to a plurality of uniformly sampled voltages (voltages serving as an example for input signals). As in any uniformly sampled system the sampling theorem requires that the input signals must be bandlimited to half of the applicable sampling frequency (i.e. to the Nyquist frequency) to prevent aliasing, where essentially higher frequency components are “mirrored” to a baseband.
To prevent aliasing, anti-aliasing filters could be provided for each of the input signals (channels). However, providing such anti-aliasing filters increases the required chip area again. In particular, in case of high-voltage signals in the range of many tens of volts, the anti-aliasing filter needs to be implemented using corresponding high-voltage components. Also, in case an analog-to digital converter is used as a sampling device, the anti-aliasing filter would need to be an active filter so as not to increase the settling or sampling time of the analog-to-digital converter. Such active filters in many cases would not be smaller than a comparator itself, and therefore the total chip area required may even increase.
Instead of comparators as sampling devices also analog-to-digital converters may be used. In some cases, a plurality of comparators having different thresholds could be replaced by a single analog-to-digital converter, e.g. a SAR (Successive Approximation Register) analog-to-digital converter.
Therefore, it is an objective to provide devices and methods allowing multi-channel sampling, i.e. sampling of a plurality of input signals like input voltages, while requiring less chip area than some conventional solutions.
A device as defined in claim 1 is provided. Furthermore, a voltage monitoring system as defined in claim 16 is provided. Also, a method as defined in claim 19 is provided. The dependent claims define further embodiments.
According to an embodiment, a device for sampling input signals is provided, comprising:
a plurality of input channels configured to receive a plurality of input signals,
a sampling device configured to selectively sample an input signal on one of the plurality of input channels, and
a sampling controller, the sampling controller configured to control the sampling device such that the sampling device sequentially samples input signals from the plurality of channels with a random channel order and additional delays to provide non-uniform sampling periods between individual samplings.
According to another embodiment, a voltage monitoring system is provided, comprising:
a device as defined above, wherein the plurality of input channels are associated with a plurality of voltages to be monitored.
According to a further embodiment, a method is provided, comprising:
providing input signals on a plurality of channels, sequentially sampling the input signals with random channel order and additional delays between samplings to provide non-uniform sampling periods, and
outputting the sampled input signals.
In the following, various embodiments will be described referring to the attached drawings. These embodiments serve illustrative purposes only and are not to be construed as limiting. For example, a description or representation of an embodiment comprising a plurality of features or elements does not indicate that all these features or elements are necessary for implementing embodiments. Instead, in other embodiments, some of the described features or elements may be omitted, and/or may be replaced by alternative features or elements. Furthermore, additional features or elements apart from the ones explicitly described or shown may be present, e.g. features or elements conventionally used in sampling devices and/or in voltage monitoring systems. Modifications or variations described with respect to one of the embodiments may also be applicable to other embodiments unless noted otherwise. Features from different embodiments may be combined unless noted otherwise.
Any direct connection or coupling as shown in the drawings or described herein, i.e. any connection or coupling without intervening elements, may be replaced by an indirect connection or coupling, i.e. a connection or coupling comprising one or more intervening elements, and vice versa, as long as the general function of the connection or coupling, e.g. to transmit a certain kind of signal, to transmit a certain kind of information or to perform a certain kind of control, is essentially maintained. Connections or couplings may be wire-based connections or couplings or also wireless connections or couplings unless noted otherwise. Elements shown in the drawings of embodiments or devices may be implemented on a single chip in some embodiments, but may also be provided on two or more chips, and/or some components may be provided as discrete elements apart from integrated chips.
Some embodiments relate to sampling. Sampling as used herein may relate to generating output values based on an input signal in regular or irregular intervals. The output values may e.g. be generated using an analog-to-digital converter or a comparator.
Multi-channel sampling relates to sampling of a plurality of different input signals. The plurality of different input signals may e.g. be voltages to be monitored in a semiconductor device or system. In some embodiments, a single sampling device is used for sampling the plurality of input signals in an alternating fashion. In embodiments, switching between the input signals for sampling may be performed in a random order, and in irregular intervals. In this way, in some embodiments aliasing may be prevented or reduced.
“Random” as used herein also includes pseudo-random approaches, wherein e.g. random numbers or the like may be generated by a deterministic circuit such that the result appears to be random. Furthermore, the term random also includes approaches where some elements are random and other elements are determined in a deterministic manner based on the random elements.
A delay as used herein may be an additive delay or may be a jitter-type delay. An additive delay delays a current event (e.g. sampling) and following events (e.g. samplings), whereas a jitter-type delay delays only a current event (e.g. sampling).
Turning now to the figures,
Sampling device 10 in the embodiment of
To control selection of a respective channel 13 for sampling, in the embodiment of
At 20, the method comprises providing input signals on a plurality of channels. For example, a plurality of voltages associated with different voltage rails in a system may be provided. In an implementation, the signals may be provided on channels 13 in
At 21, the input signals are sequentially sampled with a random channel order and additional delays, which leads to a random change between samples and irregular intervals between samplings, as explained with reference to
In
The sampling controller of
The random number generated by pseudo-random number generator 30 may e.g. be a M-bit value. The random number is fed to a channel mapping 31, which may e.g. be an M-to-L-bit lookup table, where the random number is mapped to C channels, C in embodiments being an integer number exceeding the actual number of channels (e.g. N in
For channels 41 corresponding to actual channels (e.g. 13.1 to 13.N in
Therefore, an increase in sampling time granularity may be obtained without extra effort merely by providing more states of a random number simply by introducing at least one dummy channel. The channel mapping of
M registers of the linear feedback shift register 54 are tapped to obtain values x1, x2, . . . , xm, each having a value of 1 or 0 and therefore forming a M-bit value. If M<P, the M-bit values still have a periodicity of 2L−1. Therefore, a desired periodicity of the random number sequence may be selected by selecting a length of the linear feedback shift register 54 accordingly.
At every update of the LSFR, e.g. at every clock cycle or a multiple thereof, by tapping M nodes or registers of the linear feedback shift register 54, a M-bit value with bits x1 to xm is obtained. In an output filter 50, the channel mapping explained with reference to
Furthermore, more than one output state of the random number generator may be mapped to one channel. This is shown as an example in
The three least significant bits of the linear feedback shift register were used corresponding to eight different output states (23=8). An example for thus generated random output states is shown in a part 60 of
A part 61 in
In the example of
The effect of the sampling control according to embodiments as described above, e.g. of random changing or switching between the channels and/or of introducing additional additive or jitter-type delays such that the sampling is performed in irregular intervals, will be explained in some more details referring to
This effective sampling frequency is relevant for aliasing, i.e. in case the sampled input signal has frequency components higher than half the sampling frequency, this may lead to aliasing.
Therefore, aliasing may be reduced or mitigated, as the effective sampling frequency is now higher by a factor M. In
In real life circuits, the bandwidth of input signals may already be limited to below half the clock frequency (i.e. the Nyquist frequency in case of
In case a higher effective sampling frequency is needed, in some embodiments random additive or jitter-type analog delays with a granularity of a fraction of a clock period may be introduced. If these delays have a time granularity of Δt*, then the effective sampling frequency increases to
In some embodiments, the analog delay may not be discrete, but a continuous time random variable. An example for additional uniform jitter-type delays with a maximum length of a clock period is shown in
fs→∞ (5)
as the granularity of a continuous time variable in the ideal case is 0. Therefore, with an additional analog delay of fractions of a clock period tclk the Nyquist frequency (fs/2) may be further increased.
In the example sampling approaches of
In the sampling approach of
The remaining channels (other than the first-sampled one) then follow in each sequence in some order which may be determined in a deterministic manner, for example by increasing the channel number from the starting channel modulo the number of channels (modulo 4 in
Instead of a deterministic selection of the remaining channels, also here a random selection from the respective remaining channels may be used in other embodiments. For example, for sequence s1 c0 is randomly selected as first channel to be sampled, the next channel the could be randomly selected from c1, c2, c3 (the remaining channels), the next then from the remaining two channels, and the last as the still remaining channel. In any case, in this way the channel order is still random as the starting channel for each sequence is random, but it is ensured that within each sequence each channel is sampled.
Also with the sampling scheme of
The controller of
The start channel is then output as channel number to be sampled via latch 204.
After the start channel has been sampled, via a calculation 203 the channel number is increased by 1 mod M, M being the number of channels, to then let the other channels follow consecutively within each sequence after the start channel, as illustrated in
A signal update counts the sequences, that after a sequence is finished the next sequence starts with a new randomly chosen channel to be sampled and possibly a new delay.
As already mentioned with respect to
In some embodiments, using this scheme as described above, pseudorandom number generator may have a very long period or even be actually random, thus resulting in a random channel order, while still guaranteeing that each channel is to be sampled one within a given time frame, for example each sequence.
Next, with reference to
In the example of
In other words, in some embodiments to fully benefit from the increased effective sampling frequency of equations (2) to (5), it must be insured that a sufficiently high number of samples is used.
With the random sampling schemes discussed above, with a single sampling device (e.g. a single comparator or a single analog-to-digital converter (ADC)) a plurality of channels may be sampled, while aliasing may be reduced or avoided.
This may provide various advantages in some embodiments. For example, in some embodiments an integration process with other components may be easier, e.g. as regards interfacing, as less interfaces may be needed and/or input-output-structures are bundled and hierarchies well defined.
Furthermore, in some embodiments, the chip area may be reduced in particular when a larger plurality of channels is to be sampled. This is shown schematically in
Furthermore, in some embodiments using techniques described above may make maintenance and circuit design easier. In circuit design, often various iterations with the goal of reaching a constant improvement of the design have to be made. A high number of circuit elements may result in a high effort in this process. With providing common circuitry, e.g. a single sampling device, this effort may be reduced.
Also, in some embodiments testing may be made easier. A centralized sampling device, e.g. analog-to-digital converter, may be equipped with a built-in self-test feature (BIST), which enables a significant increase of test coverage and savings in test times compared to an approach where a plurality of individual sampling devices has to be tested and provided with test circuitry. Furthermore, regarding functional safety related topics a benefit may be obtained. A BIST-mechanism as described above may also be performed during chip start-up and/or in regular or irregular intervals in a running system. For example, a voltage monitoring system employing techniques as described above may be used as an independent observer of over- and/or under-voltage conditions, such a self-test approach allows preventing latent faults. With a single sampling device, such self-test schemes are significantly easier to implement compared to approaches using a plurality of sampling devices.
In some embodiments, threshold voltages in a voltage monitoring system may be easier changed without additional verification being necessary.
Furthermore, common used functionality (i.e. a single sampling device) simplifies debugging and represents a base for comparison between different channels.
Next, an application of a sampling controller as described above in a voltage monitoring system will be described in more detail. It is to be understood that the voltage monitoring system described in the following serves merely as an application example of the sampling controller described above, and the sampling controllers and techniques described above may be applied in all cases where a plurality of input signals on a plurality of channels need to be sampled.
Analog-to-digital converter 131 may e.g. be a successive approximation register (SAR) analog-to-digital converter or any other suitable kind of analog-to-digital converter. Analog-to-digital converter 131 in the embodiment of
In
In other embodiments, other types of analog-to-digital converters than SAR analog-to-digital converters may be used. If the result of a comparison is needed, however, SAR analog-to-digital converters may be most efficient in terms of speed and area requirements. With other types of analog-to-digital converters, an additional comparator may be needed to compare an output result of the analog-to-digital converter with a desired threshold value.
Controller 135 controls sampling of input signals on input channels 130 via the ADC control channel and a signal channel_nr. For example, a signal via the ADC control channel may e.g. close a switch to connect one of channels 130 with analog-to-digital converter 131. Another signal may cause the switch to open again and cause conversion of the thus sampled value. Channel_nr selects the switch to be closed, i.e. which channel is to be sampled. The control may be as explained with reference to
Signal signal_nr may essentially correspond to channel_nr and controls selection of the respective threshold and selection of a respective output channel of a filter 132 comprising a multiplexer and outputting output signals corresponding to the input signals on input channels 130 via a respective output channel 136. Filter 132 may comprise a deglitch filter (an example will be described later).
In the embodiment of
Next, filter 132 will be described in more detail referring to
As already explained, controller 135 may be implemented as explained above to perform a random scheduling. There are various possibilities how the generated signals (as explained e.g. with reference to
In another approach, controller 135 selects a channel, samples it via analog-to-digital converter 131 and the conversions are performed successively for all output channels 136 associated with the input channel (e.g., for one input channel two comparisons with different thresholds may be performed, one to detect possible overvoltage and one to detect possible undervoltage). In this approach, the time required for sampling needs only to be spent once per input channel and not once per output signals. The order in which the comparison with the threshold values is performed may be arbitrary as the sampled voltage is held internally in analog-to-digital converter 131. The following approach is in particular advantageous if many conversions with different thresholds must be performed on a channel, in particular if they take longer than a full conversion to an M-bit value. In this case, a full conversion to an N-bit value may be actually performed, followed by digital comparisons in the digital domain on the basis of the full resolution conversion result. For an ideal N-bit successive approximation register ADC more than N outputs associated with one channel would be required to make the full conversion faster for this channel.
Using a pseudo-random generator as explained previously may be used to ensure that sufficient samples are sampled during a time within which the voltage monitoring system needs to react. For example, for safety applications a voltage monitoring system needs to react within a defined time frame. With real random numbers, a particular channel may not be sampled for a long time. The probability for a channel not to be sampled goes exponentially towards 0 with time, but it cannot be guaranteed that a channel is actually sampled within the given period. A pseudo-random number generator generates a deterministic sequence which approximates a random sequence. When, as in the embodiment with a linear feedback shift register as described above, such a pseudo-random generator is used, the deterministic nature enables to guarantee timing and anti-aliasing properties not only on average, but also for the worst case.
Instead of an analog-to-digital converter, in particular an SAR ADC, also other sampling components may be used, e.g. comparators with varying threshold. A corresponding example embodiment is illustrated in
According to some embodiments, the following non-limiting examples are provided:
A device for sampling input signals, comprising:
a plurality of input channels configured to receive a plurality of input signals,
a sampling device configured to selectively sample an input signal on one of the plurality of input channels, and
a sampling controller, the sampling controller configured to control the sampling device such that the sampling device sequentially samples input signals from the plurality of channels with a random channel order and additional delays to provide non-uniform sampling periods between individual samplings.
The device of example 1, wherein the sampling controller comprises a pseudo-random number generator, wherein the random channel order and/or the additional delays are based on random numbers generated by the pseudo-random number generator.
The device of example 2, wherein the pseudo-random number generator comprises a linear feedback shift register.
The device of example 2 or 3, wherein the sampling controller comprises a channel mapper configured to map the random number generated by the pseudo-random number generator to the plurality of input channels.
The device of example 4, wherein at least some of the pseudo-random numbers are mapped to dummy channels causing the additional delays.
The device of any one of examples 4-5, wherein the channel mapper comprises a lookup table.
The device of any one of examples 1-5, wherein the additional delays comprise delays being integer multiples of a clock period of a clock clocking the device, a sampling period unmodified by the additional delay being an integer multiple of the clock period.
The device of any one of examples 1-7, wherein the additional delays comprise analog delays with a duration smaller than a clock period of a clock clocking the device.
The device of any one of examples 1-8, wherein the sampling device comprises a comparator.
The device of example 9, further comprising a plurality of threshold value sources, the plurality of threshold value sources being selectively coupleable to the comparator based on a signal from the sampling controller.
The device of any one of examples 1-10, wherein the sampling controller is configured to control the sampling such that the sampling occurs in a plurality of successive sequences, wherein a first channel within each sequence is selected randomly, and wherein each of the plurality of channels other than the first channel occurs at least once in the sequence.
The device of example 11, wherein the remaining channels are selected deterministically after the first channel.
The device of any one of examples 1-12, wherein the sampling device comprises an analog-to-digital converter.
The device of example 13, wherein the analog-to-digital converter comprises a successive approximation register analog-to-digital converter.
The device of any one of examples 1-14, further comprising a deglitch filter coupled to an output of the sampling device.
The device of any one of examples 1-15, wherein the device comprises a plurality of output channels, wherein every input channel is associated with at least one output channel.
The device of any one of examples 1-16, wherein the sampling controller is configured to start a built-in self-test of the sampling device.
The device of any one of examples 1-17, wherein the additional delays comprise at least one of additive delays or jitter-type delays.
A voltage monitoring system, comprising:
a device as defined in any one of examples 1-18, wherein the plurality of input channels are associated with a plurality of voltages to be monitored.
The system of example 19, further comprising a threshold storage to provide variable thresholds, wherein the sampling device is configured to compare voltages on the plurality of input channels with respective threshold stored in the threshold storage.
The system of example 20, wherein for each comparison a first threshold value and a second threshold value to provide hysteresis are provided.
A method, comprising:
providing input signals on a plurality of channels, sequentially sampling the input signals with random channel order and additional delays between samplings to provide non-uniform sampling periods, and
outputting the sampled input signals.
The method of example 22, wherein sequentially sampling the input signal with random channel order comprises repeatedly selecting a first channel of the plurality of channels randomly for sampling, and then selecting the remaining channels of the plurality of channels other than the first channel for sampling.
As can be seen from the above explanations, a plurality of modifications and variations are possible. Therefore, the embodiments described above are not to be construed as limiting in any way.
Number | Date | Country | Kind |
---|---|---|---|
10 2015 118 247 | Oct 2015 | DE | national |
10 2016 119 750 | Oct 2016 | DE | national |
Number | Name | Date | Kind |
---|---|---|---|
4726019 | Adelmann | Feb 1988 | A |
5999561 | Naden | Dec 1999 | A |
6069915 | Hulbert | May 2000 | A |
6188294 | Ryan | Feb 2001 | B1 |
6324558 | Wilber | Nov 2001 | B1 |
6792542 | Lee | Sep 2004 | B1 |
7015853 | Wolff | Mar 2006 | B1 |
7046183 | Bilinskis | May 2006 | B2 |
7136593 | Yano | Nov 2006 | B1 |
7424275 | Somayajula | Sep 2008 | B2 |
7949883 | Shu | May 2011 | B2 |
8149956 | Su | Apr 2012 | B1 |
8396119 | Linzer | Mar 2013 | B1 |
8418203 | Nishio | Apr 2013 | B1 |
9000809 | Bogner et al. | Apr 2015 | B2 |
9391607 | Joharapurkar | Jul 2016 | B2 |
9450597 | Ahmed | Sep 2016 | B1 |
9710231 | Youn | Jul 2017 | B2 |
20010014944 | Ibi | Aug 2001 | A1 |
20020029345 | Kawasaki | Mar 2002 | A1 |
20020048332 | Ouvry | Apr 2002 | A1 |
20020069387 | Hapke | Jun 2002 | A1 |
20030006849 | Janssen | Jan 2003 | A1 |
20030018608 | Rice | Jan 2003 | A1 |
20030069717 | Havelock | Apr 2003 | A1 |
20030080887 | Havelock | May 2003 | A1 |
20030081780 | Kim | May 2003 | A1 |
20030093455 | Messina | May 2003 | A1 |
20030095547 | Schofield | May 2003 | A1 |
20030151713 | Aoki | Aug 2003 | A1 |
20040174274 | Seabury | Sep 2004 | A1 |
20050044083 | Sako | Feb 2005 | A1 |
20050120232 | Hori | Jun 2005 | A1 |
20050125471 | Sturm | Jun 2005 | A1 |
20050249109 | Cleveland | Nov 2005 | A1 |
20050250460 | Cleveland | Nov 2005 | A1 |
20050265274 | Cleveland | Dec 2005 | A1 |
20060069706 | Lazich | Mar 2006 | A1 |
20070025482 | Wells | Feb 2007 | A1 |
20070043798 | Boerstler | Feb 2007 | A1 |
20070291833 | Shimanskiy | Dec 2007 | A1 |
20080094054 | Takeyama | Apr 2008 | A1 |
20080136697 | Cho | Jun 2008 | A1 |
20080172585 | Hurley | Jul 2008 | A1 |
20080215862 | Haga | Sep 2008 | A1 |
20080232343 | Nguyen | Sep 2008 | A1 |
20090012782 | Geiser | Jan 2009 | A1 |
20090016523 | Dupaquis | Jan 2009 | A1 |
20090041229 | Douguet | Feb 2009 | A1 |
20090089347 | Pomet | Apr 2009 | A1 |
20090106339 | Vasyltsov | Apr 2009 | A1 |
20090157782 | Lin | Jun 2009 | A1 |
20090180524 | Wang | Jul 2009 | A1 |
20090184722 | Gunyan | Jul 2009 | A1 |
20100060493 | Chen | Mar 2010 | A1 |
20100201419 | Vasyltsov | Aug 2010 | A1 |
20100211624 | Dichtl | Aug 2010 | A1 |
20100309957 | Chester | Dec 2010 | A1 |
20100316090 | Chester | Dec 2010 | A1 |
20110066580 | Tsai | Mar 2011 | A1 |
20110075840 | Zayas | Mar 2011 | A1 |
20110099005 | Zhang | Apr 2011 | A1 |
20110131264 | Hars | Jun 2011 | A1 |
20110134906 | Garudadri | Jun 2011 | A1 |
20110261008 | Joharapurkar | Oct 2011 | A1 |
20110302232 | Vasyltsov | Dec 2011 | A1 |
20120026901 | Gao | Feb 2012 | A1 |
20120045053 | Qi | Feb 2012 | A1 |
20120075134 | Rogers | Mar 2012 | A1 |
20130013657 | Emelko | Jan 2013 | A1 |
20130111204 | Gunnam | May 2013 | A1 |
20140059100 | Liberty | Feb 2014 | A1 |
20140091955 | Cowley | Apr 2014 | A1 |
20140114191 | Sankar | Apr 2014 | A1 |
20140143883 | Shen-Orr | May 2014 | A1 |
20140152478 | Lewis | Jun 2014 | A1 |
20140203854 | Jung | Jul 2014 | A1 |
20150115816 | Bradford | Apr 2015 | A1 |
20160147505 | Lee | May 2016 | A1 |
20160202953 | Chen | Jul 2016 | A1 |
20160291935 | Straeussnigg | Oct 2016 | A1 |
20160352509 | Wu | Dec 2016 | A1 |
20170118012 | Pernull | Apr 2017 | A1 |
20170262259 | Reulet | Sep 2017 | A1 |
20170317963 | Gupta | Nov 2017 | A1 |
20180114003 | Uenishi | Apr 2018 | A1 |
20180121369 | Poeppelmann | May 2018 | A1 |
Number | Date | Country |
---|---|---|
2017005748 | Jan 2017 | WO |
Entry |
---|
Bilinskis, “Digital Alias-free Signal Processing,” Mar. 6, 2007, 429 pp. [uploaded in 10 parts]. |
Number | Date | Country | |
---|---|---|---|
20170118012 A1 | Apr 2017 | US |