DDR distribution method and system based on multichannel intermediate frequency signal acquisition
By using a dynamic memory allocation management unit in multi-channel DMA data processing, the DDR memory partition is adjusted according to the number of channels and the transmission rate, the problem of unreasonable memory allocation is solved, and efficient utilization of DDR memory and improved data processing effect is achieved.
Patent Information
- Application Number
- CN202411196304.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-29
- Publication Date
- 2024-11-29
AI Technical Summary
In the prior art, memory allocation method in multi-channel DMA data processing lacks flexibility, resulting in memory waste and inability to meet real-time data processing needs.
Using the DDR allocation method based on multi-channel intermediate frequency signal acquisition, the DMA data receiving unit, multi-channel scheduling management unit and dynamic memory allocation management unit are used to dynamically adjust memory allocation, and the memory partition is adjusted in real time according to the number of channels and transmission rate to realize DDR memory Maximize utilization.
It realizes efficient utilization of DDR memory, ensures the independence and integrity of data in each channel, improves data processing effect, and avoids memory competition and conflict.
Smart Images

Figure CN119046185A_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of embedded memory management, and in particular relates to a DDR allocation method and system based on multi-channel intermediate frequency signal acquisition. Background Art
[0002] In the field of modern embedded systems and high-performance computing, effective memory allocation management is crucial to the performance and efficiency of the system. Memory allocation determines how the system effectively manages and utilizes physical memory, which is particularly important in scenarios such as multi-channel DMA data processing. Traditionally, memory allocation methods are usually relatively simple and mechanical. In many applications, developers often use static allocation methods to allocate memory according to fixed sizes or preset partitions. For example, some systems divide the entire memory evenly into several fixed-size areas, each corresponding to a specific task or function. This method is simple and direct, but it is difficult to adapt to dynamically changing needs, especially in multi-channel DMA data processing, which may cause some memory areas to be wasted or some channels to fail to meet the needs of real-time data processing.
[0003] In order to overcome the limitations of traditional memory allocation methods, researchers have begun to explore more flexible and intelligent memory management methods in recent years. One of the innovative methods is the dynamic memory allocation management module, which performs well in multi-channel DMA data processing applications.
[0004] Through the above analysis, the problems and defects of the existing technology are as follows: in the existing data acquisition process, the data cache of multi-channel acquisition is to divide the DDR into equal parts according to the number of channels. This traditional memory allocation method lacks flexibility and causes unnecessary memory waste. Summary of the invention
[0005] In order to overcome the problems existing in the related art, the disclosed embodiment of the present invention provides a DDR allocation method and system based on multi-channel intermediate frequency signal acquisition. The purpose of the present invention is to provide a DDR allocation method based on multi-channel intermediate frequency signal acquisition, which can dynamically allocate and manage memory according to the number of enabled channels to achieve maximum utilization of DDR memory capacity.
[0006] The technical solution is as follows: A DDR distribution system based on multi-channel intermediate frequency signal acquisition includes:
[0007] DMA data receiving unit, used to move the collected valid data;
[0008] A multi-channel scheduling management unit is used to process the externally collected data in different channels;
[0009] The dynamic memory allocation management unit is used to dynamically allocate memory and cache data for valid data collected from multiple external channels.
[0010] Furthermore, during the data transmission process, the DMA data receiving unit stores the valid data collected by the ADC in the data buffer of the DMA controller, and the DMA controller transfers the data from the buffer to the system main memory DDR through the bus interface in the form of AXI Stream to realize data transfer.
[0011] Furthermore, the AXIDMA in the DMA data receiving unit supports multiple data channels, performs multi-channel data movement operations simultaneously, and supports multi-channel signal acquisition.
[0012] Furthermore, the multi-channel scheduling management unit collects external multi-channel data in the following two ways, including:
[0013] The first is through a single AXIDMA core and enables multi-channel functionality;
[0014] The second method is to add multiple AXIDMA cores, each core enables a single channel, and by adding multiple DMA controllers, each channel can be independently configured and meet the transmission requirements of different data source cores. The independent configuration of each channel includes configuring the data width, transmission mode, and transmission rate parameters of each channel.
[0015] Furthermore, the dynamic memory allocation management unit dynamically allocates memory and caches valid data collected by multiple external channels, and dynamically divides the DDR memory according to the number of enabled channels during the DMA initialization and configuration phase; the DDR memory allocation method allocates a corresponding number of areas according to the enabled channel data, so that the data of each channel is independently stored in the specified memory area;
[0016] The dynamic memory allocation management unit performs reasonable dynamic memory allocation and data caching on the valid data collected by multiple external channels, adopts an adaptive algorithm, and dynamically adjusts the memory allocation strategy according to the channel configuration during system operation; when the number of enabled channels changes, the memory allocation is adjusted in real time; when the data volume of a channel is large or the transmission rate is fast, the dynamic memory allocation management unit increases the allocation weight of the channel and increases the memory capacity during the allocation process.
[0017] Another object of the present invention is to provide a DDR allocation method based on multi-channel intermediate frequency signal acquisition, the method runs the DDR allocation system based on multi-channel intermediate frequency signal acquisition, the method comprising:
[0018] S1, initialization phase: when the system starts, the dynamic memory allocation management unit initializes the DDR memory partition according to the preset initial configuration, and allocates the initial memory area to each channel according to the total amount of DDR memory and the number of channels;
[0019] S2, channel activity detection: continuously monitors the activity status of each channel in the system;
[0020] S3, dynamic adjustment strategy: When a change in the active state of a channel is detected, the dynamic memory allocation management unit adjusts the memory allocation according to the number of currently enabled channels and the transmission rate to balance the memory usage among the channels;
[0021] S4, configuration update and application: the dynamic memory allocation management unit updates the memory allocation configuration according to the result of dynamic adjustment and applies the new configuration to DDR;
[0022] S5, periodically monitoring and adjusting the above steps.
[0023] In step S2, channel activity detection is performed based on the DMA data transfer request frequency and the channel configuration status.
[0024] In step S3, when a change in the channel activity state is detected, the dynamic memory allocation management unit adjusts the memory allocation according to the number of currently enabled channels and the transmission rate, including:
[0025] Step 1: Submit the total capacity information for dynamic allocation, summarize the memory information and put it into the DDR capacity pool, and determine the total number of allocated channels Q;
[0026] Step 2: According to the number of channels in the DDR capacity pool, the weight value to be allocated is specified as H={1,2…h}, where H is the weight value and h is the weight factor;
[0027] Step 3: determine the set of all secondary DDR memory capacity channels to be allocated G = {1, 2 ... g}, where G is the capacity channel set, and g is the sub-capacity channel; and the channel active state change graph S =<K|P> Indicates the connection relationship between the secondary DDR memory capacity channels to be allocated. In the channel active state change diagram, the point set K represents all the secondary DDR memory capacity channels to be allocated, and the point set P represents the connection relationship between the secondary DDR memory capacity channels. The edge connecting two secondary DDR memory capacity channels to be allocated indicates that the two secondary DDR memory capacity channels to be allocated will be connected when they use the same channel at the same time. All secondary users participating in the allocation need to submit a set of demand information A i =(a i ,e i ,q i ), ai ,e i ,q i They are the allocated capacity value, the number of channels applied for, and the number of channels applied for occupation, where a maximum of h channels are required and a maximum of Q channels are occupied;
[0028] Step 4: Calculate the transmission rate u of each channel to be allocated i ,in, Filter out the channels to be allocated with abnormal transmission rate and adjust them. The adjusted transmission rate is u i ′ ; If there is no abnormal transmission rate, then u i ′ =u i ;
[0029] Step 5: Design a sorting algorithm based on the adjusted transmission rate u i ′ and the channel active state change graph S are sorted; a sorting tree is obtained by breadth-first sorting, and the entire tree is traversed in sequence to obtain a sorting result list F;
[0030] Step 6: Design an algorithm for calculating the appropriate value of DDR memory capacity transmission, pre-allocate and find critical nodes. According to the order in F, find the critical nodes of each channel to be allocated in turn, and pre-allocate in turn. Assume that a node has been allocated the required channel and perform the allocation process. The node selects a node that has not been allocated a channel in the pre-allocation stage and has the highest transmission rate as its critical node; calculate the appropriate value of DDR memory capacity transmission o i =u ci ×e i ×q i , we get the transmission rate of the critical node of the node multiplied by the number of channels applied for by the node and the application duration, where u ci The transmission rate of the critical node of the node; the DDR memory capacity transmission suitable value calculation algorithm, for each channel to be allocated, the corresponding critical node is selected through the selection rule and the selection algorithm loop iteration, and then the DDR memory capacity transmission suitable value calculation is performed to ensure that the abnormal transmission rate has no effect on the DDR memory capacity transmission suitable value calculation, thereby preventing abnormal transmission rate;
[0031] Step 7: Design the allocation algorithm and determine the successful allocation weight; the successful allocation weight selection and allocation algorithm, through the selection rules and the selection algorithm, select the winning channel to be allocated to the successful allocation weight set in a loop iteration, according to the application information A i =(a i ,e i ,q i) allocate corresponding channels and design a normal dynamic capacity allocation method that is consistent with preventing transmission rate anomalies and policy manipulation.
[0032] In step 3, the channel active state change graph S =<K|P> In practical applications, the signal-to-noise ratio is indirectly described by calculating the distance between each channel to be allocated.
[0033] In step 4, the channels to be allocated with abnormal transmission rates have the same neighbors and the same application duration in the channel active state change graph; if the transmission rates of two channels to be allocated with abnormal transmission rates are different, the adjusted transmission rate is assigned to u′ through the screening and adjustment algorithm. i , to prevent abnormal transmission rate.
[0034] Furthermore, the method is embedded in ARM, FPGA or ZYNQ architecture.
[0035] In combination with all the above-mentioned technical solutions, the beneficial effects of the present invention are as follows: the memory dynamic allocation method provided by the present invention includes DMA data reception, multi-channel scheduling management and dynamic memory allocation management units. By dynamically analyzing the number of enabled channels and the transmission rate, the DDR memory is reasonably dynamically allocated. Compared with the prior art, the present invention realizes the memory dynamic allocation management function. The DDR memory space can set the corresponding allocation weight according to the current number of enabled channels and the acquisition rate of each channel to complete the accurate control of the memory partition and achieve the best data processing effect. This intelligent memory partitioning strategy and flexible configuration method effectively optimize the utilization rate of the DDR memory. The data of each channel is independently stored in the allocated designated area, which can effectively prevent data competition and conflict and ensure the integrity and independence of the data. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] The accompanying drawings herein are incorporated in and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the description, serve to explain the principles of the present disclosure;
[0037] Figure 1 It is a schematic diagram of a DDR distribution system based on multi-channel intermediate frequency signal acquisition provided by an embodiment of the present invention;
[0038] Figure 2 It is a flow chart of a DDR allocation method based on multi-channel intermediate frequency signal acquisition provided by an embodiment of the present invention;
[0039] In the figure: 1. DMA data receiving unit; 2. Multi-channel scheduling management unit; 3. Dynamic memory allocation management unit. DETAILED DESCRIPTION
[0040] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the specific embodiments of the present invention are described in detail below in conjunction with the accompanying drawings. In the following description, many specific details are set forth to facilitate a full understanding of the present invention. However, the present invention can be implemented in many other ways different from those described herein, and a person skilled in the art can make similar improvements without violating the connotation of the present invention, so the present invention is not limited by the specific implementation disclosed below.
[0041] Embodiment 1, as Figure 1 As shown, the DDR allocation system based on multi-channel intermediate frequency signal acquisition provided by the embodiment of the present invention includes a DMA data receiving unit 1, a multi-channel scheduling management unit 2 and a dynamic memory allocation management unit 3. It can be based on any embedded platform, such as ARM, FPGA, ZYNQ, etc. Preferably, the ZYNQ architecture embedded platform is used as an example for description.
[0042] The DMA data receiving unit 1 is used to move the collected valid data. AXIDMA can achieve high-speed data transmission through direct memory access, thereby avoiding the processor from frequently intervening in the data transmission process. During the data transmission process, the valid data collected by the ADC will first be stored in the data buffer area of the DMA controller. The DMA controller transfers the data from the buffer area to the system main memory DDR through the bus interface in the form of AXI Stream to realize data transfer.
[0043] The data transfer includes: through DMA, that is, the PL side and the PS side interact through DDR, the PL side writes to the specified location of DDR, and the PS side then retrieves the data from the specified location.
[0044] Exemplarily, the AXIDMA in the DMA data receiving unit 1 supports multiple data channels, allowing simultaneous multi-channel data movement operations, thereby supporting a multi-channel signal acquisition method.
[0045] The multi-channel scheduling management unit 2 is used to process the externally collected data by channels. The external multi-channel data collection can be completed in two ways:
[0046] The first method is to use a single AXIDMA core and enable multi-channel functionality. Add an AXIDMA IP core to the block design and enable internal multi-channel for the IP core.
[0047] Second, it can be achieved by adding multiple AXIDMA cores, each enabling a single channel.
[0048] The present invention adopts the second method as the configuration method in the external multi-channel data acquisition. By adding multiple DMA controllers, each channel can be configured independently and meet the transmission requirements of different data sources. For example, the data width, transmission mode, transmission rate and other parameters of each channel can be configured to maximize the system throughput and performance.
[0049] Secondly, the independent and highly optimized internal architecture of AXIDMA can process data transmission requests of multiple channels in parallel. For data acquisition under high load conditions, each channel can maintain efficient data transmission without performance degradation due to the continuation of other channels.
[0050] The dynamic memory allocation management unit 3 is used to perform reasonable dynamic memory allocation and data caching on the valid data collected by multiple external channels, and to improve the efficiency of data collection and processing by optimizing the utilization of DDR memory.
[0051] First, the dynamic memory allocation management unit 3 will dynamically divide the DDR memory according to the number of enabled channels during the DMA initialization and configuration phase. The dynamic division method of the DDR memory will allocate a corresponding number of areas according to the enabled channel data to ensure that the data of each channel can be independently stored in the specified memory area, thereby effectively preventing data competition and conflict and ensuring the integrity and independence of the valid data of each channel.
[0052] The dynamic memory allocation management unit 3 adopts an adaptive algorithm, and can dynamically adjust the memory allocation strategy according to the channel configuration when the system is running. When the number of channel enable changes, the dynamic memory allocation management unit 3 can adjust the memory allocation in real time (the DDR memory allocation method can be changed in real time according to the configured number of channel enable) to maximize the utilization rate and system performance of the DDR memory. Through intelligent memory partition strategy and flexible dynamic configuration mode, the DDR memory utilization rate is significantly improved in the multi-channel acquisition process, and accurate memory partition adjustment can improve the data processing effect.
[0053] Exemplarily, when the number of enabled channels changes, the dynamic memory allocation management unit 3 can adjust the memory allocation in real time using an adaptive algorithm to maximize the utilization of the DDR memory and system performance. Through intelligent memory partitioning strategies and flexible dynamic partitioning methods, the utilization of DDR memory is significantly improved during multi-channel acquisition, and accurate memory partitioning adjustment can improve data processing effects.
[0054] Exemplarily, taking a DDR memory with a capacity of 512MB as an example, when 4 channels are enabled, the memory allocation management unit 301 will divide the DDR memory into 4 parts before data collection. When the allocation weights are set to be the same, the memory will be divided into 4 equal parts, that is, the data of channel 1 will be cached between addresses 0 and 128MB, the data of channel 2 will be cached between addresses 128MB and 256MB, the data of channel 3 will be cached between addresses 256MB and 384MB, and the data of channel 4 will be cached between addresses 384MB and 512MB. The 4 areas respectively store the valid data collected by the 4 channels, and the areas are independent of each other and do not connect to each other.
[0055] Exemplarily, when the data volume of a channel is large or the transmission rate is fast, the dynamic memory allocation management unit 3 will increase the allocation weight of the channel, and then increase the memory capacity of this part during the allocation process, reduce the memory capacity of the corresponding area of the low-speed channel, and thus improve the memory utilization of DDR.
[0056] It can be understood that when the dynamic memory allocation management unit 3 increases the allocation weight of the channel, when the required transmission speed is fast, the weight is increased, assuming it is set to 5, and the slow one is set to 2. The system can know which channel needs to be allocated more DDR memory by judging the weight value (the faster the speed, the more memory is required).
[0057] Embodiment 2, as Figure 2 As shown, the DDR allocation method based on multi-channel intermediate frequency signal acquisition provided by the embodiment of the present invention includes:
[0058] S1, initialization stage: when the system starts, the dynamic memory allocation management unit 3 initializes the partition of the DDR memory according to the preset initial configuration, and allocates the initial memory area to each channel according to the total amount of DDR memory and the number of channels;
[0059] S2, channel activity detection: continuously monitors the activity status of each channel in the system;
[0060] Among them, the activity status of each channel in the system is continuously monitored by polling the flag bit in the code;
[0061] S3, dynamic adjustment strategy: when a change in the active state of a channel is detected, the dynamic memory allocation management unit 3 adjusts the memory allocation according to the number of currently enabled channels and the transmission rate to balance the memory usage among the channels;
[0062] Exemplarily, adjusting the memory allocation according to the number of currently enabled channels and the transmission rate includes: determining which channels are enabled and the rates of these channels, making trade-offs, and finally generating an allocation method corresponding to the current state, and then applying the allocation method to the DDR;
[0063] S4, configuration update and application: the dynamic memory allocation management unit 3 updates the memory allocation configuration according to the result of dynamic adjustment, and applies the new configuration to the DDR;
[0064] It can be understood that the memory allocation configuration is updated by setting the position of the read and write pointers;
[0065] S5, periodically monitoring and adjusting the above steps;
[0066] To ensure that the system can always optimize the use of DDR memory according to real-time requirements and maintain system efficiency and stability.
[0067] Exemplarily, in step S3, when a change in the active state of a channel is detected, the dynamic memory allocation management unit 3 adjusts the memory allocation according to the number of currently enabled channels and the transmission rate, including:
[0068] Step 1: Submit the total capacity information for dynamic allocation, summarize the memory information and put it into the DDR capacity pool, and determine the total number of allocated channels Q;
[0069] Step 2: According to the number of channels in the DDR capacity pool, the weight value to be allocated is specified as H={1,2…h}, where H is the weight value and h is the weight factor;
[0070] Step 3: determine the set of all secondary DDR memory capacity channels to be allocated G = {1, 2 ... g}, where G is the capacity channel set, and g is the sub-capacity channel; and the channel active state change graph S =<K|P> Indicates the connection relationship between the secondary DDR memory capacity channels to be allocated. In the channel active state change diagram, the point set K represents all the secondary DDR memory capacity channels to be allocated, and the point set P represents the connection relationship between the secondary DDR memory capacity channels. The edge connecting two secondary DDR memory capacity channels to be allocated indicates that the two secondary DDR memory capacity channels to be allocated will be connected when they use the same channel at the same time. All secondary users participating in the allocation need to submit a set of demand information A i =(a i ,e i ,q i ), a i ,e i ,q i They are the allocated capacity value, the number of channels applied for, and the number of channels applied for occupation, where a maximum of h channels are required and a maximum of Q channels are occupied;
[0071] Step 4: Calculate the transmission rate u of each channel to be allocated i ,in, Filter out the channels to be allocated with abnormal transmission rate and adjust them. The adjusted transmission rate is u i ′ ; If there is no abnormal transmission rate, then u i ′ =u i ;
[0072] Step 5: Design a sorting algorithm based on the adjusted transmission rate u i ′ and the channel active state change graph S are sorted; a sorting tree is obtained by breadth-first sorting, and the entire tree is traversed in sequence to obtain a sorting result list F;
[0073] Step 6: Design an algorithm for calculating the appropriate value of DDR memory capacity transmission, pre-allocate and find critical nodes. According to the order in F, find the critical nodes of each channel to be allocated in turn, and pre-allocate in turn. Assume that a node has been allocated the required channel and perform the allocation process. The node selects a node that has not been allocated a channel in the pre-allocation stage and has the highest transmission rate as its critical node; calculate the appropriate value of DDR memory capacity transmission o i =u ci ×e i ×q i , we get the transmission rate of the critical node of the node multiplied by the number of channels applied for by the node and the application duration, where u ci The transmission rate of the critical node of the node; the DDR memory capacity transmission suitable value calculation algorithm, for each channel to be allocated, the corresponding critical node is selected through the selection rule and the selection algorithm loop iteration, and then the DDR memory capacity transmission suitable value calculation is performed to ensure that the abnormal transmission rate has no effect on the DDR memory capacity transmission suitable value calculation, thereby preventing abnormal transmission rate;
[0074] Step 7: Design the allocation algorithm and determine the successful allocation weight; the successful allocation weight selection and allocation algorithm, through the selection rules and the selection algorithm, select the winning channel to be allocated to the successful allocation weight set in a loop iteration, according to the application information A i =(a i ,e i ,q i ) allocate corresponding channels and design a normal dynamic capacity allocation method that is consistent with preventing transmission rate anomalies and policy manipulation.
[0075] In step 3, the channel active state change graph S =<K|P> In practical applications, the signal-to-noise ratio is indirectly described by calculating the distance between each channel to be allocated.
[0076] In step 4, the channels to be allocated with abnormal transmission rates have the same neighbors and the same application duration in the channel active state change graph; if the transmission rates of two channels to be allocated with abnormal transmission rates are different, the adjusted transmission rate is assigned to u′ through the screening and adjustment algorithm. i , to prevent abnormal transmission rate.
[0077] It can be seen from the above embodiments that, through such a control process, the dynamic memory allocation management unit can dynamically adjust the memory allocation according to the requirements of the system during operation, maximize the utilization of the DDR memory, and improve the overall performance and responsiveness of the system.
[0078] The present invention solves the problem of unreasonable memory allocation in the existing multi-channel data acquisition process, proposes a DDR allocation method based on multi-channel intermediate frequency signal acquisition, and performs reasonable dynamic allocation of DDR memory by dynamically analyzing the number of enabled channels and the transmission rate.
[0079] The present invention realizes the memory dynamic allocation management function. The DDR memory space can set the corresponding allocation weight according to the number of currently enabled channels and the acquisition rate of each channel to complete the accurate control of the memory partition and achieve the best data processing effect. This intelligent memory partition strategy and flexible configuration method effectively optimize the utilization rate of the DDR memory. The data of each channel is independently stored in the allocated designated area, which can effectively prevent data competition and conflict and ensure the integrity and independence of the data.
[0080] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any technical channel member familiar with the technical field within the technical scope disclosed by the present invention, any modification, equivalent substitution and improvement made within the spirit and principle of the present invention, should be covered within the protection scope of the present invention.
Claims
1. A DDR distribution system based on multi-channel intermediate frequency signal acquisition, characterized in that: The system includes: A DMA data receiving unit (1) is used to move the collected valid data; A multi-channel scheduling management unit (2), used for performing channel-by-channel processing on the data collected from the outside; The dynamic memory allocation management unit (3) is used to dynamically allocate memory and cache data for valid data collected by multiple external channels.
2. The DDR distribution system based on multi-channel intermediate frequency signal acquisition according to claim 1 is characterized in that: During the data transmission process, the DMA data receiving unit (1) stores the valid data collected by the ADC in the data buffer area of the DMA controller, and the DMA controller transmits the data from the buffer area to the system main memory DDR through a bus interface in the form of AXI Stream, thereby realizing data transfer.
3. The DDR distribution system based on multi-channel intermediate frequency signal acquisition according to claim 2 is characterized in that: The AXIDMA in the DMA data receiving unit (1) supports multiple data channels, performs multi-channel data transfer operations simultaneously, and supports multi-channel signal acquisition.
4. The DDR distribution system based on multi-channel intermediate frequency signal acquisition according to claim 1, characterized in that: The multi-channel scheduling management unit (2) collects external multi-channel data in the following two ways, including: The first is through a single AXIDMA core and enabling multi-channel capabilities; The second method is to add multiple AXIDMA cores, each core enables a single channel, and by adding multiple DMA controllers, each channel can be independently configured and meet the transmission requirements of different data source cores. The independent configuration of each channel includes configuring the data width, transmission mode, and transmission rate parameters of each channel.
5. The DDR distribution system based on multi-channel intermediate frequency signal acquisition according to claim 1, characterized in that: The dynamic memory allocation management unit (3) performs dynamic memory allocation and data caching on valid data collected by multiple external channels, and dynamically divides the DDR memory according to the number of enabled channels during the DMA initialization and configuration phase; allocates a corresponding number of areas according to the enabled channel data, so that the data of each channel is independently stored in a designated memory area; The dynamic memory allocation management unit (3) performs reasonable dynamic memory allocation and data caching on the valid data collected by multiple external channels, and adopts an adaptive algorithm to dynamically adjust the memory allocation strategy according to the channel configuration when the system is running; when the number of enabled channels changes, the memory allocation is adjusted in real time; when the data volume of a certain channel is large or the transmission rate is fast, the dynamic memory allocation management unit (3) increases the allocation weight of the channel, and increases the memory capacity during the allocation process.
6. A DDR allocation method based on multi-channel intermediate frequency signal acquisition, characterized in that: The method is run on the DDR distribution system based on multi-channel intermediate frequency signal acquisition as described in any one of claims 1 to 5, and the method comprises: S1, initialization phase: when the system starts, the dynamic memory allocation management unit (3) initializes the DDR memory partition according to the preset initial configuration, and allocates the initial memory area to each channel according to the total amount of DDR memory and the number of channels; S2, channel activity detection: continuously monitors the activity status of each channel in the system; S3, dynamic adjustment strategy: when a change in the active state of a channel is detected, the dynamic memory allocation management unit (3) adjusts the memory allocation according to the number of currently enabled channels and the transmission rate to balance the memory usage among the channels; S4, configuration update and application: the dynamic memory allocation management unit (3) updates the memory allocation configuration according to the result of dynamic adjustment, and applies the new configuration to the DDR; S5, periodically monitoring and adjusting the above steps.
7. The DDR allocation method based on multi-channel intermediate frequency signal acquisition according to claim 6 is characterized in that: In step S2, channel activity detection is performed based on the DMA data transfer request frequency and the channel configuration status.
8. The DDR allocation method based on multi-channel intermediate frequency signal acquisition according to claim 6, characterized in that: In step S3, when a change in the active state of a channel is detected, the dynamic memory allocation management unit (3) adjusts the memory allocation according to the number of currently enabled channels and the transmission rate, including: Step 1: Submit the total capacity information for dynamic allocation, summarize the memory information and put it into the DDR capacity pool, and determine the total number of allocated channels Q; Step 2: According to the number of channels in the DDR capacity pool, the weight value to be allocated is specified as H={1,2…h}, where H is the weight value and h is the weight factor; Step 3: Determine the set of all secondary DDR memory capacity channels to be allocated G = {1, 2…g}, where G is the capacity channel set, which is the g sub-capacity channel; and the channel active state change graph S =<K|P> Indicates the connection relationship between the secondary DDR memory capacity channels to be allocated. In the channel active state change diagram, the point set K represents all the secondary DDR memory capacity channels to be allocated, and the point set P represents the connection relationship between the secondary DDR memory capacity channels. The edge connecting two secondary DDR memory capacity channels to be allocated indicates that the two secondary DDR memory capacity channels to be allocated will be connected when they use the same channel at the same time. All secondary users participating in the allocation need to submit a set of demand information A i =(a i ,e i ,q i ), a i ,e i ,q i They are the allocated capacity value, the number of channels applied for, and the number of channels applied for occupation, where a maximum of h channels are required and a maximum of Q channels are occupied; Step 4: Calculate the transmission rate u of each channel to be allocated i ,in, Filter out the channels to be allocated with abnormal transmission rate and adjust them. The adjusted transmission rate is u i ′ ; If there is no abnormal transmission rate, then u i ′ =u i ; Step 5: Design a sorting algorithm based on the adjusted transmission rate u i ′ and the channel active state change graph S are sorted; a sorting tree is obtained by breadth-first sorting, and the entire tree is traversed in sequence to obtain a sorting result list F; Step 6: Design an algorithm for calculating the appropriate value of DDR memory capacity transmission, pre-allocate and find critical nodes. According to the order in F, find the critical nodes of each channel to be allocated in turn, and pre-allocate in turn. Assume that a node has been allocated the required channel and perform the allocation process. The node selects a node that has not been allocated a channel in the pre-allocation stage and has the highest transmission rate as its critical node; calculate the appropriate value of DDR memory capacity transmission o i =u ci ×e i ×q i , we get the transmission rate of the critical node of the node multiplied by the number of channels applied for by the node and the application duration, where u ci The transmission rate of the critical node of the node; the DDR memory capacity transmission suitable value calculation algorithm, for each channel to be allocated, the corresponding critical node is selected through the selection rule and the selection algorithm loop iteration, and then the DDR memory capacity transmission suitable value calculation is performed to ensure that the abnormal transmission rate has no effect on the DDR memory capacity transmission suitable value calculation, thereby preventing abnormal transmission rate; Step 7: Design the allocation algorithm and determine the successful allocation weight; the successful allocation weight selection and allocation algorithm, through the selection rules and the selection algorithm, select the winning channel to be allocated to the successful allocation weight set in a loop iteration, according to the application information A i =(a i ,e i ,q i ) allocate corresponding channels and design a normal dynamic capacity allocation method that is consistent with preventing transmission rate anomalies and policy manipulation.
9. The DDR allocation method based on multi-channel intermediate frequency signal acquisition according to claim 8, characterized in that: In step 3, the channel active state change graph S =<K|P> In practical applications, the signal-to-noise ratio is indirectly described by calculating the distance between each channel to be allocated. In step 4, the channels to be allocated with abnormal transmission rates have the same neighbors and the same application duration in the channel active state change graph; if the transmission rates of the two channels to be allocated with abnormal transmission rates are different, the adjusted transmission rate is assigned to u through the screening and adjustment algorithm. i ′ , to prevent abnormal transmission rate.
10. The DDR allocation method based on multi-channel intermediate frequency signal acquisition according to claim 6, characterized in that: This method is embedded in ARM, FPGA or ZYNQ architecture.
Citation Information
Cited By
Data processing method and system, computer equipment and storage medium
CN119415047A
Desktop computer mainboard on-board BGA central processor DDR6 memory structure intelligent control system
CN121658089A
