US 6442729 B1 Abstract A convolution code generator according to the present invention simultaneously generates convolution codes with respect to input data word by word when a digital signal processor in which the convolution code generator can be installed has a bus configuration of a broad data width. The convolution code generator, which generates an (n, k, m) convolution code, wherein n is a code word length, k is a message block length, and m is a memory block, includes: a temporary data storing unit for temporarily storing input data of a word of a predetermined data width consisting of a plurality of bits, the temporary data storing unit including cells of a first group corresponding to a word and m−1 cells of a second group; and a plurality of exclusive logic operation units selectively connected to the cells of the first and second groups for generating the (n, k, m) convolution code with respect to input bits stored in the cells, wherein a part of data of a previous word is stored in the cells of the second group with respect to a present word stored in the cells of the first group. Also, according to the present invention, there is provided a digital signal processor including the convolution code generator.
Claims(13) 1. A convolution code generator, which generates an (n, k, m) convolution code, wherein n is a code word length, k is a message block length, and m is a memory block, comprising:
a temporary data storing means for temporarily storing input data of a word of a predetermined data width consisting of a plurality of bits, said temporary data storing means including cells of a first group corresponding to a word and m−1 cells of a second group wherein m−1 cells of the first group are coupled in parallel to the m−1 cells of the second group for the purpose of transferring data in parallel to the m−1 cells of the second group; and
a plurality of exclusive logic operation means connected to each of the cells of the said first and second groups for generating said (n, k, m) convolution code with respect to input bits stored in the cells of the first group, wherein a part of data of a previous word is stored in the cells of said second group with respect to a present word stored in the cells of said first group, wherein the word is encoded in a single cycle, wherein a number of the plurality of exclusive logic operation means is equal to one less than a number of cells in the first and second groups of cells and each of the plurality of exclusive logic operation means is connected to a different pair of adjacent cells in the first and second groups of cells, wherein the convolution code generator further comprises a second plurality of exclusive logic operation means including a first and second exclusive logic operation means corresponding to each cell of the first group of cells, wherein each of the first exclusive logic operation means are connected to said each corresponding cell and a corresponding one of the plurality of exclusive logic operation means, and wherein each of the second exclusive logic operation means is connected to a corresponding pair of the plurality of exclusive logic operation means.
2. The convolution code generator according to
3. The convolution code generator of
4. A convolution code generator, which generates a (2, 1, 5) convolution code, wherein 2 is a code word length, 1 is a message block length, and 5 is a memory block, comprising:
a temporary data storing means for temporarily storing input data of a word of a predetermined data width consisting of a plurality of bits, said temporary data storing means including cells of a first group corresponding to a word and 4 cells of a second group, wherein the input data is transferred into the temporary data storing means in parallel, and wherein 4 cells storing 4 highest bits of the first group are coupled in parallel to the 4 cells of the second group for the purpose of transferring data to the 4 cells of the second group; and
a plurality of exclusive logic operation means selectively connected to the cells of said first and second groups for generating said (2, 1, 5) convolution code with respect to input bits stored in the cells, wherein 4 highest bits of a previous word is stored in the cells of the second group with respect to a present word stored in the cells of the first group, said plurality of exclusive logic operation means including first to fourth exclusive logic operation means for performing exclusive logic operations of the cells of the first group which are adjacent to each other, and wherein a number of the plurality of exclusive logic operation means is equal to one less than a number of cells in the first and second groups of cells;
an exclusive logic operation means for performing an exclusive logic operation of a cell in which a bit is stored and an output of said fourth exclusive operation means to generate a first convolution code with respect to said bit; and
another exclusive logic operation means for performing an exclusive logic operation of outputs of said first and fourth exclusive operation means to generate a second convolution code with respect to said bit.
5. The convolution code generator according to
6. The convolution code generator according to
7. The convolution code generator of
8. A digital signal processor for processing a digital input, which includes a memory, an accumulator and a plurality of signal processing units and has a bus connected with said devices for input/output of data, comprising:
a convolution code generating means for generating a (n, k, m) convolution code, wherein n is a code word length, k is a message block length, and m is a memory block, and for loading said convolution code to said accumulator through said bus, said convolution generating means including:
a convolution code generator having a temporary data storing means for temporarily storing input data of a word of a predetermined data width consisting of a plurality of bits, said temporary data storing means including cells of a first group corresponding to a word and m−1 cells of a second group, wherein m−1 cells of the first group are coupled in parallel to the m−1 cells of the second group for the purpose of transferring data in parallel to the m−1 cells of the second group; and
a plurality of exclusive logic operation means, wherein at least one of the exclusive logic operation means is connected to each corresponding cell of said first and second groups for generating said (n, k, m) convolution code with respect to input bits stored in the cells of the first group, wherein a part of data of a previous word is stored in the cells of said second group with respect to a present word stored in the cells of said first group, and wherein said (n,k,m) convolution code is concurrently generated for all cells of the first group.
9. The digital signal processor according to
a temporary data storing means for temporarily storing input data of a word of a predetermined data width consisting of a plurality of bits, said temporary data storing means including cells of a first group corresponding to a word and 4 cells of a second group; and
a plurality of exclusive logic operation means selectively connected to the cells of said first and second groups for generating said (2, 1, 5) convolution code with respect to input bits stored in the cells, wherein a part of data of a previous word is stored in the cells of the second group with respect to a present word stored in the cells of the first group, said plurality of exclusive logic operation means including;
first to fourth exclusive logic operation means for performing exclusive logic operations of the cells of the first group which are adjacent to each other;
an exclusive logic operation means for performing an exclusive logic operation of a cell in which a bit is stored and an output of said fourth exclusive operation means to generate a first convolution code with respect to said bit; and
another exclusive logic operation means for performing an exclusive logic operation of outputs of said first and fourth exclusive operation means to generate a second convolution code with respect to said bit.
10. The digital signal processor according to
11. The digital signal processor according to
12. The convolution code generator of
13. The convolution code generator of
Description 1. Field of the Invention The present invention relates to convolution code generation, and more particularly to a convolution coder of a digital signal processor which consists of a hardware in the digital signal processor and provides a plurality of convolution codes by a single instruction. 2. Description of the Background Art Data must be transmitted to a receiving part without any error in transmission and reception of digital data. However, since errors can be made in general during the data transmission and reception, many ways have been proposed and actually used to prevent the errors. These can be referred to as an error correction code technique, which includes a block coding and a convolution coding. The present invention relates to the convolution coding technique, in particular, which has been recently used for cellular phones. To process digital signals, a digital signal processor (DSP) is exclusively used. The DSP has a function of convolutely coding data and supplying the coded data to a digital data receiving part, to transmit the data without error employing the digital processor which provides numerous functions related to the digital signal processing. Now, the convolution coding performed in a conventional DSP will be described. Generally, for bit-operation in the DSP there are provided instructions such as arithmetic shift or logical shift, AND, OR, EX-OR (exclusive OR), etc., and also there is provided an instruction for fetching a bit in a single word. Therefore, a convolution coding which is a specific signal processing with respect to an input signal is performed using the above-mentioned instructions for the bit operation supplied by the DSP. Now, the convolution coding will be described with reference to FIG. 1 which is a conceptional diagram. A convolution code with respect to inputted data x(n) is obtained as shown therein. Since an exclusive unit for such a convolution coding does not physically exist in the DSP, the convolution coding is processed using a plurality of instructions. As shown therein, the convolution coding process, marked a referential numeral Since the input data x(n) is shifted to the left to the right side of the shift register
In the above example of the (2, 1, 5) convolution code process, when a single bit is inputted to the shift register However, since the instructions for the bit operation provided by the DSP must be used in the convolution coding to the input data stream, a sequential instruction performance is required. In other words, the instructions are used in the digital signal processor, the data stream given by sequential instructions becomes convolutely coded. First, the bit stream constituting a data stream to be inputted is sequentially stored from a highest bit to a lowest bit in a specific part of a memory word by word. Accordingly, the memory includes, for example, a k number of words. Then, when the number of bits included in a single word is N, considering a general size, as shown in FIG. 1, a following process is required with respect to code each bit through the convolution coding. That is, each bit is coded by a bit-in-word reading step reading x(n) in a current bit as a currently inputted single bit; a data shifting step performing a shifting operation with previously inputted data; an exclusive-logic operating step operating a 2-input exclusive logic with respect to each bit value included in selected cells of the shift register; and a storing step storing G Since each step must be designated in a software, there are required a plurality of instructions. Further, although an assembly instruction is in charge of a single process and the process can be performed in one cycle, at least 10 cycles are needed since there are 5 shift register cells. Thus, there is required an operation volume which needs cycles of at least 10×N×K with respect to the entire input data. In a commonly used digital signal processor, because an operation by each bit is needed to process the convolution coding, instructions performed by each bit are used but the process of the bit unit operation is not possibly performed in the DSP having a data bus system such as 16, 24 or 32 bits, for example. Although it is possible to process the bit unit operation, the bit unit operation must be repeatedly applied to a data word of a data bus width, that is, a 16, 24, or 32-bit width, as many as the number thereof. The convolution coding process consists of the shifting and the exclusive logic operation appropriate to the process by each bit unit, which are relatively simple operations. However, using read/write, shift, and exclusive logic operation instructions which are to be processed in a word unit of the DSP suitable to process a broad data bus width is not desirable since it can not be effectively utilized in usefulness of resources which are supplied for enabling the above process. Accordingly, the present invention is directed to a convolution code generator which obviates the problems and disadvantages in the conventional art. An object of the present invention is to provide a convolution code generator that is implemented in a hardware which is suitable for performing a convolution coding operation of a plurality of bits consisting of input data. Another object of the present invention is to provide a convolution code generator appropriate for processing a convolution coding by a data bus width unit ill a digital signal processor which is suitable to process a relatively broad data bus width. To achieve these and other advantages and in accordance with the purpose of the present invention, as embodied and broadly described herein, there is provided a convolution code generator, which generates an (n, k, m) convolution code, wherein n is a code word length, k is a message block length, and m is a memory block, which includes: a temporary data storing means for temporarily storing input data of a word of a predetermined data width consisting of a plurality of bits, the temporary data storing means including cells of a first group corresponding to a word and m−1 cells of a second group; and a plurality of exclusive logic operation means selectively connected to the cells of the first and second groups for generating the (n, k, m) convolution code with respect to input bits stored in the cells, wherein a part of data of a previous word is stored in the cells of the second group with respect to a present word stored in the cells of the first group. To achieve the above objects of the present invention, according to a preferred embodiment of the present invention, there is provided a convolution code generator, which generates a (2, 1, 5) convolution code, wherein 2 is a code word length, 1 is a message block length, and 5 is a memory block, including: a temporary data storing means for temporarily storing input data of a word of a predetermined data width consisting of a plurality of bits, the temporary data storing means including cells of a first group corresponding to a word and 4 cells of a second group; and a plurality of exclusive logic operation means selectively connected to the cells of the first and second groups for generating the (2, 1, 5) convolution code with respect to input bits stored in the cells, wherein a part of data of a previous word is stored in the cells of the second group with respect to a present word stored in the cells of the first group, the plurality of exclusive logic operation means including first to fourth exclusive logic operation means for performing exclusive logic operations of the cells of the first group which are adjacent to each other; an exclusive logic operation means for performing an exclusive logic operation of a cell in which a bit is stored and an output of the fourth exclusive operation means to generate a first convolution code with respect to the bit; and another exclusive logic operation means for performing an exclusive logic operation of outputs of the first and fourth exclusive operation means to generate a second convolution code with respect to the bit. Further, to achieve the above objects of the present invention, there is provided a digital signal processor for processing a digital input, which includes a memory, an accumulator and a plurality of signal processing units and has a bus connected with the devices for input/output of data, the digital signal processor including: a convolution code generating means for generating an (n, k, m) convolution code wherein n is a code word length, k is a message block length, and m is a memory block and loading the convolution code to the accumulator through the bus, the convolution code generating means including; a convolution code generator having a temporary data storing means for temporarily storing input data of a word of a predetermined data width consisting of a plurality of bits, the temporary data storing means including cells of a first group corresponding to a word and m−1 cells of a second group; and a plurality of exclusive logic operation means selectively connected to the cells of the first and second groups for generating the (n, k, m) convolution code with respect to input bits stored in the cells, wherein a part of data of a previous word is stored in the cells of the second group with respect to a present word stored in the cells of the first group. The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the principles of the invention. In the drawings: FIG. 1 is a diagram illustrating a convolution code generating process in a conventional art; FIG. 2 is diagram illustrating a hardware configuration of a convolution code generator according to an embodiment of the present invention; and FIG. 3 is a diagram illustrating a configuration for generating a convolution code with respect to an n th bit of FIG. Reference will now be made in detail to the preferred embodiments of the present invention, examples of which are illustrated in the accompanying drawings. According to the present invention, to perform a convolution coding to input data to be processed in the DSP, a single word as an instruction, that is, data inputted in a 16, 24, or 32-bit unit are simultaneously convolution-coded in accordance with a configuration of a bus. For the convolution coding of the present invention, an instruction referred to as a CVENC can be used. Accordingly, a user using the DSP in which a convolution code generator is installed can achieve a required convolution coding process with the single CVENC instruction. Thus, as the instruction CVENC is processed during a process routine in the DSP, convolution codes to an input word of a 16-bit width, for example, are simultaneously generated and outputted, which can be compared to which the convolution code is obtained by each of bits generated various time units in the conventional art. To process such a CVENC instruction, the following process is included. First, a word of a predetermined width stored in a memory is stored in a temporary data storing unit according to the present invention provided in the DSP in accordance with the instruction. Here, it is noted that the word does not only necessarily designate a 16-bit width, but also can be 24, 32 bits or above in accordance with the configuration of the bus of the DSP. A plurality of logic devices are combined in the temporary data storing unit. The logic devices are provided for physically perform a logic operation for the convolution coding process in a hardware system. A value stored in each of the cells constituting the temporary data storing unit is applied to the logic devices. Thus, a plurality of convolution codes which are simultaneously produced are not needed to be operated in a bit unit and become suitable for the DSP of a broad bus width configuration. Then, the convolution codes with respect to the input data of a predetermined bit, which are simultaneously obtained, can be written in a predetermined area of the memory, or input data and processed outputs for the convolution coding can be provided to a bus and an accumulator in an internal system of the DSP, so that the convolution coding can be processed for a next process in the DSP. The convolution code generator according to the present invention provides an advantage in that it is easy to design an ASIC (an application-specific integrated circuit). As can be seen in a following example, the convolution code generator can simply respond to the requirement of the ASIC with the change of connection between the temporary data storing unit and the logic circuits. Further, since the convolution code generator according to the present invention can process with a single instruction, a burden of software creation can be reduced. An example in which the above mentioned process is described in assembly instructions according to the present invention is as follows. Following instructions are an example of a program which can be made for the convolution coding process using the DSP of the present invention. MVFRM AO, *AR CVENC MVTOM AO MVTOM AO The above instructions are processed in order in the DSP. When such a group of instructions is given, the convolution code generator reads 16 bits, for instance, and generates a convolution-coded output of 32 bits. Thus, when such a routine of the group of the instructions is repeated, a series of an input stream is supplied being convolutely coded. In the above instructions, MVFRM is an instruction that reads 1 word from a memory address which ARO indicates to the accumulator AO. MTVOM is an instruction indicating an order to store 1 word in a memory address indicated by AR In the present invention, being outputted as 32 bits, the result is stored over two times considering a case where it is needed to store the result over the two times, however such an example is varied in accordance with an application and also does not limit the scope of the present invention. Also, it is noted that the above specific numerical example is provided for the explanation of the present invention and each symbol of the group of the instructions is from the specific numerical example. However, such a general process can be similarly applied to various applications and further those who are skilled in the this field will be able to easily achieve the process. In the convolution code according to- the embodiment of the present invention, a ratio of an input to an output is 1:2, but it is also possible to have the ratio of 1:3 or 1:4 of the convolution code. In this case, other instructions and a hardware thereof can be similarly defined in accordance with a principle supplied by the present invention, which can be easily performed by those skilled in this field. For example, when at least two convolution codes are used in one system, the codes can be defined as CVENC_ The generation of the convolution code basically has a time order such as a 2-bit output to an 1-bit input, but in the present invention when 16 bits are inputted in each unit, 32 bits are calculated and outputted in one cycle. Now, there will be detailedly described a convolution code generator provided in the DSP according to a preferred embodiment of the present invention. The preferred embodiment of the present invention relates to a (2, 1, 5) convolution code generator and the DSP including the same has a configuration of a bus of a 16-bit width. Here, 16-bit data are simultaneously transmitted through the bus of the 16-bit width, which is applied as 16-bit data to the convolution code generator which is provided in the DSP as a hardware. The (2, 1, 5) convolution code generator generates a couple of convolution codes with respect to a single input bit, expressing 1 bit with respect to the single input bit and 4 bits which have been previously inputted in 1 unit, each bit constituting input data of 16 bits which are stored in a memory (not shown). FIG. 2 is a schematic diagram illustrating the convolution generator The temporary data storing unit The temporary data storing unit Contents of the cells of the temporary data storing unit In accordance with the relation among the gates thereof, a connection relation of logic devices can be derived. In other words, with respect to an n th bit, there are provided n th to n-4 th cells bn, bn-
wherein, r is a cell of the temporary data storing unit. Thus, the first convolution code of G Here, to continue a consecutive operation of a following word, as shown in FIG. 2, the values stored in the 4 cells b According to the preferred embodiment of the present invention, since the temporary data storing unit Thus, as indicated by an arrow ( The embodiment according to the present invention describes the example of planning the DSP of a data bus configuration of the 16-bit width to have the (2, 1, 5) convolution code function. According to the preferred embodiment of the present invention, there is provided the DSP including the convolution code generator. For example, a DSP exclusively designed for a cellular phone includes the convolution code generator and stores a program thereof, thus data of a broad bit width supplied by the DSP can be more effectively utilized and the planning thereof becomes relatively easy. Further, the number of convolution coding operation cycles is reduced and the size of an assembly code of the DSP decreases. It will be apparent to those skilled in the art that various modifications and variations can be made in the convolution code generator and digital signal processor which includes the same of the present invention without departing from the spirit or scope of the invention. Thus, it is intended that the present invention cover the modifications and variations of this invention provided they come within the scope of the appended claims and their equivalents. Patent Citations
Referenced by
Classifications
Legal Events
Rotate |