CN111124364A - Device and method for generating pseudo-random sequences with different levels - Google Patents

Device and method for generating pseudo-random sequences with different levels Download PDF

Info

Publication number
CN111124364A
CN111124364A CN202010085161.0A CN202010085161A CN111124364A CN 111124364 A CN111124364 A CN 111124364A CN 202010085161 A CN202010085161 A CN 202010085161A CN 111124364 A CN111124364 A CN 111124364A
Authority
CN
China
Prior art keywords
pseudo
memory
shift register
clock
random
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010085161.0A
Other languages
Chinese (zh)
Inventor
周敬权
陈诚
郝筱鲲
李航
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chengdu Yeruan Technology Co ltd
Original Assignee
Chengdu Yeruan Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chengdu Yeruan Technology Co ltd filed Critical Chengdu Yeruan Technology Co ltd
Priority to CN202010085161.0A priority Critical patent/CN111124364A/en
Publication of CN111124364A publication Critical patent/CN111124364A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F7/00Methods or arrangements for processing data by operating upon the order or content of the data handled
    • G06F7/58Random or pseudo-random number generators
    • G06F7/582Pseudo-random number generators

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computational Mathematics (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Pure & Applied Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Tests Of Electronic Circuits (AREA)

Abstract

The invention discloses a device for generating pseudo-random sequences of different levels, which is characterized by comprising a memory for receiving random pseudo codes sent by a plurality of variable length shift registers, wherein two adjacent variable length shift registers carry out binary addition operation of the random pseudo codes through an addition switch unit, and the random pseudo codes are output after being stored by the memory for improving the universality of the pseudo code generating device, and the implementation mode of the device is as follows: the device consists of a variable-length shift register, a binary addition switch unit and a memory. The variable-length shift register is composed of a plurality of shift register units, and is different from the traditional shift register, the variable-length shift register is provided with a control enabling end, and the switching of combinational logic and sequential logic can be carried out. When enabled, the shift register performs a sequential logic function, similar to a D flip-flop in a digital circuit, that is, passes input data to the output on the clock active edge.

Description

Device and method for generating pseudo-random sequences with different levels
Technical Field
The invention relates to a random sequence generating device and a generating method thereof, in particular to a generating device and a generating method of pseudo-random sequences with different levels.
Background
The direct sequence spread spectrum modulation is used for expanding the bandwidth of a baseband signal by multiplying the baseband signal by a high-speed pseudo code sequence, and the signal after the spread spectrum is used for modulating a carrier wave and then is transmitted out with a lower signal-to-noise ratio; and after the carrier is stripped from the received signal by the receiving end, multiplying the signal by the synchronous local pseudo-random code to complete the de-spreading and recover the baseband signal. Therefore, the spread spectrum communication has the characteristic of good anti-interference performance, and is widely applied to the fields of satellite communication, navigation communication and the like.
In the related field, a pseudo code generating device can only generate a pseudo code sequence with fixed progression when direct sequence spread spectrum modulation is carried out, and the device cannot be continuously used when an application scene changes. In practical spread spectrum communication engineering, pseudo code sequences of different levels are often needed to verify the reliability of the system. This requires that the pseudo-code generating means be able to generate pseudo-code sequences of different order. Therefore, in the spread spectrum communication engineering, the pseudo code generating device with different levels and strong universality can provide great convenience for engineering implementation.
In order to solve the problems, the invention provides a strong-universality pseudo code generating device, and further provides an efficient engineering application method in order to further improve the efficiency of the pseudo code generating device. .
Disclosure of Invention
The invention aims to solve the technical problem that a pseudo code generating device can only generate a pseudo code sequence with fixed series, cannot be continuously used when an application scene is changed, and requires the pseudo code generating device to generate pseudo code sequences with different series.
The invention is realized by the following technical scheme:
a device for generating pseudo-random sequences of different numbers and a generating method thereof comprise that a memory receives random pseudo codes sent by a plurality of variable length shift registers, two adjacent variable length shift registers carry out binary addition operation of the random pseudo codes through an addition switch unit, and the random pseudo codes are stored by the memory and then output.
The invention provides an efficient method for reducing the pseudo code generation time consumption. The memory of the invention adopts a clock domain crossing device, namely a high-speed clock is adopted to generate pseudo codes to be stored in the memory, and the pseudo codes are read out at a pseudo code rate when the memory is used. The consumed time is 1022x0.017us 17.374us calculated by generating the pseudo code sequence with the length of 1023 by using the 60M system clock signal, compared with the pseudo code rate used as the pseudo code generating clock, the consumed time is saved by more than 7 times, and the specific efficiency is different according to the actual engineering situation.
Furthermore, the basic unit of the variable length shift register is RiSaid shift register unit Ri+1And RiIs marked as Xi+1Wherein n is a natural number, and i is 1, 2, and.
The adding switch unit being a binary adding switch unit SjWhether or not to perform a binary addition operation is controlled by the primitive polynomial, where j takes 1, 2.
When primitive polynomial poly [ k ]]When 1, SnWill output the binary addition result of the input signal, otherwise will Sk+1Is transmitted to the output, where k takes 1, 2.
When the generating device is powered on, when the control signal ctrl [ m ] is]When 1, the variable length register unit RmExecuting a shift function, otherwise, directly connecting the input and the output; at start-up, the register initial value is loaded by clock edge trigger, after start-up, the shift is performed under the control of clock edge, and each effective edge is shifted by one bit, the above-mentioned ctrl [ m ] is]And represents the m-th bit value of the ctrl signal, wherein m is 0, 2, and n-1.
A method for generating pseudo-random sequences of different numbers of levels, the method comprising the steps of: s1: determining the working number of the shift register units through the length control signal; s2: loading the initial value of the register in a shift register; s3: the addition unit is controlled by the primitive polynomial to generate the next clock write R1A value of (1); s4: r is to benThe value of (a) is stored in a memory; s5: and outputting the pseudo code through a memory.
The memory in the step S5 adopts a clock domain crossing device, and stores the generated pseudo code into the memory under a high-speed clock; when in use, the pseudo code is read out by the actually needed pseudo code clock.
When the clock domain crossing device generates the pseudo code, the write-in operation is executed, the write-in clock is a system clock, after the write-in is completed, the write-in is not performed unless the pseudo code sequence is updated, and then the read-out operation is executed according to the requirement of a rear-stage module.
The length control signal can control the number of working register units, thereby realizing the generation of pseudo code sequences of different stages.
Compared with the prior art, the invention has the following advantages and beneficial effects:
1. the invention relates to a device and a method for generating pseudo-random sequences with different levels, and provides an efficient method for reducing pseudo code generation time consumption. The memory adopts a clock domain crossing device, namely a high-speed clock is adopted to generate pseudo codes to be stored in the memory, and the pseudo codes are read out at a pseudo code rate when the memory is used;
2. the invention relates to a device and a method for generating different-stage pseudo-random sequences, which realize the length control of a shift register by controlling an enabling signal of each shift register, and have the basic condition of generating different-stage pseudo-random sequences;
drawings
The accompanying drawings, which are included to provide a further understanding of the embodiments of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the principles of the invention. In the drawings:
FIG. 1 is a block diagram of the system of the present invention.
Reference numbers and corresponding part names in the drawings:
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is further described in detail below with reference to examples and accompanying drawings, and the exemplary embodiments and descriptions thereof are only used for explaining the present invention and are not meant to limit the present invention.
Examples
As shown in figure 1, the device for generating pseudo-random sequences with different orders is characterized by comprising a memory for receiving random pseudo codes sent by a plurality of variable length shift registers, and two adjacent variable length shift registers carry out binary addition operation of the random pseudo codes through an addition switch unit and are stored by the memory and then output.
For improving the universality of the pseudo code generating device, the realization mode of the invention is as follows: the device consists of a variable-length shift register, a binary addition switch unit and a memory.
The variable-length shift register is composed of a plurality of shift register units, and is different from the traditional shift register, the variable-length shift register is provided with a control enabling end, and the switching of combinational logic and sequential logic can be carried out. When enabled, the shift register performs a sequential logic function, similar to a D flip-flop in a digital circuit, that is, passes input data to the output on the clock active edge. When enabled and disabled, it functions like a wire in combinational logic, passing input data directly to the output. By controlling the enable signal of each shift register, the length control of the shift registers is realized, and the basic condition for generating pseudo-random sequences with different levels is provided.
For the generation of different pseudo code sequences with the same series, we usually adopt a method of changing primitive polynomial to realize. For the conventional pseudo code generating device, after the primitive polynomial is determined, the structure of the circuit is fixed. In order to realize the generation of different pseudo code sequences with the same number of stages, a binary addition unit is used, and the unit and the traditional binary addition unit belong to combinational logic devices, but the unit can be controlled by corresponding digits of a primitive polynomial. The binary addition switch unit has three inputs, one output, and the three inputs are respectively: the output X of the shift register of this stageiOutput S of preceding binary addition uniti-1And a control input. When the enable signal, i.e. the corresponding bit of the primitive polynomial, is 1, the output is Xi+Si-1When the corresponding bit is 0, the output is Si-1Thus, the construction of different primitive polynomial circuits is realized, and based on the device, the device can be used for realizing the operation of the circuitIt can generate pseudo-random codes with different numbers of stages, same number of stages and different sequences.
In the spread spectrum engineering, after the design scheme is determined, the code rate of the pseudo-random sequence is determined accordingly. The clock added to the system is 60MHz, the code rate of the pseudo random code is 8MHz, if the working time of the shift register (i.e. the number of shifts times the clock period) is taken as the total time consumed by the pseudo code generating device, then we generate a pseudo random sequence with length of 1023, and the traditional method takes the code rate as the pseudo code generating clock, and the time is 1022 × 0.125us 127.75 us. The invention provides an efficient way to reduce the consumption of pseudo code generation time, compared to 17.374us for the pseudo code generation clock, which is the system clock.
Taking the generation of 10-level pseudo code as an example, when the system is powered on, the length control ctrl is made to be 10' b11_1111_1111, so that the length control ctrl controls the variable length shift register working unit to be R1To R10Then setting initial register value state and primitive polynomial poly value, starting pseudo code generation, and simultaneously, carrying out write operation on the memory; when the generation of the pseudo code is finished, the memory stops the write operation until the length of the register is controlled, the initial value of the register or the primitive polynomial is changed, and then the write operation is carried out again; after the write operation is completed, the memory performs a read operation according to the requirements of the subsequent circuit.
The basic unit of the variable length shift register is RiSaid shift register unit Ri+1And RiIs marked as Xi+1Wherein n is a natural number, and i is 1, 2, and.
The adding switch unit being a binary adding switch unit SjWhether or not to perform a binary addition operation is controlled by the primitive polynomial, where j takes 1, 2.
When primitive polynomial poly [ k ]]When 1, SnWill output the binary addition result of the input signal, otherwise will Sk+1Is transmitted to the output, where k takes 1, 2.
When the generating device is powered on, when the control signal ctrl [ m ] is]When 1, the variable length register unit RmPerforming a shift function, otherwise, straightening the input and outputConnecting; at start-up, the register initial value is loaded by clock edge trigger, after start-up, the shift is performed under the control of clock edge, and each effective edge is shifted by one bit, the above-mentioned ctrl [ m ] is]And represents the m-th bit value of the ctrl signal, wherein m is 0, 2, and n-1.
A method for generating pseudo-random sequences of different numbers of levels, the method comprising the steps of: s1: determining the working number of the shift register units through the length control signal; s2: loading the initial value of the register in a shift register; s3: the addition unit is controlled by the primitive polynomial to generate the next clock write R1A value of (1); s4: r is to benThe value of (a) is stored in a memory; s5: and outputting the pseudo code through a memory. The memory in the step S5 adopts a clock domain crossing device, and stores the generated pseudo code into the memory under a high-speed clock; when in use, the pseudo code is read out by the actually needed pseudo code clock. When the clock domain crossing device generates the pseudo code, the write-in operation is executed, the write-in clock is a pseudo code generating clock, after the write-in is completed, the write-in is not performed unless the pseudo code sequence is updated, and then the read-out operation is executed according to the requirement of a rear-stage module. The length control signal can control the number of working register units, thereby realizing the generation of pseudo code sequences of different stages.
The above-mentioned embodiments are intended to illustrate the objects, technical solutions and advantages of the present invention in further detail, and it should be understood that the above-mentioned embodiments are merely exemplary embodiments of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (9)

1. A device for generating pseudo-random sequences with different series numbers is characterized by comprising a memory for receiving random pseudo codes sent by a plurality of variable length shift registers, wherein two adjacent variable length shift registers carry out binary addition operation of the random pseudo codes through an addition switch unit, and the random pseudo codes are stored by the memory and then output.
2. The apparatus of claim 1, wherein the variable length shift register has a basic unit of RiSaid shift register unit Ri+1And RiIs marked as Xi+1Wherein n is a natural number, and i is 1, 2, and.
3. The apparatus of claim 1, wherein the summing switch unit is a binary summing switch unit SjWhether or not to perform a binary addition operation is controlled by the primitive polynomial, where j takes 1, 2.
4. The apparatus for generating pseudo-random sequences of different orders as claimed in claim 3, wherein the primitive polynomial poly [ k ] is]When 1, SnWill output the binary addition result of the input signal, otherwise will Sk+1Is transmitted to the output, where k takes 1, 2.
5. The apparatus of claim 1, wherein the control signal ctrl [ m ] m is asserted when the apparatus is powered on]When 1, the variable length register unit RmExecuting a shift function, otherwise, directly connecting the input and the output; at start-up, the register initial value is loaded by clock edge trigger, after start-up, the shift is performed under the control of clock edge, and each effective edge is shifted by one bit, the above-mentioned ctrl [ m ] is]And represents the m-th bit value of the ctrl signal, wherein m is 0, 2, and n-1.
6. A method for generating pseudo-random sequences of different numbers of levels, the method comprising the steps of:
s1: determining the working number of the shift register units through the length control signal;
s2: loading the initial value of the register in a shift register;
s3: the addition unit is controlled by a primitive polynomial to generateWriting R for next clock1A value of (1);
s4: r is to benThe value of (a) is stored in a memory;
s5: and outputting the pseudo code through a memory.
7. The method for generating pseudo-random sequences of different orders according to claim 6, wherein the memory in step S5 uses a clock domain crossing device, and stores the generated pseudo-code into the memory under high-speed clock; when in use, the pseudo code is read out by the actually needed pseudo code clock.
8. The method of claim 6, wherein the cross-clock domain device performs a write operation when generating the pseudo code, the write clock generates a clock for the pseudo code, the write operation is not performed unless the pseudo code sequence is updated after the write operation is completed, and then the read operation is performed according to the requirement of a subsequent module.
9. The method as claimed in claim 6, wherein the length control signal controls the number of register units to generate different pseudo-code sequences.
CN202010085161.0A 2020-02-10 2020-02-10 Device and method for generating pseudo-random sequences with different levels Pending CN111124364A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010085161.0A CN111124364A (en) 2020-02-10 2020-02-10 Device and method for generating pseudo-random sequences with different levels

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010085161.0A CN111124364A (en) 2020-02-10 2020-02-10 Device and method for generating pseudo-random sequences with different levels

Publications (1)

Publication Number Publication Date
CN111124364A true CN111124364A (en) 2020-05-08

Family

ID=70491205

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010085161.0A Pending CN111124364A (en) 2020-02-10 2020-02-10 Device and method for generating pseudo-random sequences with different levels

Country Status (1)

Country Link
CN (1) CN111124364A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1309833A (en) * 1998-05-11 2001-08-22 艾利森电话股份有限公司 Sequence generator
CN1558590A (en) * 2004-01-29 2004-12-29 海信集团有限公司 Reconfigurable linear feedback shifting register
US20080281892A1 (en) * 2004-09-22 2008-11-13 Erwin Hemming Method and Apparatus for Generating Pseudo Random Numbers
CN102736891A (en) * 2011-12-22 2012-10-17 云南大学 Design of parallel adjustable pseudorandom sequence generator
CN102819418A (en) * 2012-07-31 2012-12-12 中国人民解放军国防科学技术大学 FIFO data storage method and device of ultrafine particle gated clock
CN104681091A (en) * 2013-11-27 2015-06-03 中国人民解放军信息工程大学 Reconfigurable linear feedback shift register
CN110058842A (en) * 2019-03-14 2019-07-26 西安电子科技大学 A kind of pseudo-random number generation method and device of structurally variable
CN212341860U (en) * 2020-02-10 2021-01-12 成都烨软科技有限公司 Device for generating pseudo-random sequences with different numbers of stages

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1309833A (en) * 1998-05-11 2001-08-22 艾利森电话股份有限公司 Sequence generator
CN1558590A (en) * 2004-01-29 2004-12-29 海信集团有限公司 Reconfigurable linear feedback shifting register
US20080281892A1 (en) * 2004-09-22 2008-11-13 Erwin Hemming Method and Apparatus for Generating Pseudo Random Numbers
CN102736891A (en) * 2011-12-22 2012-10-17 云南大学 Design of parallel adjustable pseudorandom sequence generator
CN102819418A (en) * 2012-07-31 2012-12-12 中国人民解放军国防科学技术大学 FIFO data storage method and device of ultrafine particle gated clock
CN104681091A (en) * 2013-11-27 2015-06-03 中国人民解放军信息工程大学 Reconfigurable linear feedback shift register
CN110058842A (en) * 2019-03-14 2019-07-26 西安电子科技大学 A kind of pseudo-random number generation method and device of structurally variable
CN212341860U (en) * 2020-02-10 2021-01-12 成都烨软科技有限公司 Device for generating pseudo-random sequences with different numbers of stages

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
吴盼望;张善从;: "基于移位寄存器的伪随机序列改进算法", 计算机工程, no. 18 *

Similar Documents

Publication Publication Date Title
JP3884115B2 (en) Digital matched filter
US5926070A (en) Efficient offset mask generator for pseudo-noise sequence generator
CN1064492C (en) Apparatus for performing frequency conversion in a communication system
JP2003504909A (en) Power Saving Matched Filter by Preliminary Calculation
US20070047623A1 (en) Method and apparatus for generating a pseudorandom binary sequence using a linear feedback shift register
US6181733B1 (en) Digital matched filter
EP1203452B1 (en) Address generating device for use in multi-stage channel interleaver/deinterleaver
CN212341860U (en) Device for generating pseudo-random sequences with different numbers of stages
CN115220694A (en) Random data generation circuit and read-write training circuit
RU2577588C1 (en) Method and device for generating scrambling code
AU699160B2 (en) Device and method for generating pseudorandom noise sequence
US6490316B1 (en) Correlation detection apparatus and CDMA receiving apparatus
CN111124364A (en) Device and method for generating pseudo-random sequences with different levels
EP0887728A2 (en) Pseudorandom number sequence generator
JP3499460B2 (en) Spreading code generating circuit and spreading code generating method
JP2917962B2 (en) Circuit for arbitrarily shifting M-sequence
JP3333454B2 (en) Correlation detecting device and despreading code switching method of correlation detecting device
CN115079999A (en) Random data generation circuit and read-write training circuit
WO2001028120A1 (en) Ring matched filter for synchronizing to a spreading code
WO2001050659A1 (en) Method and device for orthogonal variable spreading factor codes and hadamard matrices generation
CN201541257U (en) Serial descrambling and despreading device for mobile communication system
JP2902380B2 (en) Parallel correlation processing circuit
CN111654349B (en) Frame synchronization method and system
EP1160976B1 (en) Noncyclic digital filter and radio reception apparatus comprising the filter
CN118449532A (en) Universal encoder for quasi-cyclic LDPC code

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20200508

RJ01 Rejection of invention patent application after publication