CIRCUIT ARRANGEMENT COMPRISING A PERMUTATION UNIT AND METHOD OF PROCESSING A BATCH OF ITEMS

Abstract: The circuit arrangement calculates pseudo-random permutations of a set of numbers. It is required that the permutations that can be calculated by the circuit arrangement include compositions of some basic pseudo-random permutations and the inverse permutations of permutations that are calculated (a composition corresponds to cumulatively repeated reordering of the numbers, an inverse of a permutation is a permutation that undoes the permutation). The basic pseudo-random permutations, their compositions and inverses are all calculated by the same generator whose operation is commanded to calculate the appropriate permutation by specifying a set of integer coefficients fi. The generator calculates the permutations sigma (n) of the numbers n=O..m-1 corresponding to I, where alpha is an integer number which is divisible by all prime factors of m and by four if m is divisible by four, with a potency s( alpha ) of two or higher. When the same alpha is used for all permutations it is assured that all compositions and inverses of the generated permutations can be calculated in the same way, by the same generator. By storing a batch of items in a storage medium in a first order and retrieving the items from the storage medium in a second order, the first and second order corresponding to different permutations which are both of this type, it is made possible to permute the batch pseudo-randomly and start storing the batch of items in the storage medium before a previous batch has been fully retrieved from it.

Description: Circuit arrangement comprising a permutation unit and method of processing a batch of items. The invention relates to a circuit arrangement which generates successive pseudo random permutations of a set of "m" numbers. Pseudo-random permutations have various purposes. They can be used for interleaving purposes in combination with an error correcting code, to change the order in which symbols from the code are processed, in order to make the error protection process more robust against systematic errors. They can be used in random generators, for example for generating test signals. Often, it is desirable to generate successively several different pseudo random permutations that are different compositions of the same basic pseudo random permutation or permutations. For example if one wants to permute a set of items one may write the items into a storage medium in one order of storage locations, and retrieve them from the storage medium in a different order of storage locations. To save storage space when successive sets of items have to be permuted, one would like to store the items of a set each time at storage locations in the order that they are vacated by retrieving the items of a previous set, before the previous set has been entirely read. When each set has to be permuted by the same pseudo-random permutation, this means that the order of storage locations for storing each successive set has to be a composition of the pseudo random permutation applied to the order of storage locations of the previous set. The circuit arrangement has to generate these successive pseudo random permutations. However, it may require very complex and time consuming operations to generate all the required pseudo random permutations. Even when one uses basic pseudo random permutations that are fairly simple to generate, the need to generate compositions of such basic pseudo random permutations may mean that the computation of different pseudo random permutations will differ widely in complexity and will prove very costly in terms of computation time and/or required hardware. Amongst others, it is an object of the invention to provide for a circuit arrangement that is able to generate pseudo random permutations that are compositions of the same basic pseudo random permutation or permutations, which circuit arrangement is able to generate each of these pseudo random permutations with the same calculation circuits used to execute the same series of computation steps and wherein the required calculation circuits are simple in structure. It is another object of the invention to provide for a method of processing items, wherein the order according to which the items are processed is a pseudo random permutation of the order of receiving the items, the permutation being achieved by storage and retrieval of the items from a storage medium and wherein the required amount of storage medium is reduced. The circuit arrangement according to the invention is characterized, in that the circuit arrangement comprises control means for generating control signals, each control signal specifying a respective set of "s+1" integer coefficients "f j ", i=0..s, "s" being a natural number greater than one; computing means operating in repeated cycles, each cycle under control of a respective one of the control signals, for computing in that cycle a respective one of the successive permutations corresponding to (n) = / 0 + ' EK 1 mod m in which the fj are the integer coefficients from the set specified by the respective one of the control signals, and is an integer number common to all cycles, a being divisible by all prime factors of m, a having a potency s(α) equal to "s" with respect to m. The potency s(α) of a number a with respect to m is the smallest natural number s for which α s = 0 mod m i.e. the s Λ power of is divisible by m. The invention is based on the realization that permutations σ(n) generated according to the invention form a group, in the mathematical sense of the word "group". This means that if certain basic pseudo random permutations can be calculated in this way, each by specifying a set of integer coefficients f i? then also all compositions of these basic pseudo random permutations and even their inverse permutations can be calculated in this way, each merely by specifying its own, different set of integer coefficients f;. The invention uses this realization by providing calculating means that calculate the permutations in correspondence with the given formula and that are reused to calculate other permutations, each time under control of the specification of another set of coefficients f j . Thus, a range of permutations, their compositions and their inverses can be calculate successively by the same calculating means. In an embodiment of the circuit arrangement according to the invention at least one of the control signals specifies a set of s+ 1 integer coefficients such that a resulting permutation corresponds to a composition of at least two permutations from among the suc¬ cessive permutations. In an embodiment of the circuit arrangement according to the invention the potency s is two. In this way the complexity of the calculating means can be minimized, while still generating reasonably pseudo-random permutations. Higher potencies, for example 3 or higher (4, 5 etcetera), however, may be preferable because of considerations relating to better random properties. In an embodiment of the circuit arrangement according to the invention in at least one of the respective sets of integer coefficients all fj, with the exception of fg, are equal to each other, and have a largest common denominator of 1 with m. This provides for a basic permutation which particularly easy to select ( is arbitrary). More permutations can be obtained which correspond to compositions of the permutation generated in this way with itself (σ(σ(n)), σ(σ(σ(n))) etc.), or the inverse of this permutation. In general, the permutations obtained in this way will not be specified by such a simple set of coefficients f j . Therefore other permutations specified with coefficients f i that are not equal will be used in conjunction with this at least one respective set of permutations. In an embodiment of the circuit arrangement according to the invention the calculating means are arranged for computing successive permuted numbers in each cycle in successive steps n=0..m-l, from intermediate variables u® i=0..s, intermediate variable u (0) being initialized to f 0 in an initial one of the steps at a beginning of each cycle, interme¬ diate variables u® i= l..p-l being initialized to u^f j α 1"1 in the initial one of the steps, a value of each of the intermediate variables u® except u (s) being replaced, in each successive step but the initial one of the steps, by a respective modulo sum (u®+u 0+ 1) mod m) of the intermediate variables in the preceding step, the value of the intermediate variable u (0) in the successive steps n=0..m-l being used as the permuted numbers σ(n). In this way, the permutation is calculated without requiring multiplications for the calculation of the successi- ve permutated values σ(n). As circuits that perform multiplications are complex or slow, this makes the calculation of the permutation simpler and faster. A further embodiment of the circuit arrangement according to the invention comprises a cascade of s recursion units, each comprising a respective memory element and a respective modulo adder, the respective modulo adder of a front end recursion unit in the cascade having a first summand input coupled to the respective memory element of the front end recursion unit and to a further memory element, the respective modulo adder of each particular recursion unit, except the front end recursion unit, having a first summand input coupled to the memory element of the particular recursion unit and a second summand input coupled to the memory element of the recursion unit that precedes the particular recursion unit in the cascade, a sum output of the respective modulo adder in each recursion unit being coupled to an input of the respective memory element of that recursion unit, the calculating means being arranged for initializing a content of the memory unit in a final recursion unit in the cascade at the beginning of each cycle to f 0 and a content of the memory units in the recursion units that successively precede the final recursion unit in the cascade to fjo. 1"1 i= 1..S-1 respectively, the further memory unit being initialized to f s --. β"1 , the respective memory elements of each recursion units loading an output of the respective modulo adder, each time in successive steps n=l..m, the memory unit of the final recursion unit outputting the random number σ(n) in the successive steps. The invention is particularly useful for pseudo-random permutation of a set of data-items by writing the data-items into a memory in one order and subsequently reading them from the memory in another order. When several sets have to be permuted in this way, the data-items from one set are replaced in memory by a new set of data-items as the one set is being read. In this case it becomes necessary to generate addresses for the memory each time by generating the composition of basic permutations. The calculating means are very suitable for this purpose. Therefore, in an embodiment of the circuit arrangement according to the invention comprises a memory, the numbers from the set of "m" numbers corresponding to addresses referring to respective locations in the memory; a read/write unit, for writing a respective set of data items into the memory in each particular cycle, and reading that respective set of data items from the memory in a subsequent one of the cycles succeeding the particular cycle, each respective set of data items being written in an order of addresses corresponding to the permutation generated for its particular cycle and read in an order of addresses corresponding to the permutation generated for the subsequent cycle. In an embodiment of the circuit arrangement according to the invention the sets of integer coefficients fj are selected such that a composition of an inverse of the permutation calculated for the particular cycle with the permutation calculated for the subse¬ quent cycle is equal to a common permutation independent of the particular cycle. In this way the data-items in each set are permuted by the same pseudo-random permutation. Pseudo random permutation of data-items is particularly useful if used in combination with an error protecting code. This allows the data items to be transmitted or stored and later to be received or retrieved with robustness against errors. The invention also provides for a method of processing a batch of m items, the method comprising receiving the batch, each item in the batch being received in association with a first own rank number in the batch; assigning a respective location in a storage medium to each particular item, according to a first function of the first own rank number of the particular item; - storing each particular item in the storage medium at the respective location assigned to it; assigning a second own rank number to each storage location, according to a second function of the storage location; retrieving the items from the storage medium; - processing the particular item retrieved from a particular storage location according to the second own rank number of that particular location, wherein the first function and the second function are computed in correspondence with location (nl) mod ffl ranknumber (n2 ) = g 0 + mod ia respectively, nl being the rank number, n2 being a location number of the storage location in an order of storage locations, the fj and g, i=0..s being integer coefficients from respective sets, each of s+ 1 integers, and α being an integer number, divisible by all prime factors of m, α having a potency equal to "s" with respect to m.. According to this method the order of items is permuted by the use of a storage medium, the items being treated according to their location in the storage medium. Different permutations, their compositions and their inverses can be easily realized by storing and retrieving respectively according to two different permutations which both satisfy the formula for the same α. The items can be for example data-items, but they could also be other physical items such as products under manufacture, when one wants to eliminate systematic manufacturing effects. For example, one might want to prevent a product from one source to be combined systematically with one of the available assembly stations. The invention and its advantages will be described in detail hereinafter with reference to Figures. Figure 1 shows a permutation unit. Figure 2 shows a transmission system. Figure 3 shows an address generator. Figure 4 shows a modulo adder. Figure 1 shows a permutation unit for a circuit arrangement in accordance with the invention. The permutation unit comprises an input 1 and an output 2, both of which are coupled to read/ write means 3. The read/ write means 3 are coupled to a memory 5. The permutation unit also comprises an address generator 7 which is coupled to an address input of the memory 5. The permutation unit operates under the control of a clock (not shown). In each clock cycle the read/write means 3 read a data item from the memory 5, i.e. from a location having an address generated for the relevant cycle by the address generator 7. Subsequently, the read/write means 3 write a data item received on the input 1 for the relevant cycle in this location. During successive clock cycles this is repeated with other addresses for the memory 5. Thus, a respective data item is read successively from each location of the memory 5 and applied to the output 2. These data items together constitute a block of data items on the output 2. Furthermore, each of the data items in a block received on the input is thus written into a respective location of the memory. This is repeated for successive blocks, the address generator 7 generating all addresses of the memory. Thus, each block is successively written into and read from the memory again. The address generator generates these addresses for each block in an own sequence. As a result, the data items of each block are read in a sequence which deviates from the sequence in which they have been written. The permutation unit is used, for example as an interleaver or a de- interleaver in a transmission system utilizing an error protecting code. Figure 2 shows such a transmission system. This system comprises a cascade connection of an encoder 10, an interleaver 12, a modulator 14, a transmission channel, a demodulator 16, a de-interleaver 18 and a decoder 20. Data are applied to an input of the encoder 10 during operation. The encoder encodes these data in an error correcting code. Any known error correcting code, for example a convolution code or a turbo code, can be used for this purpose. The encoded data are divided into blocks, each of which contains a logic succession of symbols. The decoder 20 corresponds to the encoder and corrects symbol errors incurred during transmission from the encoder 10 to the decoder 20. The error correcting code is such that symbol errors which occur distributed across the logic succession can be suitably corrected. Burst errors, i.e. errors where a number of successive symbols in the logic succession are incorrect, are less readily correctable. The modulator 14 produces a signal with a number of frequency channels which are simultaneously transmitted. The symbols of each block are subdivided into a number of groups. Each group corresponds to a frequency channel and the information of the symbols in a group is transmitted in the corresponding frequency channel. This can be realised, for example by interpreting the symbols of each group as a number, by arranging these numbers in a series and by forming an FFT (Fast Fourier Transform) of this series. The result of this FFT is subsequently transmitted via the transmission channel, for example a wireless terrestrial broadcast channel. FFT and transmission are repeated for successive blocks. This corresponds to the OFDM (Orthogonal Frequency Division Multiplexing) tech- nique which is known per se. The demodulator 16 corresponds to the modulator 14. The demodulator receives the various frequency channels simultaneously and reconstructs the groups of symbols, each of which is transmitted in a respective frequency channel. According to the OFDM technique, this is realised, for example by forming an inverse FFT of the signal received and by reconstructing the numbers and hence the groups therefrom. The interleaver 12 serves to ensure that symbols which directly succeed one another in the logic succession are almost always modulated in different frequency channels. The spacing between these channels (in terms of channels with intermediate frequencies) is preferably even larger than zero, so that adjacent symbols enter non-neighbouring channels. This serves to ensure that disruption of a single channel, or of a number of neighbouring channels, does not cause burst errors in the logic succession. The de-interleaver 18 corresponds to the interleaver 12 and performs the inverse operation, so that the logic succession is reconstructed in respect of order (except for symbol errors) before being applied to the decoder 20. The interleaver 12 positions each pair of symbols which adjoin one another in the logic succession at a respective distance of a number of channels from one another. These respective distances have different values and it is ensured that different distances occur approximately equally often. As a result, the system can withstand disruptions of the transmission channel leading to poor reception in a periodic system of frequency channels (a periodic system is to be understood to mean herein a system in which the poor reception repeats itself, as a function of the frequency, each time after the same number of channels). Every other pair of symbols which are so near to one another that a simultaneous error in the symbols of such a pair could cause burst correction problems, is also positioned at a respective distance of a number of channels from one another. These respective distances preferably also have different values and it is ensured that these different distances also occur almost equally often. The transmission system is shown by way of example. Without deviating from the invention other channel modulation techniques could be used. The permutation group Λ α The respective sequences in which the addresses of the memory 5 are generated for each block by the address generator 7 determine how the data items of each block are permuted. The invention utilizes addresses σ(i) in a sequence (σ(0), σ(l), ... σ(-τ--l)) (where m is the number of data items in a block and the σ(i) are mutually different for different i). Such a sequence will be referred to as a permutation and denoted by the reference σ. The invention utilizes notably permutations σ forming part of sets Λ α defined in conformity with Λ α = { (σ (0) # σ ( l) f . . . σ (a-l) ) j σ (n) = f 0 + £ f,' [t.lrtf -1 mod in } with the binomial coefficient tl _ -n (-n-l) . . (n-i+1) Therein, a is a number chosen so that it is divisible by any prime factor of m, and also divisible by 4 if m is divisible by 4. For example, if m is 100 (prime factors 2 and 5), a can thus be an arbitrary multiple of 20. "s" is the "potency" of , i.e. the smallest natural number for which α s = 0 mod m Thus, in the above example if α=20 s is 2, because α 2 =400 is divisible by m= 100. An which contains all prime factors of "m" only once has maximal possible potency s. Its potency is equal to the power of the prime factor of m which has the highest power in m. So for example when m=45=3*3*5, α= 15=3*5 has the highest potency s=2, because the prime factor 3 has the highest power (2) in m. To obtain an α with potency of at least 2, m should therefore be divisible by the square of at least one prime: m values that are prime do not allow a potency of 2 or higher nor do products of different primes. Thus, for example, m cannot be equal to 1, 2, 3, 5, 6=2*3, 7, 10=2*5 etc. if an with a potency of 2 is required. 4 also does not allow an a with a potency of 2. To enable an ample choice of a values with potency s greater than 1, m should therefore be reasonably large, and contain many different prime factors. All a values with finite potency will be integer multiples of a basic a value. This basic a value is the product of all prime factors of m and has the highest possible potency. The numbers f j are natural numbers chosen so that the σ(i) permutations from the set Λ α pass through the numbers 0 to m-1 (for example, fj= l for all i>0, or f j independent of i when i>0 and prime with m, which means that the largest common denominator of f j and m is 1; when f 0 =0 this corresponds to a permutation as can be obtai¬ ned from a linear congruential algorithm). Within the set Λ α the σ(n) polynomials are dependent on their position n in the sequence. The degree of this polynomial is at the most s within Λ α . For pseudo¬ random permutations s is preferably 2 or higher. The random properties can be optimized by generating different permutations and choosing the best one. A product of elements of the set Λ a will now be defined: the product σ o x is the composition of the permutations σ and x, which means that (σ θ x)(n) = σ(x(n)) It can be demonstrated that the set Λ α with this product constitutes a group (in the mathematical sense of the word "group"). This means that Λ α contains the identity permutation (f 0 =0, f 1 = 1 and all other f j =0), that the composition of two permutations from Λ α belongs to Λ α again, and that for each permutation from Λ α the inverse permutation also belongs to Λ α . (This also holds for Λ α in which a is not divisible by 4 if m is divisible by 4, and also if Λ α is not limited to permutations). The calculation of the numbers f j describing the product σ o T is in principle a matter of substitution. Let σ and x be described by numbers g j and h j , respectively: σ (n) 9o ft , " o d m The product can then be calculated by substituting x(n) in the expression for σ: (σoτr) (-n) = g 0 + ,9i mod ffl An explicit expression is obtained for σ o x by working out the binomial coefficient. The group property of Λ α ensures that this explicit expression can be reconfigured to with f j natural numbers. These numbers can be calculated from the explicit expression, for example by utilizing differentials. A differential Δx(n) of a function x of n (such as a permutation) is defined by Δx(n)=x(n+ l)-x(n). Repeated application to a permutation from Λ α produces: [Δ ^^o = h j α 1"1 and it also holds that x(0)=h Q . Analogously, for the product σ o x it holds that and σ o x(0)=f 0 . When applied to the explicit expression for σ o x, this produces the numbers f j . So in the example where m=100 and α=20, when σ(n) is specified by and from that it follows that σ(σ(0))=2, σ(σ(l))=23 and σ(σ(0))=84. From this, it follows that the composition σ(σ(n)) is specified by f 0 =2, ^=21, f 2 =2. Similarly it can be computed that σ(oiσ( ))) is specified by f 0 =23, ^ =61, f 2 =3. The numbers h , describing an inverse x of a permutation σ, are obtained, for example by solution from the expression for the f for the product a o χ=e. Alternatively, σ n =σσ n , where σ =σ, is calculated for successive n until σ n is the identity permutation (the group character ensures that this is possible); σ n is then the inverse of σ. Starting from the numbers f j , permutations from Λ α can be simply generated by means of a recursive generator. Figure 3 shows a recursive address generator which generates a permutation from Λ α for the case where α has a potency s=2. As is denoted by dashed lines, this address generator comprises two sections A and B. The section A comprises a first register 20, a first adder 22, a first initializer 21, and a first multiplexer 23. The output of the first register 20 constitutes the output of the address generator. This output is coupled to an input of the first adder 22. An output of the first adder 22 and the first initializer 21 are coupled to an input of the first register 20 via the first multiplexer 23. The section B comprises a second register 24, a second adder 26, a second initializer 25, and a second multiplexer 27. The output of the second register 24 is coupled to a further input of the first adder 22 and also to an input of the second adder 26. The second adder 26 also receives an input signal from a memory 28. An output of the second adder 26 and the second initializer 25 are coupled to an input of the second register 24 via the second multiplexer 27. Figure 4 shows an embodiment of a modulo adder. The adders 22, 26 are constructed as modulo adders. Figure 4 shows a binary adder 22a, a subtracter 22b and a multiplexer 22c. The inputs of the modulo adder 22 constitute the inputs of the binary adder 22a. The output of the binary adder 22a is coupled to the subtracter 22b and the multiplexer 22c. The output of the subtracter 22b is also coupled to the multiplexer 22c. A borrow output of the subtracter 22b is coupled to the control input of the multiplexer 22c. The output of the multiplexer constitutes the output of the modulo adder 22. The binary adder 22a calculates the sum of the input signals during operation. The subtracter 22b subtracts "m" from this sum. If the subtraction result is smaller than zero, the multiplexer 22c just transmits the sum. If the subtraction result is larger than zero, the subtracter transmits the result instead of the sum. The address generator of Figure 3 operates in synchronism with a data item clock (not shown); this clock outputs a pulse whenever a data item has been read and written. The contents of the registers 20, 24 are refreshed in response to this pulse. When the contents of the registers 20 and 24 are referred to as u--, and v n at the time of processing of the n Λ data item in a block, the following holds Un + 1 = u D +v B mod m v n+ι = v n +d mod m For n=0 the contents of the registers 20, 24 are initialized by the initializers 21, 25. When the first and second registers 20, 24 are then initialized to f 0 and f t and the memory presents f 2 α to the second adder, the address generator will generate the series u (-n) = f o + P> - 1 mod JΠ When use is made of a values of higher potency, a plurality of sections such as section B are arranged in cascade between the sections A and B. The registers in these various sections, numbered i= l..s-l in the order in which the sections occur in cascade from A to B (inclusive), are then initialized to the values fjα 1'1 . Another differential technique which can be used for generating permutations from Λ α utilizes a modified differential Δ λ which is defined as Δ λ σ(n) = σ(n+ l) - ( 1 + αλ ) <r(n) If σ(n+ 1) is to be calculated by means of expressions for Δ λ σ(n), multiplication will be necessary. When λ is suitably chosen, however, the number of recursion sections required for this calculation can be limited. Applications of the permutation group Λ α The group character of Λ α ensures that upon composition of permutations the resultant permutation can again be written in the simple form of a permutation from Λ α . The invention utilizes this aspect to construct simple permutation units for the execution of pseudo-random permutations. A first application concerns a permutation unit intended to execute the same permutation x(n) on each block. This permutation unit writes the data items of a given block in conformity with a series of addresses σ j (n) (i.e. in the sequence in which the data items of the preceding block have been read). The permutation unit subsequently reads the data items in conformity with a series of addresses σ j+ 1 (n). The data item written as the n* data item must then be read as the χ(n) Λ data item. This is the case if ^j+i(n)='»'(^j(n)) so if σ: + 1 =x o a.-. Upon permutation of successive blocks, this is repeated each time for increasing j. When permutations x and σ from A α are used, O j + j will always also belong to A α . As a result, all σ.- can be simply generated. To this end use can be made of, for example the address generator shown in Figure 3, or alternatively the explicit expression for the elements of permutations from A α . A second application concerns the execution of different permutations x:(n), T j +ι(n) for successive blocks. It then holds that σ j + ι(n)=x (σ j (n)). If the permutations T j (n), -T j+ 1 (n) are both chosen from the same set A α , the series σ j will again be permutations from Λ α which can be simply generated. Conversely, if the permutations σ j = l,... are all chosen as member of one set Λ, it is ensured that the permutations r } for successive blocks j and their inverse permutations are members of that A and can be simply generated. This can be applied for example when it is necessary to signal for each data item "n" transmitted from the output 2 how it has been permuted, i.e. to signal its position τ~ l (n) in the block j when this data-item was received at the input 1. Using the fact that j "! (n) s a member of A it is ensured that the series τ l (ή) can be simply generated for successive values of n. This also applies when one uses as a,- alternately a pseudo-random permutation (in which the coefficient f j for the highest power in a is non-zero) and the identity permutation (σ(n)=0,l,...m-l). (For the resulting permutations X j to be pseudo random it is necessary that at least every second permutation σ } is pseudo random; not all σ- need to be random). For properly chosen f j this results in interleaving with a substantially uniform distribution of differences between successive addresses for every block. The use of only two different permutations makes interleaving simple. When the permutations T j (n), T j+1 (n) are chosen from different sets Λ α and A α , there will be obtained an overall set A α „ in which α" constitutes the largest common denominator of α and α'; the potency of α", could then be higher than that of A α and A α ,. The necessary sequences of writing and reading -jj then belong to A α , and hence can be simply generated. The numbers f ® describing the sequences σ. can be calculated by utilizing the above explicit expression for compositions of permutations. However, it has been found that in a number of cases these numbers can be recursively calculated. If the potency s of α is two, for example the following holds: f 0 < t +D= f 0 ( 0 + c f j O ) + [ c (c-l)/2] a f 2 ® f 1 (t+ 1) = b f j ® + (b e + b(b-l)/2) α f 2 ® a f 2 ( t+ D = a e f-ω + (5 b + α ( α _i)/2) a f 2 © where f 0 (0) =c, f j ^=b and f 2 (0) =e. (All these expressions are modulo m). The invention can be applied in the circuit arrangement of figures 1 and 2. This circuit arrangement comprises a permutation unit for receiving a series of blocks of data items and for outputting these blocks, the data items in each block being output in permuted form. Here, the permutation unit comprises a memory, a write read unit for writing and reading the data items into and from the memory, an address generator for generating address sequences of respective addresses of locations in which the data items are written into and read from the memory, The permutation unit reads the data items from each block with a respective address sequence from a set of locations of the memory, and writes the data items from each block, with the exception of an initial block, in the set in the address sequence in which the data items of a directly preceding block have been read. In this circuit arrangement the address generator is arranged to generate for each block a respective address sequence in which the n Λ address for each n corresponds to a permutation σ(ή) of the numbers 0...m-l in conformity with (n) = -fo s « ϊlr mod m in which m is the number of data items in the block, α is an integer number which is divisible by all prime factors of m, with a potency s(α) of two or higher, and in which ζ i=0...s, are natural numbers which always change from one block to another. Preferably, a is a multiple of four if m is a multiple of four. Also preferably, the address generator comprises a recursion unit for generating the address sequence and initialization means for initializing the recursion unit prior to the generating of the address sequence for a block. To get simple permutations the potency s(α) is preferably two. n which all f are equal, with the exception of f 0 , and have a largest common denominator of 1 with m. In one application of the circuit arrangement the operation of the permutation unit results in a respective permutation for each block, which permutation relates the address sequence upon writing to the address sequence upon reading of the relevant block, and in which the f i=0...s are chosen so that the respective permutations are identical for all blocks. It will be evident that the invention derives from the group character of the set Λ α . When a block of data items is to be permuted each time according to permutati¬ ons from this set, such an operation can be carried out by writing each time a block of data items into a memory in an address sequence in conformity with a permutation from this set, and by subsequently reading these data items from the memory in conformity with a different permutation from this set. These permutations will have pseudo random properties if the potency of a is at least two, and when the coefficient f j of the highest non-zero power of is non-zero. The complexity of the address generation then always remains the same. The address generator can be realised, for example by means of a recursive circuit. The simplest method of generating pseudo-random permutations in this manner is to use an a of potency two, because the least number of calculations are then required to generate the permutations. The use of α values of higher potency, for example 3, however, may be more attractive because better random properties can thus be more readily realised. This is a matter of selection: sequences of the generated address are tested so as to find out whether they have the random properties required for the relevant application. It will be clear that the invention is not limited to the transmission system shown by way of example, or to address generators more generally. The invention applies to any field of use where several pseudo-random permutations of numbers have to be generated that are different compositions of basic pseudo-random permutations. The invention can be used to generate these several permutations all with the same basic generator, such as the one shown in figure 3, by initializing the registers 23, 27 and the memory 28 to the values specifying each specific permutation. Of course this could also be achieved by a suitably programmed computer, in which the same program code is used to generate different permutations, as specified by the set of coefficients f j . Nor is the invention limited to data-items stored in memory. The method of permuting can be applied to batches of any physical kind of item, by storing the items of the batch in a storage medium and ordering the processing of the items in the batch according to their location in the storage medium. One uses different permutations from one group A α for storing and retrieving respectively. This makes it possible to save space in this storage medium without requiring increasingly complex permutations, when one stores items from a new batch before a previous batch has been fully retrieved from the storage medium. The items in the batches can be data-items, which are processed by transmitting them, but they can for example also be manufacturing products, which are processed during manufacturing.

Claims: 18 C AI S: 1. A circuit arrangement which generates successive pseudo random permutations of a set of "m" numbers, characterized, in that the circuit arrangement compri- control means for generating control signals, each control signal specifying a respective set of "s+1" integer coefficients "f j ", i=0..s, "s" being a natural number greater than one; computing means operating in repeated cycles, each cycle under control of a respective one of the control signals, for computing in that cycle a respective one of the successive permutations corresponding to in which the f j are the integer coefficients from the set specified by the respective one of the control signals, and a is an integer number common to all cycles, a being divisible by all prime factors of m, α having a potency s( ) equal to "s" with respect to m. 2. A circuit arrangement as claimed in Claim 1, wherein at least one of the control signals specifies a set of s+ 1 integer coefficients such that a resulting permutation corresponds to a composition of at least two permutations from among the successive permutations. 3. A circuit arrangement as claimed in Claim 1 or 2, wherein or is a multiple of four if m is a multiple of four. 4. A circuit arrangement as claimed in Claim 1, 2 or 3, wherein the potency s is two. 5. A circuit arrangement as claimed in Claim 1, 2, 3 or 4, in which in at least one of the respective sets of integer coefficients all f j , with the exception of Ϊ Q , are equal to each other, and have a largest common denominator of 1 with m. 6. A circuit arrangement as claimed in Claim 1, 2, 3, 4 or 5, wherein the calculating means are arranged for computing successive permuted numbers in each cycle in successive steps n=0..m-l, from intermediate variables u® i=0..s, intermediate variable u (0) being initialized to f 0 in an initial one of the steps at a beginning of each cycle, intermediate variables u® i=l..p-l being initialized to u®=f i α 1 " 1 in the initial one of the steps, a value of each of the intermediate variables u® except u (,) being replaced, in each successive step but the initial one of the steps, by a respective modulo sum (u®+u (i+ 1) mod m) of the interme¬ diate variables in the preceding step, the value of the intermediate variable u^ in the succes- sive steps n=0..m-l being used as the permuted numbers σ(n). 7. A circuit arrangement as claimed in Claim 6, comprising a cascade of s recursion units, each comprising a respective memory element and a respective modulo adder, the respective modulo adder of a front end recursion unit in the cascade having a first summand input coupled to the respective memory element of the front end recursion unit and to a further memory element, the respective modulo adder of each particular recursion unit, except the front end recursion unit, having a first summand input coupled to the memory ele¬ ment of the particular recursion unit and a second summand input coupled to the memory element of the recursion unit that precedes the particular recursion unit in the cascade, a sum output of the respective modulo adder in each recursion unit being coupled to an input of the respective memory element of that recursion unit, the calculating means being arranged for initializing a content of the memory unit in a final recursion unit in the cascade at the beginning of each cycle to f 0 and a content of the memory units in the recursion units that successively precede the final recursion unit in the cascade to fjα 1'1 i=l..s-l respectively, the further memory unit being initialized to f g O-* "1 , the respective memory elements of each recursion units loading an output of the respective modulo adder, each time in successive steps n=l..m, the memory unit of the final recursion unit outputting the random number r(n) in the successive steps. 8. A circuit arrangement as claimed in any one of the claims 1 to 7, comprising a memory, the numbers from the set of "m" numbers corresponding to addresses referring to respective locations in the memory; a read/write unit, for writing a respective set of data items into the memory in each particular cycle, and reading that respective set of data items from the memory in a subsequent one of the cycles succeeding the particular cycle, each respective set of data items being written in an order of addresses corresponding to the permutation generated for its particular cycle and read in an order of addresses corresponding to the permutation generated for the subsequent cycle. 9. A circuit arrangement as claimed in Claim 8, wherein the sets of integer coefficients f j are selected such that a composition of an inverse of the permutation calculated for the particular cycle with the permutation calculated for the subsequent cycle is equal to a common permutation independent of the particular cycle. 10. A circuit arrangement as claimed in Claim 8 or 9, comprising an encoder, the encoder generating the set of data items in an error protecting code. 11. A circuit arrangement as claimed in Claim 8 or 9, comprising an error corrector, the error corrector correcting the set of data items according an error protecting code applied to the data items in the order in which they are read. 12. A method of processing a batch of m items, the method comprising receiving the batch, each item in the batch being received in association with a first own rank number in the batch; assigning a respective location in a storage medium to each particular item, according to a first function of the first own rank number of the particular item; storing each particular item in the storage medium at the respective location assigned to it; - assigning a second own rank number to each storage location, according to a second function of the storage location; retrieving the items from the storage medium; processing the particular item retrieved from a particular storage location according to the second own rank number of that particular location, wherein the first function and the second function are computed in correspondence with location (nl ) = f 0 + mod JΠ rankn mber (n2) = g 0 + mod m respectively, nl being the rank number, n2 being a location number of the storage location in an order of storage locations, the f j and g j i=0..s being integer coefficients from respective sets, each of s+ 1 integers, and being an integer number, divisible by all prime factors of m, α having a potency equal to "s" with respect to m. 13. A method as claimed in Claim 12, wherein α is a multiple of four if m is a multiple of four. 14. A method as claimed in Claim 12 or 13, wherein the potency s( ) is two. 15. A method as claimed in Claim 12, 13 or 14, wherein all f j , with the exception of f 0 , are equal to each other, and have a largest common denominator of 1 with m. 16. A method as claimed in Claim 12, 13, 14 or 15, wherein successive permuted numbers σ(n) in each cycle are computed in successive steps n=0..m-l, from intermediate variables u® i=0..s, intermediate variable u^ being initialized to f 0 in an initial one of the steps at a beginning of each cycle, intermediate variables u® i=l..p-l being initialized to u® =f i α 1"1 in the initial one of the steps, a value of each of the intermediate variables u® except u (s) being replaced, in each successive step but the initial one of the steps, by a respective modulo sum (u®+u (l+1 ^ mod m) of the intermediate variables in the preceding step, the value of the intermediate variable u (0) in the successive steps n=0..m-l being used as the permuted numbers σ(n).

Inventors: BAGGEN CONSTANT PAUL MARIE JOZ, HOLLMANN HENDRIK DRIK LODEWIJK, BAGGEN, CONSTANT, PAUL, MARIE, JOZEF, HOLLMANN, HENDRIK, DRIK, LODEWIJK
Applicants: PHILIPS ELECTRONICS NV, PHILIPS NORDEN AB, PHILIPS ELECTRONICS N.V.
Application year: 1996
Main classification: G06F7
IPC codes: G06F7, G11B20, H03M13, H04B1, H04J11, H04L1, H04L27