Title of Invention

"A DEVICE FOR GENERATING A SPREADING CODE IN A CDMA COMMUNICATION SYSTEM"

Abstract The invention relates to a device for generating a spreading code in CDMA communication system is disclosed. In the device, an ML (Maximal Length) sequence generator generated an ML sequence according to a generator polynomial of an ML sequence having a length 2 -1 and a given initial value, and reloads the initial value whenever an ML sequence having a length shorter than the length 2 -1 is generated, to repeatedly perform an operation of generating the ML sequence. A mask selector including first and second masks having a given offset, selects the first mask in an ML sequence period and selects the mask in the other period. A modulo-2 adder ads an output of the ML sequence generator and an output of the maks selector to generate the spreading code, and truncates the ML sequence upon receipt of the second mask.
Full Text -1A
BACKGROUND OF THE INVENTION
1. Field of the Invention
The present invention relates generally to a device and method for generating spreading code in a CDMA communication system, and in particular, to a device and method for generating spreading code for spread spectrum.
2. Description of the Related Art
In an existing IS-95 CDMA system, spread spectrum is performed at a chip rate of 1.2288 x l06 cps (chips per second), so that a short PN (Pseudo Noise) code is generated at the chip rate of 1.2288xl06 cps. Since the short PN code should be generated during one-frame period (80msec/3=26.67msec) of a sync channel, the short PN code has a period of 215 chips (1.2288xl06 cps * .02667 sec).
FIG. 1 shows a conventional device for generating spreading codes. Referring to FIG. 1, the spreading code generator generates a short PN code using a generator for generating an ML sequence (M-sequence and/or Maximal-Length sequence, hereinafter the two terms will be used interchangeably) of length 215-1 The generator is comprised of 15 shift registers labeled R1-R15. By inserting one '0' after 14 '0' sequences generated in every period of 2l5-l, the resulting sequence is used as a short PN code of length 215. A generator polynomial of the ML sequence generator is used for identifying a code as well as a factor for determining a partial correlation property of the code The IS-95 standard identifies two phase channels (i.e., In-phase and Quadrature-phase channels) that use different polynomials and employ two different ML sequences.
A short PN code having a delay effect by a specific period A with regard
to the generated short PN code can be obtained by selectively module-2 adding the shift register values of the generator polynomial. That is, in FIG. 1, modulo-2 adders 101- 115 modulo-2 add outputs of their associated shift registers R1-R15 to the outputs of their associated AND gates 122-135, and provide their outputs to shift registers in the next stages. To select a shift register value for modulo-2

- 9 -
adding, a mask Short_PN_Code_Mask[0:14] is used. That is, different mask values are applied to generate short PN codes having a different offset (or phase
difference).
A proposed IMT-2000 system based upon a CDMA-2000 system supports a wideband CDMA system having a spreading frequency bandwidth greater than 1.2288xl06 cps. For a short PN code used in this case, 25-1 (where s is a positive number) sequences are partially selected from an ML sequence of length 215xN (where N is multiple of 3) which is not the conventional ML sequence of 215-1. Table 1 below shows a length of the short PN code required for each chip rate.
[Table 1]

Although an offset delay value for identifying the base station is applied to the generated short PN code, only the partially selected sequence should occur. However, in the conventional method in which an offset-delayed short PN code is generated by simply applying one mask, a sequence departing from the selected ML sequence period may be generated undesirably.
Such problems will be described with reference to FIG. 2. FIG. 2 shows a method for determining a short PN code having a length p=2l5x3 from an ML sequence having a length rrr=217-l represented by (b). Assume that the method for generating the spreading code having a length 215x3 shown in FIG. 1 is expanded to generate a short PN code by selecting only the first 3/4 portion from an ML sequence of length 2l7-l, in which 17 shift registers are provided. Assuming that a value selected from one period value of the binary ML sequence represented by (b) is Co and a short PN code is generated by selecting sequence values of length p beginning at the sequence value C0, the remaining (m-p) sequences out of the total m ML sequences correspond to an unused sequence. There is a simple method for

-3-
generating the short PN code by selecting a partial period of the whole ML sequence. In this method, a present state, represented by (d), of the shift register for generating the ML sequence or a sequence output is monitored. Further, after the state of the shift register becomes Sp-1 as represented by (d) of FIG. 2, or after a (p-l)th sequence occurs, an initial state signal represented by (c) is generated to initialize the shift register so that the first sequence Co is output.
A description will be made regarding a phenomenon occurring when only one mask value Mask_r corresponding to V is applied as shown in FIG. 1 to apply an offset delay 'r' to the generated short PN code represented by (e) of FIG. 2. In this case, as shown by (f) of FIG. 2, the offset delay value 'I' is applied to the ML sequence value in an A period corresponding to the sequences from 0th sequence to an (r-l)th sequence to generate (m-r)th to (m-l)th sequence values out of the original whole ML sequence of length 'm', and generate 0th to (p-r-l)th ML sequence vales from rth to (p-l)th ML sequences. This is because based on a unique property of the ML sequence, the offset delay value is determined according to the present shift register state and the mask value, and since a period of the original ML sequence is 'm', the offset delay occurs based on this period. Therefore, (m-r)th to (m-l)th ML sequence values belonging to the unused period occur in the A period. The presence of the sequence values in the A period is against the original intention of cyclic delaying only the original ML sequence values of 0th sequence Co to (p-l)th sequence Cp-1. That is, to achieve the desired cyclic offset delay as represented by (g) of FIG. 2, the offset delay value 'r' is applied to Oth to (r-l)th ML sequence values C0-Cr-1 so as to generate (p-r)th to (p-l)th sequence values of the original ML sequence.
As described above, when the conventional spreading code generation method generates a short PN code using only one mask, the undesired output is obtained in the A period of FIG. 2. To solve such problems, there is required a mask, Mask_(m-p+r), for further delaying by 'm-p' which corresponds to a length of the unused sequence of the original ML sequence, instead of using the mask Mask_r for delaying by 'r' in the A area.
SUMMARY OF THE INVENTION It is, therefore, an object of the present invention to provide a device and

-4-
method for generating a short PN code for spread spectrum in a CDMA communication system.
It is another object of the present invention to provide a device and method for generating a spreading code having a short period from a sequence having a long period in a CDMA communication system.
It is further another object of the present invention to provide a spreading code generation device and method which uses at least two masks in consideration of an offset so that an unused sequence period out of the whole sequence having a long period should not occur in the spreading code having the offset, in a CDMA communication system.
To achieve the above object, there is provided a device for generating a spreading code in a CDMA communication system. In the device, an ML (Maximal Length) sequence generator generates an ML sequence according to a generator polynomial of an ML sequence having a length 2s-1 and a given initial value, and reloads the initial value whenever an ML sequence having a length shorter than the length 2s-1 is generated, to repeatedly perform an operation of generating the ML sequence. A mask selector including first and second masks having a given offset, selects the first mask in an ML sequence period of the desired length and selects the second mask in the other period. An adder modulo-2 adds an output of the ML sequence generator and an output of the mask selector to generate the spreading code, and truncates the ML sequence upon receipt of the second mask.
ACCOMPANYING BRIEF DESCRIPTION OF THE/DRAWINGS
The above and other objects, features and advantages of the present invention will become more apparent from the following detailed description when taken in conjunction with the accompanying drawings in which:
FIG. 1 is a diagram illustrating a device for generating spread spectrum spreading codes in an existing CDMA communication system;
FIG. 2 is a diagram for explaining a procedure for generating a spreading code using one mask in the existing CDMA communication system;
FIG. 3 is a diagram illustrating a device for generating spread spectrum

-5-
spreading codes in a CDMA communication system according to an embodiment of the present invention;
FIG. 4 is a timing diagram for generating spreading codes in the spreading code generation device of FIG. 3; and
FIG. 5 is a diagram illustrating a procedure for generating a mask select signal and an M-sequence reload signal.
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT
A preferred embodiment of the present invention will be described herein below with reference to the accompanying drawings. In the following description, well-known functions or constructions are not described in detail since they would obscure the invention in unnecessary detail.
A CDMA communication system identifies base stations by assigning different offset delay values for a short PN code, and uncorrelates interference between multiple paths when multi-path delay occurs which is a general channel property of the mobile communication channel. With regard to the short PN code, all the mobile stations connected to one base station use the codes having the same offset delay value. When the mobile station handoff to another base station, the mobile station should use a code having different offset delay value. In particular, while a soft handoff is being performed, one mobile station may assign two or more different offset delay values to demodulation fingers of the rake receiver for the respective multi-paths to perform demodulation. Here, to generate a short PN code having a desired offset delay value, a common method applies a proper mask for the desired offset delay vale to a short PN code having an offset delay value of V.
Meanwhile, in an IS-95/IS-95A or CDMA-2000 (or IS-2000) system, for the short PN code, a binary code of period 32768 chips is typically used which is obtained by adding one '0' to an ML (Maximal Length) sequence having a chip rate of 1.2288MHz and a period of 32768 chips. A length of the binary code is identical to one-frame length (80msec/3) of the sync channel. However, the 3rd generation IS-2000 or UMTS CDMA systems may have a spreading frequency bandwidth wider than that of the IS-95 system. For example, in a 3xCDMA-2000

-6-
(IS-2000) system having a bandwidth of 1.2288x3=3.6864MHz, which is three times the spreading frequency bandwidth of the IS-95 system, to maintain the constant frame length (80msec/3) of the sync channel, there is required a short PN code having a length 32768x3. This is three times the length of the existing IS-95 short PN code. That is, in the wideband communication system having a wider spreading bandwidth than the existing CDMA communication system, a period of the desired short PN code varies according to applied bands. However, when the ML sequence is used for the short PN code as in the existing IS-95 system, the full period is always 2s (where s is a integer number; although the period of the ML sequence is always 2s -1, one '0' is added to make the period become 2s in a CDMA system, for convenience of implementation) based on the theoretical property of the ML sequence. Therefore, when the period of the desired short PN code is 2l3xN (where N is a multiple of 3), it is not possible to use the short PN code comprised of the full period of the ML sequence and instead, a partial period of the ML sequence of period 2l5 x N (where N is a multiple of 3) should be used.
However, when the short PN code is comprised of only a partial period of the ML sequence, the following problems occur. That is, as stated above, when a mask is simply applied as in the conventional method to generate a short PN code having a specific offset delay value, the generated code includes even the undesired period which is not the desired partial period of the ML sequence. Accordingly, the present invention proposes a method for generating a short PN code having a desired offset delay value, in the case where for a length of the desired short PN code, a partial period should be selected from the theoretical full period of the ML sequence. Although the invention will be described with reference to the IS-95 and IS-2000 systems for convenience of explanation, it will be understood by those skilled in the art that the invention can be applied to every system in which the short PN code is comprised of the partial period of the ML sequence.
FIG. 3 shows a device for generating a spreading code having a chip period of 32768xN (N=3,6,9,12) according to an embodiment of the present
invention.
Referring to FIG. 3, registers 320 to 32s-1 constitute a shift register. The

_ 7 -
registers 320 to 32s-1 are initialized by an initial state value INITIAL_STATE[0:s-1]. The output value Rs-1 of the register 32s-1 is provided to AND operators 300 to 30s-l. The AND operators 300 to 30s-l AND the output of the register 32s-1 with their associated coefficients a0 to as-1 of the generator polynomial. Adders 310 to 31s-l connected between the registers, modulo-2 add the outputs of the AND operators 301 to 30s-l and the outputs of the previous stages and then store the resulting values to the registers in the next stages.
A controller 360 generates a PN_ROLL_OVER signal for controlling the period 32768xN, and a mask select signal for selecting a corresponding mask. A selector 340 receiving a first mask Maskl[0:s-l] and a second mask Mask2[0:s-l], selects a mask signal according to the mask select signal output from the controller 360. AND gates 330 to 33s=l each AND the output values R0 to Rs-1 of registers 320 to 32s-1 with the mask signal selected by the selector 340. A modulo-2 adder 350 adds the output values of the AND operators 330 to 33s-l to generate a short PN code.
Referring to FIG. 3, the spreading code generator according to an embodiment of the present invention includes an ML sequence generator 370 and the controller 360. The ML sequence generator 370 generates an ML sequence which can reload the initial shift register values R0 to Rs-1 according to the generator polynomial of the ML sequence in order to generate a PN code generator which truncates a desired period from the spreading code of length 2s-1 (where S is the number of the shift registers) generated by the ML sequence generator and repeatedly generates the truncated period. The controller 360 selects the desired length of the spread spectrum spreading code from the whole spreading code of the generated ML sequence.
Further, the spreading code generator includes the modulo-2 adders 310 to 31s-2 and the selector 340, in order to generate a spreading code having a specific offset with regard to the selected spreading code. The modulo-2 adders 310 to 31s-1 selectively modulo-2 add the output values of the shift registers 320 to 32s-1 according to the mask value to generate an offset-delayed spreading code having a specific offset with respect to the generated original spreading code. The selector 340 selects one of the two mask values to generate the spreading code.

-8-
FIG. 4 shows a timing diagram for generating a short PN code of chip period 215x3 according to an embodiment of the present invention.
The invention will be described with reference to an example wherein a short PN code of chip period p=2l5x3 is generated when a spreading band has a chip rate of 1.2288xl06x3.
Referring to FIGS. 3 and 4, to generate a short PN code of chip period p=215x3, an ML sequence generator having a minimum period of 217-l can be used. A generator polynomial of the ML sequence generator can be expressed as shown in Equation (1) below.

In Equation (1), 'an' (where n=0,l,---,16) is a coefficient of the generator polynomial and has a value of '0' or '1'. This can be implemented using 17-stage shift registers R0 to Rs-1 and modulo-2 adders 310 to 31s-2 as in the ML sequence generator 370 of FIG. 3. The initial values 0 to s-1 of the 17-stage register in the ML sequence generator 370 should be reloadable. This is because the spreading code of chip period 2l5x3 can be generated by continuously reloading the initial values of the 17-stage register in the ML sequence generator 370 every 215x3 chip.
The spreading code generator requires a control signal generator for generating a control signal (i.e., a short PN code initial state load enable signal) for reloading the initial state value of the 17-stage register. The control signal is generated by the controller 360. The controller 360 can generate the control signal by using a counter having a period p=2l5x3 and providing a device for comparing the values of the shift registers R0 to Rs-1. The method using the values of the shift registers R0 to Rs-1 generates the control signal (i.e., short PN code initial state load enable signal) to reload an initial state So when a state value of the shift register is Sp-1, as shown in FIG, 4. In this manner, it is possible to generate a short PN code of period p=215x3 from the ML sequence generator 370 having a period

-9-m=217-l.
With respect to the short PN code determined in the above-stated method, the short PN code having a specific offset can be generated by selectively modulo-2 adding the state values of the shift registers, and this can be implemented by the block 380 of FIG. 3. Selection of the modulo-2 added value from the shift register is determined according to a mask value, and different mask values are required according to the desired offset.
In the embodiment of the present invention, the short PN code of period 215x3 is determined by truncating the M-sequence of period 217-1. When the short PN code having an offset is generated using the mask, consideration should be given to the unused codes out of the generated codes. Considering this, the embodiment of the present invention includes at least two types of mask sets: Maskl and Mask2. That is, the embodiment of the present invention includes two masks to apply a first mask to an M sequence in a first period and a second mask to an M sequence in a second period, so that it is possible to generate one short PN code using the masks having different offsets.
Such mask operation is performed by the selector 340, and the selector '340 is controlled by the controller 360. The controller 360 maintains selection of a specific mask before a length of the generated spreading code becomes the desired offset value 'r' of the generated spreading code, and generates a mask select signal for selecting the other mask when the length exceeds the offset value 'r' (i.e., when a spreading code of the desired length is generated).
A detailed description of the mask selection process will be described below. When the untruncated original ML sequence show by 413 of FIG. 4 is Mo, the spreading code M represented by 419 of FIG. 4 is determined by truncating the sequence Mo at p=2l5x3. A masked PN sequence M, represented by 421 of FIG. 4, having an offset 'r' from the spreading code M is available by combining the output values of the shift register of a generator for generating the code M represented by 419 with a mask (Maskl in the embodiment) required for phase delay (or offset) V. Here, when the Maskl is used for the code value M=[C0:Cr-1], the code values [Cp:Cm] of the unused period of the original code Mo are generated

- 10-
undesirably. Therefore, in the embodiment, in this period [Co:Cr-1], the Mask2 is used which causes the offset of 'r+m-p' rather than 'r'.
FIG. 5 shows a procedure for generating a mask select signal and an initial state load enable signal in the controller 360 of FIG. 3.
Referring to FIG. 5, a count value CNT includes a state of the ML sequence and an index for an output value, and a given state desired by the user is assumed to be a 0th state. The controller 360 initializes the count value CNT to '0' in step 511, and then increases the count value CNT by one each time the clock is generated, in step 513. Thereafter, the controller 360 compares the count value CNT with the offset value 'r' in step 515. When the count value CNT is lower than the offset value V, the controller 360 proceeds to step 517 and enables a mask select signal to select Mask2. Otherwise, the controller 360 proceeds to step 521 and disables the mask select signal to select Maskl. The selector 340 then selects Maskl or Mask2 according to the mask select signal from the controller 360. The mask select signal provided to the selector 340 is shown by 425 of FIG. 4, and the mask output from the controller 360 is shown by 423 of FIG. 4. The mask output from the selector 340 is provided to the AND gates 330 to 33s-l.
After selecting Maskl in step 521, the controller 360 determines in step 523 whether the count value CNT is equal to a length (p-1) of the desired short PN code. When the count value CNT is not equal to the length of the desired spreading code, the controller 360 returns to step 513 to repeat the above operation. However, when the count value CNT is equal to the length of the desired spreading code, the controller 360 generates an initial state reload signal and provides the generated signal to the M-sequence generator 370, in step 525. The M-sequence generator 370 then loads the initial state value INITIAL_STATE[0:s-1] and returns to the initial state of the ML sequence.
As described above, the novel spreading code generator generates a short PN code of desired length by operating the ML sequence of the desired length and the first mask from a spreading code of length 2s-1 generated by the ML sequence generator and performs truncation by operating the ML sequence of the unused period and the second mask having a specific offset with the first mask, so as to generate a spreading code having a length of the short PN code during one frame

-11 -
of the sync channel. Therefore, the short PN code is generated by repeating the above process. At this point, a partial period of the ML sequence should be selected in consideration of partial correlation of the spreading code and distribution balance of the binary value. In addition, it is possible to generate a spreading code having a specific offset with respect to the spreading code partially selected from the ML sequence.
While the invention has been shown and described with reference to a certain preferred embodiment thereof, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.

12-
WE CLAIM:
1. A device for generating a spread code in a CDMA (Code Division Multiple Access) communication system, comprising:
3 sequence generator for Generating a sequence according to a generator polynomial of a sequence having length 2 -1, and a given initial value, and reloading the initial value whenever a sequence having a length shorter than the length 2s -1 is generated, to repeatedly perform an operation of generating the sequence where S is a positive number:
a mask selector comprising first and second masks having a given offset, for selecting the first mask in a sequence period and selecting the second mask in another sequence period; and
an adder for modulo-2 adding an output of the sequence generator and an output of the mask selector to generate the spreading code, and truncating the sequence upon receipt of the seond mask .
2. The device as claimed in claim 1 comprising a controller for analyzing the length of the generated sequence and generating a reload control signal and a mask select signal when the sequence of the desired length is generated such that the mask selector selects one of the first and second masks according to the mask select signal -

13.
3- A spreading code generating method for a CDMA communication system, which Generates a spreading code having a length shorter than a length 25 -1 from a sequence having the length 25 -1, the method comprising the steps of:
generating a sequence according to a generator polynominal of a sequence having a length 2 -1 and a given initial value:
adding, using modulo-2 addition, the generated sequence and a first mask to generate the spreading codes
analysing a length of the generated sequence, reloading the initial value whenever the sequence of desired length is generated;
adding, using modulo-2 addition, a second mask having a given offset with the first mask: and
truncating the generated sequence.
The invention relates to a device for generating a spreading code in CDMA communication system is disclosed. In the device, an ML (Maximal Length) sequence generator generated an ML sequence according to a generator polynomial of an ML sequence having a length 2 -1 and a given initial value, and reloads the initial value whenever an ML sequence having a length shorter than the length 2 -1 is generated, to repeatedly perform an operation of generating the ML sequence. A mask selector including first and second masks having a given offset, selects the first mask in an ML sequence period and selects the mask in the other period. A modulo-2 adder ads an output of the ML sequence generator and an output of the maks selector to generate the spreading code, and truncates the ML sequence upon receipt of the second mask.

Documents:


Patent Number 202624
Indian Patent Application Number IN/PCT/2000/00659/KOL
PG Journal Number 11/2007
Publication Date 16-Mar-2007
Grant Date 16-Mar-2007
Date of Filing 16-Jun-2000
Name of Patentee SAMSUNG ELECTRONICS CO LTD
Applicant Address 416 MAETAN-DONG,PALDAL-GU,SUWON-SHI 442-370 KYUNGKI-GO,
Inventors:
# Inventor's Name Inventor's Address
1 BAE SANG-MIN YOUWON APT. NO.608-505, KWONSON-DONG,KWONSON-GU,SUWON-SHI 441-390 KYONGGI-DO,
2 CHO MI-YOUNG 932-18 PANGBAE 1-DONG, SOCHO-GU 137-061 SEOUL,
PCT International Classification Number H 04 J 13/00
PCT International Application Number PCT/KR00/00380
PCT International Filing date 2000-04-21
PCT Conventions:
# PCT Application Number Date of Convention Priority Country
1 1999/14301 1999-04-21 Republic of Korea