A multi-threaded processing system and method for broadband digital baseband signals of B5G base stations

By designing a multi-threaded processing system in a B5G base station, combining pipeline parallelism and task parallelism, using public task queues and cache pools, the problems of delay and signal interference in the existing technology are solved, and high throughput and low latency are achieved. Broadband digital baseband signal processing.

CN115098275BActive Publication Date: 2024-11-05NANJING UNIV OF POSTS & TELECOMM
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210560340.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-23
Publication Date
2024-11-05
Estimated Expiration
2042-05-23

AI Technical Summary

Technical Problem

When existing B5G base stations process broadband digital baseband signals, pipeline parallel mode cannot reduce delay, while task parallel mode will lead to signal interference and delay accumulation between different time slots, which cannot meet the high throughput of large-scale MIMO antennas and Low latency requirement.

Method used

A multi-threaded processing system is designed, including general control threads, management threads, worker threads, task queues and cache pools. Through public task queues, the communication efficiency between management threads and worker threads is improved, combining pipeline parallelism and task parallelism, and adopts First-in, first-out queues and cache pools to reduce latency and divide single-precision complex and byte-type cache areas in the cache pool for easy data management.

Benefits of technology

It realizes the improvement of system throughput without increasing delay, avoiding signal processing conflicts, and through efficient thread pool management and scheduling, the baseband signal processing capability is improved, meeting the needs of B5G mobile communication.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115098275B_ABST
    Figure CN115098275B_ABST
Patent Text Reader

Abstract

The present invention discloses a multithreaded processing system and method for broadband digital baseband signals of a B5G base station, including a master control thread, several management threads, a management thread thread pool, several worker threads, a worker thread thread pool, a task queue between the management thread and the worker thread, and a buffer pool; the system adopts a public task queue method to improve the communication efficiency between the management thread and the worker thread, and reduce the delay caused by internal communication: each management thread governs a task queue, and continuously sends newly generated tasks to the queue; the worker threads are arranged in a queue, and the task queue is continuously polled by the head of the team to obtain the highest priority task. After a thread obtains a task, it exits the queue and enters the queue after executing the task. The present invention can efficiently process broadband digital baseband signals, and the signals between different time slots will not interfere with each other, which can effectively reduce the delay of the system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of wireless communications and relates to a multi-threaded processing system and method for a B5G (Beyond 5G) base station broadband digital baseband signal. Background Art

[0002] In B5G mobile communications, base stations need to support massive MIMO antennas and process broadband baseband signals. In addition, they need to achieve high throughput and low latency, which places high demands on the baseband signal processing capabilities of the base stations.

[0003] In order to complete the processing of digital baseband signals using a general-purpose processor, a parallel approach is needed to accelerate this process. The parallel implementation methods mainly include SIMD instructions and multithreading. The existing multithreading technology solutions are mainly divided into two categories: one is the pipeline parallel mode of parallel processing in the time domain, and the other is the task parallel mode of dividing each processing module in parallel. However, these two types of multithreading solutions still have shortcomings: the pipeline parallel mode can improve the system throughput, but cannot reduce the system latency; and the task parallel mode will cause mutual interference between signals in different time slots. Once the corresponding signal processing work cannot be completed within a time slot, it will cause latency accumulation.

[0004] Therefore, it is necessary to design a multi-threaded system and design a matching thread pool and inter-thread communication solution for it, so that it can have sufficient baseband signal processing capabilities to meet the needs of B5G mobile communications. Summary of the invention

[0005] The purpose of the present invention is to overcome the defects of the prior art and provide a multi-threaded processing system and method for B5G base station broadband digital baseband signals, which can support large-scale MIMO antennas, can efficiently process broadband digital baseband signals, and signals between different time slots will not interfere with each other, which can effectively reduce the system delay.

[0006] In order to solve the above technical problems, the present invention adopts the following technical solutions.

[0007] A multi-threaded processing system for broadband digital baseband signals of a B5G base station of the present invention comprises a master control thread, several management threads, a management thread thread pool, several worker threads, a worker thread thread pool, a task queue between the management thread and the worker thread, and a cache pool;

[0008] The system adopts a public task queue to improve the communication efficiency between the management thread and the working thread and reduce the delay caused by internal communication: each management thread governs a task queue and continuously sends newly generated tasks to the queue; the working threads are arranged in a queue, and the working thread at the head of the queue continuously polls the task queue to obtain the task with the highest priority. After a thread obtains a task, it exits the queue and enters the queue again after completing the task;

[0009] The task queue is a first-in-first-out queue, which can be globally accessed within the program;

[0010] The buffer pool includes two continuous buffer areas, which are respectively used to store single-precision complex type intermediate results and byte type intermediate results; their data types are byte type and single-precision floating point complex type respectively.

[0011] Furthermore, the master control thread is in a loop running state after the program is started; it includes a radio frequency interface that can exchange sampling signals with the radio frequency device and a management thread pool object that can be used to call the management thread.

[0012] Furthermore, the several management threads, each of which is bound to a global task queue; include: a radio frequency interface that can exchange sampled signals with a radio frequency device, a protocol stack high-level interface that can exchange binary data with a high-level layer, a built-in function that can divide the baseband signal processing module in parallel, and a cache management object that can apply for and release the cache from the cache area.

[0013] Furthermore, the management thread pool includes a pointer vector for storing pointers of management threads, and a vector for storing states of management threads and corresponding one-to-one to the aforementioned pointer vector.

[0014] Furthermore, the internal functions of the several worker threads can complete the tasks of any module in the baseband signal processing; the task queue interface that can poll the task queues of all management threads and the worker thread thread pool interface that can access the thread pool status.

[0015] Furthermore, the worker thread pool includes a queue for storing pointers of idle worker threads and a vector for storing the working status and task information of the internal worker threads.

[0016] A multi-threaded processing method for a broadband digital baseband signal of a B5G base station of the present invention adopts the multi-threaded processing system for broadband digital baseband signals of a B5G base station, and the method comprises the following steps:

[0017] Step 1. The master control thread starts running, performs initialization work, completes the creation of the management thread pool and the worker thread pool, creates a management thread through the management thread pool, and creates a worker thread through the worker thread pool; the newly created management thread initializes the task queue and enters the idle state; once the worker thread is created, it enters the running state, and the worker thread at the head of the queue continuously polls the task queue for tasks;

[0018] Step 2. The master control thread enters the main loop and loops with a time slot as a cycle until it receives a termination instruction; in the main loop, the master control thread first takes out an idle management thread from the management thread pool, and then completes the synchronization of signal reception and transmission according to the timestamp variable. After synchronization, the signal obtained from the RF interface is stored in the corresponding buffer area. Finally, the management thread is started to complete the specific work, and the master control thread completes the current loop;

[0019] Step 3. After the management thread is started, a buffer area of ​​appropriate size in the buffer pool is bound according to the bandwidth of the signal to be processed, etc.; the task modules are divided into multiple tasks in parallel according to the characteristics of the received signal, and a buffer is allocated to each task; after the tasks are divided, the management thread pushes the tasks into the task queue, and the task message transmitted includes the task type, task priority, and the address of the input buffer area; after the downlink signal is processed, the management thread calls the RF interface to send the signal; after the management thread processes the signal of a time slot, it releases the bound buffer and returns to the thread pool to enter the idle state;

[0020] Step 4. After the worker thread is created, it enters the running state. First, it determines whether the thread is at the head of the thread pool queue. If it is, it polls the task queues of each management thread, obtains tasks according to priority and exits the queue; after executing the current task, it re-enters the thread pool queue.

[0021] Compared with the prior art, the present invention has the following advantages and beneficial effects:

[0022] 1. The present invention can combine pipeline parallelism with task parallelism to improve the system throughput and reduce latency while avoiding conflicts in signal processing between different time slots. In addition, for multiple threads, corresponding thread pools are designed according to their characteristics and work requirements, which can achieve efficient management and scheduling of multiple threads.

[0023] 2. The present invention designs an efficient scheduling mechanism for calling the underlying working threads: each management thread governs a task queue and continuously sends newly generated tasks to the queue; the working threads are arranged in a queue, and the working thread at the head of the queue continuously polls the task queue to obtain the highest priority task. After a thread obtains a task, it exits the queue and enters the queue again after executing the task. This method of using a public task queue can effectively improve the communication efficiency between the management thread and the working thread and reduce the delay caused by internal communication.

[0024] 3. The present invention divides the signal processing in a time slot into multiple tasks, and therefore designs a buffer area to exchange data between different working threads. The present invention combines the characteristics of the baseband signal and divides the buffer area into two parts, namely, a byte type buffer area and a floating point complex type buffer area. This design can avoid repeated requests for releasing the cache, and is also more convenient for the management thread to manage the buffer area and inform the working thread of the cache location. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] Figure 1 A schematic diagram of a system framework of an embodiment of the present invention.

[0026] Figure 2 The present invention is a method flow chart of an embodiment of the present invention.

[0027] Figure 3 A schematic diagram of a cache pool according to an embodiment of the present invention. DETAILED DESCRIPTION

[0028] The present invention provides a multi-threaded processing system and method for broadband digital baseband signals of a B5G base station, the system comprising a physical layer transceiver master control thread, several management threads for parallel task division of baseband signal processing modules, several worker threads for processing baseband tasks, a management thread pool, a worker thread pool, a task queue between management threads and worker threads, and a cache pool for storing intermediate results. The present invention can combine pipeline parallelism with task parallelism to improve the throughput of the system and reduce latency while avoiding conflicts in signal processing between different time slots. In addition, for a variety of threads, corresponding thread pools are designed according to their characteristics and work requirements, which can achieve efficient management and scheduling of multi-threads. The present invention can be applied to a large-scale MIMO-OFDM system base station of the B5G standard, and is used for processing broadband digital baseband signals, which can improve system efficiency, throughput and reduce latency.

[0029] The present invention will be further described in detail below in conjunction with the accompanying drawings.

[0030] like Figure 1As shown, a multi-threaded processing system for B5G base station broadband digital baseband signals of the present invention includes a master control thread, several management threads, a management thread pool, several worker threads, a worker thread pool, a task queue between the management thread and the worker threads, and a cache pool.

[0031] The master control thread is in a loop running state after the program is started, includes a radio frequency interface that can exchange sampling signals with radio frequency devices, and includes a management thread pool object that can be used to call the management thread.

[0032] The management threads, each of which is bound to a global task queue, include a radio frequency interface that can exchange sampling signals with radio frequency devices, a protocol stack high-level interface that can exchange binary data with high-level layers, built-in functions that can divide the baseband signal processing module in parallel, and a cache management object that can apply for and release cache from the cache area.

[0033] The management thread pool includes a pointer vector for storing pointers of management threads, and a vector corresponding to the pointer vector for storing the status of management threads.

[0034] The worker thread, whose internal function can complete the task of any module in baseband signal processing, includes a task queue interface that can poll the task queues of all management threads, and a worker thread thread pool interface that can access the thread pool status.

[0035] The worker thread pool includes a queue for storing pointers of worker threads in an idle state, and a vector for storing the working state and task information of the worker threads inside the queue.

[0036] The task queue is a first-in-first-out queue and can be globally accessed within the program.

[0037] The buffer pool includes two continuous buffer areas, which are used to store single-precision complex type intermediate results and byte type intermediate results respectively. The data types are byte type and single-precision floating point complex type respectively.

[0038] Figure 2 As shown, a multi-threaded processing method for a B5G base station broadband digital baseband signal of the present invention comprises the following steps:

[0039] Step 1: The master control thread starts running, performs initialization work, completes the creation of the management thread pool and the worker thread pool, and creates a management thread through the management thread pool and a worker thread through the worker thread pool. The newly created management thread initializes the task queue and enters the idle state; once the worker thread is created, it enters the running state, and the worker thread at the head of the queue constantly polls the task queue to see if there are any tasks.

[0040] Step 2: The master control thread enters the main loop and loops with a time slot as the cycle until it receives the termination instruction. In the main loop, the master control thread first takes out the idle management thread from the management thread pool, and then completes the synchronization of signal transmission and reception according to the timestamp variable. After synchronization, the signal obtained from the RF interface is stored in the corresponding buffer area. Finally, the management thread is started to complete the specific work, and the master control thread completes the current loop.

[0041] Step 3: After the management thread is started, it will bind a buffer area of ​​appropriate size in the buffer pool according to the bandwidth of the signal to be processed; next, the task modules will be divided into multiple tasks in parallel one by one according to the characteristics of the received signal, and a buffer will be allocated to each task; after the tasks are divided, the management thread pushes the tasks into the task queue, and the task messages transmitted include the task type, task priority, and the address of the input buffer area; after the downlink signal is processed, the management thread calls the RF interface to send the signal; after the management thread processes the signal of a time slot, it releases the bound buffer and returns to the thread pool to enter the idle state.

[0042] Step 4: After the worker thread is created, it enters the running state. First, it determines whether the thread is at the head of the thread pool queue. If it is, it polls the task queues of each management thread, obtains tasks according to priority and exits the queue; after executing the current task, it re-enters the thread pool queue.

[0043] like Figure 3 As shown, the buffer pool involved in the present invention includes two continuous buffers, which are respectively used to store single-precision complex type intermediate results and byte type intermediate results.

Claims

1. A multi-threaded processing system for broadband digital baseband signals of a B5G base station, characterized in that: It includes a master control thread, several management threads, a management thread pool, several worker threads, a worker thread pool, a task queue between the management thread and the worker threads, and a cache pool; The system adopts a public task queue to improve the communication efficiency between the management thread and the working thread and reduce the delay caused by internal communication: each management thread governs a task queue and continuously sends newly generated tasks to the queue; the working threads are arranged in a queue, and the working thread at the head of the queue continuously polls the task queue to obtain the task with the highest priority. After a thread obtains a task, it exits the queue and enters the queue again after completing the task; The task queue is a first-in-first-out queue, which can be globally accessed within the program; The buffer pool comprises two continuous buffer areas, which are respectively used to store single-precision complex type intermediate results and byte type intermediate results; the data types thereof are byte type and single-precision floating point complex type respectively; The master control thread is in a loop running state after the program is started; it includes a radio frequency interface that can exchange sampling signals with radio frequency equipment, and a management thread pool object that can be used to call management threads; The several management threads, each of which is bound to a global task queue, include: a radio frequency interface that can exchange sampled signals with radio frequency devices, a protocol stack high-level interface that can exchange binary data with high-level layers, a built-in function that can divide the baseband signal processing module in parallel, and a cache management object that can apply for and release the cache from the cache area; The management thread pool includes a pointer vector for storing pointers of management threads, and a vector for storing states of management threads and corresponding to the pointer vector one by one; The internal functions of the worker threads can complete the tasks of any module in the baseband signal processing; the task queue interface can poll the task queues of all management threads, and the worker thread thread pool interface can access the thread pool status; The worker thread pool includes a queue for storing pointers of idle worker threads and a vector for storing the working status and task information of the internal worker threads.

2. A multi-threaded processing method for broadband digital baseband signals of a B5G base station, characterized in that: A multi-threaded processing system for broadband digital baseband signals of a B5G base station is adopted, including a master control thread, several management threads, a management thread thread pool, several worker threads, a worker thread thread pool, a task queue between the management thread and the worker thread, and a cache pool; the system adopts a public task queue method to improve the communication efficiency between the management thread and the worker thread and reduce the delay caused by internal communication: each management thread governs a task queue and continuously sends newly generated tasks to the queue; the worker threads are arranged in a queue, and the head worker thread continuously polls the task queue to obtain the highest priority task. After a thread obtains a task, it exits the queue and enters the queue again after completing the task; The task queue is a first-in-first-out queue, which can be globally accessed within the program; The buffer pool comprises two continuous buffer areas, which are respectively used to store single-precision complex type intermediate results and byte type intermediate results; the data types thereof are byte type and single-precision floating point complex type respectively; The method comprises the following steps: Step 1. The master control thread starts running, performs initialization work, completes the creation of the management thread pool and the worker thread pool, creates a management thread through the management thread pool, and creates a worker thread through the worker thread pool; the newly created management thread initializes the task queue and enters the idle state; once the worker thread is created, it enters the running state, and the worker thread at the head of the queue continuously polls the task queue for tasks; Step 2. The master control thread enters the main loop and loops with a time slot as a cycle until it receives a termination instruction; in the main loop, the master control thread first takes out an idle management thread from the management thread pool, and then completes the synchronization of signal reception and transmission according to the timestamp variable. After synchronization, the signal obtained from the RF interface is stored in the corresponding buffer area. Finally, the management thread is started to complete the specific work, and the master control thread completes the current loop; Step 3. After the management thread is started, a buffer area of ​​appropriate size in the buffer pool is bound according to the bandwidth of the signal to be processed, etc.; the task modules are divided into multiple tasks in parallel according to the characteristics of the received signal, and a buffer is allocated to each task; after the tasks are divided, the management thread pushes the tasks into the task queue, and the task message transmitted includes the task type, task priority, and the address of the input buffer area; after the downlink signal is processed, the management thread calls the RF interface to send the signal; after the management thread processes the signal of a time slot, it releases the bound buffer and returns to the thread pool to enter the idle state; Step 4. After the worker thread is created, it enters the running state. First, it determines whether the thread is at the head of the thread pool queue. If it is, it polls the task queues of each management thread, obtains tasks according to priority and exits the queue; after executing the current task, it re-enters the thread pool queue.