The present invention is related to interleavers, and more particularly, to a channel constrained code aware interleaver.
Interleavers provide protection against bursts and media defects by scrambling the coded information in the channel domain. Traditionally, interleavers have always been designed without much consideration about the underlying code. There are many well known interleaver variants such as the s-random interleaver, algebraic interleaver, matrix interleaver, as well as others, that map bits in the ISI domain to bits in the coded domain. The essential principle in these interleaving constructions is that adjacent ISI bits over a certain window length are mapped to non-adjacent bits in the code domain. This rule helps the code to recover information in the event of media defects and burst errors that would flip adjacent bits in the channel domain.
However, when interleavers are used in conjunction with a particular channel code, the scrambling functions must be designed in such a way that the code does not get correlated information from the channel. This makes the interleaver constrained to both the channel and the code specifications and is called a “channel constrained code aware interleaver”.
According to the present invention, a hardware embodiment of the interleaver of the present invention includes a first input path, a second input path, a multiplexer having a first input coupled to the first input path, a second input coupled to the second input path, a control input for receiving a control signal, and an output, a memory having a write input coupled to the output of the multiplexer and a read output, and a FIFO having a write input coupled to the output of the memory and a read output. The first input path includes a memory access interface coupled to a multiplexer and write mask block. The multiplexer and write mask block is also coupled to the read output of the memory. The first input path is coupled to a code memory. The code memory is coupled to a de-multiplexer having an input for receiving serial data. The de-multiplexer is coupled to the first and second shift registers for providing sub-circulant addresses. The second input path includes a sequential address generator. The memory includes a first RAM bank and a second RAM bank. The FIFO includes a plurality of FIFO stages for providing interleaver addresses for the write and read sides. There are two instances where addresses are needed at the read side and an instance where addresses are needed at the write side. Further, since there are de-interleaver and interleaver operations at both read and write sides, there are corresponding FIFO stages to support them. The hardware embodiment of the interleaver according to the present invention further includes a control block for receiving a mode control signal, and for controlling the memory and the FIFO. The control block further receives signal as to which FIFO must be selected depending upon the de-interleaver or interleaver operation performed in the decoder or the encoder side. The control block is coupled to an address count block for providing an interleaver address count.
The above and other objects, features and advantages of the present invention will become apparent from the following description of the preferred embodiment in conjunction with the accompanying drawings, wherein:
The constraints and memory organization of the code aware interleaver according to the present invention are now described. In particular, the joint constraints in the design of a practical code aware interleaver are described and a sequential algorithm that describes the mapping function is developed.
Let the channel memory depth be δ. Let f:x(n)→y(n) be the mapping of ‘n’ bits x(n) from the ISI domain to y(n) in the code domain.
The bits in the channel domain are correlated due to ISI. Thus consecutive bits in the channel domain should not be mapped to the bits that are correlated in the code domain. It has been a widely accepted notion that keeping the spreading in the code domain is helpful. On the contrary, this notion/definition of the role of interleaving is rather heuristic and adhoc. As described below, the definition of correlation in the code domain largely depends on the code or rather the decoding algorithm in question. Let {x(i)}i=n−δn be the consecutive bits in the ISI domain. The channel spreading constraints simply imply that
It is imperative that larger the value of δ, the better would be the de-correlation between the adjacent bits in the code domain after the interleaver mapping.
For example, suppose there are ISI indices Ix=(1,2,3,4,5,6,7,8). Letting δ=2, n=8 the coded indices satisfying the constraint equation (1) could be Iy=(5,6,7,8,1,2,3,4).
The decoder operates on the interleaved bits from the detector. Let us consider the LDPC (“Low-Density Parity-Check”) code for this purpose. The code is characterized by a parity check matrix H of dimensions (n−k)×n whose rows are the check nodes and columns are the variable nodes [1]. Let c=[c1c2 . . . cn−k] denote the vector of check nodes. Let v=[v1v2 . . . vn] denote the variable nodes. Let {vm(i)}:|{vm(i)}=deg(ci)| be the set of variable nodes connecting check node ci with degree deg(ci). The check nodes must get information from variable nodes that are not correlated. Thus the adjacent indices in the ISI domain up to a depth δ must not map into any of the variable nodes connecting a check node.
The above rule can be succinctly described as:
Equation (2) is now a “tighter” constraint compared to (1) since any variable node connecting a bit node must not be mapped to consecutive ISI indices up to a memory depth δ.
For example, consider the parity check matrix:
Let Ix=(1,2,3,4,5,6,7,8) and δ=2. The set of code indices satisfying the constraint equation (2) is Iy=(7,2,3,5,6,8,6,1).
In addition to the parity check matrix constraint based on equation (2), additional constraints can be imposed based on specific error events/trapping sets that the code sees.
An interleaver that incorporates system performance constraints and is tailored made to it is in principle a constrained interleaver.
In order to meet the throughput requirements for high speed applications, the data is multiplexed into parallel streams and each stream is handled separately. This is called the “design multiplexed rate” (1/λ). Let x=[x1x2 . . . xt] be a uniformly partitioned block of ISI bits with each interleaved sub-word xi of length n/t. The interleaved sub-word (ISW) is divided into λ interleaved bit-lanes of equal length. A hardware friendly requirement translates to the fact that the interleaver must have the same density of parity and information bits across the interleaved sub-word.
The hardware constraints are stated below.
In addition to the above constraints, it may be desired that the interleaver be programmed algorithmically through a reduced set of mappings so that the performance and the hardware needs are met.
The memory organization for the LDPC based interleaver memory organization is described below. This memory organization is not only useful to model the hardware constraints but also serves as the backbone to devise an algorithm that works with the hardware specifications with all possible options that serve as a tradeoff between performance and design.
With respect to
such DSW chunks.
The bits from the DSW memory are then mapped to ISW memory based on the architectural constraints and the rules for mapping DSW chunks to ISW chunks.
With respect to
An example of a particular code aware interleaver algorithm according to the present invention is now described. The mapping of bits from DSW memory to the ISW memory constitutes the interleaving algorithm. The interleaving algorithm is sequential in nature and produces a valid mapping satisfying all the constraints provided that a solution is available.
The key steps in the procedure are:
The complexity of such a searching technique is linear in the number bits processed. As such, with a code length n, the algorithm will either terminate with a solution in O(n) steps or not produce a solution. In order for the system to have a solution that may weakly violate a few code based constraints, a certain threshold τ is forced on the number of violations that may be allowed. This design allows us to study the performance versus hardware complexity tradeoffs for several solutions.
With respect to
Constrained interleaving takes into account considerations of the code, channel memory and the hardware requirements. The framework of constrained interleaving according to the present invention can be tailored to handle a wide variety of constraints and has a firmer theoretical basis towards interleaver design than adhoc schemes. The performance of the design according to the present invention was simulated over the magnetic recording channel and slight gains over the random error case and comparable performance with erasures were observed.
According to a hardware embodiment of the present invention, additional details on the block diagram and circuit for realizing the code-aware interleaver are provided.
There are two modes for operating the hardware interleaver 400 shown in
In a first mode, the pre-computed addresses from the an external algorithm described above that satisfy the channel constrained code aware constraints are stored in a memory and then loaded into the two random access memories (RAM 410) shown in
where n is the code length and ‘b’ is the number of bits needed to represent each address. In the example shown in
In a second mode, the addresses are automatically generated through a hardware logic circuit 500 shown in
It is possible to switch to the first mode by having a RAM based option in the event of encountering any error floor situations due to special trapping sets. The first mode has all the advantages of hardware constraints since it is naturally constructed taking hardware by-lane rules into account in addition to the code constraints. But since the interleaver locations are stored in the RAM, additional storage is required with the first mode. However, the second mode needs no additional storage since the procedure is automated through special hardware logic driven from addresses generated from code aware logic 510. Thus in normal operations the second mode of operation is effective and the first mode is an additional provision that can be decided at the time of read channel operation depending on the user needs.
In order to achieve high speed and zero-latency, the interleaving operations happen within the RAM of the code memory. Thus, additional storage is not needed to go back and forth between the channel and the code domains that would otherwise render the system to have latency equal to the code-word length. This scheme has zero-latency since the interleaver is effectively embedded in the low density parity check (LDPC) code memory RAM.
The advantages of this interleaving apparatus are obviously clear:
An additional option for algorithmic interleaver address generation (Non-code aware) is shown in
Although an embodiment of the present invention has been described for purposes of illustration, it should be understood that various changes, modification and substitutions may be incorporated in the embodiment without departing from the spirit of the invention that is defined in the claims, which follow.