A multi-core heterogeneous SoC software-defined radio waveform component communication method

By allocating fixed data exchange space and data effective length registers in multi-core heterogeneous SoC systems, and using a ping-pong operation mechanism, the problems of low data transmission efficiency and poor synchronization performance between waveform components are solved, and efficient communication throughput and synchronization are achieved. performance to meet the communication needs of radio waveform components.

CN117674863BActive Publication Date: 2024-09-13SHANGHAI JIEFANG INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311469039.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-07
Publication Date
2024-09-13
Estimated Expiration
2043-11-07

Smart Images

  • Figure CN117674863B
    Figure CN117674863B
Patent Text Reader

Abstract

The present invention relates to a multi-core heterogeneous SoC software defined radio waveform component communication method, comprising the following steps: S1, allocating two fixed data exchange spaces and two data effective length registers to each processing core for deploying a software defined radio waveform component; S2, communication start; S3, the waveform component sender processing core adopts a data packet ping-pong write operation to alternately write data to two fixed waveform component sender processing core data exchange spaces, and the waveform component receiver processing core adopts a data packet ping-pong read operation to alternately read data from two fixed waveform component sender processing core data exchange spaces, and at the same time, the waveform component sender processing core and the waveform component receiver processing core alternately use two waveform component sender processing core data effective length registers to complete the data packet ping-pong write operation and the data packet ping-pong read operation rate matching; S4, communication ends. The beneficial effects are high data transmission efficiency and good data synchronization performance.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to the field of microelectronic communication technology, and in particular to a multi-core heterogeneous SoC software-defined radio waveform component communication method. [Background technology]

[0002] In the communication and military fields, the development of microelectronics and communication technologies has promoted the transformation of traditional embedded systems (embedded real-time systems) to heterogeneous distributed embedded systems. Various embedded devices need to communicate in real time, and various embedded devices are often built on heterogeneous software and hardware platforms. The reasonable allocation of tasks in heterogeneous distributed embedded systems is the key to improving performance. Generally speaking, the reasonable allocation and scheduling of tasks in heterogeneous distributed embedded systems includes the design of computing components and communication basic frameworks, improving system performance and making the system run efficiently.

[0003] Radio softwareization is the realization of a programmable and reconfigurable radio communication channel or system through the application of algorithms. Software Defined Radio (SDR) is a radio broadcast communication technology that is based on software-defined wireless communication protocols rather than hard-wired. The frequency band, air interface protocol and functions of the radio signal (waveform) can be upgraded through software downloads and updates without completely replacing the hardware.

[0004] With the rapid development of embedded multi-core heterogeneous platforms and System On Chip (SoC), software-defined radio hardware platforms can be designed directly based on the highly integrated software-defined radio (SDR) structure of GPP+FPGA / DSP. Various waveform components are deployed on different processing cores of SoC (for example, the network layer is deployed on GPP, the link layer is deployed on GPP, and the physical layer is deployed on FPGA), integrating the advantages of different processing cores, taking advantage of each other's strengths and weaknesses, and providing an efficient development environment for software-defined radio developers. However, to measure the overall performance of a software-defined radio system, it is necessary to consider the communication efficiency between various waveform components to avoid consuming too many resources on data communication.

[0005] In software-defined radio, waveform components often need high-speed, stable, high-throughput, one-to-many communication requirements to meet the realization of radio waveforms. At present, communication between multi-core heterogeneous SOC processing cores is often implemented by shared memory and inter-core interrupts, but the operating systems, instruction sets, processor core architectures, and functional characteristics of each processing core in a multi-core heterogeneous system may be different, and the data processing efficiency and transportation efficiency are also very different, such as GPP (Linux) + GPP (RTOS) + FPGA. At present, some SoCs provide Mailbox hardware modules. Each core has a dedicated mailbox. The mailbox is the message content. The message can be delivered to the specified processing core by specifying the recipient. However, many SoCs do not provide this hardware mechanism. The mailbox message delivery mechanism is more suitable for data communication between GPPs. FPGAs are not suitable for complex sequential logic calculations. Using complex address allocation and dynamic allocation algorithms in the communication process will save space but will also lose FPGA performance efficiency.

[0006] The present invention aims at the technical problems of low data transmission efficiency and poor data synchronization performance of waveform components on different processing cores of existing multi-core heterogeneous SoC, and improves the communication method of software-defined radio waveform components of multi-core heterogeneous SoC. [Summary of the invention]

[0007] The purpose of the present invention is to provide a multi-core heterogeneous SoC software defined radio waveform component communication method with high data transmission efficiency and good data synchronization performance.

[0008] To achieve the above object, the technical solution adopted by the present invention is a multi-core heterogeneous SoC software defined radio waveform component communication method, wherein the multi-core heterogeneous SoC includes multiple GPP processing cores, and / or DSP processing cores, and / or FPGA processing cores that deploy software defined radio waveform components, and the communication between the software defined radio waveform components deployed on the processing cores includes the following steps:

[0009] S1. Allocate two fixed data exchange spaces on the multi-core heterogeneous SoC shared memory for each processing core that deploys the software-defined radio waveform component, and allocate two data valid length registers on the multi-core heterogeneous SoC shared memory or on the FPGA;

[0010] S2, the waveform component receiving side processing core waits for the waveform component sending side processing core to send a communication start request, the waveform component sending side processing core divides the data packets, and the waveform component sending side processing core sends a communication start request to the waveform component receiving side processing core;

[0011] S3, the waveform component sender processing core uses data packet ping-pong write operation to alternately write data to the data exchange space of two fixed waveform component sender processing cores, and the waveform component receiver processing core uses data packet ping-pong read operation to alternately read data from the data exchange space of two fixed waveform component sender processing cores. At the same time, the waveform component sender processing core and the waveform component receiver processing core alternately use the two waveform component sender processing core data valid length registers to complete the data packet ping-pong write operation and the data packet ping-pong read operation rate matching;

[0012] S4. The waveform component receiving side processing core waits for the waveform component sending side processing core to send a communication end request, and the waveform component sending side processing core sends a communication end request to the waveform component receiving side processing core.

[0013] Furthermore, the multi-core heterogeneous SoC software defined radio waveform component communication method is a multi-core heterogeneous SoC software defined radio waveform component communication method that supports simultaneous communication between a waveform component processing core and other waveform component processing cores. The two data valid length registers are two data valid length register groups. If the multi-core heterogeneous SoC includes n processing cores that deploy software defined radio waveform components, it includes n*2 processing core data valid length register groups, and each processing core data valid length register group includes n-1 data valid length registers. The data valid length registers at fixed positions of the two data valid length register groups are used for alternating use by the waveform component sender processing core and the fixed waveform component receiver processing core to complete data packet ping-pong write operation and data packet ping-pong read operation rate matching during one-to-many communication.

[0014] Preferably, the specific operation steps of the data packet ping-pong write operation and rate matching in step S3 are as follows:

[0015] S311, the waveform component sender processing core reads the first waveform component sender processing core data valid length register, and waits for the first waveform component sender processing core data valid length register to be cleared;

[0016] S312, the waveform component sender processing core writes data to the first waveform component sender processing core data exchange space, and at the same time writes the valid data length in the first waveform component sender processing core data exchange space to the first waveform component sender processing core data valid length register;

[0017] S313, the waveform component sender processing core reads the second waveform component sender processing core data valid length register, and waits for the second waveform component sender processing core data valid length register to be cleared;

[0018] S314, the waveform component sender processing core writes data to the second waveform component sender processing core data exchange space, and writes the valid data length in the second waveform component sender processing core data exchange space to the second waveform component sender processing core data valid length register;

[0019] S315, repeat steps S311 to S314 until the data packet is sent.

[0020] Preferably, the specific operation steps of the data packet ping-pong reading operation and rate matching in step S3 are as follows:

[0021] S321, the waveform component receiving side processing core reads the first waveform component sending side processing core data valid length register, and waits for the first waveform component sending side processing core data valid length register to be non-zero;

[0022] S322, the waveform component receiving side processing core reads data from the first waveform component sending side processing core data exchange space according to the data length read from the first waveform component sending side processing core data valid length register, and clears the first waveform component sending side processing core data valid length register;

[0023] S323, the waveform component receiving side processing core reads the second waveform component sending side processing core data valid length register, and waits for the second waveform component sending side processing core data valid length register to be non-zero;

[0024] S324, the waveform component receiving side processing core reads data from the second waveform component sending side processing core data exchange space according to the data length read from the second waveform component sending side processing core data valid length register, and clears the second waveform component sending side processing core data valid length register;

[0025] S325, repeat steps S321 to S324 until the data packet is received.

[0026] Preferably, the size of each data exchange space is freely defined according to the size of the shared memory, and the data exchange space addresses do not overlap.

[0027] Preferably, the data reading and writing start address in step S3 is the start address of each block of data exchange space.

[0028] Preferably, the multi-core heterogeneous SoC software defined radio waveform component communication method sends communication start requests and end requests through inter-core interrupts and / or IO interrupts.

[0029] Preferably, the GPP processing cores send communication start requests and end requests to each other via inter-core interrupts.

[0030] Preferably, the GPP processing core and the FPGA processing core send communication start requests and end requests via IO interrupts.

[0031] The present invention provides a multi-core heterogeneous SoC software defined radio waveform component communication method with the following beneficial effects: it is a communication method between waveform components deployed on different processing cores of a multi-core heterogeneous SoC, and is used to solve the technical problems of low data transmission efficiency and poor data synchronization performance between waveform components on different processing cores of an existing multi-core heterogeneous SoC; 1. Through the design of a communication mechanism, the use requirements of a single waveform component in software defined radio for simultaneous communication with multiple waveform components are realized, and the data synchronization performance is good; 2. A ping-pong operation mechanism is added to improve the overall communication throughput when waveform components deployed on processing cores of a multi-core heterogeneous SoC communicate with each other, and the data transmission efficiency is high.

Brief Description of the Drawings

[0032] Figure 1 The invention is a multi-core heterogeneous SoC software-defined radio waveform component communication method and a schematic diagram of a waveform component communication model.

[0033] Figure 2 It is a schematic diagram of a multi-core heterogeneous SoC software-defined radio waveform component communication method ping-pong operation and rate matching mechanism.

[0034] Figure 3 The invention is a schematic diagram of space allocation of multi-core heterogeneous SoC software-defined radio waveform component communication method shared memory and data valid length register group.

[0035] Figure 4 It is a multi-core heterogeneous SoC software-defined radio waveform component communication method data transmission and reception flow chart. [Specific implementation method]

[0036] The present invention will be further described below in conjunction with embodiments and with reference to the accompanying drawings.

[0037] Example

[0038] This embodiment implements a multi-core heterogeneous SoC software defined radio waveform component communication method.

[0039] Figure 1 This is a multi-core heterogeneous SoC software-defined radio waveform component communication method and waveform component communication model diagram. Figure 1As shown, this embodiment provides a communication method between waveform components deployed on different processing cores of a multi-core heterogeneous SoC, reads and writes data to an agreed data storage address through a ping-pong operation mechanism, operates an agreed data valid length register group to implement a rate matching mechanism, uses shared memory as a transmission medium, and uses interrupts and IO requests as communication triggers and end conditions, so that the waveform component sender and receiver complete data communication.

[0040] Figure 2 It is a multi-core heterogeneous SoC software-defined radio waveform component communication method ping-pong operation and rate matching mechanism diagram. Figure 2 As shown, further, the above ping-pong operation mechanism and rate matching mechanism require each processing core of the multi-core heterogeneous SoC to allocate two fixed data exchange spaces and data valid length registers on the shared memory. When the reading and writing rates of the processing cores are different, the processing cores take turns to read and write the two fixed data exchange spaces, and use the data valid length register to complete the rate matching, so that the processing cores can work during data exchange, greatly improving the overall communication throughput.

[0041] Figure 3 The invention discloses a multi-core heterogeneous SoC software defined radio waveform component communication method, a shared memory and a data effective length register group space allocation diagram, wherein the data effective length register is expressed in the form of XYZ, X represents: a processing core sender, Y represents: a processing core receiver, and Z represents: a data exchange space. Figure 4 It is a multi-core heterogeneous SoC software-defined radio waveform component communication method data transmission and reception flow chart. Figure 3 , Figure 4 As shown, the specific operation steps of the method in this embodiment are as follows:

[0042] Step 1: The waveform component sender divides the data packets, the waveform component sender processing core sends a communication start request to the waveform component receiver processing core, the waveform component sender alternately writes data to the data exchange space (data packet ping-pong write operation), and the waveform component sender processing core sends a communication end request to the waveform component receiver processing core.

[0043] The specific operation steps of the data packet ping-pong write operation in step 1 are as follows:

[0044] Step 1.1: The sender of the waveform component reads the data valid length register 0 and waits for the valid length register 0 to be cleared.

[0045] Step 1.2: The waveform component writes data to the data exchange space 0 in the sending direction, and writes the valid data length in the data exchange space 0 to the data valid length register 0.

[0046] Step 1.3: The sender of the waveform component reads the data valid length register 1 and waits for the valid length register 1 to be cleared.

[0047] Step 1.4: The waveform component writes data to the data exchange space 1 in the sending direction, and writes the valid data length in the data exchange space 1 to the data valid length register 1.

[0048] Step 1.5: Repeat step 1.1.

[0049] Step 2: The waveform component receiver processing core waits for the waveform component sender processing core to send a communication start request, the waveform component receiver alternately reads data from the data exchange space (data packet ping-pong read operation), and the waveform component receiver processing core waits for the waveform component sender processing core to send a communication end request.

[0050] The specific operation steps of the data packet ping-pong read operation in step 2 are as follows:

[0051] Step 2.1: The waveform component receiver reads the data valid length register 0 and waits for the valid length register 0 to be non-zero.

[0052] Step 2.2: The waveform component receiver reads data of corresponding length from data exchange space 0 according to the data read from data valid length register 0, and clears data valid length register 0.

[0053] Step 2.3: The waveform component receiver reads the data valid length register 1 and waits for the valid length register 1 to be non-zero.

[0054] Step 2.4: The waveform component receiver reads data of corresponding length from data exchange space 1 according to the data read from data valid length register 1, and clears data valid length register 1.

[0055] Step 2.5: Repeat step 2.1.

[0056] Furthermore, the data storage address is the starting address of each data exchange space, which is fixed and known to each other among the processing cores. The length of each data exchange space can be freely defined according to the size of the shared memory, but the data exchange space address overlap is not allowed.

[0057] Furthermore, the above-mentioned agreed data valid length register group is composed of registers that can be accessed by different processing cores of a multi-core heterogeneous SoC, and can be implemented in an FPGA or in an agreed shared memory. The number of data length registers is determined by the number of processing cores that need to communicate with each other, and the number of data length registers = number of processing cores * (number of processing cores - 1) * 2. When components communicate one-to-many, the valid data length can be directly filled in the corresponding valid data length register, and after the valid data length register group corresponding to this data exchange space is all 0, this data exchange space can be operated to achieve one-to-many communication needs.

[0058] Furthermore, the above interrupts and IO requests are used as communication trigger and stop conditions. The communication trigger condition between GPP and GPP is the inter-core interrupt; the communication trigger and stop conditions between GPP and FPGA are IO requests and IO interrupts.

[0059] Generally speaking, the start and end requests between GPPs are inter-core interrupts; the start and end requests sent by GPP to FPGA are IO requests; and the start and end requests sent by FPGA to GPP are IO interrupts.

[0060] Those skilled in the art will appreciate that all or part of the steps to implement the above embodiments may be accomplished by hardware, or by a program to instruct related hardware, and the program may be stored in a computer-readable storage medium, wherein the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.

[0061] The above is only a preferred embodiment of the present invention. It should be pointed out that ordinary technicians in this technical field can make several improvements and supplements without departing from the principle of the present invention. These improvements and supplements should also be regarded as the scope of protection of the present invention.

Claims

1. A multi-core heterogeneous SoC software defined radio waveform component communication method, wherein the multi-core heterogeneous SoC includes a plurality of GPP processing cores, and / or DSP processing cores, and / or FPGA processing cores that deploy software defined radio waveform components, characterized in that The software defined radio waveform component deployed on the processing cores communicates with other waveform component processing cores simultaneously including the following steps: S1. If the multi-core heterogeneous SoC includes n processing cores that deploy software-defined radio waveform components, two fixed data exchange spaces are allocated on the multi-core heterogeneous SoC shared memory for each processing core that deploys the software-defined radio waveform component, and two data valid length register groups are allocated on the multi-core heterogeneous SoC shared memory or on the FPGA, then n*2 processing core data valid length register groups are included, and each processing core data valid length register group includes n-1 data valid length registers. The data valid length registers at fixed positions of the two data valid length register groups are used alternately by the waveform component sender processing core and the fixed waveform component receiver processing core to complete data packet ping-pong write operation and data packet ping-pong read operation rate matching during one-to-many communication; S2, the waveform component receiving side processing core waits for the waveform component sending side processing core to send a communication start request, the waveform component sending side processing core divides the data packets, and the waveform component sending side processing core sends a communication start request to the waveform component receiving side processing core; S3, the waveform component sender processing core adopts data packet ping-pong write operation to alternately write data to the data exchange space of two fixed waveform component sender processing cores, and the waveform component receiver processing core adopts data packet ping-pong read operation to alternately read data from the data exchange space of two fixed waveform component sender processing cores. At the same time, the waveform component sender processing core and the waveform component receiver processing core alternately use the data valid length registers at fixed positions of the two waveform component sender processing core data valid length register groups to complete the data packet ping-pong write operation and the data packet ping-pong read operation rate matching; S4. The waveform component receiving side processing core waits for the waveform component sending side processing core to send a communication end request, and the waveform component sending side processing core sends a communication end request to the waveform component receiving side processing core.

2. A multi-core heterogeneous SoC software defined radio waveform component communication method according to claim 1, characterized in that The specific operation steps of the data packet ping-pong write operation and rate matching in step S3 are as follows: S311, the waveform component sender processing core reads the first waveform component sender processing core data valid length register, and waits for the first waveform component sender processing core data valid length register to be cleared; S312, the waveform component sender processing core writes data to the first waveform component sender processing core data exchange space, and at the same time writes the valid data length in the first waveform component sender processing core data exchange space to the first waveform component sender processing core data valid length register; S313, the waveform component sender processing core reads the second waveform component sender processing core data valid length register, and waits for the second waveform component sender processing core data valid length register to be cleared; S314, the waveform component sender processing core writes data to the second waveform component sender processing core data exchange space, and writes the valid data length in the second waveform component sender processing core data exchange space to the second waveform component sender processing core data valid length register; S315, repeat steps S311 to S314 until the data packet is sent.

3. A multi-core heterogeneous SoC software defined radio waveform component communication method according to claim 2, characterized in that The specific operation steps of the data packet ping-pong reading operation and rate matching in step S3 are as follows: S321, the waveform component receiving side processing core reads the first waveform component sending side processing core data valid length register, and waits for the first waveform component sending side processing core data valid length register to be non-zero; S322, the waveform component receiving side processing core reads data from the first waveform component sending side processing core data exchange space according to the data length read from the first waveform component sending side processing core data valid length register, and clears the first waveform component sending side processing core data valid length register; S323, the waveform component receiving side processing core reads the second waveform component sending side processing core data valid length register, and waits for the second waveform component sending side processing core data valid length register to be non-zero; S324, the waveform component receiving side processing core reads data from the second waveform component sending side processing core data exchange space according to the data length read from the second waveform component sending side processing core data valid length register, and clears the second waveform component sending side processing core data valid length register; S325. Repeat steps S321 to S324 until all data packets are received.

4. The multi-core heterogeneous SoC software defined radio waveform component communication method according to claim 1, characterized in that: The size of each data exchange space is freely defined according to the size of the shared memory, and the data exchange space addresses do not overlap.

5. The multi-core heterogeneous SoC software defined radio waveform component communication method according to claim 1, characterized in that: In step S3, the data reading and writing starting address is the starting address of each block of data exchange space.

6. The multi-core heterogeneous SoC software defined radio waveform component communication method according to claim 1, characterized in that: The communication start request and end request are sent through the inter-core interrupt and / or IO interrupt.

7. A multi-core heterogeneous SoC software defined radio waveform component communication method according to claim 6, characterized in that: The GPP processing cores send communication start requests and end requests to each other through inter-core interrupts.

8. The multi-core heterogeneous SoC software defined radio waveform component communication method according to claim 6, characterized in that: The GPP processing core and the FPGA processing core send communication start requests and end requests through IO interrupts.