CN116232541A - A method and system for generating a single-carrier signal - Google Patents
A method and system for generating a single-carrier signal Download PDFInfo
- Publication number
- CN116232541A CN116232541A CN202211654618.0A CN202211654618A CN116232541A CN 116232541 A CN116232541 A CN 116232541A CN 202211654618 A CN202211654618 A CN 202211654618A CN 116232541 A CN116232541 A CN 116232541A
- Authority
- CN
- China
- Prior art keywords
- data
- carrier signal
- single carrier
- communication module
- chip
- 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.)
- Granted
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L1/00—Arrangements for detecting or preventing errors in the information received
- H04L1/004—Arrangements for detecting or preventing errors in the information received by using forward error control
- H04L1/0056—Systems characterized by the type of code used
- H04L1/0071—Use of interleaving
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F15/00—Digital computers in general; Data processing equipment in general
- G06F15/16—Combinations of two or more digital computers each having at least an arithmetic unit, a program unit and a register, e.g. for a simultaneous processing of several programs
- G06F15/163—Interprocessor communication
- G06F15/167—Interprocessor communication using a common memory, e.g. mailbox
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F15/00—Digital computers in general; Data processing equipment in general
- G06F15/76—Architectures of general purpose stored program computers
- G06F15/78—Architectures of general purpose stored program computers comprising a single central processing unit
- G06F15/7807—System on chip, i.e. computer system on a single chip; System in package, i.e. computer system on one or more chips in a single package
- G06F15/781—On-chip cache; Off-chip memory
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L25/00—Baseband systems
- H04L25/02—Details ; arrangements for supplying electrical power along data transmission lines
- H04L25/03—Shaping networks in transmitter or receiver, e.g. adaptive shaping networks
- H04L25/03828—Arrangements for spectral shaping; Arrangements for providing signals with specified spectral properties
- H04L25/03866—Arrangements for spectral shaping; Arrangements for providing signals with specified spectral properties using scrambling
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Hardware Design (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Software Systems (AREA)
- Computing Systems (AREA)
- Microelectronics & Electronic Packaging (AREA)
- Spectroscopy & Molecular Physics (AREA)
- Power Engineering (AREA)
- Time-Division Multiplex Systems (AREA)
Abstract
Description
技术领域technical field
本发明涉及无线通信技术领域,特别是关于一种基于基带处理器与片外处理器的单载波信号生成方法及系统。The present invention relates to the technical field of wireless communication, in particular to a single-carrier signal generation method and system based on a baseband processor and an off-chip processor.
背景技术Background technique
目前,无线通信技术已经广泛应用于卫星通信、移动通信等场景中。以卫星通信为例,在不同通信体制的卫星通信中,单载波物理层的波形繁多,不同的物理层波形需要根据通信体制生成物理层调制波形,不同卫星通信体制的调制解调及解码方式不尽相同。通常,生成单载波调制信号的工作可以通过基带处理器来实现。At present, wireless communication technology has been widely used in scenarios such as satellite communication and mobile communication. Taking satellite communication as an example, in satellite communication of different communication systems, there are many waveforms in the physical layer of a single carrier. Different physical layer waveforms need to generate physical layer modulation waveforms according to the communication system. The modulation, demodulation and decoding methods of different satellite communication systems are different. all the same. Typically, the work of generating a single-carrier modulated signal can be done through a baseband processor.
对于信息速率稍慢的通信系统,基带处理器可以通过DSP(Digital SignalProcessing,数字信号处理)芯片等来实现,而对于信息速率较高的通信系统,基带处理器一般通过FPGA(Field Programmable Gate Array,可编程门阵列)专用芯片来实现。For a communication system with a slightly slower information rate, the baseband processor can be implemented by a DSP (Digital Signal Processing, digital signal processing) chip, etc., while for a communication system with a higher information rate, the baseband processor generally uses an FPGA (Field Programmable Gate Array, Programmable Gate Array) dedicated chip to achieve.
然而,本申请的发明人在研究中发现,对于使用FPGA专用芯片实现基带处理器的场景中,由于FPGA的通用性较差,对于不同卫星通信的物理层体制,需要编写不同的代码来实现单载波调制信号的生成,故存在着单载波信号生成效率不高及软硬件系统维护不易的问题。However, the inventors of the present application found in the research that in the scenario of using an FPGA-specific chip to implement a baseband processor, due to the poor versatility of the FPGA, different codes need to be written for different physical layer systems of satellite communications to realize a single The generation of carrier modulation signal, so there are problems such as low generation efficiency of single carrier signal and difficult maintenance of software and hardware system.
发明内容Contents of the invention
针对上述问题,本发明的目的是提供一种单载波信号生成方法及系统,基于基带处理器与片外处理器相协同,针对不同物理层通信体制快速生成基带单载波调制信号,提高单载波信号的生成效率,同时也有利于长期的维护,节省研发和人工成本。In view of the above problems, the object of the present invention is to provide a method and system for generating a single-carrier signal. Based on the cooperation of the baseband processor and the off-chip processor, the baseband single-carrier modulation signal can be quickly generated for different physical layer communication systems, and the single-carrier signal can be improved. The production efficiency is high, and it is also conducive to long-term maintenance, saving R&D and labor costs.
为实现上述目的,本发明采取以下技术方案:To achieve the above object, the present invention takes the following technical solutions:
第一方面,本申请提供一种单载波信号生成方法,所述方法包括:In a first aspect, the present application provides a method for generating a single carrier signal, the method comprising:
片外处理器根据需要生成的单载波信号,确定所述单载波信号对应的数据帧结构及时隙结构;The off-chip processor determines the data frame structure and slot structure corresponding to the single carrier signal according to the single carrier signal generated by the need;
所述片外处理器根据所述数据帧结构及时隙结构,生成所述单载波信号对应的配置参数,并将所述配置参数写入所述片外处理器与基带处理器之间的共享存储器,所述配置参数包括所述基带处理器的数据发送状态机的跳转状态和跳转条件,以及各个跳转状态下的通信模块选择使能开关;The off-chip processor generates configuration parameters corresponding to the single carrier signal according to the data frame structure and time slot structure, and writes the configuration parameters into a shared memory between the off-chip processor and the baseband processor , the configuration parameters include the jump state and jump condition of the data transmission state machine of the baseband processor, and the communication module selection enable switch under each jump state;
所述片外处理器根据需要生成的单载波信号,生成对应的帧头数据及通信模块数据,并将所述帧头数据及所述通信模块数据写入所述共享存储器;The off-chip processor generates corresponding frame header data and communication module data according to the single carrier signal generated as required, and writes the frame header data and the communication module data into the shared memory;
所述基带处理器获取待发送数据,并从所述共享存储器读取所述配置参数和所述帧头数据,实现在所述数据发送状态机下的状态跳转,并在各个跳转状态下,根据所述通信模块选择使能开关读取对应的通信模块数据,将读取的通信模块数据进行处理,生成所述数据帧结构及时隙结构的单载波信号。The baseband processor obtains the data to be sent, and reads the configuration parameters and the frame header data from the shared memory, realizes the state jump under the data sending state machine, and in each jump state Reading corresponding communication module data according to the communication module selection enable switch, processing the read communication module data, and generating a single carrier signal with the data frame structure and time slot structure.
在本申请的一种实现方式中,所述方法还包括:所述基带处理器通过中断信号将所述单载波信号的数据发送状态信息上报给所述片外处理器,以供所述片外处理器对所述基带处理器是否正确生成单载波信号进行验证。In an implementation manner of the present application, the method further includes: the baseband processor reports the data transmission status information of the single carrier signal to the off-chip processor through an interrupt signal, so that the off-chip The processor verifies whether the baseband processor correctly generates the single carrier signal.
在本申请的一种实现方式中,所述方法还包括:当所述片外处理器确定所述基带处理器未正确生成单载波信号时,重新调整所述配置参数和所述通信模块数据,并写入所述共享存储器,以供所述基带处理器再次读取并进行处理。In an implementation manner of the present application, the method further includes: when the off-chip processor determines that the baseband processor has incorrectly generated a single-carrier signal, readjusting the configuration parameters and the communication module data, And write into the shared memory for the baseband processor to read and process again.
在本申请的一种实现方式中,所述片外处理器根据上位机发送的通信体制选择信号,确定需要生成的物理层单载波信号。In an implementation manner of the present application, the off-chip processor determines the physical layer single-carrier signal to be generated according to the communication system selection signal sent by the host computer.
在本申请的一种实现方式中,所述共享存储器为所述基带处理器与所述片外处理器共用的双口RAM,所述基带处理器与所述片外处理器共用的双口RAM的每个地址对应于所述数据发送状态机的一个跳转状态,每个地址存储的数据按比特位组合为所述跳转状态下的通信模块选择使能开关。In an implementation manner of the present application, the shared memory is a dual-port RAM shared by the baseband processor and the off-chip processor, and the dual-port RAM shared by the baseband processor and the off-chip processor Each address corresponds to a jump state of the data sending state machine, and the data stored in each address is combined in bits to select an enabling switch for the communication module in the jump state.
在本申请的一种实现方式中,所述通信模块包括交织、加扰和信道编码。In an implementation manner of the present application, the communication module includes interleaving, scrambling and channel coding.
在本申请的一种实现方式中,所述单载波的形式包括FDD或TDD。In an implementation manner of the present application, the form of the single carrier includes FDD or TDD.
在本申请的一种实现方式中,所述单载波的导频方式包括连续导频或分布式导频。In an implementation manner of the present application, the pilot mode of the single carrier includes continuous pilot or distributed pilot.
第二方面,本申请提供一种单载波信号生成系统,包括基带处理器、片外处理器以及共享存储器;In a second aspect, the present application provides a single-carrier signal generation system, including a baseband processor, an off-chip processor, and a shared memory;
所述片外处理器,用于根据需要生成的单载波信号,确定所述单载波信号对应的数据帧结构及时隙结构;The off-chip processor is used to determine the data frame structure and slot structure corresponding to the single carrier signal according to the single carrier signal generated as required;
所述片外处理器,还用于根据所述数据帧结构及时隙结构,生成所述单载波信号对应的配置参数,并将所述配置参数写入所述片外处理器与基带处理器之间的共享存储器,所述配置参数包括所述基带处理器的数据发送状态机的跳转状态和跳转条件,以及各个跳转状态下的通信模块选择使能开关;The off-chip processor is also used to generate configuration parameters corresponding to the single carrier signal according to the data frame structure and time slot structure, and write the configuration parameters between the off-chip processor and the baseband processor The shared memory among, described configuration parameter comprises the jump state and jump condition of the data transmission state machine of described baseband processor, and the communication module selection enabling switch under each jump state;
所述片外处理器,还用于根据需要生成的单载波信号,生成对应的帧头数据及通信模块数据,并将所述帧头数据及所述通信模块数据写入所述共享存储器;The off-chip processor is also used to generate corresponding frame header data and communication module data according to the single carrier signal generated as required, and write the frame header data and the communication module data into the shared memory;
所述基带处理器,用于获取待发送数据,并从所述共享存储器读取所述配置参数和所述帧头数据,实现在所述数据发送状态机下的状态跳转,并在各个跳转状态下,根据所述通信模块选择使能开关读取对应的通信模块数据,将读取的通信模块数据进行处理,生成所述数据帧结构及时隙结构的单载波信号。The baseband processor is used to obtain the data to be sent, and read the configuration parameters and the frame header data from the shared memory, realize the state jump under the data sending state machine, and In the transition state, read the corresponding communication module data according to the communication module selection enable switch, process the read communication module data, and generate the single carrier signal of the data frame structure and time slot structure.
在本申请的一种实现方式中,所述基带处理器为FPGA;所述片外处理器为所述FPGA片外的DSP、CPU或MCU。In an implementation manner of the present application, the baseband processor is an FPGA; the off-chip processor is a DSP, CPU or MCU off-chip of the FPGA.
本发明由于采取以上技术方案,其具有以下优点:本发明申请方案中的片外处理器根据需要生成的单载波信号,生成配置参数,并写入共享存储器,再由基带处理器读取配置参数,根据配置参数实现数据发送状态机的状态跳转以及各个状态下的通过模块数据的处理,生成所需的单载波信号,相比于现有技术,无需改变硬件平台和代码,就能实现快速生成不同通信体制的单载波信号,提高了效率,同时有效降低维护成本。Because the present invention adopts the above technical scheme, it has the following advantages: the single carrier signal generated by the off-chip processor in the application scheme of the present invention generates configuration parameters according to needs, and writes them into the shared memory, and then reads the configuration parameters by the baseband processor According to the configuration parameters, the state jump of the data transmission state machine and the processing of the module data in each state are realized to generate the required single-carrier signal. Compared with the existing technology, the fast Generate single-carrier signals of different communication systems, which improves efficiency and effectively reduces maintenance costs.
附图说明Description of drawings
图1是本发明实施例提供的一种单载波生成系统的结构示意图;FIG. 1 is a schematic structural diagram of a single carrier generation system provided by an embodiment of the present invention;
图2是本发明实施例提供的一种单载波生成方法的流程示意图;FIG. 2 is a schematic flowchart of a method for generating a single carrier provided by an embodiment of the present invention;
图3是本发明实施例提供的一种单载波生成系统的结构示意图和信号流示意图;FIG. 3 is a schematic structural diagram and a schematic signal flow diagram of a single carrier generation system provided by an embodiment of the present invention;
图4是图3实施例中的片外处理器的处理流程示意图;Fig. 4 is a schematic diagram of the processing flow of the off-chip processor in the embodiment of Fig. 3;
图5是图3实施例中的基带处理器的处理流程示意图;Fig. 5 is a schematic diagram of the processing flow of the baseband processor in the embodiment of Fig. 3;
图6是图3中基带处理器的发送机状态机状态跳转示意图;Fig. 6 is a schematic diagram of the state jump of the transmitter state machine of the baseband processor in Fig. 3;
图7是图3实施例中的导频及扰码生成示意图;FIG. 7 is a schematic diagram of generation of pilots and scrambling codes in the embodiment of FIG. 3;
图8是本发明实施例中的一种数据帧结构示意图;Fig. 8 is a schematic diagram of a data frame structure in an embodiment of the present invention;
图9是本发明实施例中的另一种数据帧结构示意图。FIG. 9 is a schematic diagram of another data frame structure in an embodiment of the present invention.
具体实施方式Detailed ways
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例的附图,对本发明实施例的技术方案进行清楚、完整地描述。显然,所描述的实施例是本发明的一部分实施例,而不是全部的实施例。基于所描述的本发明的实施例,本领域普通技术人员所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purpose, technical solutions and advantages of the embodiments of the present invention more clear, the following will clearly and completely describe the technical solutions of the embodiments of the present invention in conjunction with the drawings of the embodiments of the present invention. Apparently, the described embodiments are some, not all, embodiments of the present invention. All other embodiments obtained by those skilled in the art based on the described embodiments of the present invention belong to the protection scope of the present invention.
针对现有技术使用FPGA专用芯片实现基带处理器的场景中,由于FPGA的通用性较差,对于不同卫星通信的物理层体制,需要编写不同的代码来实现单载波调制信号的生成,故存在着单载波信号生成效率不高及软硬件系统维护不易的问题,本申请提供一种基于基带处理器与片外处理器的单载波信号生成方法及系统,包括:片外处理器根据需要生成的单载波信号,确定所述单载波信号对应的数据帧结构及时隙结构;所述片外处理器根据所述数据帧结构及时隙结构,生成所述单载波信号对应的配置参数,并将所述配置参数写入所述片外处理器与基带处理器之间的共享存储器,所述配置参数包括所述基带处理器的数据发送状态机的跳转状态和跳转条件,以及各个跳转状态下的通信模块选择使能开关;所述片外处理器根据需要生成的单载波信号,生成对应的帧头数据及通信模块数据,并将所述帧头数据及所述通信模块数据写入所述共享存储器;所述基带处理器获取待发送数据,并从所述共享存储器读取所述配置参数和所述帧头数据,实现在所述数据发送状态机下的状态跳转,并在各个跳转状态下,根据所述通信模块选择使能开关读取对应的通信模块数据,将读取的通信模块数据进行处理,生成所述数据帧结构及时隙结构的单载波信号。本申请技术方案,能够提高单载波信号的生成效率,同时也有利于长期的维护,节省研发和人工成本。In the scenario where FPGA-specific chips are used to implement baseband processors in the existing technology, due to the poor versatility of FPGA, different codes need to be written for different physical layer systems of satellite communications to realize the generation of single-carrier modulation signals, so there are In view of the low efficiency of single-carrier signal generation and difficult maintenance of software and hardware systems, this application provides a single-carrier signal generation method and system based on a baseband processor and an off-chip processor, including: a single-carrier signal generated by the off-chip processor as needed Carrier signal, determine the data frame structure and slot structure corresponding to the single carrier signal; the off-chip processor generates configuration parameters corresponding to the single carrier signal according to the data frame structure and slot structure, and configures Parameters are written into the shared memory between the off-chip processor and the baseband processor, and the configuration parameters include the jump state and the jump condition of the data sending state machine of the baseband processor, and each jump state The communication module selection enable switch; the off-chip processor generates corresponding frame header data and communication module data according to the single carrier signal generated by the need, and writes the frame header data and the communication module data into the shared memory; the baseband processor obtains the data to be sent, and reads the configuration parameters and the frame header data from the shared memory, realizes the state jump under the data sending state machine, and at each jump state, read the corresponding communication module data according to the communication module selection enable switch, process the read communication module data, and generate the single carrier signal of the data frame structure and time slot structure. The technical solution of the present application can improve the generation efficiency of the single-carrier signal, is also beneficial to long-term maintenance, and saves research and development and labor costs.
如背景技术所述,载不同体制的卫星通信系统中,各种卫星通信体制的调制解调及编解码方式不尽相同。一般的,在通信速率稍慢的通信系统的调制解调可以在DSP或CPU等芯片上实现,对于通信镀铝较高的通信系统则可以选择在FPGA上实现。但是利用FPGA实现的系统,其通用性能较差,不能很好地利用一个统一硬件平台及软件代码实现不同通信体制下的物理层单载波波形。As mentioned in the background art, in satellite communication systems carrying different systems, the modulation, demodulation and codec methods of various satellite communication systems are not the same. Generally, modulation and demodulation in a communication system with a slightly slower communication rate can be implemented on chips such as DSP or CPU, and for a communication system with a higher communication aluminum plating, it can be implemented on an FPGA. However, the general performance of the system implemented by FPGA is poor, and it cannot make good use of a unified hardware platform and software code to realize the physical layer single-carrier waveform under different communication systems.
为了克服上述缺陷,在本申请的技术方案中,将提供一种统一的硬件平台,能够针对不同的卫星通信系统快速地实现物理层单载波的生成,无需对现有FPGA实现的基带处理器的程序代码进行修改,降低维护成本。In order to overcome the above defects, in the technical solution of this application, a unified hardware platform will be provided, which can quickly realize the generation of physical layer single carrier for different satellite communication systems, without the need for the baseband processor implemented by the existing FPGA. The program code is modified to reduce maintenance costs.
如图1所示,在本申请的一个实施例中提供了一种单载波信号生成系统。该单载波信号生成系统可以作为生成不同通信体制下的物理层单载波的统一硬件平台。As shown in FIG. 1 , an embodiment of the present application provides a system for generating a single-carrier signal. The single carrier signal generating system can be used as a unified hardware platform for generating physical layer single carriers under different communication systems.
具体的,在图1实施例中的单载波信号生成系统,包括:基带处理器101、片外处理器102以及共享存储器103。Specifically, the single-carrier signal generating system in the embodiment of FIG. 1 includes: a baseband processor 101 , an off-chip processor 102 and a shared memory 103 .
其中,基带处理器101可以是各种带有数字信号存储、传输和计算处理功能的各种芯片,例如DSP、CPU等等,当然,对于数据传输速率要求较高的场景下,基带处理器101可以优选是FPGA专用芯片。在本申请的后续实施例中,基带处理器101将以FPGA来作为举例。Among them, the baseband processor 101 can be various chips with digital signal storage, transmission and calculation processing functions, such as DSP, CPU, etc. Of course, in the scenario where the data transmission rate is relatively high, the baseband processor 101 It may preferably be an FPGA dedicated chip. In the subsequent embodiments of the present application, the baseband processor 101 will take FPGA as an example.
片外处理器102,是相对于基带处理器101而言的片外的处理器。片外处理器102可以是DSP、CPU或MCU等芯片。The off-chip processor 102 is an off-chip processor relative to the baseband processor 101 . The off-chip processor 102 may be a chip such as DSP, CPU or MCU.
共享存储器103是基带处理器101和片外存储器102可以共同访问,进行数据写入和读取的存储器。在一些场景中,共享存储器103可以内置于基带处理器101或片外处理器102之内,例如,对于基带处理器101是FPGA为例,共享存储器103可以是内置于FPGA内的RAM。The shared memory 103 is a memory that the baseband processor 101 and the off-chip memory 102 can jointly access to write and read data. In some scenarios, the shared memory 103 may be built in the baseband processor 101 or the off-chip processor 102. For example, if the baseband processor 101 is an FPGA, the shared memory 103 may be a RAM built in the FPGA.
在本申请的实施例中,单载波信号生成系统的工作原理如下所述。In the embodiment of the present application, the working principle of the single-carrier signal generating system is as follows.
其中,片外处理器102,用于根据需要生成的单载波信号,确定单载波信号对应的数据帧结构及时隙结构。Wherein, the off-chip processor 102 is configured to determine the data frame structure and the slot structure corresponding to the single carrier signal according to the generated single carrier signal.
片外处理器102,还用于根据数据帧结构及时隙结构,生成单载波信号对应的配置参数,并将配置参数写入所述片外处理器102与基带处理器101之间的共享存储器103,配置参数包括所述基带处理器的数据发送状态机的跳转状态和跳转条件,以及各个跳转状态下的通信模块选择使能开关。The off-chip processor 102 is also used to generate configuration parameters corresponding to the single carrier signal according to the data frame structure and time slot structure, and write the configuration parameters into the shared memory 103 between the off-chip processor 102 and the baseband processor 101 , the configuration parameters include the jump states and jump conditions of the data sending state machine of the baseband processor, and the communication module selection enabling switch in each jump state.
片外处理器102,还用于根据需要生成的单载波信号,生成对应的帧头数据及通信模块数据,并将帧头数据及通信模块数据写入共享存储器103。The off-chip processor 102 is also used to generate corresponding frame header data and communication module data according to the single carrier signal generated as needed, and write the frame header data and communication module data into the shared memory 103 .
基带处理器101,用于获取待发送数据,并从共享存储器103读取配置参数和帧头数据,实现在数据发送状态机下的状态跳转,并在各个跳转状态下,根据通信模块选择使能开关读取对应的通信模块数据,将读取的通信模块数据进行处理,生成数据帧结构及时隙结构的单载波信号。The baseband processor 101 is used to obtain the data to be sent, and read configuration parameters and frame header data from the shared memory 103 to realize the state jump under the data sending state machine, and in each jump state, select according to the communication module The enable switch reads the corresponding communication module data, processes the read communication module data, and generates a single carrier signal with a data frame structure and a time slot structure.
对应于图1实施例中提供的系统,本申请实施例另一方面还提供了应用于图1系统的单载波信号生成方法。具体可参照图2。Corresponding to the system provided in the embodiment in FIG. 1 , another aspect of the embodiment of the present application provides a method for generating a single-carrier signal applied to the system in FIG. 1 . Refer to Figure 2 for details.
如图2所示意,在本申请的一个实施例中提供了一种单载波生成方法。As shown in FIG. 2 , an embodiment of the present application provides a method for generating a single carrier.
所述单载波生成方法,包括:The method for generating a single carrier includes:
S21,片外处理器根据需要生成的单载波信号,确定单载波信号对应的数据帧结构及时隙结构;S21, the off-chip processor determines the data frame structure and slot structure corresponding to the single carrier signal according to the single carrier signal generated by the need;
具体的,片外处理器可以根据上位机发送的通信体制选择信号,确定需要生成的物理层单载波信号。Specifically, the off-chip processor can determine the physical layer single-carrier signal to be generated according to the communication system selection signal sent by the host computer.
在本申请的一些更为详细的实施例中,单载波信号可以包括FDD或TDD形式的单载波。导频方式可以包括连续导频或分布式导频。In some more detailed embodiments of the present application, the single carrier signal may include a single carrier in the form of FDD or TDD. Pilot schemes may include continuous pilots or distributed pilots.
S22,片外处理器根据数据帧结构及时隙结构,生成单载波信号对应的配置参数,并将配置参数写入片外处理器与基带处理器之间的共享存储器,配置参数包括基带处理器的数据发送状态机的跳转状态和跳转条件,以及各个跳转状态下的通信模块选择使能开关;S22, the off-chip processor generates configuration parameters corresponding to the single carrier signal according to the data frame structure and the time slot structure, and writes the configuration parameters into the shared memory between the off-chip processor and the baseband processor, the configuration parameters including the baseband processor The jump state and jump condition of the data sending state machine, and the communication module selection enable switch in each jump state;
具体的,在本申请的一些实施例中,共享存储器为基带处理器与片外处理器共用的双口RAM,基带处理器与所述片外处理器共用的双口RAM的每个地址对应于数据发送状态机的一个跳转状态,每个地址存储的数据按比特位组合为跳转状态下的通信模块选择使能开关。Specifically, in some embodiments of the present application, the shared memory is a dual-port RAM shared by the baseband processor and the off-chip processor, and each address of the dual-port RAM shared by the baseband processor and the off-chip processor corresponds to A jump state of the data sending state machine, and the data stored in each address is combined into a communication module selection enable switch in the jump state according to bits.
在本申请的实施例中,数据发送状态机的跳转状态一般包括空闲状态和数据发送状态。其中,在数据发送状态中,基带处理器将生成的单载波数据对外进行发送。在数据发送状态,基带处理器可以发送不同的数据,例如帧头数据、帧信息数据或者信道编码数据,由通信模块选择使能开关进行控制。In the embodiment of the present application, the jump states of the data sending state machine generally include an idle state and a data sending state. Wherein, in the data sending state, the baseband processor sends the generated single-carrier data to the outside. In the data sending state, the baseband processor can send different data, such as frame header data, frame information data or channel coding data, which is controlled by the communication module selection enable switch.
在本申请的实施例中,可以通过多个通信模块实现对数据的不同处理,通信模块可以包括交织、加扰或者信道编码等等。In the embodiment of the present application, different processing of data may be implemented through multiple communication modules, and the communication modules may include interleaving, scrambling, or channel coding and the like.
S23,片外处理器根据需要生成的单载波信号,生成对应的帧头数据及通信模块数据,并将帧头数据及通信模块数据写入共享存储器;S23, the off-chip processor generates corresponding frame header data and communication module data according to the single carrier signal generated as required, and writes the frame header data and communication module data into the shared memory;
S24,基带处理器获取待发送数据,并从共享存储器读取配置参数和帧头数据,实现在数据发送状态机下的状态跳转,并在各个跳转状态下,根据通信模块选择使能开关读取对应的通信模块数据,将读取的通信模块数据进行处理,生成数据帧结构及时隙结构的单载波信号。S24, the baseband processor obtains the data to be sent, and reads the configuration parameters and frame header data from the shared memory, realizes the state jump under the data sending state machine, and selects the enable switch according to the communication module in each jump state Read the corresponding communication module data, process the read communication module data, and generate a single carrier signal with a data frame structure and a time slot structure.
在本申请的实施例中,为了使基带处理器能够正确生成所需的基带信号。所述方法可以还包括:In the embodiment of the present application, in order to enable the baseband processor to correctly generate the required baseband signal. The method may further include:
S25,基带处理器通过中断信号将单载波信号的数据发送状态信息上报给片外处理器,以供片外处理器对基带处理器是否正确生成单载波信号进行验证。以及S25, the baseband processor reports the data transmission state information of the single carrier signal to the off-chip processor through the interrupt signal, so that the off-chip processor can verify whether the baseband processor correctly generates the single carrier signal. as well as
S26,当片外处理器确定基带处理器未正确生成单载波信号时,重新调整配置参数和通信模块数据,并写入共享存储器,以供基带处理器再次读取并进行处理。S26. When the off-chip processor determines that the baseband processor does not correctly generate the single carrier signal, readjust configuration parameters and communication module data, and write them into the shared memory for the baseband processor to read and process again.
即当片外处理器验证基带处理器未能正确产生单载波信号,将返回执行S22-S24,直到基带处理器生成全部正确的单载波信号。That is, when the off-chip processor verifies that the baseband processor fails to correctly generate single-carrier signals, it returns to execute S22-S24 until the baseband processor generates all correct single-carrier signals.
上述本申请实施例中的单载波信号生成系统及方法,片外处理器根据需要生成的单载波信号,生成配置参数,并写入共享存储器,再由基带处理器读取配置参数,根据配置参数实现数据发送状态机的状态跳转以及各个状态下的通过模块数据的处理,生成所需的单载波信号,相比于现有技术,无需改变硬件平台和代码,就能实现快速生成不同通信体制的单载波信号,提高了效率,同时有效降低维护成本。In the above-mentioned single-carrier signal generation system and method in the embodiment of the present application, the off-chip processor generates configuration parameters according to the single-carrier signal generated as needed, and writes the configuration parameters into the shared memory, and then the baseband processor reads the configuration parameters, and according to the configuration parameters Realize the state jump of the data transmission state machine and the processing of module data in each state to generate the required single carrier signal. Compared with the existing technology, different communication systems can be quickly generated without changing the hardware platform and code The single-carrier signal improves efficiency and effectively reduces maintenance costs.
下面在本申请的一些更为详细的实施例中说明上述单载波信号生成系统及方法,并说明本申请的优点。The above-mentioned system and method for generating a single-carrier signal will be described below in some more detailed embodiments of the present application, and the advantages of the present application will be described.
本申请实施例提供的单载波生成系统,包括基带处理器、片外处理器和共享存储器。The single carrier generation system provided by the embodiment of the present application includes a baseband processor, an off-chip processor and a shared memory.
在本申请的一个实施例中,如图3所示,基带处理器以FPGA为例。片外处理器为相对于FPGA之外的片外DSP或CPU。共享存储器为内置于FPGA之内的双口RAM。In one embodiment of the present application, as shown in FIG. 3 , the baseband processor is an FPGA as an example. The off-chip processor is an off-chip DSP or CPU relative to the FPGA. The shared memory is a dual-port RAM built into the FPGA.
图3实施例中的单载波信号生成系统,其工作的信号流为:Single-carrier signal generating system in the embodiment of Fig. 3, the signal flow of its work is:
步骤(1),片外DSP或CPU根据上位机发送的通信体制选择信号,确定需要生成的物理层单载波信号,并确定单载波信号对应的数据帧结构及时隙结构。In step (1), the off-chip DSP or CPU determines the physical layer single-carrier signal to be generated according to the communication system selection signal sent by the host computer, and determines the data frame structure and slot structure corresponding to the single-carrier signal.
步骤(2),片外DSP或CPU根据数据帧结构及时隙结构,生成单载波信号对应的配置参数,并将配置参数写入FPGA的内置双口RAM,所述配置参数包括FPGA的数据发送状态机的跳转状态和跳转条件,以及各个跳转状态下的通信模块选择使能开关。Step (2), off-chip DSP or CPU generates configuration parameters corresponding to the single carrier signal according to the data frame structure and time slot structure, and writes the configuration parameters into the built-in dual-port RAM of the FPGA, and the configuration parameters include the data transmission status of the FPGA The jump state and jump condition of the machine, as well as the communication module selection enable switch in each jump state.
具体的,在图3实施例中的系统,各个通信模块的数据可以是帧头数据、导频数据、信道编码、交织或扰码等。在可选的场景中,可以先择更多或更少的通信模块,在本申请实施例将不作限定。Specifically, in the system in the embodiment in FIG. 3 , the data of each communication module may be header data, pilot data, channel coding, interleaving or scrambling, and the like. In an optional scenario, more or fewer communication modules may be selected first, which will not be limited in this embodiment of the present application.
步骤(3),片外DSP或CPU根据需要生成的单载波信号,生成对应的帧头数据及通信模块数据,并将帧头数据及通信模块数据写入RAM。In step (3), the off-chip DSP or CPU generates the corresponding frame header data and communication module data according to the single carrier signal generated as required, and writes the frame header data and communication module data into RAM.
具体的,帧头数据用于物理帧同步,通信模块数据可以以用于加扰的扰码数据为例。Specifically, the frame header data is used for physical frame synchronization, and the communication module data may be scrambled data used for scrambling as an example.
步骤(4),FPGA获取待发送数据,并从内置双口RAM读取配置参数,实现在数据发送状态机下的状态跳转,并在各个跳转状态下,根据通信模块选择使能开关读取对应的通信模块数据,将读取的通信模块数据进行处理,生成对应数据帧结构及时隙结构的单载波信号。In step (4), the FPGA obtains the data to be sent, and reads the configuration parameters from the built-in dual-port RAM to realize the state jump under the data sending state machine, and in each jump state, select the enable switch according to the communication module to read Get the corresponding communication module data, process the read communication module data, and generate a single carrier signal corresponding to the data frame structure and slot structure.
具体的,在本申请实施例中,双口RAM的每个地址对应于所述数据发送状态机的一个跳转状态,每个地址存储的数据按比特位组合为所述跳转状态下的通信模块选择使能开关(如:交织、加扰、信道编码等模块使能),以及各个模块对应的配置数据。FPGA根据所要生成的数据帧决定每个跳转状态下哪些模块使能打开,并将配置数据配置给对应的通信模块。同时,对于每个条状状态,还给出了下一状态对应的参数RAM地址,保证状态机的状态正常跳转。Specifically, in the embodiment of the present application, each address of the dual-port RAM corresponds to a jump state of the data sending state machine, and the data stored at each address is combined into bits for communication in the jump state. Module selection enable switch (such as: interleaving, scrambling, channel coding and other module enabling), and corresponding configuration data of each module. According to the data frame to be generated, the FPGA determines which modules are enabled in each jump state, and configures the configuration data to the corresponding communication modules. At the same time, for each strip state, the parameter RAM address corresponding to the next state is also given to ensure that the state of the state machine jumps normally.
FPGA的数据发送状态机通过片外DSP或CPU配置的状态机启动使能(FPGAStartEn)跳入下一个状态。状态机的状态可以包括空闲状态和数据发送状态。The data sending state machine of FPGA jumps into the next state through the state machine start enable (FPGAStartEn) configured by off-chip DSP or CPU. The state of the state machine may include an idle state and a data sending state.
其中,在FPGA状态机的数据发送状态中,可以发送帧头数据也可以发送帧信息数据或者发送信道编码数据,具体发送哪种类型由DSP或CPU配置的不同数据类型的发送使能决定,每种数据类型的发送数据量也可以由DSP或CPU配置决定,数据发送状态机也可以受控在空闲状态和发送数据状态之间跳转,这样FPGA发端可以根据DSP或CPU配置的跳转方式完成连续导频及分布式导频的物理帧生成,同时还能完成FDD模式和TDD模式的帧结构生成。Among them, in the data sending state of the FPGA state machine, frame header data, frame information data, or channel coded data can be sent. The specific sending type is determined by the sending enable of different data types configured by DSP or CPU. The amount of sent data of each data type can also be determined by the DSP or CPU configuration, and the data sending state machine can also be controlled to jump between the idle state and the sending data state, so that the FPGA sender can complete the jump according to the jump mode configured by the DSP or CPU The physical frame generation of continuous pilot and distributed pilot can also complete the frame structure generation of FDD mode and TDD mode.
对于数据类型不同、调制方式不同的数据,可以通过DSP或CPU根据数据类型对应的调制方式配置FPGA,由FPGA对调制数据完成相位映射。For data with different data types and different modulation methods, the FPGA can be configured through the DSP or CPU according to the modulation method corresponding to the data type, and the FPGA will complete the phase mapping for the modulated data.
步骤(5),FPGA通过中断信号将所述单载波信号的数据发送状态信息上报给片外DSP或CPU,以供片外DSP或CPU对FPGA是否正确生成单载波信号进行验证。Step (5), FPGA reports the data transmission status information of the single carrier signal to the off-chip DSP or CPU through an interrupt signal, so that whether the off-chip DSP or CPU correctly generates the single carrier signal is verified by the FPGA.
步骤(6),片外DSP或CPU芯片响应FPGA芯片发送的中断,读取FPGA芯片上报的状态信息,根据上报的状态信息判定FPGA是否正确响应,若正确,将不作干预,若不正确并根据上报信息调整配置参数。Step (6), the off-chip DSP or CPU chip responds to the interrupt sent by the FPGA chip, reads the status information reported by the FPGA chip, and judges whether the FPGA responds correctly according to the reported status information. If it is correct, no intervention will be made; Report information to adjust configuration parameters.
步骤(7),片外DSP或者CPU芯片根据FPGA芯片上报的状态参数判断物理层单载波信号是否生成完毕,如果没有生成完毕,则重复步骤(2)至步骤(6),直至物理层单载波信号生成完毕。Step (7), the off-chip DSP or CPU chip judges whether the physical layer single-carrier signal is generated according to the state parameters reported by the FPGA chip, if not, repeat steps (2) to (6) until the physical layer single-carrier signal The signal is generated.
综上步骤(1)至步骤(7)可知,本申请单载波信号生成方法的处理流程为基带处理器(FPGA)与片外处理器(片外DSP或CPU)相交互的协同处理过程。其中,片外处理器的处理流程如图4所示意,而基带处理器的处理流程如图5所示意。From the above steps (1) to (7), it can be seen that the processing flow of the single carrier signal generation method of the present application is a collaborative processing process in which the baseband processor (FPGA) interacts with the off-chip processor (off-chip DSP or CPU). Wherein, the processing flow of the off-chip processor is shown in FIG. 4 , and the processing flow of the baseband processor is shown in FIG. 5 .
具体的,在图4中,片外处理器以片外DSP或CPU为例的处理流程包括:Specifically, in FIG. 4, the processing flow of the off-chip processor, taking off-chip DSP or CPU as an example, includes:
401,片外DSP或CPU判断是否受到上位机的通信体制选择信号。401. The off-chip DSP or CPU judges whether it receives a communication system selection signal from the host computer.
若否,将处于等待状态,若是,执行402。If not, it will be in a waiting state, and if so, go to 402 .
402,片外DSP或CPU生成相应的帧结构及时隙结构。402. The off-chip DSP or CPU generates a corresponding frame structure and slot structure.
403,片外DSP或CPU生成FPGA的发送状态机的配置参数,并存入FPGA的共享RAM中。403. The off-chip DSP or CPU generates configuration parameters of the sending state machine of the FPGA, and stores them in the shared RAM of the FPGA.
404,将FPGAStartEn置1,启动FPGA的调制程序。404. Set FPGAStartEn to 1 to start the FPGA modulation program.
405,等待FPGA通过中断上报的数据发送状态。405. Wait for the data sending status reported by the FPGA through the interrupt.
406,片外DSP或CPU判断数据帧是否发送完成。406. The off-chip DSP or CPU judges whether the sending of the data frame is completed.
若是,处理完毕并结束。若否,返回405。If so, process and end. If not, return 405.
相应的,图5中的FPGA的处理流程包括:Correspondingly, the processing flow of the FPGA in Figure 5 includes:
FPGA预先处于空闲状态(Idle)。The FPGA is in an idle state (Idle) in advance.
501,FPGA判断FPGAStartEn是否置1。501. The FPGA determines whether FPGAStartEn is set to 1.
若是,执行502,否者处于等待状态。If yes, go to step 502; otherwise, it is in a waiting state.
502,读取片外DSP或CPU写入到RAM中的配置参数。502. Read the configuration parameters written into the RAM by the off-chip DSP or the CPU.
503,根据配置参数,进行单载波信号的生成及发送。503. Generate and send a single carrier signal according to configuration parameters.
504,FPGA判断数据帧是否发送完成。504. The FPGA judges whether the sending of the data frame is completed.
若是,执行505,否则返回503。If yes, go to 505, otherwise return to 503.
505,FPGA检查FPGAStartEn是否置1。505. The FPGA checks whether FPGAStartEn is set to 1.
若是,返回502,否则FPGA发送状态机进入空闲状态。更为具体的,在本申请实施例中,FPGA的跳转状态及跳转条件如图6所示意。If so, return to 502, otherwise the FPGA sending state machine enters an idle state. More specifically, in the embodiment of the present application, the jump state and jump condition of the FPGA are shown in FIG. 6 .
下面,在本申请的一个实施例中,以需要生成的基带单载波信号的下列具体参数为例,来说明本申请的处理流程。In the following, in one embodiment of the present application, the following specific parameters of the baseband single-carrier signal to be generated are taken as an example to illustrate the processing flow of the present application.
具体的,需要生成的单载波为FDD形式,导频为分布式导频方式,导频符号长度为1024,每个15个数据符号插入一个导频符号,导频采用BPSK调制,数据符号采用QPSK调制,导频序列生成多项式为:f(x)=1+X+X2+X8+X12,初相为:12'b101010110011,数据部分加扰伪随机序列生成多项式为f(x)=1+X3+X25,初相为:1,信道编码采用码长为2560bit,码率为1/3的LDPC编码。Specifically, the single carrier that needs to be generated is in the form of FDD, the pilot is distributed pilot mode, the length of the pilot symbol is 1024, a pilot symbol is inserted into each 15 data symbols, the pilot is modulated by BPSK, and the data symbol is QPSK Modulation, the pilot sequence generator polynomial is: f(x)=1+X+X 2 +X 8 +X 12 , the initial phase is: 12'b101010110011, the data part scrambling pseudo-random sequence generator polynomial is f(x)= 1+X 3 +X 25 , the initial phase is: 1, the channel coding adopts LDPC coding with a code length of 2560 bits and a code rate of 1/3.
系统的处理流程包括:The processing flow of the system includes:
步骤(A),片外DSP或CPU根据上位机发送的通信体制选择信号,确定需要生成的物理层单载波信号,并确定单载波信号对应的数据帧结构及时隙结构。In step (A), the off-chip DSP or CPU determines the physical layer single-carrier signal to be generated according to the communication system selection signal sent by the host computer, and determines the data frame structure and slot structure corresponding to the single-carrier signal.
具体的,本例中的数据帧结构如图8所示意。Specifically, the data frame structure in this example is shown in FIG. 8 .
步骤(B),片外DSP或CPU根据数据帧结构及时隙结构,生成单载波信号对应的配置参数,并将配置参数写入FPGA的内置双口RAM,所述配置参数包括FPGA的数据发送状态机的跳转状态和跳转条件,以及各个跳转状态下的通信模块选择使能开关。Step (B), the off-chip DSP or CPU generates configuration parameters corresponding to the single carrier signal according to the data frame structure and time slot structure, and writes the configuration parameters into the built-in dual-port RAM of the FPGA, and the configuration parameters include the data transmission status of the FPGA The jump state and jump condition of the machine, as well as the communication module selection enable switch in each jump state.
具体的,配置以下配置参数:将每次发送导频符号长度配置为1、数据符号发送长度配置为15,在每发送1024个导频后,配置导频复位。在发送数据符号状态将加扰使能,LDPC编码使能等参数配置为打开状态。然后,将这些配置参数通过DSP或者CPU与FPGA芯片之间的总线写入FPGA芯片中与DSP或者CPU的共用双口RAM中,等待FPGA芯片中的发送程序读取。Specifically, configure the following configuration parameters: configure the length of the pilot symbol to be sent each time to 1, the length of the data symbol to be sent to 15, and configure the pilot reset after every 1024 pilots are sent. In the state of sending data symbols, configure parameters such as scrambling enable and LDPC encoding enable to be on. Then, these configuration parameters are written into the dual-port RAM shared with the DSP or CPU in the FPGA chip through the bus between the DSP or the CPU and the FPGA chip, and wait for the sending program in the FPGA chip to read.
步骤(C),片外DSP或CPU根据需要生成的单载波信号,生成对应的帧头数据及通信模块数据,并将帧头数据及通信模块数据写入RAM。In step (C), the off-chip DSP or CPU generates the corresponding frame header data and communication module data according to the single carrier signal generated as required, and writes the frame header data and communication module data into RAM.
具体的,DSP或者CPU芯片根据上位机配置的FDD波形导频参数利用图7所示的算法流程生成物理层帧用于同步的帧头数据和用于加扰的扰码数据,并将帧头数据和扰码数据通过DSP或者CPU与FPGA芯片之间的总线写入FPGA芯片中的双口数据RAM中,等待FPGA芯片读取。Specifically, the DSP or CPU chip uses the algorithm flow shown in Figure 7 to generate the frame header data for synchronization and the scrambling code data for scrambling of the physical layer frame according to the FDD waveform pilot parameters configured by the host computer, and sends The data and the scrambled data are written into the dual-port data RAM in the FPGA chip through the DSP or the bus between the CPU and the FPGA chip, and wait for the FPGA chip to read.
步骤(D),FPGA获取待发送数据,并从内置双口RAM读取配置参数,实现在数据发送状态机下的状态跳转,并在各个跳转状态下,根据通信模块选择使能开关读取对应的通信模块数据,将读取的通信模块数据进行处理,生成对应数据帧结构及时隙结构的单载波信号。Step (D), the FPGA obtains the data to be sent, and reads the configuration parameters from the built-in dual-port RAM to realize the state jump under the data sending state machine, and in each jump state, select the enable switch according to the communication module to read Get the corresponding communication module data, process the read communication module data, and generate a single carrier signal corresponding to the data frame structure and slot structure.
具体的,DSP或者CPU芯片根据波形要求将导频符号调制成BPSK,具体将0映射成(X:0x81,Y:0x00),1映射成(X:0x7F,Y:0x00)。数据符号调制成QPSK,具体将00映射成(X:0xA6,Y:0xA6),将01映射成(X:0x5A,Y:0xA6),将10映射成(X:0xA6,Y:0x5A),将11映射成(X:0x5A,Y:0x5A),再将映射值通过DSP或者CPU与FPGA芯片之间的总线写入FPGA芯片中的双口映射数据RAM中。Specifically, the DSP or CPU chip modulates the pilot symbols into BPSK according to the waveform requirements, and specifically maps 0 to (X:0x81, Y:0x00) and 1 to (X:0x7F, Y:0x00). The data symbol is modulated into QPSK, specifically, 00 is mapped to (X:0xA6, Y:0xA6), 01 is mapped to (X:0x5A, Y:0xA6), 10 is mapped to (X:0xA6, Y:0x5A), and 11 is mapped to (X: 0x5A, Y: 0x5A), and then the mapped value is written into the dual-port mapping data RAM in the FPGA chip through the DSP or the bus between the CPU and the FPGA chip.
FPGA芯片中读取DSP或CPU芯片的配置参数RAM,根据每次发送的导频符号长度、数据符号长度,以及每个通用状态参数打开加扰使能、LDPC编码使能,并且根据通用状态机的跳转地址在发送导频符号、发送数据符号状态地址间循环跳转,同时根据导频符号和数据符号的映射关系读取映射数据RAM中的映射值完成FDD波形数据的生成及映射。Read the configuration parameter RAM of the DSP or CPU chip in the FPGA chip, turn on the scrambling enable and LDPC encoding enable according to the length of the pilot symbol sent each time, the length of the data symbol, and each general state parameter, and according to the general state machine The jump address of the FDD cyclically jumps between the status address of sending pilot symbols and sending data symbols, and at the same time reads the mapping value in the mapping data RAM according to the mapping relationship between pilot symbols and data symbols to complete the generation and mapping of FDD waveform data.
步骤(E),FPGA通过中断信号将所述单载波信号的数据发送状态信息上报给片外DSP或CPU,以供片外DSP或CPU对FPGA是否正确生成单载波信号进行验证。In step (E), the FPGA reports the data transmission status information of the single carrier signal to the off-chip DSP or CPU through an interrupt signal, so that the off-chip DSP or CPU can verify whether the FPGA correctly generates the single carrier signal.
具体的,FPGA芯片将发送程序中的状态机的状态值、发送数据符号计数值等参数通过中断上报给DSP与CPU芯片,发送中断的时间为发送符号计数器为1的时刻。Specifically, the FPGA chip reports parameters such as the state value of the state machine in the sending program, the count value of the sent data symbol to the DSP and the CPU chip through an interrupt, and the time of the sending interrupt is the moment when the sent symbol counter is 1.
步骤(F),片外DSP或CPU芯片响应FPGA芯片发送的中断,读取FPGA芯片上报的状态信息,根据上报的状态信息判定FPGA是否正确响应,若正确,将不作干预,若不正确并根据上报信息调整配置参数。Step (F), the off-chip DSP or CPU chip responds to the interrupt sent by the FPGA chip, reads the status information reported by the FPGA chip, and judges whether the FPGA responds correctly according to the reported status information. If it is correct, no intervention will be made; Report information to adjust configuration parameters.
步骤(G),片外DSP或者CPU芯片根据FPGA芯片上报的状态参数判断物理层单载波信号是否生成完毕,如果没有生成完毕,则重复步骤(B)至步骤(F),直至物理层单载波信号生成完毕。Step (G), the off-chip DSP or CPU chip judges whether the physical layer single-carrier signal is generated according to the state parameters reported by the FPGA chip. If the generation is not completed, repeat steps (B) to (F) until the physical layer single-carrier signal The signal is generated.
在本申请的另一个实施例中,以需要生成的基带单载波信号的下列具体参数为例,来说明本申请的处理流程。In another embodiment of the present application, the following specific parameters of the baseband single-carrier signal to be generated are taken as an example to illustrate the processing flow of the present application.
其中,需要生成的基带波形为TDD形式,时间保护间隔为1ms,导频为连续导频方式,导频符号长度为2048,导频采用BPSK调制,一个超帧数据符号长度为16384,采用QPSK调制,导频序列生成多项式为:f(x)=1+X+X2+X10+X13,初相为:13'b1110001110101,信道编码采用码长为(2,1,9)的Viterb编码。通过以下步骤可以快速生成基带波形。Among them, the baseband waveform to be generated is in the form of TDD, the time guard interval is 1ms, the pilot is continuous pilot, the pilot symbol length is 2048, the pilot adopts BPSK modulation, the data symbol length of a superframe is 16384, and QPSK modulation is adopted , the pilot sequence generator polynomial is: f(x)=1+X+X 2 +X 10 +X 13 , the initial phase is: 13'b1110001110101, and the channel coding adopts Viterb coding with code length (2,1,9) . Baseband waveforms can be quickly generated by following the steps below.
系统的处理流程包括:The processing flow of the system includes:
步骤(a),片外DSP或CPU根据上位机发送的通信体制选择信号,确定需要生成的物理层单载波信号,并确定单载波信号对应的数据帧结构及时隙结构。In step (a), the off-chip DSP or CPU determines the physical layer single-carrier signal to be generated according to the communication system selection signal sent by the host computer, and determines the data frame structure and slot structure corresponding to the single-carrier signal.
具体的,本例中的数据帧结构如图9所示意。Specifically, the data frame structure in this example is shown in FIG. 9 .
步骤(b),片外DSP或CPU根据数据帧结构及时隙结构,生成单载波信号对应的配置参数,并将配置参数写入FPGA的内置双口RAM,所述配置参数包括FPGA的数据发送状态机的跳转状态和跳转条件,以及各个跳转状态下的通信模块选择使能开关。Step (b), the off-chip DSP or CPU generates configuration parameters corresponding to the single carrier signal according to the data frame structure and time slot structure, and writes the configuration parameters into the built-in dual-port RAM of the FPGA, and the configuration parameters include the data transmission status of the FPGA The jump state and jump condition of the machine, as well as the communication module selection enable switch in each jump state.
具体的,配置以下配置参数:将导频符号长度配置为2048、数据符号长度配置为16384,在连续发送2048个导频后,配置导频复位。在发送数据符号状态将(2,1,9)Viterb编码使能等参数设置为打开状态。然后,将配置参数通过DSP或者CPU与FPGA芯片之间的总线写入FPGA芯片中与DSP或者CPU的共用参数配置双口RAM中,等待FPGA芯片中的发送程序读取。Specifically, configure the following configuration parameters: configure the length of the pilot symbol to be 2048, configure the length of the data symbol to be 16384, and configure the reset of the pilot after continuously sending 2048 pilots. In the state of sending data symbols, set parameters such as (2,1,9) Viterb encoding enable to open state. Then, the configuration parameters are written into the shared parameter configuration dual-port RAM with the DSP or CPU in the FPGA chip through the bus between the DSP or the CPU and the FPGA chip, and wait for the sending program in the FPGA chip to read.
步骤(c),片外DSP或CPU根据需要生成的单载波信号,生成对应的帧头数据及通信模块数据,并将帧头数据及通信模块数据写入RAM。In step (c), the off-chip DSP or CPU generates the corresponding frame header data and communication module data according to the single carrier signal generated as required, and writes the frame header data and communication module data into RAM.
具体的,DSP或者CPU芯片根据上位机配置的TDD波形导频参数利用图7生成物理层帧用于同步的帧头数据和用于加扰的扰码数据,并将帧头数据和扰码数据通过DSP或者CPU与FPGA芯片之间的总线写入FPGA芯片中的双口数据RAM中,等待FPGA芯片读取。Specifically, according to the TDD waveform pilot parameters configured by the host computer, the DSP or CPU chip uses Figure 7 to generate the header data of the physical layer frame for synchronization and the scrambling data for scrambling, and the frame header data and the scrambling data Write it into the dual-port data RAM in the FPGA chip through the DSP or the bus between the CPU and the FPGA chip, and wait for the FPGA chip to read it.
步骤(d),FPGA获取待发送数据,并从内置双口RAM读取配置参数,实现在数据发送状态机下的状态跳转,并在各个跳转状态下,根据通信模块选择使能开关读取对应的通信模块数据,将读取的通信模块数据进行处理,生成对应数据帧结构及时隙结构的单载波信号。In step (d), the FPGA obtains the data to be sent, and reads the configuration parameters from the built-in dual-port RAM to realize the state jump under the data sending state machine, and in each jump state, select the enable switch according to the communication module to read Get the corresponding communication module data, process the read communication module data, and generate a single carrier signal corresponding to the data frame structure and slot structure.
具体的,DSP或者CPU芯片根据波形要求将导频符号调制成BPSK,具体将0映射成(X:0x81,Y:0x00),1映射成(X:0x7F,Y:0x00)。数据符号调制成QPSK,具体将00映射成(X:0xA6,Y:0xA6),将01映射成(X:0x5A,Y:0xA6),将10映射成(X:0xA6,Y:0x5A),将11映射成(X:0x5A,Y:0x5A),再将映射值通过DSP或者CPU与FPGA芯片之间的总线写入FPGA芯片中的双口映射数据RAM中。Specifically, the DSP or CPU chip modulates the pilot symbols into BPSK according to the waveform requirements, and specifically maps 0 to (X:0x81, Y:0x00) and 1 to (X:0x7F, Y:0x00). The data symbol is modulated into QPSK, specifically, 00 is mapped to (X:0xA6, Y:0xA6), 01 is mapped to (X:0x5A, Y:0xA6), 10 is mapped to (X:0xA6, Y:0x5A), and 11 is mapped to (X: 0x5A, Y: 0x5A), and then the mapped value is written into the dual-port mapping data RAM in the FPGA chip through the DSP or the bus between the CPU and the FPGA chip.
FPGA芯片中读取DSP与CPU芯片配置的参数RAM,根据每次发送导频符号长度、数据符号长度,以及每个通用状态参数打开(2,1,9)Viterb编码使能,并根据状态跳转地址在发送导频符号,发送数据符号及时间保护间隔状态地址间循环跳转,同时根据导频符号和数据符号的映射关系读取映射数据RAM中的映射值完成TDD波形数据的生成及映射。Read the parameter RAM configured by the DSP and the CPU chip in the FPGA chip, enable the (2,1,9) Viterb encoding according to the length of the pilot symbol sent each time, the length of the data symbol, and each general state parameter, and jump according to the state The transfer address cyclically jumps between sending pilot symbols, sending data symbols and time guard interval status addresses, and at the same time reads the mapping value in the mapping data RAM according to the mapping relationship between pilot symbols and data symbols to complete the generation and mapping of TDD waveform data .
步骤(e),FPGA通过中断信号将所述单载波信号的数据发送状态信息上报给片外DSP或CPU,以供片外DSP或CPU对FPGA是否正确生成单载波信号进行验证。In step (e), the FPGA reports the data transmission status information of the single carrier signal to the off-chip DSP or CPU through an interrupt signal, so that the off-chip DSP or CPU can verify whether the FPGA correctly generates the single carrier signal.
具体的,FPGA芯片将发送程序中的状态机的状态值、发送数据符号计数值等参数通过中断上报给DSP与CPU芯片,发送中断的时间为发送符号计数器为128的时刻。Specifically, the FPGA chip reports parameters such as the state value of the state machine in the sending program, the count value of the sent data symbol to the DSP and the CPU chip through an interrupt, and the time of the sending interrupt is when the sending symbol counter is 128.
步骤(f),片外DSP或CPU芯片响应FPGA芯片发送的中断,读取FPGA芯片上报的状态信息,根据上报的状态信息判定FPGA是否正确响应,若正确,将不作干预,若不正确并根据上报信息调整配置参数。Step (f), the off-chip DSP or CPU chip responds to the interrupt sent by the FPGA chip, reads the status information reported by the FPGA chip, and judges whether the FPGA responds correctly according to the reported status information. If it is correct, it will not intervene. Report information to adjust configuration parameters.
步骤(g),片外DSP或者CPU芯片根据FPGA芯片上报的状态参数判断物理层单载波信号是否生成完毕,如果没有生成完毕,则重复步骤(b)至步骤(f),直至物理层单载波信号生成完毕。In step (g), the off-chip DSP or CPU chip judges whether the physical layer single-carrier signal is generated according to the state parameters reported by the FPGA chip. If the generation is not completed, repeat steps (b) to (f) until the physical layer single-carrier signal The signal is generated.
综上所述,本申请的一些实施例中,说明了所提供的统一硬件平台是如何快速生成所需的单载波信号,本申请技术方案具有在不改变硬件平台及FPGA端程序代码的情况下,能在外挂DSP或CPU的配置下快速生成不同体制的单载波波形,节省了大量的波形生成开发时间,同时能够有效降低系统维护人员的工作的技术优势。To sum up, in some embodiments of the present application, it has been explained how the unified hardware platform provided can quickly generate the required single-carrier signal, and the technical solution of the present application has , can quickly generate single-carrier waveforms of different systems under the configuration of an external DSP or CPU, which saves a lot of waveform generation and development time, and can effectively reduce the work of system maintenance personnel.
需要注意的是,这里所使用的术语仅是为了描述具体实施方式,而非意图限制根据本申请的示例性实施方式。如在这里所使用的,除非上下文另外明确指出,否则单数形式也意图包括复数形式,此外,还应当理解的是,当在本说明书中使用术语“包含”和/或“包括”时,其指明存在特征、步骤、操作、器件、组件和/或它们的组合。It should be noted that the terminology used here is only for describing specific implementations, and is not intended to limit the exemplary implementations according to the present application. As used herein, unless the context clearly dictates otherwise, the singular is intended to include the plural, and it should also be understood that when the terms "comprising" and/or "comprising" are used in this specification, they mean There are features, steps, operations, means, components and/or combinations thereof.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202211654618.0A CN116232541B (en) | 2022-12-22 | 2022-12-22 | Single carrier signal generation method and system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202211654618.0A CN116232541B (en) | 2022-12-22 | 2022-12-22 | Single carrier signal generation method and system |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN116232541A true CN116232541A (en) | 2023-06-06 |
| CN116232541B CN116232541B (en) | 2025-09-12 |
Family
ID=86568758
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202211654618.0A Active CN116232541B (en) | 2022-12-22 | 2022-12-22 | Single carrier signal generation method and system |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN116232541B (en) |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6987961B1 (en) * | 2004-06-28 | 2006-01-17 | Neomagic Corp. | Ethernet emulation using a shared mailbox between two processors in a feature phone |
| CN102104394A (en) * | 2009-12-18 | 2011-06-22 | 中国科学院国家天文台 | Low-rate spread spectrum communication transmission base band system |
| CN104184542A (en) * | 2013-05-23 | 2014-12-03 | 重庆重邮信科通信技术有限公司 | Uplink control method, system and terminal |
| CN108055202A (en) * | 2017-12-07 | 2018-05-18 | 锐捷网络股份有限公司 | A kind of message processor and method |
| CN109901469A (en) * | 2019-03-12 | 2019-06-18 | 北京鼎实创新科技股份有限公司 | A method of PROFIBUS-PA bus communication is realized based on FPGA technology |
-
2022
- 2022-12-22 CN CN202211654618.0A patent/CN116232541B/en active Active
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6987961B1 (en) * | 2004-06-28 | 2006-01-17 | Neomagic Corp. | Ethernet emulation using a shared mailbox between two processors in a feature phone |
| CN102104394A (en) * | 2009-12-18 | 2011-06-22 | 中国科学院国家天文台 | Low-rate spread spectrum communication transmission base band system |
| CN104184542A (en) * | 2013-05-23 | 2014-12-03 | 重庆重邮信科通信技术有限公司 | Uplink control method, system and terminal |
| CN108055202A (en) * | 2017-12-07 | 2018-05-18 | 锐捷网络股份有限公司 | A kind of message processor and method |
| CN109901469A (en) * | 2019-03-12 | 2019-06-18 | 北京鼎实创新科技股份有限公司 | A method of PROFIBUS-PA bus communication is realized based on FPGA technology |
Also Published As
| Publication number | Publication date |
|---|---|
| CN116232541B (en) | 2025-09-12 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| He et al. | Cross-technology communication for the Internet of Things: A survey | |
| US8300477B2 (en) | Piecewise erasure of flash memory | |
| WO2021063044A1 (en) | Transmission mode indication method and device, base station, terminal and storage medium | |
| CN103166743B (en) | A kind of baseband digital signal coded modulation integral system | |
| CN101599004B (en) | FPGA-based SATA controller | |
| CN103095703A (en) | Method and equipment and system for achieving data interaction between network and serial port | |
| CN113132272B (en) | Network switching frequency dynamic adjustment method and system based on flow perception and network switching chip structure | |
| CN110223620A (en) | Drive control method, component and display device | |
| CN116232541A (en) | A method and system for generating a single-carrier signal | |
| CN101841393A (en) | PWM (Pulse Width Modulation) input module and MVB (Multifunction Vehicle Bus) equipment based on MVB interface | |
| US9544100B2 (en) | Techniques to stop transmission of data based on reception of an acknowledgment within a specified time | |
| CN106788638B (en) | Spatial modulation transmission method for activating indefinite transmitting antenna | |
| WO2021155732A1 (en) | Signal transmission method and device | |
| CN101784077B (en) | TD_HSUPA uplink data processing system and method | |
| CN102437896B (en) | Bit interleaving and constellation mapping method and apparatus thereof | |
| CN106712819A (en) | High-spectrum-efficiency GSM method | |
| CN103020699B (en) | A kind of underwater acoustic electronic tag for authentication and control method thereof | |
| US20150052264A1 (en) | Wireless expansion card and method for data storage | |
| CN118260230A (en) | HDLC communication controller with cross RS485 bus fast data forwarding function | |
| CN107612862A (en) | A kind of LTE A Pro OFDM modulating devices and method | |
| CN103152141A (en) | Cooperation space-time network coding method in multisource distributed cooperative network | |
| CN216673023U (en) | High-reliability communication protocol module of MLVDS bus | |
| CN114935909A (en) | PLC system and hand-in-hand configuration method | |
| CN114328334B (en) | Device and method for expanding multi-channel serial ports based on EMIF bus | |
| CN106788947B (en) | 433 MHz-based full-duplex wireless communication module |
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 | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |