Next Article in Journal
Solution of Fuzzy Differential Equations Using Fuzzy Sumudu Transforms
Previous Article in Journal
Mathematical Modeling of Drag Coefficient Reduction in Circular Cylinder Using Two Passive Controls at Re = 1000
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Logic Operators on Delta-Sigma Bit-Streams

Institut für Regelungstechnik, Technische Universität Braunschweig, 38106 Braunschweig, Germany
Current address: Hans-Sommer-Str. 66, 38106 Braunschweig, Germany.
Math. Comput. Appl. 2018, 23(1), 4; https://doi.org/10.3390/mca23010004
Submission received: 12 December 2017 / Revised: 11 January 2018 / Accepted: 15 January 2018 / Published: 17 January 2018
(This article belongs to the Section Engineering)

Abstract

:
The fundamental logic operations NOT, OR, AND, and XOR processing bit-streams of Δ Σ -modulators are discussed herein. The resulting bit-streams are evaluated on the basis of their mean values and their standard deviations. Mathematical expressions are presented for their mean values; i.e., the logic function XOR results in the negative multiplication of two bipolar bit-streams, and the logic function AND results in the multiplication of two unipolar bit-streams. As the results are valid for bit-streams with independent high-frequency components, the normed cross-product is utilized for evaluation of the independence of the high-frequency components. In order to achieve a high independence between the input bit-streams, representing the same value, the quantization noise is affected. Multiple strategies are examined and Δ Σ -modulators with different designs are chosen as the best-suited solution. The operations are evaluated on a testbench.

1. Introduction

Operations in the delta sigma domain are a broad field of research. Previous publications have utilized complex networks and operations to achieve the desired mathematical operations. The first approaches were made in the 80’s based on logic chips [1,2]. Further mathematical operations were introduced by the publications [3,4]. The described operations are linear or use long filters with more than 100 elements. As the bit-streams are usually binary signals, an investigation of the fundamental logic operations brings up mathematical operations without the need for filtering. The mathematical functions describing the averaged output of the fundamental logic operations NOT, OR, AND, and XOR will be presented in this publication. As these logic operations are dependent of the actual values of the input bit-streams, the high-frequency signal components are investigated. As the considerations are made for bit-streams with independent high-frequency components, the normed cross-product is utilized for evaluation of the independence of the high-frequency components. In order to achieve a high independence between the input bit-streams, if they represent the same value, the local distribution can be influenced by noise shaping. Several strategies are examined to increase the independence of the input bit-streams. The best rated strategy is examined on a testbench.

2. Delta-Sigma Modulators

Signal processing based on bit-streams requires an understanding of the operation of Δ Σ -modulators. In a classical AD-conversion setup an Δ Σ -analog-to-digital converter is comprised of two elements; i.e., the Δ Σ -modulator and a low-pass filter with decimation, as shown in Figure 1. By omitting the low-pass filter and directly operating on the high-frequency (≥10 Mbit/s) bit-stream [5,6,7,8,9], a larger small signal bandwidth is achieved, e.g., in control loops.
The Δ Σ -modulator is composed of one or several integrators and a clocked comparator with feedback loops and gains. The order of the Δ Σ -modulator is specified by the number of implemented integrators; for example, in Figure 1 a first-order Δ Σ -modulator is shown. While first-order Δ Σ -modulators are always stable, for higher-order Δ Σ -modulators the feedback coefficients to individual stages have to be designed carefully to stabilize the feedback loops [10]. Several design methods are known from the literature [11,12]. For the presented evaluation, second-order Δ Σ -modulators are used.
Considered as a closed control loop, the Δ Σ -modulator integrates the control error between the input signal and the output signal. If this integral is greater than zero, it outputs a one, else a zero for the next clock cycle. In conjunction with the feedback loop, this simple control law ensures that the output bit-stream only consists of ones and zeros representing the input signal in average. As the bit-stream can only transport 1 bit information per clock cycle, quantization noise is introduced to the output bit-stream. Due to the internal structure, the Δ Σ -modulator provides noise shaping. As shown in Figure 2, the quantization noise is mainly shifted to the high-frequency signal components. In a classical digital signal processing (DSP) implementation, these are suppressed by a digital low-pass filter. In Δ Σ -signal processing (DSSP), this noise remains in the bit-streams and thereby influences the local distribution of ones and zeros.
The Δ Σ -modulators can be implemented in two ways. In a hardware Δ Σ -modulator, the integrator is an analog circuit and the feedback is a one-bit digital–analog-converter, whereas in a software Δ Σ -modulator the whole modulator is implemented digitally.
In general, there are two ways to map the logical values t r u e and f a l s e , respectively 1 and 0, to normalized signal values: signed and unsigned. In the signed case, the logical 1 is mapped to 1 and the logical 0 is mapped to 1 , whereas in the unsigned case the logical 0 is mapped to 0.

3. Logic Operations

There are four fundamental logic operations, NOT, AND, OR, and XOR, which can be applied on one or two bit-streams [13]. The logic operation NOT has one input (x), and the others require two inputs ( x 1 , x 2 ). All fundamental logic operations have one output (y). The truth tables are shown in Table 1, Table 2, Table 3 and Table 4.

4. Statistical Analysis

Statistical analysis is applied in order to evaluate which mathematical functions are executed on the average value of bit-streams if fundamental logic operations are applied. The greatest difficulty for operations on Δ Σ -bit-streams is that no meaningful instantaneous value can be attributed to Δ Σ -bit-streams. As a substitute for the missing instantaneous value, many operations are designed on the average value over N samples, as this represents the actual value. The probability of ones in these samples is p 1 | 2 , where the index 1 | 2 stands for either 1 or 2. For logical analysis, the expected number of ones ( o 1 | 2 = p 1 | 2 · N ) is an integer value, resulting in an integer value of zeros ( z 1 | 2 = ( 1 p 1 | 2 ) · N ). With rising sample size, the discretization step size of the probabilities decreases towards zero.
A statistical distribution of the positions of ones in the input bit-streams is assumed for the operations with two input bit-streams. This leads to the urn problem of type “drawing without replacement” for calculating the probability of ones in the output bit-stream [14].

4.1. NOT

The NOT operator inverts the bit-stream, leading to the probability p y = 1 p 1 . This is equivalent to a multiplication with −1 for bipolar inputs, as stated in [15]. Due to the fact that this connection is already known from the literature, the logical function NOT is not investigated any further.

4.2. OR

For the operation OR, each one in the first input bit-stream ( x 1 ) and each one in the second input bit-stream ( x 2 ) at the position of a zero in x 1 will lead to a one in the output bit-stream (y). Thus, the probability of ones in the output bit-stream is at least the probability of ones in the first input bit-stream. This can be written as
p O R 1 = o 1 N = p 1 .
The distribution of ones in the output bit-stream is derived by the additional ones in the bit-stream, caused by x 2 , which have to be described. As the output bit-stream already consists of the ones of the first bit-stream, only the zeros of the first bit-stream can be conditionally converted to ones.
The number of combinatorial possibilities for a zero in the first bit-stream is given by
p O R 2 = ( N z 1 ) ! N ! = ( p 1 · N ) ! N ! .
The possibilities to obtain t ones from the second input bit-stream in the place of zeros from the first input bit-stream are
p O R 3 ( t ) = z 1 ! t ! · ( z 1 t ) ! = ( ( 1 p 1 ) · N ) ! t ! · ( ( 1 p 1 ) · N t ) ! .
This limits the possible amount of additional ones. The output bit-stream cannot have more ones than there are places in the output bit-stream and no more ones than the sum of ones in both input bit-streams. This leads to a maximum amount of additional ones in the output bit-stream, which can be expressed as
t O R , max = min ( z 1 , o 2 ) = min ( 1 p 1 , p 2 ) · N .
The probability of more ones in the output bit-stream is zero, as this event is not possible.
The probability for t ones from the second input bit-stream being combined with zeros of the first input bit-stream is given by
p O R 4 ( t ) = o 2 ! ( o 2 t ) ! = ( p 2 · N ) ! ( p 2 · N t ) ! .
The remaining copied zeros of the first input bit-stream ( ( 1 p 1 ) · N t ) also have to correspond to zeros in the second input bit-stream. The probability for this event can be expressed by
p O R 5 ( t ) = z 2 ! ( z 2 z 1 + t ) ! = ( ( 1 p 2 ) · N ) ! ( ( p 1 p 2 ) · N + t ) ! .
If the second input bit-stream has more ones than the first input bit-stream, the output bit-stream has at least the amount of ones in the second input bit-stream. This forms the lower boundary for the amount of additional ones in the output bit-stream. This can be expressed as
t O R , min = max ( 0 , o 2 o 1 ) = max ( 0 , p 2 p 1 ) · N .
The limitations (4) and (7) ensure that the factorial is only calculated from values N 0 . The product of (2), (3), (5), and (6) in the limits (4) and (7) describes the probability of t additional ones from the second input bit-stream in the output bit-stream if the input bit-streams are processed by the logic operation OR. This can be written as
p O R ( t ) = ( p 1 · N ) ! N ! · ( ( 1 p 1 ) · N ) ! t ! · ( ( 1 p 1 ) · N t ) ! · ( p 2 · N ) ! ( p 2 · N t ) ! · ( ( 1 p 2 ) · N ) ! ( ( p 1 p 2 ) · N + t ) ! .
As a result, the probability of a one in the output bit-stream ( p y , O R ) is given by combining (1) and (8)
p y , O R = t = max ( 0 , o 2 o 1 ) min ( z 1 , o 2 ) t + o 1 N · p O R ( t ) = t = max ( 0 , p 2 p 1 ) · N min ( 1 p 1 , p 2 ) · N t N · p O R ( t ) + p 1 .
With (9) the probability of a one in the output bit-stream can be calculated for combinations of p 1 | 2 { 0 , 1 } . Figure 3 illustrates the results for the logic operation OR.

4.3. AND

For the operation AND, each one in x 1 at the position of a one in x 2 leads to a one in y. Thus, the minimal number of ones in the output bit-stream results if the ones in x 1 are combined with zeros in x 2 and vice versa. The resulting ones—which cannot be combined with zeros—gives the minimal count of ones in the output bit-stream. These can be described by the ones, which are more than the length of the bit-stream
t A N D , min = max ( 0 , o 1 + o 2 N ) = max ( 0 , p 1 + p 2 1 ) · N .
The maximal number of ones in the output bit-stream is the minimum of ones in one of the input bit-streams, as a one can only result if two ones are combined. This can be expressed as
t A N D , max = min ( o 1 , o 2 ) = min ( p 1 , p 2 ) · N .
For the description of the event, that two ones from both input bit-streams are in the same position, and the ones in the first bit-stream are taken into account. The number of combinatorial possibilities for a one in the first bit-stream is given by
p A N D 1 = ( N o 1 ) ! N ! = ( ( 1 p 1 ) · N ) ! N ! .
The possibilities of arranging t ones from the second input bit-stream in the places of ones in the first input bit-stream are given by
p A N D 2 ( t ) = o 1 ! t ! · ( o 1 t ) ! = ( p 1 · N ) ! t ! · ( p 1 · N t ) ! .
The probability for t ones from the second input bit-stream to be in the same place as ones of the first input bit-stream can be described as
p A N D 3 ( t ) = o 2 ! ( o 2 t ) ! = ( p 2 · N ) ! ( p 2 · N t ) ! .
In the position of the other ones in the first input bit-stream should be zeros in the second input bit-stream. The probability for this is expressed by
p A N D 4 ( t ) = z 2 ! ( z 2 o 1 + t ) ! = ( ( 1 p 2 ) · N ) ! ( ( 1 p 1 p 2 ) · N + t ) ! .
The product of (12)–(15) with the limits (10) and (11) describes the probability of t ones in the output bit-stream, if the input bit-streams are processed by the logic operation AND
p A N D ( t ) = ( ( 1 p 1 ) · N ) ! N ! · ( p 1 · N ) ! t ! · ( ( 1 p 1 ) · N t ) ! · ( p 2 · N ) ! ( p 2 · N t ) ! · ( ( 1 p 2 ) · N ) ! ( ( 1 p 1 p 2 ) · N + t ) ! .
The probability of a one in the output bit-stream ( p y , A N D ) follows from (16)
p y , A N D = t = max ( 0 , o 1 + o 2 N ) min ( o 1 , o 2 ) t N · p A N D ( t ) = t = max ( 0 , p 1 + p 2 1 ) · N min ( p 1 , p 2 ) · N t N · p A N D ( t ) .
With (17) the probability of a one in the output bit-stream can be calculated for combinations of p 1 | 2 { 0 , 1 } . Figure 4 illustrates the results for the logic operation AND.

4.4. XOR

For the operation XOR, a one in the output results if the inputs have opposite logical values in that position. As the logic operation XOR counts the differences in the bit-streams, only the probability of a one in the second input bit-stream combined with a zero in the first input bit-stream has to be described in order to calculate the amount of ones in the output bit-stream.
Thus, the minimal occurrence of this event is the difference between the ones in the second input bit-stream to the first input bit-stream, which is given by
t X O R , min = max ( 0 , o 2 o 1 ) = max ( 0 , p 2 p 1 ) · N .
The maximum number of ones of the second input bit-stream combined with zeros of the first input bit-stream is limited by the amount of ones in the second input bit-stream and by the amount of zeros in the first input bit-stream, resulting in
t X O R , max = min ( z 1 , o 2 ) = min ( 1 p 1 , p 2 ) · N .
The operation XOR requires special precautions, as it is not possible to change the parity of ones ( p a r i t y ( ( p 1 + p 2 ) · N ) = p a r i t y ( p y · N ) ), with p a r i t y ( x ) defined in Definition 1. As the statistical model does not regard this matter and returns for those events the same probability as for the events with the right parity, the probabilities of the events with different parities have to be set to zero. This can be achieved by multiplication with
( 1 | p a r i t y ( t ) p a r i t y ( ( p 1 + p 2 ) · N ) | ) .
Definition 1.
Let p a r i t y ( x ) be a function of N 0 N 0 : p a r i t y ( x ) = x mod 2 .
First, the number of possibilities to place the zeros in the first input bit-stream is described, which can be expressed by
p X O R 1 = ( N z 1 ) ! N ! = ( p 1 · N ) ! N ! .
The possibilities of arranging t ones from the second input bit-stream in the places of zeros from the first input bit-stream can be described as
p X O R 2 ( t ) = z 1 ! t ! · ( z 1 t ) ! = ( ( 1 p 1 ) · N ) ! t ! · ( ( 1 p 1 ) · N t ) ! .
The probability of t ones from the second input bit-stream falling on the places of zeros in the first input bit-stream is given by
p X O R 3 ( t ) = o 2 ! ( o 2 t ) ! = ( p 2 · N ) ! ( p 2 · N t ) ! .
The other zeros of the first input bit-stream ( ( 1 p 1 ) · N t ) should also be zeros in the second input bit-stream. The probability for this event can be expressed by
p X O R 4 ( t ) = z 2 ! ( z 2 z 1 + t ) ! = ( ( 1 p 2 ) · N ) ! ( ( p 1 p 2 ) · N + t ) ! .
The product of (21)–(24) and the parity check (20) with the limits (18) and (19) leads to the probability for t events of this kind, which can be expressed as
p X O R ( t ) = ( p 1 · N ) ! N ! · ( ( 1 p 1 ) · N ) ! t ! · ( ( 1 p 1 ) · N t ) ! · ( p 2 · N ) ! ( p 2 · N t ) ! · ( ( 1 p 2 ) · N ) ! ( ( p 1 p 2 ) · N + t ) ! · ( 1 | p a r i t y ( t ) p a r i t y ( ( p 1 + p 2 ) · N ) | ) .
The probability of a one in the output bit-stream ( p y , X O R ) can be calculated. As the count of ones in the second input bit-stream combined with zeros from the first input bit-stream is known as t, the output bit-stream must contain t ones. The remaining zeros from the first input bit-stream are combined with zeros from the second bit-stream. These do not add ones to the output bit-stream. More ones in the output bit-stream can be added by the ones in the first input bit-stream if they match zeros in the second input bit-stream. This event will occur for all ones in the first input bit-stream ( o 1 ) minus the resulting ones in the second input bit-stream ( o 2 t ), as t ones from the second input bit-stream are already combined with zeros from the first input bit-stream. This can be described as
n o n e s , y = t + o 1 o 2 + t = 2 · t + ( p 1 p 2 ) · N .
The probability of ones in the output bit-stream can be derived from (25) and (26)
p y , X O R = t = max ( 0 , o 2 o 1 ) min ( z 1 , o 2 ) 2 · t + o 1 o 2 N · p X O R ( t ) = t = max ( 0 , p 2 p 1 ) · N min ( 1 p 1 , p 2 ) · N 2 · t N · p X O R ( t ) + p 1 p 2 .
With (27), the probability of a one in the output bit-stream can be calculated for combinations of p 1 | 2 { 0 , 1 } . Figure 5 illustrates the results for the logic operation XOR.
With the Equations (9), (17), and (27), a distribution of ones in the output of a logical operation for independent bit-streams can be derived. In the next section, mathematical functions for the expected probability of ones in the output bit-stream depending on the probability of ones in the input bit-streams are presented.

5. Mathematical Operations

In order to utilize the fundamental logic operations as mathematical operations for Δ Σ -signal processing (DSSP), a mathematical function creating the same mapping of input values to output values must be fitted.
The statistical description developed in Section 4 leads to an expectation of ones in the output bit-streams of the logical operations OR, AND, and XOR for the input bit-streams with the probability p 1 | 2 { 0 , , 1 } . As stated in Section 4, the value represented in a bit-stream can be interpreted by averaging. The expected percentage of ones in N sampled bits from a bit-stream contains the same information as the averaged value, as it represents the average probability. Thus, the expected percentage of ones in the bit-stream is directly linked to the represented value.
With the numerical interpretation of the input and output bit-streams, as presented in Section 2, mathematical functions can be fitted to the transformation of the logic operations.

5.1. OR

In Figure 3, the percentage of ones in the output bit-stream of the logical operation OR is shown for different probabilities of ones in the input signals x 1 and x 2 . If x 1 or x 2 contain only zeros, the output value has a linear dependency on the probability of ones in the other input. This leads to the term x 1 + x 2 . To match the flat boarder at only ones for x 1 or x 2 , the value represented by the output must be reduced by the value represented by the other input. One way to achieve this is to subtract x 1 · x 2 , as the other input is only ones and is therefore mapped to one. Summed up, the unipolar mathematical function x 1 + x 2 x 1 · x 2 concludes. This function forms the same image, e.g., Figure 6.

5.2. AND

In Figure 4, the percentage of ones in the output bit-stream of the logical operation AND is shown for different probabilities of ones in the input signals x 1 and x 2 . For any input consisting of only zeros, the output is only zeros. For an input consisting of only ones, the output has a linear dependency on the probability of ones of the other input. This leads to the unipolar mathematical function x 1 · x 2 . The expected probability of ones compared to Figure 7 reveals that they form the same image.

5.3. XOR

In Figure 5 the percentage of ones in the output bit-stream of the logical operation XOR is shown for different probabilities of ones in the input signals x 1 and x 2 . In this case, a flat cross at p y = 0.5 is revealed for p 1 or p 2 equal 0.5 . This behaviour matches the interpretation that p = 0.5 equals zero and the bipolar function is x 1 · x 2 . Furthermore, there is always a linear dependency on the probability of ones in one input if the other input is constant zeros or ones. The maxima occur when the bit-streams are different, and the minima occur if they are equal. This is expected for a multiplication, but the maxima and the minima are interchanged, thus leading to the bipolar function x 1 · x 2 . The figure of the bipolar function is similar to the image of the percentage of ones in the output bit-stream of the logical operation XOR (e.g., Figure 8).
Concerning the average values, the resulting functions can be written as
f o r ( x 1 , x 2 ) = x 1 + x 2 x 1 · x 2 : x 1 , x 2 [ 0 1 ]
f a n d ( x 1 , x 2 ) = x 1 · x 2 : x 1 , x 2 [ 0 1 ]
f x o r ( x 1 , x 2 ) = x 1 · x 2 : x 1 , x 2 [ 1 1 ]

6. Prediction of the Standard Deviation

The intention is to utilize these functions in DSSP. Therefore, not only the average value has to be considered, but the standard deviation is also of interest, as it can be used as a measure for the image quality of the function. Thus, the standard deviation is discussed in this section.
The standard deviation must always be considered in the statistics for the mean value; in this case, it may also be used as a measure for the image quality of the derived mathematical function. According to the laws of logic, the standard deviation is calculated by [16]:
σ = k = 0 n p ( k ) · k p y 2 .
Based on (31), the distribution of the results from the logical operations can be calculated. For the logic operations OR and AND, the standard deviations are the same. This is shown in Figure 9.
For the logic operation XOR, the standard deviation is doubled in comparison to the operations OR and AND. The standard deviation of the operation XOR is shown in Figure 10.
As can be seen, the shape of the standard deviation is the same for all three logic operations. There are no combinatorial possibilities at the edges of the displayed plane, because at least one bit-stream ( x 1 , x 2 ) consists only of zeros or ones. Therefore, it can be reasoned that the result depends only on the probability of the other bit-streams. In the middle of the area (where both bit-streams consist of half ones and half zeros), there are—as expected—the most combinatorial possibilities. If, in extreme cases, the ones of one bit-stream coincide with the ones of the other bit-stream, the logical operations OR and AND result in output bit-streams corresponding to the input bit-streams. For the logical operation XOR, a bit-stream containing only zeros is the output bit-stream. In the other extreme case, if the ones of one bit-stream fall on the zeros of the other bit-stream, an output bit-stream of zeros results for the logical operation AND. For the logical operations OR and XOR, an output bit-stream consisting of ones results. For all other combinations of probabilities, at least one combination cannot be changed. Therefore, the largest standard deviations can be expected at this point. Due to the fact that the output bit stream changes from zero to one with XOR and only from 0.5 to zero or one with OR and AND, the scaling is expected to be a factor of two of the standard deviations from OR and AND to XOR. This leads to the expectation that the image quality is very good at the definition limits of the input values in the number space and gets worse at the center.
In review, the influence of the logic operations OR, AND, and XOR on the mean value of two input bit-streams with independent high-frequency components to the output bit-stream and the standard deviation of these operations are discussed.

7. Quantization Noise

In this section, the independence of the quantization noise—which results in the high-frequency signal components—of two bit-streams will be discussed.
The mean value and the standard deviation have been discussed for statistical distributed bit-streams. This assumption is based on the linear model of the Δ Σ -modulator (i.e., Figure 11) [17].
As shown in previous publications [6,10,17,18,19], this assumption is quite common. In the case of non-linear DSSP, the assumption of a white noise source is bold, as the single bits at each clock cycle have an impact on the output bit-stream, whereas the white noise source assumption is more appropriate for a larger time scale. Therefore, the noise sources of the utilized Δ Σ -modulators must be independent, or the discussed probabilities are invalid.
The high-frequency quantization noise is able to interchange the positions of ones and zeros locally in the bit-stream, but will not affect the overall ratio. Thus, the independence of the noise between two bit-streams representing the same signal can be approximated by the normed cross-product without shift (32) using the signed mapping of the bit-streams.
R x 1 , x 2 = 1 n i = 0 n x 1 { 1 ; 1 } ( i ) · x 2 { 1 ; 1 } ( i ) .
The evaluation of the presented approaches for modifying the high-frequency signal components are examined with a sinusoidal excitation in simulation, as shown in Figure 12.
The intention is to measure the independence of the two signals; therefore, lower values of R x 1 , x 2 are preferable. Especially for two software Δ Σ -modulators, which are created from logic cells in a field-programmable gate array (FPGA), driven by the same clock with the same parameter set and zero input value R x 1 , x 2 = 1 . This behaviour is expected, as the main noise source is the quantization. Since the modulator is a non-linear operator, this behaviour can change with different input signals. However, it is not guaranteed that the input signals are different for all load points of the plant, or if both signals are mapped to independent input ranges, the usable data range is significantly reduced and the result must be processed further. Another opportunity is to use different designs for the Δ Σ -modulators [7] (e.g., [10,12]). With this combination, R x 1 , x 2 = 0.278 . The last evaluated possibility to overcome this issue is utilizing different clock rates of the Δ Σ -modulators ( f s 1 f s 2 ), which leads to different bit-streams. For a second-order Δ Σ -modulator with minimal parameters [12] and f s 1 = 2 · f s 2 follows R x 1 , x 2 = 0.298 . This option has the drawback that the overall system clock has to be faster than necessary for the requested bandwidth.
For different modulator design combinations, it can be possible to reach a higher independence of the high-frequency noise signal components. Therefore, the proposed solution is to utilize differently designed Δ Σ -modulators, since the investigated implementations have the lowest R x 1 , x 2 of all the proposed solutions.

8. Validation of the Results

The testbench in Figure 13 modulates the input signals with two different designed Δ Σ -modulators. The resulting bit-streams are fed into a dual input logic operation (AND, OR, or XOR) and filtered with an sinc 3 filter [10]. The resulting multibit value is compared against the sinc 3 filtered multibit value of the corresponding multibit mathematical operation. For the unipolar functions AND and OR, unipolar signal sources and Δ Σ -modulators are used, and the bipolar function XOR is driven by bipolar input signals with bipolar Δ Σ -modulators.
The input sources are chosen as shown in Figure 13. The phase shift for the sinus source (Input 1 ) and the delay followed by an overshoot by the ramp input (Input 2 ) is due to the sinc 3 filter.
The functional relation for OR and AND are proven in simulation (e.g., Figure 14). Nevertheless, the greatest deviations occur not in the region around 0.5 m s , where they are estimated from the considerations in Section 6. The resulting value for the logic operation OR deviates the most around 0.8 m s and the logic function AND in the mirrored region around 0.2 m s . This fact shows the necessity of evaluating the deviation for different Δ Σ -modulator implementations on a testbench with the expected input signals.
The result in Figure 15 for the logic function XOR shows the expected behaviour. For input signals at the definition boarder (e.g., the beginning and the ending of the simulation), the represented value in the output bit-stream follows the expected signal. The deviations are most severe when both input signals represent a value in the middle of the definition range, which occurs in the range around 0.5 m s .
The simulation results show that the statistical considerations are valid. The resulting deviations are lower than expected from the calculated mean deviations. In order to use the logic operations as mathematical functions, the implementation of the Δ Σ -modulators must be verified using the expected input signals.

9. Conclusions

In this publication, the results of the fundamental logic operations NOT, AND, OR, and XOR on bit-streams are investigated and interpreted statistically. The operation NOT represents a negation for a bipolar input signal. The operation AND results in the product for unipolar input signals. The operation OR results in the addition of the input signals minus the product for unipolar input signals. The operation XOR results in the negative product for bipolar input signals. All operations with multiple inputs have in common that the standard deviation reaches a minimum for input values at the border and a maximum for values in the center of the input range. As the results are based on the assumption of input bit-streams with independent high-frequency components, multiple optimisation strategies for decoupling the quantization noise are discussed and evaluated. The best-rated solution is to implement different designs for the Δ Σ -modulators; for example, [10,12]. This combination has been simulated for all three dual input logic operations (AND, OR, XOR). The deviation between the filtered output bit-streams and the filtered functions show better results than expected from the standard deviation, and support the previous theses. In order to achieve the best independence of the high-frequency signal components, different designs must be evaluated with the expected input signals.

Conflicts of Interest

The author declares no conflict of interest.

Abbreviations

The following abbreviations are used in this manuscript:
DSPdigital signal processing
DSSP Δ Σ -Signal Processing
NOTlogic function not
ORlogic function or
ANDlogic function and
XORlogic function xor
FPGAField Programmable Gate Array

References

  1. Lagoyannis, D.; Pekmestzi, K. Multipliers of delta-sigma sequences. Radio Electron. Eng. 1981, 51, 281–286. [Google Scholar] [CrossRef]
  2. Kouvaras, N. Operations on delta-modulated signals and their application in the realization of digital filters. Radio Electron. Eng. 1978, 48, 431–438. [Google Scholar] [CrossRef]
  3. Zrilic, D.G. Circuits and Systems Based on Delta Modulation: Linear, Nonlinear and Mixed Mode Processing; Springer: Berlin/Heidelberg, Germany, 2005. [Google Scholar]
  4. Ng, C. Bit-Stream Signal Processing on FPGA. Ph.D. Thesis, University of Hong Kong, Hong Kong, China, 2008. [Google Scholar]
  5. Homann, M. Hochdynamische Strom- und Spannungsregelung von Permanenterregten Synchronmaschinen auf Basis von Delta-Sigma Bitströmen. Ph.D. Thesis, TU Braunschweig, Braunschweig, Germany, 2016. [Google Scholar]
  6. Homann, M.; Klein, A.; Kirchner, R.; Schumacher, W. Quasi-kontinuierliche Signalverarbeitung mit Delta Sigma Bitströmen in der Antriebstechnik—Ein Überblick. In Proceedings of the Fortschritte in der Antriebs- und Automatisierungstechnik, Stuttgart, Germany, 27 April 2016; pp. 215–227. [Google Scholar]
  7. Homann, M.; Klein, A.; Schumacher, W. Direct Delta Sigma Signal Processing for Control of Power Electronics. In Proceedings of the International Exhibition and Conference for Power Electronics, Intelligent Motion, Renewable Energy and Energy Management (PCIM), Nuremberg, Germany, 10–12 May 2016. [Google Scholar]
  8. Homann, M.; Schumacher, W. High Bandwidth Phase Voltage and Phase Current Control Loop of a Permanent Magnet Synchronous Motor based on Delta Sigma Bitstreams. In Proceedings of the 18th European Conference on Power Electronics and Applications (EPE’16 ECCE Europe), Karlsruhe, Germany, 5–9 September 2016. [Google Scholar]
  9. Kershaw, S.M.; Sandler, M.B. Digital signal processing on a sigma-delta bitstream. In Proceedings of the IEE Colloquium on Oversampling Techniques and Sigma-Delta Modulation, London, UK, 30 March 1994. [Google Scholar]
  10. Schreier, R.; Temes, G.C. Understanding Delta-Sigma Data Converters; IEEE Press: Piscataway, NJ, USA, 2005. [Google Scholar]
  11. Schreier, R. Delta Sigma Toolbox. Available online: http://www.mathworks.com/matlabcentral/fileexchange/19-delta-sigma-toolbox (accessed on 21 June 2017).
  12. Marques, A.; Peluso, V.; Steyaert, M.S.; Sansen, W.M. Optimal parameters for ΔΣ modulator topologies. IEEE Trans. Circuits Syst. II Analog Digit. Signal Process. 1998, 45, 1232–1241. [Google Scholar] [CrossRef]
  13. Wolfgang Rautenberg. Einführung in Die Mathematische Logik; Vieweg + Teubner: Wiesbaden, Germany, 2008. [Google Scholar]
  14. Bernoulli, J.; Huygens, C. Wahrscheinlichkeitsrechnung (Ars Conjectandi); University of Michigan Library: Ann Arbor, MI, USA, 1899; Volume 2. [Google Scholar]
  15. O’Leary, P.; Maloberti, F. Bit stream adder for oversampling coded data. Electron. Lett. 1990, 26, 1708–1709. [Google Scholar] [CrossRef]
  16. Rüschendorf, L. Mathematische Statistik; Springer-Lehrbuch Masterclass, Springer Spektrum: Berlin, Germany, 2014. [Google Scholar]
  17. Ortmanns, M.; Gerfers, F. Continuous-Time Sigma-Delta AD Conversion: Fundamentals, Performance Limits and Robust Implementations; Springer Series in Advanced Microelectronics; Springer: Berlin, Germany, 2006; Volume 21. [Google Scholar]
  18. Ardalan, S.H.; Paulos, J.J. An analysis of nonlinear behavior in delta-sigma modulators. IEEE Trans. Circuits Syst. 1987, 34, 593–603. [Google Scholar] [CrossRef]
  19. Reiss, J.D. Understanding Sigma-Delta Modulation: Solved and Unsolved Issues. J. Audio Eng. Soc. 2008, 56, 49–64. [Google Scholar]
Figure 1. First-order Δ Σ -modulator with low-pass filter.
Figure 1. First-order Δ Σ -modulator with low-pass filter.
Mca 23 00004 g001
Figure 2. Power of the noise transfer function (NTF) of a first-order Δ Σ -modulator [10].
Figure 2. Power of the noise transfer function (NTF) of a first-order Δ Σ -modulator [10].
Mca 23 00004 g002
Figure 3. Expected probability of a one in the output bit-stream for the input bit-streams x 1 and x 2 , with the probability of ones p 1 | 2 , operated by OR.
Figure 3. Expected probability of a one in the output bit-stream for the input bit-streams x 1 and x 2 , with the probability of ones p 1 | 2 , operated by OR.
Mca 23 00004 g003
Figure 4. Expected probability of a one in the output bit-stream for the input bit-streams x 1 and x 2 , with the probability of ones p 1 | 2 , operated by AND.
Figure 4. Expected probability of a one in the output bit-stream for the input bit-streams x 1 and x 2 , with the probability of ones p 1 | 2 , operated by AND.
Mca 23 00004 g004
Figure 5. Expected probability of a one in the output bit-stream for the input bit-streams x 1 and x 2 , with the probability of ones p 1 | 2 , operated by XOR.
Figure 5. Expected probability of a one in the output bit-stream for the input bit-streams x 1 and x 2 , with the probability of ones p 1 | 2 , operated by XOR.
Mca 23 00004 g005
Figure 6. Results of the function x 1 + x 2 x 1 · x 2 .
Figure 6. Results of the function x 1 + x 2 x 1 · x 2 .
Mca 23 00004 g006
Figure 7. Results of the function x 1 · x 2 .
Figure 7. Results of the function x 1 · x 2 .
Mca 23 00004 g007
Figure 8. Results of the function x 1 · x 2 .
Figure 8. Results of the function x 1 · x 2 .
Mca 23 00004 g008
Figure 9. Standard deviation for the event of a one in the output bit-stream for the input bit-streams x 1 and x 2 , with the probability of ones p 1 | 2 , operated by OR or by AND.
Figure 9. Standard deviation for the event of a one in the output bit-stream for the input bit-streams x 1 and x 2 , with the probability of ones p 1 | 2 , operated by OR or by AND.
Mca 23 00004 g009
Figure 10. Standard deviation for the event of a one in the output bit-stream for the input bit-streams x 1 and x 2 , with the probability of ones p 1 | 2 , operated by XOR.
Figure 10. Standard deviation for the event of a one in the output bit-stream for the input bit-streams x 1 and x 2 , with the probability of ones p 1 | 2 , operated by XOR.
Mca 23 00004 g010
Figure 11. Linear model of the quantizer utilized in a Δ Σ -modulator comprised of a gain ( k q ) and a white noise source ( e ( n ) ) [17].
Figure 11. Linear model of the quantizer utilized in a Δ Σ -modulator comprised of a gain ( k q ) and a white noise source ( e ( n ) ) [17].
Mca 23 00004 g011
Figure 12. Testbench for evaluating the independence of the noise from Δ Σ -modulators.
Figure 12. Testbench for evaluating the independence of the noise from Δ Σ -modulators.
Mca 23 00004 g012
Figure 13. Testbench for evaluating the logic functions.
Figure 13. Testbench for evaluating the logic functions.
Mca 23 00004 g013
Figure 14. Results from the testbench for the logic operations OR and AND and corresponding operations f o r = x 1 + x 2 x 1 · x 2 and f a n d = x 1 · x 2 .
Figure 14. Results from the testbench for the logic operations OR and AND and corresponding operations f o r = x 1 + x 2 x 1 · x 2 and f a n d = x 1 · x 2 .
Mca 23 00004 g014
Figure 15. Results from the testbench for the logic operation XOR and the float operation f x o r = x 1 · x 2 .
Figure 15. Results from the testbench for the logic operation XOR and the float operation f x o r = x 1 · x 2 .
Mca 23 00004 g015
Table 1. Truth table for NOT.
Table 1. Truth table for NOT.
xy
01
10
Table 2. AND.
Table 2. AND.
x 1 x 2 y
000
010
100
111
Table 3. Truth table for OR.
Table 3. Truth table for OR.
x 1 x 2 y
000
011
101
111
Table 4. Truth table for XOR.
Table 4. Truth table for XOR.
x 1 x 2 y
000
011
101
110

Share and Cite

MDPI and ACS Style

Klein, A. Logic Operators on Delta-Sigma Bit-Streams. Math. Comput. Appl. 2018, 23, 4. https://doi.org/10.3390/mca23010004

AMA Style

Klein A. Logic Operators on Delta-Sigma Bit-Streams. Mathematical and Computational Applications. 2018; 23(1):4. https://doi.org/10.3390/mca23010004

Chicago/Turabian Style

Klein, Axel. 2018. "Logic Operators on Delta-Sigma Bit-Streams" Mathematical and Computational Applications 23, no. 1: 4. https://doi.org/10.3390/mca23010004

Article Metrics

Back to TopTop