Interleaving circuit and communication device
By combining rearrangement circuits and address calculation circuits, efficient data interleaving and error correction are achieved even with large block sizes. This solves the problems of reduced throughput and difficult circuit installation in existing technologies, and achieves efficient data processing and error correction.
Patent Information
- Application Number
- CN202310162820.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2022-08-19
- Filing Date
- 2023-02-24
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2043-02-24
AI Technical Summary
Existing interleaving circuits suffer from reduced throughput or difficult circuit installation, especially with large block sizes, making it difficult to achieve efficient data rearrangement and error correction.
By employing a rearrangement circuit and an address calculation circuit, the data of every n bits is rearranged through parallel input and parallel output. The double buffering of the memory is utilized, combined with the address calculation circuit to calculate the write and read addresses, to achieve block interleaving processing.
With large block sizes, rearrangement can be performed at a rate of n bits per cycle, suppressing throughput reduction, achieving efficient data interleaving and error correction, simplifying circuit structure, and reducing the difficulty of circuit installation.
Smart Images

Figure CN117595965B_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present invention relate to interleaving circuits and communication devices. Background Technology
[0002] Error correction techniques are essential in communications, including quantum key distribution (QKD) which utilizes photons. Among error correction techniques, a method called Rate Adaptation is effective in improving information transmission speed and stabilizing error correction. However, the possibility of error correction failure increases due to the unevenness of error rates across a wide range of data and the occurrence of data block errors.
[0003] To ensure stable error correction and improve information transmission speed, it is effective to perform block interleaving processing, which involves swapping the bit order within blocks divided according to a predetermined number of bits. Summary of the Invention
[0004] However, existing technologies suffer from problems such as reduced throughput or difficulties in circuit installation. The object of this invention is to provide an interleaved circuit and communication device that can suppress the reduction in throughput and can be installed with a practical circuit structure.
[0005] The interleaving circuit in this implementation includes a rearrangement circuit and an address calculation circuit. For each loop, the rearrangement circuit inputs n bits of input data (n being an integer of 2 or more) in parallel, rearranging the n input data input in the n loops into n output data, each consisting of n bits input in a different loop. The address calculation circuit calculates the write address for writing the n output data to the first storage device and the read address for reading the n output data from the first storage device. Attached Figure Description
[0006] Figure 1 This is a block diagram of the communication device according to the first embodiment.
[0007] Figure 2 This is a block diagram of the interleaving circuit in the first embodiment.
[0008] Figure 3 This is a diagram illustrating an example of block interleaving processing.
[0009] Figure 4 This is a flowchart of the interleaving circuit in the first embodiment.
[0010] Figure 5 This is a diagram showing an example of the structure of a rearrangement circuit.
[0011] Figure 6This is a diagram showing an example of input data.
[0012] Figure 7 This is a diagram showing the state after four cycles from the start of the process.
[0013] Figure 8 This is a diagram showing the state after 5 cycles from the start of the process.
[0014] Figure 9 This is a diagram showing the state after 6 cycles from the start of the process.
[0015] Figure 10 This is a diagram showing the state after 7 cycles from the start of the process.
[0016] Figure 11 This is a diagram showing an example of input data and rearranged output data.
[0017] Figure 12 It is a diagram showing the relationship between the output order, address, and data.
[0018] Figure 13 This is a block diagram of the deinterleaving circuit.
[0019] Figure 14 This is a flowchart of the deinterleaving circuit.
[0020] Figure 15 This is a diagram illustrating an example of input data to the deinterleaving circuit.
[0021] Figure 16 This is a diagram showing an example of data written to memory.
[0022] Figure 17 This is a block diagram of the interleaving circuit in the second embodiment.
[0023] Figure 18 This is a flowchart of the interleaving circuit in the second embodiment.
[0024] Figure 19 This is a diagram illustrating an example of rearranging n-bit data.
[0025] Figure 20 It is a diagram showing the relationship between output order, address, memory type, and data.
[0026] Figure 21 This is a hardware structure diagram of the communication device according to the first or second embodiment.
[0027] (Symbol Explanation)
[0028] 10: Communication device; 100, 100-2: Interleaving circuit; 110: Rearrangement circuit; 120: Address calculation circuit; 130a, 130b, 130-2a, 130-2b: Memory; 140-2: Storage control circuit; 150-2: Mass storage memory; 211: Error correction unit; 212: Communication control unit; 220: Storage unit; 400: Deinterleaving circuit; 501~522: Flip-flops; 530-0~530-3: n-bit MUX. Detailed Implementation
[0029] Hereinafter, preferred embodiments of the interleaving circuit and communication device of the present invention will be described in detail with reference to the accompanying drawings.
[0030] As mentioned above, conventional interleaving techniques sometimes suffer from reduced throughput or increased circuit installation difficulties. For example, conventional interleaving circuit structures are characterized by the inability to simultaneously input a large number of bits, resulting in low throughput data rearrangement, such as 1 bit / cycle. Furthermore, when the block size is large, existing technologies require a large number of flip-flops or increase the memory word size to achieve high throughput, making circuit installation difficult.
[0031] Therefore, in the following embodiments, an interleaved circuit and communication device are implemented that can suppress throughput reduction even when the block size is large, and can be installed with a practical circuit structure.
[0032] (First Embodiment)
[0033] Figure 1 This is a block diagram illustrating an example of the structure of the communication device 10 according to the first embodiment. (See diagram for example.) Figure 1 As shown, the communication device 10 includes an interleaving circuit 100, an error correction unit 211, a communication control unit 212, and a storage unit 220.
[0034] The interleaving circuit 100 takes data for communication as input and outputs data obtained by rearranging the input data. For example, the interleaving circuit 100 performs block interleaving processing, which rearranges the data within each block of a predetermined block size.
[0035] The error correction unit 211 performs error correction on the output data rearranged by the interleaving circuit 100. In this embodiment, the interleaving circuit 100 performs block interleaving processing before error correction, so it is possible to suppress the error rate from becoming uneven and reduce the possibility of error correction failure.
[0036] The communication control unit 212 controls communications that use the output data. For example, the communication control unit 212 sends the output data to an external communication device that becomes the communication counterpart. Furthermore, in the external communication device, it is sometimes necessary to perform a process (deinterleaving) to rearrange the output data in its original order. An example of the structure of the deinterleaving circuit for performing deinterleaving will be described later.
[0037] Storage unit 220 stores various data used by communication device 10. For example, storage unit 220 stores input data and output data. Storage unit 220 can be composed of any commonly used storage medium such as flash memory, memory card, RAM (Random Access Memory), HDD (Hard Disk Drive), and optical disk.
[0038] The aforementioned units (error correction unit 211, communication control unit 212) can be implemented using one or more processors. For example, these units can also be implemented in software by having a processor such as a CPU (Central Processing Unit) execute programs. Alternatively, they can be implemented in hardware using a dedicated IC (Integrated Circuit) processor. They can also be implemented using both software and hardware simultaneously. When using multiple processors, each processor can implement one or more of the aforementioned units.
[0039] Next, an example of the structure of the interleaving circuit 100 will be described. Figure 2 This is a block diagram showing an example of the structure of an interleaving circuit 100. The interleaving circuit 100 includes a rearrangement circuit 110, an address calculation circuit 120, and memories 130a and 130b.
[0040] The rearrangement circuit 110, for each n×n bit input data, outputs output data obtained by rearranging the input data in an order different from the original bit order. For example, for each loop, the rearrangement circuit 110 takes n bits (n is an integer greater than 2) of input data in parallel, rearranges the n input data input in the n loops into n output data, each containing n bits input in a different loop, and outputs them.
[0041] Memory 130a and 130b are storage devices (an example of the first storage device) that store output data rearranged by rearrangement circuit 110. The interleaving circuit 100 of this embodiment is configured to have two memories 130a and 130b, each capable of storing a block of data. Memory 130a and 130b store data, for example, in units of n bits (one word). In other words, the word length of memories 130a and 130b is n bits.
[0042] The interleaving circuit 100 performs a double-buffering operation, switching between the memory used for writing (write memory) and the memory used for reading (read memory) of the two memories 130a and 130b for each block. Hereinafter, without distinguishing between memories 130a and 130b, they will be referred to simply as memory 130.
[0043] Address calculation circuit 120 calculates the write address for writing n output data into memory 130, and the read address for reading n output data from memory 130.
[0044] Next, we will illustrate an example of block interleaving. Figure 3 This diagram illustrates an example of block interleaving. Data D0 through D63 each represent 1 bit of data. These data are rearranged as a block. That is, in this example, the block size is 64 bits. However, the block size is not limited to this; it can be larger or smaller than 64 bits.
[0045] The interval for rearranging is defined as the interleaving interval, denoted by the number of bits n. Figure 3 This is an example where the interleaving interval n is 4. When the number of n bits (4 bits in the case of n=4) of input data within a block is set to d, the block size can also be expressed as n×d. Furthermore, the interleaving interval n is not limited to 4 and can be any value. For example, to practically achieve error rate uniformity, the interleaving interval n is sometimes set to 512.
[0046] Input data is entered in the order of D0, D1, D2, D3, D4, ... The rearranged output data is output in the order of D0, D4, D8, D12, D16, ..., D60, D1, D5, ... Thus, in this embodiment, data is rearranged in a manner that outputs data within a block in an order different from the input order.
[0047] In this implementation, the input data is rearranged in units of n×n bits. Figure 3 In this process, when input data of 16 bits (4×4 bits) such as D0 to D15 is input, the 16 bits of input data are rearranged. Hereafter, the number of n×n bit units of data within a block is set to N. Figure 3 In the example, N = 4 (= 64 / 16).
[0048] Next, the operation of the interleaving circuit 100 of the first embodiment will be explained. Figure 4 This is a flowchart illustrating an example of the operation of the interleaving circuit 100 according to the first embodiment. Figure 4 This shows an example of the actions performed when processing a block.
[0049] At the start of the operation, the interleaving circuit 100 initializes the internal signals, write address, and read address (step S101). Then, n bits of input data are input sequentially while the data is rearranged (steps S102 to S106).
[0050] Furthermore, in this embodiment, input data is input at a throughput of n bits per cycle. Additionally, after initialization (step S101), from cycle 1 to (n-1), since the input data for n cycles is not complete, rearranged output data is not output. After at least n cycles of input data have been input, rearranged n-bit output data is output. The following describes an example of processing after n cycles of input data (after n cycles).
[0051] First, the rearrangement circuit 110 receives n bits of input data (step S102). The rearrangement circuit 110 uses the input data received in step S102 and previously input data to rearrange the n×n bit units of input data, and outputs a portion of the rearranged result, namely n bits of output data (step S103).
[0052] The rearrangement circuit 110 writes n bits of output data to the write memory according to the write address calculated by the address calculation circuit 120 (step S104).
[0053] The interleaving circuit 100 reads n bits of data from the readout memory storing the rearranged output data according to the readout address calculated by the address calculation circuit 120 and outputs it (step S105).
[0054] The order of the output data from the rearrangement circuit 110 is different from the overall data order of the block. Therefore, the address calculation circuit 120 uses the following address calculation formula to calculate the write address of the output data and update it (step S106).
[0055] Write address = j × N + k
[0056] j: The bit position of the n bits in the output data (0≤j≤n-1)
[0057] N: The number of n×n bits of data
[0058] k: The position of the n×n bits of data within the block (0≤k≤N-1)
[0059] Furthermore, the address calculation circuit 120 calculates the read address of the output data, for example, by setting 0 as the initial value and incrementing it by 1 each time. Alternatively, the methods for calculating the write address and read address can be interchanged. For example, the address calculation circuit 120 can use the address calculation formula described above to calculate the read address and use incrementing from the initial value to calculate the write address. Thus, in the address calculation circuit 120, as long as the write address and read address are calculated by outputting any of the n output data from the memory 130 in n consecutive loops, any method can be used to calculate each address.
[0060] The interleaving circuit 100 can also pipeline these sequential processes (steps S102 to S106). Thus, for each n bits of data, each step can be processed in one loop.
[0061] The interleaving circuit 100 determines whether all data within the block has been processed (step S107). If not all data within the block has been processed (step S107: "No"), the interleaving circuit 100 returns to step S102 and repeatedly processes the next n bits of input data.
[0062] After processing all the data within the block (step S107: "Yes"), the interleaving circuit 100 switches between the memory used for writing (write memory) and the memory used for reading (read memory) among the two memories 130a and 130b (step S108) and ends the operation.
[0063] Thus, in this embodiment, by outputting the rearranged data while rearranging one block of data, rearrangement processing can be performed at a rate of n bits per cycle.
[0064] Next, an example of the structure of the rearrangement circuit 110 will be explained. Figure 5 This is a diagram showing an example of the structure of the rearrangement circuit 110. Figure 5 Is it as in Figure 3 The example illustrates a circuit structure for block interleaving when the interleaving interval n is set to 4 bits.
[0065] like Figure 5 As shown, the rearrangement circuit 110 receives n bits of input (in Figure 5 In the example, the input data is 4 bits (e.g., D0 to D3), and the output is n bits of output data (e.g., D'0 to D'3). Furthermore, in... Figure 5In the example, the least significant byte (LSB) of the input data is D0, and the most significant byte (MSB) is D3. Similarly, the least significant byte of the output data is D'0, and the most significant byte is D'3.
[0066] The rearrangement circuit 110 has flip-flops 501-522 (an example of a register) and n (in Figure 5 The example is a 4) n-bit MUX (multiplexer) 530-0 to 530-3 (an example of a selection circuit).
[0067] The n-bit MUX530-0 to 530-3 are selection circuits that select any data from the n-bit data and output n-bit data. The data containing the outputs of each of the n-bit MUX530-0 to 530-3 is called the n-bit output data.
[0068] When the output data is 4 bits (n=4), n-bit MUX530-0 to 530-3 select the bit at the j-th bit position of the output data, respectively. Hereinafter, the n-bit MUX that selects the bit at the j-th bit position is sometimes referred to as n-bit MUX530-j.
[0069] Flip-flops 501 to 522 are configured to be positioned at the i-th bit position (0≤i≤n-1) of the input data, and function as shift registers of level (n+i) or higher.
[0070] The following describes an example of a shift register configured such that each bit position of the input data is a (n+i)-level shift register. Furthermore, while a small number of registers (flip-flops) is preferable, considerations such as improving circuit configuration efficiency can be taken into account, allowing for a shift register configuration with a number of levels larger than (n+i). The minimum number of flip-flops, Nff, can be calculated using equation (1) below.
[0071] [Mathematical Expression 1]
[0072]
[0073] exist Figure 5 In the example, the position of the 0th bit of the input data forms a four-stage shift register consisting of four flip-flops, 501 to 504. In the first loop, D0 is input and stored in flip-flop 501. Then, in the second to fourth loops, D0 is shifted sequentially and stored in flip-flops 502 to 504, respectively.
[0074] The input of the n-bit MUX530-j is connected to the output of the (n-j+i)th stage flip-flop of the i-th bit of the input data. For example, based on the indicated selection signal, the n-bit MUX530-j selects and outputs the bits stored in any of the n connected flip-flops in each of the n consecutive cycles.
[0075] For example, whenever n bits of input data are input, the rearrangement circuit 110 switches the selection signal that indicates the bit selected by each n-bit MUX530-j. This enables the rearrangement of n×n bits of input data.
[0076] For example, the n-bit MUX530-2 is connected to the outputs of the second-stage flip-flop 502 (input D0, i=0), the third-stage flip-flop 507 (input D1, i=1), the fourth-stage flip-flop 513 (input D2, i=2), and the fifth-stage flip-flop 520 (input D3, i=3), respectively. The rearrangement circuit 110, for example, sets the signals indicating the selection of bits input from flip-flops 502, 507, 513, and 520 as selection signals 0, 1, 2, and 3, respectively. The n-bit MUX530-2 selects and outputs the bits stored in flip-flops 502, 507, 513, and 520 according to the selection signals 0, 1, 2, and 3 indicated in four consecutive cycles.
[0077] use Figures 6 to 11 This section provides an example illustrating the rearrangement operation of the rearrangement circuit 110.
[0078] Figure 6 This is a diagram showing an example of input data. Figures 7-10 The diagrams show the states after 4, 5, 6, and 7 cycles from the start of the process. Figure 11 This is a diagram showing an example of input data and rearranged output data.
[0079] Enter in sequence Figure 6 When given the input data, after 4 loops, the n×n bit data 50 (D0~D15) is processed as follows: Figure 7 The data is stored in the shift register as shown. The rearrangement circuit 110 outputs the data of D0, D4, D8, and D12 by setting the selection signal of the n-bit MUX530-j to 0.
[0080] The rearrangement circuit 110 can input n bits of data (D16 to D19) from the next n×n bits of data 51 within the same loop. In this way, the rearrangement of n×n bits of data can continue without leaving gaps.
[0081] Similarly, the rearrangement circuit 110 can rearrange data within an n×n bit data unit by switching the selection signal while shifting the data. Figures 8-10 For example, in Figure 8 The output shows the data of D1, D5, D9, and D13 selected according to selection signal 1. Figure 9 In this process, the output shows the data of D2, D6, D10, and D14 selected according to selection signal 2. Figure 10 In the output, the data of D3, D7, D11, and D15 selected according to the selection signal 3 are output.
[0082] Figure 11 Including Figure 6 The example shown is output data 60 after rearranging the input data. Output data 60 is compared with... Figure 6 The data obtained by rearranging the data from 50 is quite similar.
[0083] Then, the rearrangement circuit 110 sets the selection signal to 0 again for the next n×n bits of data (in Figure 6 The same process is repeated on data 51. Thus, n×n bit units of rearrangement are performed continuously.
[0084] The output data from the rearrangement circuit 110 is output in a different order than the overall data order (input order) of the block. Figure 12 It is a diagram showing the output order of the output data, the address of memory 130, and the relationship between the data after interleaving.
[0085] The rearranged output data is output from rearrangement circuit 110 in n bits each time. For example, according to... Figure 12 The output sequence shown in the rearranged circuit output sequence column will determine the output order. Figure 11 The input data shown is rearranged to obtain n-bit output data. Address calculation circuit 120 calculates the write address of the output data to make it... Figure 12 The value shown in the address bar. For example, the address calculation circuit 120 calculates the write address using the address calculation formula described above.
[0086] Therefore, the output data can be transformed into Figure 3 The outputs are stored in memory 130 in the order shown. Furthermore, Figure 12 The address shown is based on the premise that the word length of memory 130 is n bits.
[0087] For example, the data output in the rearrangement circuit with the sequence 4 is the one that is combined with... Figure 11 The data obtained by rearranging the n×n bit units of data where k=0. The rearranged output data is 60 ( Figure 11The bit position j of the data corresponding to the data with a rearrangement circuit output order of 4 within the () is 3. Additionally, as Figure 11 As shown, the number N of n×n bit units of data is 4. Therefore, the address calculation circuit 120 can calculate the write address using the above address calculation formula, such as j×N+k=3×4+0=12.
[0088] Furthermore, when the number of data units in the n×n bit range is a power of 2, the address calculation circuit 120 can replace multiplication by using bit connections that set the higher-order bits to positions within the n×n bit range and the lower-order bits to positions within the n×n bit range to calculate the address. This reduces the size of the circuit.
[0089] Next, an example of the structure of the deinterleaving circuit will be described. The deinterleaving circuit can be installed either in an external communication device that communicates with the communication device 10, or inside the communication device 10. Figure 13 This is a block diagram showing an example of the structure of a deinterleaving circuit 400. The deinterleaving circuit 400 includes a rearrangement circuit 110, an address calculation circuit 420, and memories 130a and 130b. Compared with the interleaving circuit 100, the deinterleaving circuit 400 is configured by replacing the arrangement of the rearrangement circuit 110, the address calculation circuit 420, and the memories 130a and 130b.
[0090] The rearrangement circuit 110 and the memories 130a and 130b have the same structure as the interleaving circuit 100, so they are given the same symbols and the description is omitted.
[0091] Address calculation circuit 420 calculates, for example, the write address for writing data (input data) rearranged by interleaving circuit 100 to memory 130, and the read address for reading input data from memory 130. Address calculation circuit 420 calculates the write address of data using the following address calculation formula.
[0092] Write address = k × N + j
[0093] j: The bit position of n bits within the data (0≤j≤n-1)
[0094] N: The number of n×n bits of data
[0095] k: The position of the n×n bits of data within the block (0≤k≤N-1)
[0096] When compared with the address calculation formula of the address calculation circuit 120 of the interleaving circuit 100, this address calculation formula becomes a formula in which k and j are interchanged.
[0097] Next, the operation of the deinterleaving circuit 400 will be explained. Figure 14This is a flowchart illustrating an example of the operation of the deinterleaving circuit 400. Figure 14 This shows an example of the actions when processing one block.
[0098] At the start of the operation, the deinterleaving circuit 400 initializes the internal signals, write address, and read address (step S201). Then, while inputting n bits of input data in sequence, the data is rearranged (steps S202 to S207).
[0099] The deinterleaving circuit 400 receives n bits of input data (step S202).
[0100] The address calculation circuit 420 uses the above address calculation formula to calculate and update the write address of the input data (step S203). Alternatively, the address calculation circuit 420 calculates the read address of the input data, for example, by setting 0 as the initial value and incrementing it by 1 each time. The deinterleaving circuit 400 writes the input data into the memory 130 according to the calculated write address (step S204).
[0101] Figure 15 This is a diagram illustrating an example of input data to the deinterleaving circuit 400. The input data is rearranged by the interleaving circuit 100, so for example, it becomes according to... Figure 12 Data that has been interleaved and arranged in the same order.
[0102] Figure 16 It shows that it is aimed at Figure 15 The diagram shows an example of a write address calculated from the input data and data written to memory 130 according to the write address (memory write data).
[0103] Return to Figure 14 The rearrangement circuit 110 reads n bits of input data from the memory 130 according to the read address calculated by the address calculation circuit 420 (step S205). The rearrangement circuit 110 rearranges the n×n bit units of input data read sequentially from the memory and outputs n bits of output data as part of the rearrangement result (steps S206 and S207).
[0104] The deinterleaving circuit 400 determines whether all data within the block has been processed (step S208). If not all data within the block has been processed (step S208: "No"), the deinterleaving circuit 400 returns to step S202 and repeatedly processes the next n bits of input data.
[0105] After processing all the data within the block (step S208: "Yes"), the deinterleaving circuit 400 switches between the memory used for writing (write memory) and the memory used for reading (read memory) among the two memories 130a and 130b (step S209), and ends the operation.
[0106] In response to Figure 16 When the data is rearranged by the rearrangement circuit 110 of the deinterleaving circuit 400, for example, as shown in the figure, it is obtained as follows: Figure 6 The data shown is before it is rearranged by the interleaving circuit 100.
[0107] According to this embodiment, by using a rearrangement circuit and memory with n-bit parallel inputs and parallel outputs, rearrangement processing can be performed at a rate of n bits per cycle. By adjusting n, even with large block sizes, high-throughput block interleaving processing can be achieved with a relatively small number of flip-flops and a practical word length (n bits).
[0108] For example, there is a known technique that sets the word length to n×m bits (where n and m are multiple bits). In the case where n = m = 512 bits is used for high-speed operation, the word length in this technique becomes 512×512 = 262144 bits, which is difficult to construct. In contrast, in this embodiment, the word length is n bits = 512 bits, so the circuit can be constructed within a practical range.
[0109] (Second Implementation)
[0110] In the second embodiment, an example using a relatively small capacity storage device (the second storage device) and a relatively large capacity storage device (the first storage device) is described. Furthermore, regarding the overall structure of the communication device 10, the only difference is that the interleaving circuit 100 is changed to an interleaving circuit 100-2, due to... Figure 1 Since they are the same, detailed explanations are omitted.
[0111] Figure 17 This is a block diagram illustrating an example of the structure of the interleaved circuit 100-2 according to the second embodiment. (See diagram for example.) Figure 17 As shown, the interleaving circuit 100-2 includes a rearrangement circuit 110, an address calculation circuit 120-2, memories 130-2a and 130-2b, a memory control circuit 140-2, and a large-capacity memory 150-2.
[0112] In the second embodiment, the difference from the first embodiment lies in the addition of an address calculation circuit 120-2, memories 130-2a and 130-2b, a storage control circuit 140-2, and a large-capacity memory 150-2. Other structures and functions are similar to those in the block diagram of the interleaving circuit 100 in the first embodiment. Figure 2Since they are the same, the same symbol is added, and the explanation here is omitted.
[0113] Memory 130-2a and 130-2b are storage devices for storing output data rearranged by rearrangement circuit 110. For example, memory 130-2a and 130-2b are configured to store half of the data in one block. The storage capacity of memory 130-2a and 130-2b is not limited to half of one block, but can also be 1 / m of one block (where m is an integer greater than or equal to 3).
[0114] The interleaving circuit 100-2 performs the following double-buffering operation: for each block, it switches between the memory used for writing (write memory) and the memory used for reading (read memory) in the two memories 130-2a and 130-2b.
[0115] Mass storage device 150-2 is a storage device (first storage device) with a relatively large storage capacity compared to storage devices 130-2a and 130-2b. Mass storage device 150-2 is, for example, a storage device capable of storing one block of data.
[0116] Memory 130-2a and 130-2b are equivalent to a storage device (second storage device) with a relatively small storage capacity compared to the large-capacity memory 150-2. Hereinafter, memory 130-2a and 130-2b will sometimes be referred to as small-capacity memory.
[0117] Small-capacity memory is implemented using, for example, SRAM (Static Random Access Memory). Large-capacity memory 150-2 is implemented using, for example, DRAM (Dynamic Random Access Memory). SRAM generally allows for faster data read and write speeds than DRAM, but it is more expensive.
[0118] Address calculation circuit 120-2 calculates the write address for writing output data to memory 130-2 and the read address for reading output data from memory 130-2. Additionally, address calculation circuit 120-2 calculates the write address for writing data read from memory 130-2 to mass storage memory 150-2 and the read address for reading data from mass storage memory 150-2. The calculation methods for the write and read addresses of mass storage memory 150-2 are the same as those of the address calculation circuit 120 in the first embodiment.
[0119] The storage control circuit 140-2 controls the following process: reading the output data stored in the small-capacity memory and storing the read output data in the large-capacity memory 150-2. For example, the storage control circuit 140-2 writes the data read from the small-capacity memory to the large-capacity memory 150-2 via a burst transfer on the bus.
[0120] In this embodiment, the interleaving circuit 100-2 rearranges the data according to a certain size (e.g., half the size of a block) and stores it in a small-capacity memory, and writes the data read from the small-capacity memory to the large-capacity memory 150-2. Since the data rearranged in a continuous manner is stored in the small-capacity memory, data can be written to the large-capacity memory 150-2 at high speed through burst transmission.
[0121] Next, the operation of the interleaving circuit 100-2 in the second embodiment will be explained. Figure 18 This is a flowchart illustrating an example of the operation of the interleaving circuit 100-2 according to the second embodiment. Figure 18 This shows an example of the actions when processing one block.
[0122] The processing of steps S301 to S303 is the same as steps S101 to S103 in the interleaving circuit 100 of the first embodiment, so its description is omitted.
[0123] The rearrangement circuit 110 writes the n-bit output data to the write memory in the small-capacity memory according to the write address calculated by the address calculation circuit 120-2 (step S304).
[0124] The storage control circuit 140-2 reads out n bits of data from the small-capacity memory, which contains a memory that rearranges half of the data (partial data) of a block. The read address is calculated by the address calculation circuit 120-2, and the read data is written to the large-capacity memory 150-2 (step S305). Alternatively, the storage control circuit 140-2 can also write data to the large-capacity memory 150-2 via burst transmission.
[0125] Address calculation circuit 120-2 calculates and updates the write address and read address of the next data in the small-capacity memory and the write address of the large-capacity memory 150-2 (step S306).
[0126] The interleaving circuit 100-2 can also pipeline these sequential processes (steps S302 to S306). Thus, for each n-bit of data, each step can be processed in one loop.
[0127] Interleaving circuit 100-2 determines whether there is no free capacity in the small-capacity memory, in other words, whether there is data stored in the small-capacity memory corresponding to its storage capacity (step S307). If there is free capacity in the small-capacity memory (step S307: "No"), interleaving circuit 100-2 returns to step S102 and processes the next n bits of input data repeatedly.
[0128] In the absence of free capacity of small-capacity memory (step S307: "Yes"), the interleaving circuit 100-2 switches between the memory used for writing (write memory) and the memory used for reading (read memory) of the two memories 130-2a and 130-2b (step S308).
[0129] Interleaving circuit 100-2 determines whether all data within the block has been processed (step S309). If not all data within the block has been processed (step S309: "No"), interleaving circuit 100-2 returns to step S102 and repeatedly processes the next n bits of input data.
[0130] After all the data within the block has been processed (step S309: "Yes"), the interleaving circuit 100-2 ends its operation.
[0131] Figure 19 This diagram illustrates an example of rearranging n bits of data using a small-capacity memory and a large-capacity memory 150-2. In this embodiment, using the small-capacity memory, a portion of the data in one block (partial data) is rearranged, and the partial data is written to the corresponding area in the large-capacity memory 150-2. This process is repeated until a block of rearranged data is finally stored in the large-capacity memory 150-2.
[0132] Next, use Figure 20 This section provides an example illustrating how to calculate the write address of a small-capacity memory. Figure 20 It is a diagram showing the output order of the output data of the rearrangement circuit 110, the address of the large-capacity memory 150-2, the address of the small-capacity memory, the type of memory, and the relationship between the data after interleaving.
[0133] The memory category indicates which of the two memory types, 130-2a and 130-2b, is used as a small-capacity memory for writing. Hereinafter, the memory category "MA" means memory type 130-2a, and the memory category "MB" means memory type 130-2b.
[0134] In this example, half of the data in one block is rearranged in a small-capacity memory and written to a large-capacity memory 150-2. The addresses of the large-capacity memory 150-2, respectively, for the output order of the rearrangement circuit, can be calculated using the address calculation formula described above.
[0135] The write address for writing data in the rearrangement circuit output sequence 1-8 into memory 130-2a and data in the rearrangement circuit output sequence 9-16 into memory 130-2b becomes... Figure 20 The value recorded in the address bar of the small-capacity memory.
[0136] The address calculation circuit 120-2 calculates the value of the address of the small-capacity memory by, for example, the following equation (2). tempAddr is the write address of the large-capacity memory 150-2. The correction value b is set to the following value: 0 when the memory class is MA, and 1 when the memory class is MB.
[0137] [Mathematical Expression 2]
[0138]
[0139] For example, regarding Figure 20 The reordering circuit outputs data in sequence 15, and the address is calculated as shown in equation (3) below. This value is related to... Figure 20 The value 5 in the address bar of the small-capacity memory is consistent with this.
[0140] [Mathematical Expression 3]
[0141]
[0142] In addition, the address calculation circuit 120-2 calculates the read address of the small-capacity memory by setting 0 as the initial value for each of the two small-capacity memories and incrementing it by 1 successively.
[0143] Thus, in this embodiment, by handling the memories 130-2a and 130-2b (small-capacity memories) like a cache, high-speed operation can be achieved while reducing the storage capacity of the memories 130-2a and 130-2b. For example, the two memories 130 in the first embodiment have a combined storage capacity of two blocks, while the small-capacity memories in this embodiment have half the storage capacity. At this time, as long as there is no speed limit in writing to the large-capacity memory 150-2, high-throughput block interleaving processing at a rate of n bits / cycle can be achieved.
[0144] As explained above, according to the first and second embodiments, throughput reduction can be suppressed, and interleaving processing can be implemented with a practical circuit structure.
[0145] Next, use Figure 21 The hardware structure of the communication device in the first or second embodiment will be described. Figure 21 This is an explanatory diagram showing an example of the hardware structure of a communication device according to the first or second embodiment.
[0146] The communication device in the first or second embodiment includes a control device such as a CPU 351, a storage device such as a ROM (Read Only Memory) 352 and a RAM 353, a communication I / F 354 that is connected to a network for communication, and a bus 361 that connects the various components.
[0147] The program executed by the communication device of the first or second embodiment is pre-programmed into ROM 352 and the like.
[0148] The program executed by the communication device of the first or second embodiment may also be configured as an installable or executable file and recorded on a computer-readable recording medium such as CD-ROM (Compact Disk Read Only Memory), floppy disk (FD), CD-R (Compact Disk Recordable), DVD (Digital Versatile Disk) and provided as a computer program product.
[0149] Furthermore, it can also be configured to provide the program executed by the communication device of the first or second embodiment by storing it on a computer connected to a network such as the Internet and then downloading it via the network. Alternatively, it can be configured to provide or distribute the program executed by the communication device of the first or second embodiment via a network such as the Internet.
[0150] The program executed by the communication device of the first or second embodiment enables the computer to function as a component of the aforementioned communication device. In this computer, the CPU 351 can read the program from a computer-readable storage medium, load it into the main storage device, and execute it.
[0151] While several embodiments of the invention have been described, these embodiments are presented merely as examples and are not intended to limit the scope of the invention. These new embodiments can be implemented in various other ways, and various omissions, substitutions, and modifications can be made without departing from the spirit of the invention. These embodiments and their variations are included within the scope and spirit of the invention, and are included within the scope of the invention as described in the claims and their equivalents.
[0152] Furthermore, the above-described embodiments can be summarized into the following technical solutions.
[0153] Technical Solution 1
[0154] An interleaved circuit, comprising:
[0155] A rearrangement circuit, for each loop, takes in n bits of input data (n being an integer greater than 2) in parallel, and rearranges the n input data input in the n loops into n output data, each consisting of n bits input in a different loop; and
[0156] The address calculation circuit calculates the write address for writing n of the output data to the first storage device and the read address for reading n of the output data from the first storage device.
[0157] Technical Solution 2
[0158] According to the interleaving circuit described in technical solution 1, wherein,
[0159] In the rearrangement circuit,
[0160] The i-th (0≤i≤n-1) bit position of the input data has a register of level (n+i) or higher that functions as a shift register.
[0161] The output includes n bits of output data stored in n registers among the registers at level (n+i) and above.
[0162] Technical Solution 3
[0163] According to the interleaving circuit described in technical solution 2, wherein,
[0164] In the rearrangement circuit, for each cycle, the n bits of output data stored in the register corresponding to any bit position among the n bit positions of the input data are selected and the selected output data is output.
[0165] Technical Solution 4
[0166] According to the interleaving circuit described in technical solution 3, wherein,
[0167] The input data has (n+i) levels of registers for the i-th (0≤i≤n-1) bit position.
[0168] The rearrangement circuit has n selection circuits.
[0169] The j-th (0≤j≤n-1) selection circuit is connected to the (n-j+i)-th level register of the (n+i)-th level register corresponding to the i-th (0≤i≤n-1)-th bit position of the input data, and selects the bits stored in any of the different registers in each of the n consecutive loops.
[0170] Technical Solution 5
[0171] According to the interleaving circuit described in technical solution 1, wherein,
[0172] The interleaving circuit also includes a second storage device with a smaller storage capacity than the first storage device.
[0173] The rearrangement circuit stores the output data in the second storage device.
[0174] The interleaving circuit also includes a storage control circuit, which reads the output data stored in the second storage device and stores the read output data in the first storage device.
[0175] Technical Solution 6
[0176] According to the interleaving circuit described in technical solution 1, wherein,
[0177] The address calculation circuit calculates the write address and the read address by outputting any one of the n output data from the first storage device in n consecutive cycles.
[0178] Technical Solution 7
[0179] A communication device comprising:
[0180] Interleaving circuits output data by rearranging the input data; and
[0181] The error correction unit performs error correction on the output data.
[0182] The interleaving circuit includes:
[0183] A rearrangement circuit, for each loop, takes in n bits of input data (n being an integer greater than 2) in parallel, and rearranges the n input data input in the n loops into n output data, each consisting of n bits input in a different loop; and
[0184] The address calculation circuit calculates the write address for writing n of the output data to the first storage device and the read address for reading n of the output data from the first storage device.
Claims
1. An interleaved circuit, comprising: The rearrangement circuit, for each loop, receives n bits of input data in parallel, and rearranges these n input data from the n loops into n output data, each consisting of n bits input from different loops. n is an integer greater than or equal to 2; as well as The address calculation circuit calculates the write address for writing n pieces of the output data to the first storage device and the read address for reading n pieces of the output data from the first storage device. The rearrangement circuit includes: A register of level (n+i) is used, with respect to the i-th bit position of the input data, to function as a shift register, where 0 ≤ i ≤ n-1; and n selection circuits, The j-th selection circuit is connected to the (n-j+i)-th level register of the (n+i)-th level register corresponding to the i-th bit position of the input data. In each of the n consecutive loops, it selects a bit stored in any of the different registers connected to it, where 0 ≤ j ≤ n-1 and 0 ≤ i ≤ n-1. The rearrangement circuit output includes n bits of output data selected by n selection circuits.
2. The interleaving circuit according to claim 1, wherein, The interleaving circuit also includes a second storage device with a smaller storage capacity than the first storage device. The rearrangement circuit stores the output data in the second storage device. The interleaving circuit also includes a storage control circuit, which reads the output data stored in the second storage device and stores the read output data in the first storage device.
3. The interleaving circuit according to claim 1, wherein, The address calculation circuit calculates the write address and the read address by outputting any one of the n output data from the first storage device in n consecutive cycles.
4. A communication device comprising: Interleaving circuits output data by rearranging the input data; and The error correction unit performs error correction on the output data. The interleaving circuit includes: The rearrangement circuit, for each loop, receives n bits of input data in parallel, and rearranges these n input data from the n loops into n output data, each consisting of n bits input from different loops. n is an integer greater than or equal to 2; as well as The address calculation circuit calculates the write address for writing n pieces of the output data to the first storage device and the read address for reading n pieces of the output data from the first storage device. The rearrangement circuit includes: A register of level (n+i) is used, with respect to the i-th bit position of the input data, to function as a shift register, where 0 ≤ i ≤ n-1; and n selection circuits, The j-th selection circuit is connected to the (n-j+i)-th level register of the (n+i)-th level register corresponding to the i-th bit position of the input data. In each of the n consecutive loops, it selects a bit stored in any of the different registers connected to it, where 0 ≤ j ≤ n-1 and 0 ≤ i ≤ n-1. The rearrangement circuit output includes n bits of output data selected by n selection circuits.
Citation Information
Patent Citations
Block interleaving with memory table of reduced size
WO2006085251A2
