US20060251207A1 - Barrel shifter - Google Patents
Barrel shifter Download PDFInfo
- Publication number
- US20060251207A1 US20060251207A1 US11/418,169 US41816906A US2006251207A1 US 20060251207 A1 US20060251207 A1 US 20060251207A1 US 41816906 A US41816906 A US 41816906A US 2006251207 A1 US2006251207 A1 US 2006251207A1
- Authority
- US
- United States
- Prior art keywords
- ctrl
- symbols
- barrel shifter
- symbol
- shift
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Abandoned
Links
Images
Classifications
-
- G—PHYSICS
- G11—INFORMATION STORAGE
- G11C—STATIC STORES
- G11C19/00—Digital stores in which the information is moved stepwise, e.g. shift registers
- G11C19/28—Digital stores in which the information is moved stepwise, e.g. shift registers using semiconductor elements
- G11C19/287—Organisation of a multiplicity of shift registers
Definitions
- the present invention relates to a barrel shifter for symbols.
- An example of an application of a barrel shifter device relates to decoding symbols transmitted according to the DVB-S2 standard using an error correction code of the type LDPC (Low Density Parity Check).
- LDPC Low Density Parity Check
- FIG. 1 schematically shows a barrel shifter 10 (BS) receiving N symbols 12 in parallel arranged in a certain order, each symbol corresponding to a coded digital message of a determined number of bits nbit_data.
- the device 10 outputs in parallel N symbols 14 , which correspond to N received symbols 12 , on which a circular shift has been applied, to the left or to the right, by a number of positions which can be chosen to be between 0 and N-1.
- the barrel shifter 10 receives a control signal bs_ctrl from which the number of positions that the received symbols 12 are to be shifted can be determined.
- FIG. 2 shows an example of a shift operation applied to eight symbols S 0 to S 7 .
- the top line shows an example of the positioning of symbols S 0 to S 7 as received by the barrel shifter 10 and the bottom line shows the positioning of symbols output by the device 10 after the application of a circular shift to the right by three positions (which is equivalent to a circular shift to the left by five positions).
- FIG. 3 shows an example of a classic implementation of a barrel shifter 10 receiving eight symbols and adapted to perform a circular shift to the right by 0 to 7 positions.
- the device 10 comprises three rows 15 , 16 , 17 of multiplexers.
- Each block 18 represents a multiplexing module receiving two symbols and outputting one of the two symbols received and comprising nbit_data multiplexers.
- Each solid arrow 19 corresponds to a path taken by a symbol, in other words, in practice, to connecting leads or connecting wires allowing the transmission of nbit_data bits.
- the multiplexers of the first, second and third rows 15 , 16 , 17 are respectively controlled by control signals bs_ctrl( 0 ), bs_ctrl( 1 ), and bs_ctrl( 2 ).
- Such a barrel shifter is said to have a logarithmic structure because each row of multiplexers allows a circular shift by a number of positions rising by a power of 2. Indeed, the first row 15 allows a circular shift to the right of one position ( 2 0 ), the second row 16 allows a circular shift to the right of two positions ( 2 1 ), and the third row 17 allows a circular shift to the right of four positions ( 2 2 ).
- control bits bs_ctrl( 0 ), bs_ctrl( 1 ) and bs_ctrl( 2 ) any shift from 0 to 7 positions can be performed.
- a barrel shifter 10 having a logarithmic structure and receiving N symbols requires, for performing a circular shift of anything from 0 to N-1 positions, ceil(log 2 (N)) rows of multiplexers where log 2 (N) is the logarithm to the base 2 of N, and ceil(log 2 (N)) is the greater integer value of log 2 (N).
- This device 10 therefore comprises N*nbit_data*ceil(log 2 (N)) multiplexers.
- the logarithmic structure allows the number of multiplexers necessary for providing a shift operation to be minimized.
- a drawback comes from the fact that an increase in the surface area of a barrel shifter brings about an increase in the length of at least some of the paths taken by symbols.
- a problem is that transmission time of a symbol along a path depends on the path length. If the transmission time of symbols (or at least of some of them) is too large, it may not be possible to perform a shift operation in one cycle of the clock which controls the operation of the barrel shifter. It is therefore necessary to provide, between the rows of the barrel shifter, memory elements (for example, latches) so that a shift operation can be performed over a number of clock cycles. The addition of memory elements contributes to the increase in the surface area occupied by the barrel shifter.
- the present invention provides a barrel shifter for which the surface overhead is reduced.
- Another object of the present invention is to provide a barrel shifter which can be realized with a number of multiplexers equal to or very slightly greater than the number of multiplexers of a barrel shifter with a logarithmic structure.
- the present invention provides, in at least one embodiment, a barrel shifter adapted to receive a number N of symbols in parallel, arranged into a number n 2 of distinct groups of a number n 1 symbols, and to apply a total circular shift to the N symbols of a determined number of positions, the device comprising:
- each first barrel shifter being adapted to receive one of the distinct group of n 1 symbols and to apply a first circular shift to said group of n 1 symbols, the first shift depending on the total circular shift;
- a rearrangement module adapted to receive the N symbols provided by the first barrel shifters and to provide N symbols arranged, in a determined manner, in n 1 distinct groups of n 2 symbols;
- each second barrel shifter being adapted to receive one of the distinct group of n 2 symbols and to apply a second circular shift to said group of symbols, the second shift being dependent on the total shift.
- i is an integer between 0 and N-1
- mod(i,n 1 ) is the remainder of the whole division of i by n 1
- floor(i/n 1 ) is the quotient of the whole division of i by n 1 .
- the barrel shifter comprises a control module adapted to receive a signal bs_ctrl representing a total shift and to provide, to each first barrel shifter, a signal bs_ctrl 1 representing the first shift which depends on the total shift and which is identical for each first barrel shifter, and adapted to provide, to each second barrel shifter, a signal bs_ctrl 2 representing the second shift which depends on the total shift and which is identical for each second barrel shifter, the barrel shifter further comprising a switching module adapted to switch at least two symbols amongst the N symbols.
- the switching module comprising N multiplexing modules, each multiplexing module receiving a first symbol at a relative position k, k being an integer between 1 and n 1 , amongst the n 1 symbols provided by a first barrel shifter and a second symbol at said relative position k amongst the n 1 symbols provided by an adjacent first barrel shifter and providing the second symbol when k is less than or equal to bs_ctrl 1 and the first symbol when k is greater than bs_ctrl 1 .
- the switching module comprising N multiplexing modules, each multiplexing module receiving a first symbol at a relative position k, k being an integer between 1 and n 2 , in the group of n 2 symbols amongst the N symbols received by said barrel shifter and a second symbol at said relative position k in an adjacent group of n 2 symbols and providing, to the auxiliary rearrangement module, the first symbol when k is less than or equal to the difference between n 2 and bs_ctrl 2 and the second symbol when k is greater than the difference between n 2 and bs_ctrl 2 .
- the present invention also provides a decoder comprising processors linked to memory elements and to a barrel shifter as described above, in which the processors and the memory elements are arranged in first and second concentric rings, and in which the first or second barrel shifters of the barrel shifter are arranged into a third ring concentric with the first and second rings.
- FIG. 1 shows the interfaces of a classic barrel shifter
- FIG. 2 illustrated above, illustrates an example of shifting performed by a barrel shifter
- FIG. 3 shows a classic barrel shifter having a logarithmic structure
- FIG. 4 shows an example of a barrel shifter
- FIGS. 5 to 7 show in more detail the elements of the barrel shifter of FIG. 4 ;
- FIG. 8 shows an example of a barrel shifter adapted to process 12 symbols
- FIG. 9 illustrates the operation of the device of FIG. 8 ;
- FIG. 10 shows a variation of the example shown in FIG. 4 ;
- FIG. 11 shows a first example of a barrel shifter according to the invention
- FIG. 12 illustrates the operation of the device of FIG. 10 ;
- FIG. 13 shows a second example of a barrel shifter according to the invention
- FIG. 14 schematically shows an example of an LDPC decoder using a barrel shifter
- FIG. 15 schematically shows a classic example of the arrangement of elements of the decoder of FIG. 14 using a barrel shifter with logarithmic structure
- FIG. 16 shows an analog version of FIG. 15 for a LDPC decoder using the barrel shifter according to the invention.
- the present invention provides a barrel shifter receiving N symbols and comprising at least two successive stages, each comprising a determined number, possibly different per stage, of elementary barrel shifters, the elementary barrel shifters of the first stage being linked to the elementary barrel shifters of the second stage.
- Each elementary barrel shifter receives only one part of N symbols on which it performs a shift operation.
- the present invention allows a limitation of the variation in lengths and the number of junctions of the paths of the barrel shifter, and therefore limitation of the surface area overhead of the barrel shifter.
- FIG. 4 shows the general structure of an example of a barrel shifter 20 .
- the device 20 receives N symbols, each symbol being comprised of nbit_data bits, and outputs N symbols on which a circular shift (barrel shift) is performed.
- the N symbols are arranged in n 2 groups of n 1 symbols, the first group comprising the n 1 first symbols of the N symbols, the second group comprising the following n 1 symbols, etc.
- the device 20 comprises a first stage 21 of n 2 elementary barrel shifters (BS 1 ) 22 .
- Each elementary barrel shifter 22 receives a group of n 1 symbols and performs a circular shift to the right on the n 1 received symbols of a number of positions between 0 and n 1 -1 positions.
- the barrel shifter 20 is controlled by a control module 24 which receives a control signal bs_ctrl based on which it outputs the same signal bs_ctrl 1 to each elementary device 22 representing the number of shift positions to be performed by each elementary device 22 .
- the n 2 groups of n 1 symbols provided by the n 2 elementary devices 22 are transmitted to a rearrangement stage 26 which modifies, in a determined fashion, the positions of the N symbols such that n 1 groups of n 2 symbols are formed.
- the n 1 groups of n 2 symbols are provided to a second stage 27 of elementary barrel shifters (BS 2 ) 28 .
- Each elementary device 28 receives a group of n 2 symbols and performs a circular shift to the right on the n 2 symbols received by a number of positions between 0 and n 2 -1 positions.
- the elementary devices 28 receive control signals bs_ctrl 2 [ 1 ] to bs_ctrl 2 [n 1 ] respectively provided by the control device 24 based on the control signal bs_ctrl.
- the elementary devices 28 of the second stage 27 of the elementary devices can therefore perform different shifts on the group of n 2 symbols received.
- the n 1 groups of n 2 symbols provided by the elementary devices 28 are transmitted to a rearrangement stage 30 which modifies, in a determined fashion, the positions of the N symbols. In practice, the rearrangement stages 26 , 30 correspond to a particular arrangement of the paths followed by the symbols.
- the signal bs_ctrl is a binary signal representing the number of shift positions to be performed by the device 20 .
- bs_ctrl 1 mod(bs_ctrl,n 1 )
- mod(bs_ctrl,n 1 ) is the modulo of bs_ctrl by n 1 , in other words the remainder of the whole division of bs_ctrl by n 1 .
- Each elementary device 22 therefore performs a shift to the right on the n 1 symbols received by bs_ctrl 1 positions.
- floor(bs_ctrl/n 1 ) is the integer just lower than bs_ctrl/n 1 , i.e. the whole part of bs_ctrl/n 1 , in other words the quotient of the whole division of bs_ctrl by n 1 .
- the bs_ctrl 1 first elementary devices 28 each perform a circular shift to the right of floor(bs_ctrl/n 1 )+1 positions on the n 2 symbols received and the n 1 ⁇ bs_ctrl 1 other elementary devices 28 each perform a circular shift to the right of floor(bs_ctrl/n 1 ) positions on the n 2 symbols received.
- device 20 can be controlled with a signal bs_ctrl′ equal to mod(N ⁇ bs_ctrl,N).
- FIG. 5 shows an example of the rearrangement stage 26 of FIG. 4 .
- the top row represents the positions 0 to n 2 *n 1 ⁇ 1 symbols received by the rearrangement stage 26 .
- the groups of n 1 positions have been regrouped, illustrating the groups of n 1 symbols provided by the elementary devices 22 .
- the bottom row represents the positions 0 to n 1 *n 2 ⁇ 1 of the symbols provided by the rearrangement stage 26 .
- the positions have been regrouped into groups of n 2 positions, illustrating the groups of n 2 symbols provided to the elementary devices 28 .
- FIG. 6 shows an example of the rearrangement stage 30 .
- the positions 0 to n 2 *n 1 ⁇ 1 of the symbols received by the rearrangement stage 30 have been regrouped, in the top row, into groups of n 2 positions, illustrating the groups of n 2 symbols provided by the elementary devices 28 and the position 0 to n 2 *n 1 ⁇ 1 of the symbols provided by the rearrangement stage 30 have been regrouped, in the bottom row, in groups of n 1 positions.
- FIG. 7 illustrates an example of the control device 24 .
- the determination of the different control signals can be determined based on the signal bs_ctrl by determining the signals mod(bs_ctrl,n 1 ) and floor(bs_ctrl,n 1 ).
- the signal mod(bs_ctrl,n 1 ) corresponds directly to the control signal bs_ctrl 1 .
- the signal floor(bs_ctrl/n 1 ) is transmitted to the first inputs of n 1 multiplexers 34 .
- a module 35 also receives the signal floor(bs_ctrl/n 1 ) to which it adds 1.
- the output of module 35 is provided to the second inputs of multiplexers 34 .
- n 1 multiplexers 34 correspond respectively to signals bs_ctrl 2 [ 1 ] to bs_ctrl 2 [n 1 ].
- the n 1 multiplexers 34 are controlled by n 1 control signals c 1 to c n1 provided by a decoding module 36 which receives the signal mod(bs_ctrl,n 1 ). Assuming that k is equal to mod(bs_ctrl,n 1 ), the decoding module 36 provides the signals c 1 to c k at logic level 1, and the signals c k +1 to c n1 at logic level 0.
- FIG. 8 shows the structure of such a barrel shifter 20 , the rearrangement stages 26 , 30 being represented by paths 38 connected to the elementary devices 22 , 28 .
- FIG. 9 shows the positions occupied by symbols S 0 to S 11 during the operation of the device of FIG. 8 for providing a right shift of five positions.
- the positions have been represented relative to the symbols S 0 to S 11 at:
- stage 21 of elementary devices 22 the input of the rearrangement stage 26 ;
- stage 27 of elementary devices 28 the input of the rearrangement stage 30 ;
- the signal bs_ctrl is equal to 5.
- Each elementary device 22 therefore performs a shift operation, on the three symbols received of two positions to the right.
- the first and second elementary devices 28 each performs a shift on the four symbols that they receive of two positions to the right, and a third elementary device 28 performs a shift on the four symbols that it receives of one position to the right.
- the maximum dispersion of path lengths and the maximum number of junctions between paths are present only at the rearrangement stages 26 , 30 .
- the elementary devices 22 , 28 only each processing a reduced number of symbols, each thus has a path length dispersion and a number of path junctions limited even though they have a logarithmic structure.
- the surface overhead is therefore limited for a barrel shifter 20 .
- a barrel shifter is finally achieved which occupies a surface smaller than the surface occupied by a device having a logarithmic structure.
- FIG. 10 illustrates a variation of the example of device 20 shown in FIG. 4 .
- the rearrangement stage 30 has been removed.
- a rearrangement stage 39 receives the N symbols and provides n 2 groups of n 1 symbols to the elementary devices 22 of the first stage 21 of elementary devices.
- the structure of the rearrangement stage 39 is identical to the structure of rearrangement stage 30 illustrated in FIG. 6 .
- the elementary devices 22 of the first stage 21 receive the control signals bs_ctrl 1 [ 1 ] to bs_ctrl 1 [n 2 ] respectively, provided by the control device 24 based on the control signal bs_ctrl.
- the elementary devices 22 of the first stage 21 of elementary devices can therefore provide different shifts on the groups of n 1 symbols received.
- Each elementary device 28 of the second stage 27 of elementary devices receives the same signal bs_ctrl 2 representing the number of shift positions to be provided by each elementary device 28 .
- a circular shift to the right can be performed of a number of positions given by the signal bs_ctrl.
- Each elementary device 28 therefore performs a shift to the right by bs_ctrl 2 positions on the n 2 symbols received.
- the device 40 comprises, as for the exemplary embodiment represented in FIG. 4 , stages 21 , 27 of elementary devices 22 , 28 and rearrangement stages 26 , 30 .
- the elementary devices 22 receive the same control signal bs_ctrl 1 .
- the device 40 according to the first exemplary embodiment provides an identical control signal bs_ctrl 2 to each elementary device 28 . Because of this, each of the n 1 elementary devices 28 provides the same shift on the n 2 symbols received.
- the device 40 comprises a supplementary stage 42 comprising N multiplexing modules 44 positioned between stage 21 of elementary devices 22 and the rearrangement stage 26 .
- Each multiplexing module 44 of stage 42 receives, at a first input, a symbol at a determined relative position amongst the n 1 symbols provided by an elementary device 22 and, at a second input, a symbol at the same determined relative position amongst the n 1 symbols provided by an adjacent elementary device 22 (i.e. the elementary device 28 to the left in the first example where a shift to the right is performed, the device “to the left” of elementary device 22 the furthest left in FIG. 11 corresponding to the elementary device 22 the furthest to the right).
- the n 2 multiplexing modules receiving the signals provided by the elementary devices 22 adjacent to a same position k relative to the n 1 symbols provided by each of the elementary devices 22 , are controlled by the same control signal Mux[k].
- the multiplexing modules 44 receiving the signals in the first position of the three symbols provided by each elementary device 22 , are controlled by a control signal Mux[ 1 ]
- the multiplexing modules 44 receiving the symbols in the second position of the three symbols provided by each elementary device 22 , are controlled by a control signal Mux[ 2 ]
- the multiplexing modules 44 receiving the symbols in the third position of the three symbols provided by each elementary device 22 , are controlled by a control signal Mux[ 3 ].
- bs_ctrl 2 floor(bs_ctrl,/n 1 )
- the device 40 according to the first exemplary embodiment comprises N*nbit_data additional multiplexers when compared to a barrel shifter having a logarithmic structure.
- the device 40 according to the first exemplary embodiment nevertheless conserves all of the advantages of the exemplary embodiment shown in FIG. 4 in that it allows a reduction in the surface overhead compared to a barrel shifter having a logarithmic structure.
- FIG. 12 illustrates the operation of device 40 according to the first exemplary embodiment of the invention in the same way as FIG. 9 , for performing a shift by five positions to the right.
- stage 21 of elementary devices 22 the input of stage 42 of multiplexing modules 44 ;
- stage 42 of the multiplexing modules 44 the input of the rearrangement stage 26 ;
- stage 27 of elementary devices 28 the input of the rearrangement stage 30 ;
- Each elementary device 28 performs therefore a shift on the four symbols received of one position to the right.
- an elementary device 22 , 28 can itself be provided according to the first exemplary embodiment of the invention.
- FIG. 13 illustrates a second exemplary embodiment of device 40 according to the invention.
- the rearrangement stage 30 When compared to the first exemplary embodiment of device 40 represented in FIG. 11 , the rearrangement stage 30 is removed.
- a rearrangement stage 46 receives the N symbols and provides n 2 groups of n 1 symbols to the elementary devices 22 of the first stage 21 of elementary devices.
- the structure of the rearrangement stage 46 is identical to the structure of the rearrangement stage 30 illustrated in FIG. 6 .
- An additional stage 47 comprising N multiplexing modules 48 is connected to the rearrangement stage 46 .
- the stage 47 has the same structure as the structure of stage 42 of device 40 represented in FIG.
- each multiplexing module 48 receives, at a first input, a symbol at a determined relative position in a group of n 2 symbols and, at a second input, a symbol at the same determined position in an adjacent group of n 2 symbols (i.e. the group of n 2 symbols situated at the left in the present example where a shift to the right is performed, the group of n 2 symbols “at the left” of the group of n 2 symbols the furthest to the left in FIG. 13 corresponding to the group of n 2 symbols the furthest to the right).
- Each group of n 1 multiplexing modules, receiving the symbols at a same relative position k in two adjacent groups of n 2 symbols, is controlled by a same control signal Mux[k].
- control signals bs_ctrl 1 and bs_ctrl 2 are identical for the elementary devices 22 and 26 respectively. This advantageously allows the structure of the control device 24 to be simplified with respect to the structure represented in FIG. 7 relating to the exemplary embodiment of FIG. 4 .
- FIG. 14 illustrates schematically an exemplary embodiment of a decoder 50 of LDPC code.
- the LDPC decoder 50 comprises processors ( ⁇ P) 52 operating in parallel receiving the symbols IN and providing the symbols OUT by an iterative process.
- the decoder 50 comprises an iteration loop in which the symbols are stored in memories (MEM) 54 and are provided again to processors 52 after being subjected to a circular shift provided by a barrel shifter (BS) 56 .
- MEM memories
- BS barrel shifter
- Such a structure can also be implemented for a turbo-code decoder and, in general, for a decoder for iterative error correcting codes using a barrel shifter for interleaving the data used internally.
- FIG. 15 is a schematic plan view that illustrates an example of the layout of elements of decoder 50 when decoder 50 is implemented in an integrated fashion, and when the barrel shifter 56 has a logarithmic structure.
- the memories 54 are arranged in an exterior ring and the processors 52 are arranged in an interior ring. The central region of the interior ring is occupied by the barrel shifter 56 .
- N*ceil(log 2 (N))*nbit_data multiplexers and the associated metal connecting tracks used for the implementation of electrical connections must be placed in the central region.
- FIG. 16 is the same view as that of FIG. 15 but shows the case where the barrel shifter 56 corresponds to the first or second exemplary embodiments according to the invention.
- the memories 54 and the processors 52 are provided in the form of rings.
- the present invention allows the arrangement of the first stage 21 of elementary devices 22 in the form of a ring in which the central region is occupied by the second stage 27 of elementary devices 28 (and possibly stages 42 , 47 of multiplexing modules 44 , 48 ). This is made possible by the fact that the first stage 21 comprises distinct elementary devices 22 .
- N*ceil(log 2 (n 2 ))*nbit_data multiplexers must be placed (to which N*nbit_data multiplexers of the additional stage 42 , 47 may possibly be added) and the corresponding metal tracks, i.e. a lower number than the number of multiplexers to be provided in the example illustrated in FIG. 15 , thus simplifying the layout.
- the elementary devices 28 can be arranged in a ring in place of the elementary devices 22 .
- n 1 and n 2 must be small.
- An acceptable compromise includes choosing n 1 approximately equal to n 2 .
Landscapes
- Digital Transmission Methods That Use Modulated Carrier Waves (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
A barrel shifter receiving N symbols, arranged n2 distinct groups of n1 symbols, applying a circular shift to the N symbols. The barrel shifter comprises n2 first barrel shifters, each applying a first circular shift to one of the groups of n1 symbols; a rearrangement module receiving the N symbols provided by the first barrel shifters and providing N symbols arranged, in a determined manner, in n1 distinct groups of n2 symbols; n1 second barrel shifters, each applying a second circular shift to one of the distinct groups of n2 symbols; a control module providing, to each first barrel shifter, an identical signal bs_ctrl1 representing the first shift, and providing, to each second barrel shifter, an identical signal bs_ctrl2 representing the second shift; and a switching module switching at least two of the symbols of the N symbols.
Description
- 1. Field of the Invention
- The present invention relates to a barrel shifter for symbols.
- 2. Discussion of the Related Art
- An example of an application of a barrel shifter device relates to decoding symbols transmitted according to the DVB-S2 standard using an error correction code of the type LDPC (Low Density Parity Check).
-
FIG. 1 schematically shows a barrel shifter 10 (BS) receivingN symbols 12 in parallel arranged in a certain order, each symbol corresponding to a coded digital message of a determined number of bits nbit_data. Thedevice 10 outputs inparallel N symbols 14, which correspond to N receivedsymbols 12, on which a circular shift has been applied, to the left or to the right, by a number of positions which can be chosen to be between 0 and N-1. Thebarrel shifter 10 receives a control signal bs_ctrl from which the number of positions that the receivedsymbols 12 are to be shifted can be determined. -
FIG. 2 shows an example of a shift operation applied to eight symbols S0 to S7. The top line shows an example of the positioning of symbols S0 to S7 as received by thebarrel shifter 10 and the bottom line shows the positioning of symbols output by thedevice 10 after the application of a circular shift to the right by three positions (which is equivalent to a circular shift to the left by five positions). -
FIG. 3 shows an example of a classic implementation of abarrel shifter 10 receiving eight symbols and adapted to perform a circular shift to the right by 0 to 7 positions. Thedevice 10 comprises threerows block 18 represents a multiplexing module receiving two symbols and outputting one of the two symbols received and comprising nbit_data multiplexers. Eachsolid arrow 19 corresponds to a path taken by a symbol, in other words, in practice, to connecting leads or connecting wires allowing the transmission of nbit_data bits. The multiplexers of the first, second andthird rows - Such a barrel shifter is said to have a logarithmic structure because each row of multiplexers allows a circular shift by a number of positions rising by a power of 2. Indeed, the
first row 15 allows a circular shift to the right of one position (2 0), thesecond row 16 allows a circular shift to the right of two positions (2 1), and thethird row 17 allows a circular shift to the right of four positions (2 2). By combining control bits bs_ctrl(0), bs_ctrl(1) and bs_ctrl(2), any shift from 0 to 7 positions can be performed. - In general, a
barrel shifter 10 having a logarithmic structure and receiving N symbols requires, for performing a circular shift of anything from 0 to N-1 positions, ceil(log2(N)) rows of multiplexers where log2(N) is the logarithm to thebase 2 of N, and ceil(log2(N)) is the greater integer value of log2(N). Thisdevice 10 therefore comprises N*nbit_data*ceil(log2(N)) multiplexers. The logarithmic structure allows the number of multiplexers necessary for providing a shift operation to be minimized. - During fabrication of a barrel shifter, computer aided design utilities are generally used that indicate the surface area that will theoretically be sufficient for arranging the multiplexers while taking into account the minimum separation distances to be provided between each multiplexer and the true surface area necessary for arranging the multiplexers and the connecting wires or tracks between them. The difference between the two surfaces is called the overhead.
- One difficulty during application of a barrel shifter with logarithmic structure is due to the large irregularity in the lengths of the
paths 19 and the large number of junctions betweenpaths 19 required by the arrangement of multiplexers. This leads to a large increase of the surface overhead when the number of symbols and/or the number of bits per symbol becomes large. For example, for a decoder of LDPC code, the product of N*nbit_data can be larger than 2000. The surface overhead can therefore be larger than 300% for a barrel shifter with logarithmic structure. This results in barrel shifters which are very bulky. - Another drawback comes from the fact that an increase in the surface area of a barrel shifter brings about an increase in the length of at least some of the paths taken by symbols. A problem is that transmission time of a symbol along a path depends on the path length. If the transmission time of symbols (or at least of some of them) is too large, it may not be possible to perform a shift operation in one cycle of the clock which controls the operation of the barrel shifter. It is therefore necessary to provide, between the rows of the barrel shifter, memory elements (for example, latches) so that a shift operation can be performed over a number of clock cycles. The addition of memory elements contributes to the increase in the surface area occupied by the barrel shifter.
- In certain cases, a vicious circle can result whereby the addition of memory elements brings about a rise in the length of paths of the symbols such that additional memory elements must be provided. It can therefore be necessary to impose a minimum duration for clock cycles below which a barrel shifter with a logarithmic structure having acceptable dimensions cannot be designed.
- To achieve these objects and others, the present invention provides a barrel shifter for which the surface overhead is reduced.
- Another object of the present invention is to provide a barrel shifter which can be realized with a number of multiplexers equal to or very slightly greater than the number of multiplexers of a barrel shifter with a logarithmic structure.
- To achieve these objects, as well as others, the present invention provides, in at least one embodiment, a barrel shifter adapted to receive a number N of symbols in parallel, arranged into a number n2 of distinct groups of a number n1 symbols, and to apply a total circular shift to the N symbols of a determined number of positions, the device comprising:
- n2 first barrel shifters, each first barrel shifter being adapted to receive one of the distinct group of n1 symbols and to apply a first circular shift to said group of n1 symbols, the first shift depending on the total circular shift;
- a rearrangement module adapted to receive the N symbols provided by the first barrel shifters and to provide N symbols arranged, in a determined manner, in n1 distinct groups of n2 symbols; and
- n1 second barrel shifters, each second barrel shifter being adapted to receive one of the distinct group of n2 symbols and to apply a second circular shift to said group of symbols, the second shift being dependent on the total shift.
- According to one embodiment of the invention, the rearrangement module is adapted to provide, for a symbol received at an ith position amongst the N symbols provided by the first barrel shifters, said symbol at a jth position according to the following relationship:
j=mod(i,n 1)*n 2+floor(i/n 1) - where i is an integer between 0 and N-1, mod(i,n1) is the remainder of the whole division of i by n1, and floor(i/n1) is the quotient of the whole division of i by n1.
- According to an embodiment of the invention, the barrel shifter comprises a control module adapted to receive a signal bs_ctrl representing a total shift and to provide, to each first barrel shifter, a signal bs_ctrl1 representing the first shift which depends on the total shift and which is identical for each first barrel shifter, and adapted to provide, to each second barrel shifter, a signal bs_ctrl2 representing the second shift which depends on the total shift and which is identical for each second barrel shifter, the barrel shifter further comprising a switching module adapted to switch at least two symbols amongst the N symbols.
- According to an embodiment of the invention, the control module is adapted to provide the signal bs_ctrl1 according to the following relationship:
bs_ctrl1=mod(bs_ctrl,n1) - where mod(bs_ctrl,n1) is the remainder of the whole division of bs_ctrl by n1, and adapted to provide the signal bs_ctrl2 according to the following relationship:
bs_ctrl2=floor(bs_ctrl/n1) - where floor(bs_ctrl/n1) is the quotient of the whole division of bs_ctrl by n1, the barrel shifter further comprising an auxiliary rearrangement module adapted to receive the N symbols provided by the second barrel shifters and, for a symbol received at an ith position, to provide said symbol at a jth position according to the following relationship:
j=mod(i,n 2)*n 1+floor(i/n 2) - where i is an integer between 0 and N-1, mod(i/n2) is the remainder of the whole division of i by n2, and floor(i/n2) is the quotient of the whole division of i by n2, the switching module comprising N multiplexing modules, each multiplexing module receiving a first symbol at a relative position k, k being an integer between 1 and n1, amongst the n1 symbols provided by a first barrel shifter and a second symbol at said relative position k amongst the n1 symbols provided by an adjacent first barrel shifter and providing the second symbol when k is less than or equal to bs_ctrl1 and the first symbol when k is greater than bs_ctrl1.
- According to an embodiment of the invention, the control module is adapted to provide the signal bs_ctrl1 according to the following relationship:
bs_ctrl1=floor(bs_ctrl/n2) - where floor(bs_ctrl/n2) is the quotient of the whole division of bs_ctrl by n2, and adapted to provide the signal bs_ctrl2 according to the following relationship:
bs_ctrl2=mod(bs_ctrl,n2) - where mod(bs_ctrl,n2) is the remainder of the whole division of bs_ctrl by n2, the barrel shifter further comprising an auxiliary rearrangement module adapted to receive the N symbols and to provide the N symbols to the first barrel shifters in such a way that, for a symbol received at an ith Position, said symbol is provided at a jth position according to the following relationship:
j=mod(i,n 2)*n 1+floor(i/n 2) - where i is an integer between 0 and N-1, mod(i,n2) is the remainder of the whole division of i by n2, and floor(i/n2) is the quotient of the whole division of i by n2, the switching module comprising N multiplexing modules, each multiplexing module receiving a first symbol at a relative position k, k being an integer between 1 and n2, in the group of n2 symbols amongst the N symbols received by said barrel shifter and a second symbol at said relative position k in an adjacent group of n2 symbols and providing, to the auxiliary rearrangement module, the first symbol when k is less than or equal to the difference between n2 and bs_ctrl2 and the second symbol when k is greater than the difference between n2 and bs_ctrl2.
- The present invention also provides a decoder comprising processors linked to memory elements and to a barrel shifter as described above, in which the processors and the memory elements are arranged in first and second concentric rings, and in which the first or second barrel shifters of the barrel shifter are arranged into a third ring concentric with the first and second rings.
- The foregoing and other purposes, features, aspects and advantages of the invention will become apparent from the following detailed description of embodiments, given by way of illustration and not limitation with reference to the accompanying drawings, in which:
-
FIG. 1 , described above, shows the interfaces of a classic barrel shifter; -
FIG. 2 , described above, illustrates an example of shifting performed by a barrel shifter; -
FIG. 3 , described above, shows a classic barrel shifter having a logarithmic structure; -
FIG. 4 shows an example of a barrel shifter; - FIGS. 5 to 7 show in more detail the elements of the barrel shifter of
FIG. 4 ; -
FIG. 8 shows an example of a barrel shifter adapted to process 12 symbols; -
FIG. 9 illustrates the operation of the device ofFIG. 8 ; -
FIG. 10 shows a variation of the example shown inFIG. 4 ; -
FIG. 11 shows a first example of a barrel shifter according to the invention; -
FIG. 12 illustrates the operation of the device ofFIG. 10 ; -
FIG. 13 shows a second example of a barrel shifter according to the invention; -
FIG. 14 schematically shows an example of an LDPC decoder using a barrel shifter; -
FIG. 15 schematically shows a classic example of the arrangement of elements of the decoder ofFIG. 14 using a barrel shifter with logarithmic structure; and -
FIG. 16 shows an analog version ofFIG. 15 for a LDPC decoder using the barrel shifter according to the invention. - For reasons of clarity, the same elements have been labeled with the same reference characters in the different figures.
- The present invention provides a barrel shifter receiving N symbols and comprising at least two successive stages, each comprising a determined number, possibly different per stage, of elementary barrel shifters, the elementary barrel shifters of the first stage being linked to the elementary barrel shifters of the second stage. Each elementary barrel shifter receives only one part of N symbols on which it performs a shift operation. The present invention allows a limitation of the variation in lengths and the number of junctions of the paths of the barrel shifter, and therefore limitation of the surface area overhead of the barrel shifter.
-
FIG. 4 shows the general structure of an example of abarrel shifter 20. Thedevice 20 receives N symbols, each symbol being comprised of nbit_data bits, and outputs N symbols on which a circular shift (barrel shift) is performed. The N symbols are arranged in n2 groups of n1 symbols, the first group comprising the n1 first symbols of the N symbols, the second group comprising the following n1 symbols, etc. Thedevice 20 comprises afirst stage 21 of n2 elementary barrel shifters (BS1) 22. Eachelementary barrel shifter 22 receives a group of n1 symbols and performs a circular shift to the right on the n1 received symbols of a number of positions between 0 and n1 -1 positions. Thebarrel shifter 20 is controlled by acontrol module 24 which receives a control signal bs_ctrl based on which it outputs the same signal bs_ctrl1 to eachelementary device 22 representing the number of shift positions to be performed by eachelementary device 22. The n2 groups of n1 symbols provided by the n2elementary devices 22 are transmitted to arearrangement stage 26 which modifies, in a determined fashion, the positions of the N symbols such that n1 groups of n2 symbols are formed. The n1 groups of n2 symbols are provided to asecond stage 27 of elementary barrel shifters (BS2) 28. Eachelementary device 28 receives a group of n2 symbols and performs a circular shift to the right on the n2 symbols received by a number of positions between 0 and n2 -1 positions. Theelementary devices 28 receive control signals bs_ctrl2[1] to bs_ctrl2[n1] respectively provided by thecontrol device 24 based on the control signal bs_ctrl. Theelementary devices 28 of thesecond stage 27 of the elementary devices can therefore perform different shifts on the group of n2 symbols received. The n1 groups of n2 symbols provided by theelementary devices 28 are transmitted to arearrangement stage 30 which modifies, in a determined fashion, the positions of the N symbols. In practice, the rearrangement stages 26, 30 correspond to a particular arrangement of the paths followed by the symbols. - The signal bs_ctrl is a binary signal representing the number of shift positions to be performed by the
device 20. - Taking the example of the
barrel shifter 20 shown inFIG. 4 , we can perform a circular shift to the right by a number of positions given by the signal bs_ctrl. The control signal bs_ctrl1 is given by the following relationship:
bs_ctrl1=mod(bs_ctrl,n1) - where mod(bs_ctrl,n1) is the modulo of bs_ctrl by n1, in other words the remainder of the whole division of bs_ctrl by n1. Each
elementary device 22 therefore performs a shift to the right on the n1 symbols received by bs_ctrl1 positions. - The control signals bs_ctrl2[k], for k being an integer between 1 and n1, are given by the following relationships:
bs_ctrl2[k]=floor(bs_ctrl/n 1)+1 for k≦bs_ctrl1
bs_ctrl2[k]=floor(bs_ctrl/n 1) for k>bs_ctrl1 - where floor(bs_ctrl/n1) is the integer just lower than bs_ctrl/n1, i.e. the whole part of bs_ctrl/n1, in other words the quotient of the whole division of bs_ctrl by n1.
- It appears therefore that, for the
second stage 27 of elementary devices, the bs_ctrl1 firstelementary devices 28 each perform a circular shift to the right of floor(bs_ctrl/n1)+1 positions on the n2 symbols received and the n1−bs_ctrl1 otherelementary devices 28 each perform a circular shift to the right of floor(bs_ctrl/n1) positions on the n2 symbols received. - In order to achieve a shift to the left by a number of positions given by the signal bs_ctrl as shown in the example of the
device 20 shown inFIG. 4 ,device 20 can be controlled with a signal bs_ctrl′ equal to mod(N−bs_ctrl,N). - Each
elementary device elementary device 22 then comprises n1*nbit_data*ceil(log2(n1)) multiplexers, and eachelementary device 28 comprises n2*nbit_data*ceil(log2(n2)) multiplexers. If abarrel shifter 20 comprising the same number of multiplexers as a barrel shifter with logarithmic structure is required, the integers n1 and n2 must satisfy the following relationship:
ceil(log2(n 1))+ceil(log2(n 2))=ceil(log2(N)) -
FIG. 5 shows an example of therearrangement stage 26 ofFIG. 4 . The top row represents thepositions 0 to n2*n1−1 symbols received by therearrangement stage 26. For clarity, the groups of n1 positions have been regrouped, illustrating the groups of n1 symbols provided by theelementary devices 22. Similarly, the bottom row represents thepositions 0 to n1*n2−1 of the symbols provided by therearrangement stage 26. For clarity, the positions have been regrouped into groups of n2 positions, illustrating the groups of n2 symbols provided to theelementary devices 28. - In general, the
rearrangement stage 26 transmits a symbol received at a position i, i being an integer between 0 and n2*n1−1, to a position j, j being an integer between 0 and n2*n1−1, according to the following relationship:
j=mod(i,n 1)*n 2+floor(i/n1) -
FIG. 6 shows an example of therearrangement stage 30. In the same way as described in relation withFIG. 5 , thepositions 0 to n2*n1−1 of the symbols received by therearrangement stage 30 have been regrouped, in the top row, into groups of n2 positions, illustrating the groups of n2 symbols provided by theelementary devices 28 and theposition 0 to n2*n1−1 of the symbols provided by therearrangement stage 30 have been regrouped, in the bottom row, in groups of n1 positions. - In general, the
rearrangement stage 30 transmits a symbol received at a position i, i being an integer between 0 and n2*n1−1, to a position j, j being an integer between 0 and n2*n1−1 according to the following relationship:
j=mod(i,n 2)*n 1+floor(i/n 2) -
FIG. 7 illustrates an example of thecontrol device 24. The determination of the different control signals can be determined based on the signal bs_ctrl by determining the signals mod(bs_ctrl,n1) and floor(bs_ctrl,n1). The signal mod(bs_ctrl,n1) corresponds directly to the control signal bs_ctrl1. The signal floor(bs_ctrl/n1) is transmitted to the first inputs of n1 multiplexers 34. Amodule 35 also receives the signal floor(bs_ctrl/n1) to which it adds 1. The output ofmodule 35 is provided to the second inputs ofmultiplexers 34. The outputs of n1 multiplexers 34 correspond respectively to signals bs_ctrl2[1] to bs_ctrl2[n1]. The n1 multiplexers 34 are controlled by n1 control signals c1 to cn1 provided by adecoding module 36 which receives the signal mod(bs_ctrl,n1). Assuming that k is equal to mod(bs_ctrl,n1), thedecoding module 36 provides the signals c1 to ck atlogic level 1, and the signals ck+1 to cn1 atlogic level 0. - The operation of the
barrel shifter 20 according to the exemplary embodiment shown inFIG. 4 will now be described in further detail for the particular example in which n1=3 and n2=4, i.e. for abarrel shifter 20 receiving twelve symbols S0 to S11 and adapted to provide a shift to the right of 0 to 11 positions. -
FIG. 8 shows the structure of such abarrel shifter 20, the rearrangement stages 26, 30 being represented bypaths 38 connected to theelementary devices -
FIG. 9 shows the positions occupied by symbols S0 to S11 during the operation of the device ofFIG. 8 for providing a right shift of five positions. In particular, at the first, second, third, fourth and fifth lines ofFIG. 9 , the positions have been represented relative to the symbols S0 to S11 at: - the input of
stage 21 ofelementary devices 22; - the output of
stage 21 of elementary devices 22 (the input of the rearrangement stage 26); - the output of rearrangement stage 26 (the input of
stage 27 of the elementary devices 28); - the output of
stage 27 of elementary devices 28 (the input of the rearrangement stage 30); and - the output of the
rearrangement stage 30. - In the present example, the signal bs_ctrl is equal to 5. Thus we have:
bs_ctrl1=mod(5,3)=2 - Each
elementary device 22 therefore performs a shift operation, on the three symbols received of two positions to the right. - The control signals bs_ctrl2[1], bs_ctrl2[2] and bs_ctrl2[3] are obtained in the following manner:
bs_ctrl2[l]=bs_ctrl2[2]=floor(5/3)+1=2
bs_ctrl2[3]=floor(5/3)=1 - The first and second elementary devices 28 (from left to right in
FIG. 8 ) each performs a shift on the four symbols that they receive of two positions to the right, and a thirdelementary device 28 performs a shift on the four symbols that it receives of one position to the right. - The maximum dispersion of path lengths and the maximum number of junctions between paths are present only at the rearrangement stages 26, 30. Indeed, the
elementary devices barrel shifter 20. Furthermore, as thedevice 20 is implemented with the same number of multiplexers as a device having a logarithmic structure, a barrel shifter is finally achieved which occupies a surface smaller than the surface occupied by a device having a logarithmic structure. -
FIG. 10 illustrates a variation of the example ofdevice 20 shown inFIG. 4 . Compared withdevice 20 illustrated inFIG. 4 , therearrangement stage 30 has been removed. Arearrangement stage 39 receives the N symbols and provides n2 groups of n1 symbols to theelementary devices 22 of thefirst stage 21 of elementary devices. The structure of therearrangement stage 39 is identical to the structure ofrearrangement stage 30 illustrated inFIG. 6 . Theelementary devices 22 of thefirst stage 21 receive the control signals bs_ctrl1[1] to bs_ctrl1[n2] respectively, provided by thecontrol device 24 based on the control signal bs_ctrl. Theelementary devices 22 of thefirst stage 21 of elementary devices can therefore provide different shifts on the groups of n1 symbols received. Eachelementary device 28 of thesecond stage 27 of elementary devices receives the same signal bs_ctrl2 representing the number of shift positions to be provided by eachelementary device 28. - In the exemplary embodiment of the
barrel shifter 20 represented inFIG. 10 , a circular shift to the right can be performed of a number of positions given by the signal bs_ctrl. The control signal bs_ctrl2 is given by the following relationship:
bs_ctrl2=mod(bs_ctrl,n2) - Each
elementary device 28 therefore performs a shift to the right by bs_ctrl2 positions on the n2 symbols received. - The control signals bs_ctrl1[k] for k being an integer between 1 and n2, are given by the following relationships:
bs_ctrl1[k]=floor(bs_ctrl/n 2) for k≦n 2−bs_ctrl2
bs_ctrl1[k]=floor(bs_ctrl/n 2)+1 for k>n 2−bs_ctrl2 -
FIG. 11 illustrates a first example of an embodiment of abarrel shifter 40 according to the invention which will be described for a particular example in which N=12, n1=3 and n2=4. According to the first exemplary embodiment, thedevice 40 comprises, as for the exemplary embodiment represented inFIG. 4 , stages 21, 27 ofelementary devices elementary devices 22 receive the same control signal bs_ctrl1. However, in contrast to the exemplary embodiment represented inFIG. 4 , thedevice 40 according to the first exemplary embodiment provides an identical control signal bs_ctrl2 to eachelementary device 28. Because of this, each of the n1elementary devices 28 provides the same shift on the n2 symbols received. - To achieve the shift required, the
device 40 comprises asupplementary stage 42 comprisingN multiplexing modules 44 positioned betweenstage 21 ofelementary devices 22 and therearrangement stage 26. Each multiplexingmodule 44 ofstage 42 receives, at a first input, a symbol at a determined relative position amongst the n1 symbols provided by anelementary device 22 and, at a second input, a symbol at the same determined relative position amongst the n1 symbols provided by an adjacent elementary device 22 (i.e. theelementary device 28 to the left in the first example where a shift to the right is performed, the device “to the left” ofelementary device 22 the furthest left inFIG. 11 corresponding to theelementary device 22 the furthest to the right). - The n2 multiplexing modules, receiving the signals provided by the
elementary devices 22 adjacent to a same position k relative to the n1 symbols provided by each of theelementary devices 22, are controlled by the same control signal Mux[k]. In the example illustrated inFIG. 11 , the multiplexingmodules 44, receiving the signals in the first position of the three symbols provided by eachelementary device 22, are controlled by a control signal Mux[1], the multiplexingmodules 44, receiving the symbols in the second position of the three symbols provided by eachelementary device 22, are controlled by a control signal Mux[2] and the multiplexingmodules 44, receiving the symbols in the third position of the three symbols provided by eachelementary device 22, are controlled by a control signal Mux[3]. - The control signals Mux[k], k being an integer between 1 and n1, are given by the following relationships:
Mux[k]=1 for k≦bs_ctrl1; and
Mux[k]=0 for k>bs_ctrl1 - The control signal bs_ctrl1 is given by the following relationship:
bs_ctrl1=mod(bs_ctrl,n1) - and the control signal bs_ctrl2 is given by the following relationship:
bs_ctrl2=floor(bs_ctrl,/n1) - By adopting a logarithmic structure for the
elementary devices device 40 according to the first exemplary embodiment comprises N*nbit_data additional multiplexers when compared to a barrel shifter having a logarithmic structure. Thedevice 40 according to the first exemplary embodiment nevertheless conserves all of the advantages of the exemplary embodiment shown inFIG. 4 in that it allows a reduction in the surface overhead compared to a barrel shifter having a logarithmic structure. -
FIG. 12 illustrates the operation ofdevice 40 according to the first exemplary embodiment of the invention in the same way asFIG. 9 , for performing a shift by five positions to the right. - In particular, in the first, second, third, fourth, fifth and sixth lines of
FIG. 12 , the relative positions of the symbols S0 to S11 have been represented at: - the input of
stage 21 ofelementary devices 22; - the output of
stage 21 of elementary devices 22 (the input ofstage 42 of multiplexing modules 44); - the output of
stage 42 of the multiplexing modules 44 (the input of the rearrangement stage 26); - the output of the rearrangement stage 26 (the input of
stage 27 of elementary devices 28); - the output of
stage 27 of elementary devices 28 (the input of the rearrangement stage 30); and - the output of
rearrangement stage 30. - In the present example, the signal bs_ctrl is equal to 5. This gives:
bs_ctrl1=mod(5,3)=2 - Each
elementary device 22 therefore performs a shift on the three symbols received of two positions to the right. Also, we have:
bs_ctrl2=floor(5/3)=1 - Each
elementary device 28 performs therefore a shift on the four symbols received of one position to the right. - Furthermore, MUX[1]=MUX[2]=1 and MUX[3]=0. This signifies that for each group of three symbols provided by an
elementary device 22, the symbol in the third position is not modified and the symbols in the first and second positions are replaced by the symbols in the first and second positions of the three symbols provided by theelementary device 22 at the “left” of theelementary device 22 considered. - According to a variation of the first exemplary embodiment described above, an
elementary device -
FIG. 13 illustrates a second exemplary embodiment ofdevice 40 according to the invention. When compared to the first exemplary embodiment ofdevice 40 represented inFIG. 11 , therearrangement stage 30 is removed. Arearrangement stage 46 receives the N symbols and provides n2 groups of n1 symbols to theelementary devices 22 of thefirst stage 21 of elementary devices. The structure of therearrangement stage 46 is identical to the structure of therearrangement stage 30 illustrated inFIG. 6 . Anadditional stage 47 comprisingN multiplexing modules 48 is connected to therearrangement stage 46. Thestage 47 has the same structure as the structure ofstage 42 ofdevice 40 represented inFIG. 11 in that each multiplexingmodule 48 receives, at a first input, a symbol at a determined relative position in a group of n2 symbols and, at a second input, a symbol at the same determined position in an adjacent group of n2 symbols (i.e. the group of n2 symbols situated at the left in the present example where a shift to the right is performed, the group of n2 symbols “at the left” of the group of n2 symbols the furthest to the left inFIG. 13 corresponding to the group of n2 symbols the furthest to the right). Each group of n1 multiplexing modules, receiving the symbols at a same relative position k in two adjacent groups of n2 symbols, is controlled by a same control signal Mux[k]. - The control signals Mux[k], k being an integer between 1 and n2, are given by the following relationships:
Mux[k]=0 for k≦n 2−bs_ctrl2; and
Mux[k]=1 for k>n 2−bs_ctrl2 - The
elementary devices 22 receive the same control signal bs_ctrl1 given by the following relationship:
bs_ctrl1=floor(bs_ctrl/n2) - and the
elementary devices 28 receive the same control signal bs_ctrl2 given by the following relationship:
bs_ctrl2=mod(bs_ctrl,n2) - In the first and second exemplary embodiments according to the invention described above, the control signals bs_ctrl1 and bs_ctrl2 are identical for the
elementary devices control device 24 to be simplified with respect to the structure represented inFIG. 7 relating to the exemplary embodiment ofFIG. 4 . -
FIG. 14 illustrates schematically an exemplary embodiment of adecoder 50 of LDPC code. TheLDPC decoder 50 comprises processors (μP) 52 operating in parallel receiving the symbols IN and providing the symbols OUT by an iterative process. To do this, thedecoder 50 comprises an iteration loop in which the symbols are stored in memories (MEM) 54 and are provided again toprocessors 52 after being subjected to a circular shift provided by a barrel shifter (BS) 56. Such a structure can also be implemented for a turbo-code decoder and, in general, for a decoder for iterative error correcting codes using a barrel shifter for interleaving the data used internally. -
FIG. 15 is a schematic plan view that illustrates an example of the layout of elements ofdecoder 50 whendecoder 50 is implemented in an integrated fashion, and when thebarrel shifter 56 has a logarithmic structure. Thememories 54 are arranged in an exterior ring and theprocessors 52 are arranged in an interior ring. The central region of the interior ring is occupied by thebarrel shifter 56. With a logarithmic structure, N*ceil(log2(N))*nbit_data multiplexers and the associated metal connecting tracks used for the implementation of electrical connections must be placed in the central region. -
FIG. 16 is the same view as that ofFIG. 15 but shows the case where thebarrel shifter 56 corresponds to the first or second exemplary embodiments according to the invention. Thememories 54 and theprocessors 52 are provided in the form of rings. The present invention allows the arrangement of thefirst stage 21 ofelementary devices 22 in the form of a ring in which the central region is occupied by thesecond stage 27 of elementary devices 28 (and possibly stages 42, 47 of multiplexingmodules 44, 48). This is made possible by the fact that thefirst stage 21 comprises distinctelementary devices 22. In the central region, N*ceil(log2(n2))*nbit_data multiplexers must be placed (to which N*nbit_data multiplexers of theadditional stage FIG. 15 , thus simplifying the layout. According to a variation, theelementary devices 28 can be arranged in a ring in place of theelementary devices 22. - To maximize the reduction in the surface area overhead, a compromise must be found for the integers n1 and n2. Indeed, for reducing the surface occupied by the central region, the integer n2 must be small. However, if n1 is too large, the
elementary devices 22 risk being of too large a volume and the final reduction in surface overhead would not be great. An acceptable compromise includes choosing n1 approximately equal to n2. - Naturally, the present invention is susceptible to various variations and modifications that would appear to those skilled in the art. In particular, memory elements can be provided between the two stages of elementary devices. Furthermore, although the barrel shifters described above are adapted to provide a shift to the right, it is clear that the present invention can be applied to an embodiment of a barrel shifter adapted to form a shift to the left.
- Having thus described at least one illustrative embodiment of the invention, various alterations, modifications, and improvements will readily occur to those skilled in the art. Such alterations, modifications, and improvements are intended to be within the spirit and scope of the invention. Accordingly, the foregoing description is by way of example only and is not intended as limiting. The invention is limited only as defined in the following claims and the equivalents thereto.
Claims (5)
1. A barrel shifter arranged to receive a number N of symbols in parallel, arranged in a number n2 of distinct groups of a number n1 of symbols, and to apply a total circular shift to the N symbols of a determined number of positions, the barrel shifter comprising:
n2 first barrel shifters, each first barrel shifter being adapted to receive one of the distinct groups of n1 symbols and to apply a first circular shift to said group of n1 symbols, the first shift depending on the total shift;
a rearrangement module adapted to receive the N symbols provided by the first barrel shifters and to provide N symbols arranged, in a determined manner, in n1 distinct groups of n2 symbols;
n1 second barrel shifters, each second barrel shifter being adapted to receive one of the distinct groups of n2 symbols and to apply a second circular shift to said group of symbols, the second shift depending on the total shift;
a control module adapted to receive a signal bs_ctrl representing a total shift and to provide, to each first barrel shifter, a signal bs_ctrl1 representing the first shift that depends on the total shift and which is identical for each first barrel shifter, and adapted to provide, to each second barrel shifter, a signal bs_ctrl2 representing the second shift which depends on the total shift and which is identical for each second barrel shifter; and
a switching module adapted to switch at least two of the symbols of the N symbols.
2. The barrel shifter according to claim 1 , wherein the rearrangement module is adapted to provide, for a symbol received at an ith position in the N symbols provided by the first barrel shifters, said symbol at a jth position according to the following relationship:
j=mod(i,n 1)*n 2+floor(i/n 1)
where i is an integer between 0 and N-1, mod(i,n1) is the remainder of the whole division of i by n1 and floor(i/n1) is the quotient of the whole division of i by n1.
3. The barrel shifter according to claim 1 , wherein the control module is adapted to provide the signal bs_ctrl1 according to the following relationship:
bs_ctrl1=mod(bs_ctrl,n1)
where mod(bs_ctrl,n1) is the remainder of the whole division of bs_ctrl by n1, and adapted to provide the signal bs_ctrl2 according to the following relationship:
bs_ctrl2=floor(bs_ctrl/n1)
where floor(bs_ctrl/n1) is the quotient of the whole division of bs_ctrl by n1,
the barrel shifter further comprising an auxiliary rearrangement module adapted to receive the N symbols provided by the second barrel shifters and, for a symbol received at an ith position, to provide said symbol at a jth position according to the following relationship:
j=mod(i,n 2)*n 1+floor(i/n 2)
where i is an integer between 0 and N-1, mod(i,n2) is the remainder of the whole division of i by n2, and floor(i/n2) is the quotient of the whole division of i by n2,
the switching module comprising N multiplexing modules, each multiplexing module receiving a first symbol at a relative position k, k being an integer between 1 and n1, of the n1 symbols provided by a first barrel shifter and a second symbol at said relative position k of the n1 symbols provided by a first adjacent barrel shifter and providing the second symbol when k is less than or equal to bs_ctrl1 and the first symbol when k is greater than bs_ctrl1.
4. The barrel shifter according to claim 1 , wherein the control module is adapted to provide the signal bs_ctrl1 according to the following relationship:
bs_ctrl1=floor(bs_ctrl/n2)
where floor(bs_ctrl/n2) is the quotient of the whole division of bs_ctrl by n2, and adapted to provide the signal bs_ctrl2 according to the following relationship:
bs_ctrl2=mod(bs_ctrl,n2)
where mod(bs_ctrl,n2) is the remainder of the whole division of bs_ctrl by n2,
the barrel shifter further comprising an auxiliary rearrangement module adapted to receive the N symbols and to provide the N symbols to the first barrel shifters such that, for a symbol received at an ith position, said symbol is provided at a jth position according to the following relationship:
j=mod(i,n 2)*n 1+floor(i/n 2)
where i is an integer between 0 and N-1, mod(i,n2) is the remainder of the whole division of i by n2, and floor(i/n2) is the quotient of the whole division of i by n2,
the switching module comprising N multiplexing modules, each multiplexing module receiving a first symbol at a relative position k, k being an integer between 1 and n2, in the group of n2 symbols amongst the N symbols received by said barrel shifter, and a second symbol at said relative position k in an adjacent group of n2 symbols and providing, to the auxiliary rearrangement module, the first symbol when k is less than or equal to the difference between n2 and bs_ctrl2 and the second symbol when k is greater than the difference between n2 and bs_ctrl2.
5. A decoder comprising processors connected to memory elements and to a barrel shifter according to claim 1 , wherein the processors and the memory elements are arranged in first and second concentric rings and in which the first and second barrel shifters of the barrel shifter are arranged in a third ring concentric to the first and second rings.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US12/777,958 US8635259B2 (en) | 2005-05-04 | 2010-05-11 | Barrel shifter |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
FRFR05/51182 | 2005-05-04 | ||
FR0551182 | 2005-05-04 |
Related Child Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US12/777,958 Continuation US8635259B2 (en) | 2005-05-04 | 2010-05-11 | Barrel shifter |
Publications (1)
Publication Number | Publication Date |
---|---|
US20060251207A1 true US20060251207A1 (en) | 2006-11-09 |
Family
ID=35478357
Family Applications (2)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US11/418,169 Abandoned US20060251207A1 (en) | 2005-05-04 | 2006-05-04 | Barrel shifter |
US12/777,958 Active 2028-08-06 US8635259B2 (en) | 2005-05-04 | 2010-05-11 | Barrel shifter |
Family Applications After (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US12/777,958 Active 2028-08-06 US8635259B2 (en) | 2005-05-04 | 2010-05-11 | Barrel shifter |
Country Status (3)
Country | Link |
---|---|
US (2) | US20060251207A1 (en) |
EP (1) | EP1720171B1 (en) |
DE (1) | DE602006005020D1 (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080304614A1 (en) * | 2007-04-02 | 2008-12-11 | Stmicroelectronics Sa | Electronic multimode data shift device, in particular for coding/decoding with an ldpc code |
US20100100788A1 (en) * | 2008-10-17 | 2010-04-22 | Shaohua Yang | Programmable quasi-cyclic low-density parity check (QC LDPC) encoder for read channel |
US10354717B1 (en) * | 2018-05-10 | 2019-07-16 | Micron Technology, Inc. | Reduced shifter memory system |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8270558B2 (en) * | 2007-09-10 | 2012-09-18 | St-Ericsson Sa | Electronic device, barrel shifter unit and method of barrel shifting |
US9411684B2 (en) * | 2014-03-18 | 2016-08-09 | Micron Technology, Inc. | Low density parity check circuit |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US4490809A (en) * | 1979-08-31 | 1984-12-25 | Fujitsu Limited | Multichip data shifting system |
US4829460A (en) * | 1986-10-15 | 1989-05-09 | Fujitsu Limited | Barrel shifter |
US6449328B1 (en) * | 2000-05-15 | 2002-09-10 | International Business Machines Corporation | Method and apparatus for shifting data from registers |
US20070088772A1 (en) * | 2005-10-17 | 2007-04-19 | Freescale Semiconductor, Inc. | Fast rotator with embedded masking and method therefor |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS58184649A (en) * | 1982-04-22 | 1983-10-28 | Toshiba Corp | Shifting circuit |
US5170484A (en) * | 1986-09-18 | 1992-12-08 | Digital Equipment Corporation | Massively parallel array processing system |
US6308189B1 (en) * | 1998-06-03 | 2001-10-23 | International Business Machines Corporation | Apparatus for partial logical shifts and method therefor |
AU2003301920A1 (en) * | 2002-11-12 | 2004-06-03 | International Business Machines Corporation | Device and method for performing shift/rotate operations |
-
2006
- 2006-05-03 EP EP06113466A patent/EP1720171B1/en not_active Not-in-force
- 2006-05-03 DE DE602006005020T patent/DE602006005020D1/en active Active
- 2006-05-04 US US11/418,169 patent/US20060251207A1/en not_active Abandoned
-
2010
- 2010-05-11 US US12/777,958 patent/US8635259B2/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US4490809A (en) * | 1979-08-31 | 1984-12-25 | Fujitsu Limited | Multichip data shifting system |
US4829460A (en) * | 1986-10-15 | 1989-05-09 | Fujitsu Limited | Barrel shifter |
US6449328B1 (en) * | 2000-05-15 | 2002-09-10 | International Business Machines Corporation | Method and apparatus for shifting data from registers |
US20070088772A1 (en) * | 2005-10-17 | 2007-04-19 | Freescale Semiconductor, Inc. | Fast rotator with embedded masking and method therefor |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080304614A1 (en) * | 2007-04-02 | 2008-12-11 | Stmicroelectronics Sa | Electronic multimode data shift device, in particular for coding/decoding with an ldpc code |
US8126022B2 (en) * | 2007-04-02 | 2012-02-28 | Stmicroelectronics Sa | Electronic multimode data shift device, in particular for coding/decoding with an LDPC code |
US20100100788A1 (en) * | 2008-10-17 | 2010-04-22 | Shaohua Yang | Programmable quasi-cyclic low-density parity check (QC LDPC) encoder for read channel |
US8281214B2 (en) * | 2008-10-17 | 2012-10-02 | Lsi Corporation | Programmable quasi-cyclic low-density parity check (QC LDPC) encoder for read channel |
US10354717B1 (en) * | 2018-05-10 | 2019-07-16 | Micron Technology, Inc. | Reduced shifter memory system |
Also Published As
Publication number | Publication date |
---|---|
EP1720171B1 (en) | 2009-01-28 |
DE602006005020D1 (en) | 2009-03-19 |
US8635259B2 (en) | 2014-01-21 |
EP1720171A1 (en) | 2006-11-08 |
US20100293212A1 (en) | 2010-11-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US5323402A (en) | Programmable systolic BCH decoder | |
CN111162797B (en) | Encoding device and encoding method of rate compatible 5G LDPC code | |
EP0075985B1 (en) | A data processing device for processing multiple-symbol data-words based on a symbol-correcting code and having multiple operating modes | |
US8635259B2 (en) | Barrel shifter | |
US7454693B2 (en) | LDPC decoder | |
JP4978625B2 (en) | Error correction coding method and apparatus | |
US8020063B2 (en) | High rate, long block length, low density parity check encoder | |
US9250996B2 (en) | Multicore type error correction processing system and error correction processing apparatus | |
US6523146B1 (en) | Operation processing apparatus and operation processing method | |
US9104589B1 (en) | Decoding vectors encoded with a linear block forward error correction code having a parity check matrix with multiple distinct pattern regions | |
US10727873B1 (en) | System and method for successive cancellation list decoding of polar codes | |
JP6511284B2 (en) | Minimum value selection circuit, decoder and minimum value selection method | |
EP1146652B1 (en) | High speed coding apparatus for convolutional codes | |
KR100864363B1 (en) | Coding circuit and digital signal processing circuit | |
JP2000353965A (en) | Method and device for interleaving, turbo encoding method and turbo encoder | |
US20080243974A1 (en) | Electronic data shift device, in particular for coding/decoding with an ldpc code | |
CN113114264B (en) | Thermometer decoding method and circuit | |
US6629239B1 (en) | System and method for unpacking and merging bits of a data world in accordance with bits of a mask word | |
US11489534B1 (en) | Digital-to-analog conversion architecture and method | |
US20100058150A1 (en) | Coding Apparatus and Method | |
KR20130092441A (en) | Decoder and decoding method | |
JPH04218829A (en) | Barrel shifter having parity-bit generator | |
JP2012124888A (en) | Decoder and decoding method | |
KR100192803B1 (en) | Apparatus for computing error correction syndromes | |
CN108540138B (en) | CSRAA coding circuit and encoder |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
AS | Assignment |
Owner name: STMICROELECTRONICS S.A., FRANCE Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNORS:PAUMIER, LAURENT;URARD, PASCAL;REEL/FRAME:017871/0879 Effective date: 20060430 |
|
STCB | Information on status: application discontinuation |
Free format text: ABANDONED -- FAILURE TO PAY ISSUE FEE |