Devices and methods for multi-channel sampling
10411883 ยท 2019-09-10
Assignee
Inventors
- Martin Pernull (Villach, AT)
- Andreas Kalt (Treffen, AT)
- Gerhard Pichler (Ferndorf, AT)
- Franz Wachter (A-Sattendorf, AT)
- Bernhard Wotruba (Munich, DE)
Cpc classification
International classification
G06F21/00
PHYSICS
Abstract
Devices for sampling a plurality of input signals are provided, wherein a sampling device is controlled to sample the input signals in a random order with additional delays. Other embodiments relate to voltage monitoring systems and corresponding methods.
Claims
1. A device for sampling input signals, the device 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 comprising: a pseudo-random number generator configured to generate one or more random numbers; and a channel mapper configured to map the one or more random numbers generated by the pseudo-random number generator to the plurality of input channels, wherein the sampling controller is configured to control the sampling device to cause the sampling device to sequentially sample input signals from the plurality of input channels with a random channel order and additional delays to provide non-uniform sampling periods between individual samplings, wherein at least one of the random channel order or the additional delays is based on the one or more random numbers generated by the pseudo-random number generator, and wherein the channel mapper is further configured to map at least some of the one or more random numbers to dummy channels causing the additional delays.
2. The device of claim 1, wherein the pseudo-random number generator comprises a linear feedback shift register.
3. The device of claim 1, wherein the channel mapper comprises a lookup table.
4. The device of claim 1, 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 delays being an integer multiple of the clock period.
5. The device of claim 1, wherein the additional delays comprise analog delays with a duration smaller than a clock period of a clock clocking the device.
6. The device of claim 1, wherein the sampling device comprises a comparator, the device 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.
7. The device of claim 1, wherein the sampling controller is configured to control the sampling device at least in part by causing the sampling device to sample in a plurality of successive sequences, wherein a first input channel within each sequence is selected randomly, and wherein each of the remaining input channels of the plurality of input channels other than the first input channel occurs at least once in the sequence.
8. The device of claim 7, wherein the remaining input channels are selected deterministically after the first input channel.
9. The device of claim 1, further comprising a deglitch filter coupled to an output of the sampling device.
10. The device of claim 1, wherein the device comprises a plurality of output channels, wherein every input channel is associated with at least one output channel.
11. The device of claim 1, wherein the sampling controller is configured to start a built-in self-test of the sampling device.
12. The device of claim 1, wherein the additional delays comprise at least one of additive delays or jitter-type delays.
13. A voltage monitoring system comprising: a device for sampling input signals, the device including: 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 comprising: a pseudo-random number generator configured to generate one or more random numbers; and a channel mapper configured to map the one or more random numbers generated by the pseudo-random number generator to the plurality of input channels, wherein the sampling controller is configured to control the sampling device to cause the sampling device to sequentially sample input signals from the plurality of input channels with a random channel order and additional delays to provide non-uniform sampling periods between individual samplings, wherein at least one of the random channel order or the additional delays is based on the one or more random numbers generated by the pseudo-random number generator, wherein the channel mapper is further configured to map at least some of the one or more random numbers to dummy channels causing the additional delays, and wherein the plurality of input channels are associated with a plurality of voltages to be monitored.
14. The voltage monitoring system of claim 13, further comprising a threshold storage configured to provide variable thresholds, wherein the sampling device is configured to compare a respective voltage on the plurality of input channels with a respective threshold stored in the threshold storage.
15. The voltage monitoring system of claim 14, wherein the voltage monitoring system is configured to provide, for each comparison, a first threshold value and a second threshold value to provide hysteresis.
16. The voltage monitoring system of claim 13, wherein the additional delays comprise delays being integer multiples of a clock period of a clock clocking the voltage monitoring system, a sampling period unmodified by the additional delays being an integer multiple of the clock period.
17. The voltage monitoring system of claim 13, wherein the additional delays comprise analog delays with a duration smaller than a clock period of a clock clocking the voltage monitoring system.
18. A method comprising: providing input signals on a plurality of input channels; generating one or more random numbers; mapping the one or more random numbers to the plurality of input channels; sequentially sampling the input signals with a random channel order and additional delays between samplings to provide non-uniform sampling periods, wherein at least one of the random channel order or the additional delays is based on the one or more random numbers; and outputting the sampled input signals, wherein mapping the one or more random numbers to the plurality of input channels comprises mapping at least some of the one or more random numbers to dummy channels causing the additional delays.
19. The method of claim 18, wherein sequentially sampling the input signals with the random channel order comprises repeatedly selecting a first channel of the plurality of input channels randomly for sampling, and then selecting remaining channels of the plurality of input channels other than the first channel for sampling.
20. The method of claim 18, wherein mapping the one or more random numbers to the plurality of input channels is based on a lookup table.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1)
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)
(11)
(12)
(13)
(14)
(15)
(16)
DETAILED DESCRIPTION
(17) 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.
(18) 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.
(19) 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.
(20) 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.
(21) 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.
(22) 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).
(23) Turning now to the figures,
(24) Sampling device 10 in the embodiment of
(25) To control selection of a respective channel 13 for sampling, in the embodiment of
(26)
(27) 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
(28) 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
(29) In
(30) The sampling controller of
(31) 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
(32) For channels 41 corresponding to actual channels (e.g. 13.1 to 13.N in
(33) 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
(34)
(35) M registers of the linear feedback shift register 54 are tapped to obtain values x.sub.1, x.sub.2, . . . , x.sub.m, 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 2.sup.L1. Therefore, a desired periodicity of the random number sequence may be selected by selecting a length of the linear feedback shift register 54 accordingly.
(36) 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 x.sub.1 to x.sub.m is obtained. In an output filter 50, the channel mapping explained with reference to
(37) Furthermore, more than one output state of the random number generator may be mapped to one channel. This is shown as an example in
(38)
(39) The three least significant bits of the linear feedback shift register were used corresponding to eight different output states (2.sup.3=8). An example for thus generated random output states is shown in a part 60 of
(40) A part 61 in
(41) In the example of
(42) 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
(43)
(44)
(45) 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.
(46)
(47)
(48) Therefore, aliasing may be reduced or mitigated, as the effective sampling frequency is now higher by a factor M. In
(49)
(50) 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
(51) 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
(52)
(53) 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
f.sub.s.fwdarw.(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 t.sub.clk the Nyquist frequency (f.sub.s/2) may be further increased.
(54) In the example sampling approaches of
(55)
(56) In the sampling approach of
(57) 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
(58) 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.
(59) Also with the sampling scheme of
(60)
(61) The controller of
(62) The start channel is then output as channel number to be sampled via latch 204.
(63) 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
(64) 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.
(65) As already mentioned with respect to
(66) 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.
(67) Next, with reference to
(68) In the example of
(69) 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.
(70) 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.
(71) 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.
(72) 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
(73) 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.
(74) 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.
(75) In some embodiments, threshold voltages in a voltage monitoring system may be easier changed without additional verification being necessary.
(76) Furthermore, common used functionality (i.e. a single sampling device) simplifies debugging and represents a base for comparison between different channels.
(77) 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.
(78)
(79) 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
(80) In
(81) 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.
(82) 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
(83) 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).
(84) In the embodiment of
(85) Next, filter 132 will be described in more detail referring to
(86)
(87)
(88) 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
(89) 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.
(90) 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.
(91) 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
(92) According to some embodiments, the following non-limiting examples are provided:
Example 1
(93) A device for sampling input signals, comprising:
(94) a plurality of input channels configured to receive a plurality of input signals,
(95) a sampling device configured to selectively sample an input signal on one of the plurality of input channels, and
(96) 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.
Example 2
(97) 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.
Example 3
(98) The device of example 2, wherein the pseudo-random number generator comprises a linear feedback shift register.
Example 4
(99) 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.
Example 5
(100) The device of example 4, wherein at least some of the pseudo-random numbers are mapped to dummy channels causing the additional delays.
Example 6
(101) The device of any one of examples 4-5, wherein the channel mapper comprises a lookup table.
Example 7
(102) 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.
Example 8
(103) 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.
Example 9
(104) The device of any one of examples 1-8, wherein the sampling device comprises a comparator.
Example 10
(105) 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.
Example 11
(106) 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.
Example 12
(107) The device of example 11, wherein the remaining channels are selected deterministically after the first channel.
Example 13
(108) The device of any one of examples 1-12, wherein the sampling device comprises an analog-to-digital converter.
Example 14
(109) The device of example 13, wherein the analog-to-digital converter comprises a successive approximation register analog-to-digital converter.
Example 15
(110) The device of any one of examples 1-14, further comprising a deglitch filter coupled to an output of the sampling device.
Example 16
(111) 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.
Example 17
(112) 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.
Example 18
(113) The device of any one of examples 1-17, wherein the additional delays comprise at least one of additive delays or jitter-type delays.
Example 19
(114) A voltage monitoring system, comprising:
(115) 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.
Example 20
(116) 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.
Example 21
(117) The system of example 20, wherein for each comparison a first threshold value and a second threshold value to provide hysteresis are provided.
Example 22
(118) A method, comprising:
(119) 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
(120) outputting the sampled input signals.
Example 23
(121) 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.
(122) 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.