A reconfigurable hardware time-multiplexing dynamic reconfiguration method and system

By employing a four-layer architecture and dynamic reconfiguration mechanism, the system addresses issues such as unpredictable scheduling, non-tiered storage, non-pipelined switching, unisolated loading, and lack of dependency awareness in multi-functional time-sharing reuse scenarios for reconfigurable hardware, thereby improving hardware resource utilization and system availability.

CN123137901APending Publication Date: 2026-11-20江西悦昕诚科技有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611285637.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-24
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

Existing reconfigurable hardware suffers from problems such as lack of predictability in time-slice scheduling, non-tiered storage, non-pipelined switching, lack of isolation in loading, and lack of awareness of dependencies in decision-making when used in multi-functional time-sharing multiplexing scenarios. These issues result in low hardware resource utilization, high switching overhead, and poor security.

Method used

It adopts a four-layer architecture consisting of a scheduling decision layer, a switching control layer, a context storage layer, and a reconfigurable hardware execution layer. Combined with load monitoring, reinforcement learning scheduling, heterogeneous storage, adaptive pipeline switching, and a secure loading mechanism, it achieves dynamic reconfiguration.

Benefits of technology

It improved the fulfillment rate of urgent task deadlines, the utilization rate of computing resources, the switching efficiency and system availability, and reduced the switching latency and configuration loading failure recovery time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123137901A_ABST
    Figure CN123137901A_ABST
Patent Text Reader

Abstract

This invention discloses a dynamic reconfiguration method and system for reconfigurable hardware time-sharing multiplexing, belonging to the field of reconfigurable computing technology. Addressing the problems of existing technologies in multi-functional time-sharing multiplexing scenarios, such as lack of predictability in scheduling, high switching overhead, uncertain timing, and insufficient loading security, this invention constructs a system architecture comprising a scheduling decision layer, a switching control layer, a storage layer, and an execution layer. The scheduling decision layer uses a dual-scale load prediction model and a reinforcement learning scheduler to generate a time-slice scheduling table; the switching control layer uses a seven-level adaptive pipeline engine and a hardware arbitrator to perform deterministic switching; the storage layer uses a four-level heterogeneous architecture for dynamic data migration and compression; and the secure loading module uses dual-buffered configuration ports and shadow registers to implement block verification and version rollback. This scheme achieves predictive scheduling and low-overhead switching, effectively improving resource utilization and system real-time performance.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of reconfigurable computing technology, specifically to a reconfigurable hardware time-sharing multiplexing dynamic reconfiguration method and system. Background Technology

[0002] Reconfigurable hardware (such as Field Programmable Gate Arrays (FPGAs) and coarse-grained reconfigurable arrays) has become an important computing platform for supporting multiple types of functional units due to its flexibility and energy efficiency, and has been widely used in embedded fields such as industrial control, autonomous driving, 5G communication, and aerospace. With the continuous growth of computing power requirements in these application scenarios, how to fully explore the computing power reuse potential of reconfigurable hardware in the time dimension has become a key technical challenge in this field.

[0003] Currently, the mainstream reconfigurable hardware deployment model is still mainly based on static configuration of "one-time loading and long-term residence". Once a functional module is loaded, it occupies the hardware area for a long time and lacks the ability to reuse hardware computing power in a fine-grained manner over time. Although some studies have attempted to introduce dynamic reconfiguration mechanisms to achieve time-division multiplexing of hardware functions, the following technical bottlenecks still exist in scenarios where multiple functions share the same reconfigurable computing area.

[0004] Regarding time-slice scheduling, existing solutions are limited to the current instantaneous state of the system and do not build predictive models for future load changes, resulting in a structural mismatch between time-slice allocation and actual computing power demand. When sudden high-priority tasks arrive, deadlines may be missed due to waiting for time slices, while computing resources remain idle during non-urgent task periods, resulting in low utilization.

[0005] In terms of context management, reconfigurable hardware has diverse functional context types, including pipeline register states, block memory contents, and configuration register groups. Different types of contexts differ significantly in data volume, switching frequency, and recovery latency requirements. However, existing solutions all use a single storage medium and a unified management strategy to handle all types of contexts, without classifying them according to the aforementioned differences. This results in storage capacity becoming a hard bottleneck for the number of supported functions. Small contexts that are switched frequently are treated the same as large contexts that are saved infrequently, highlighting the contradiction between switching latency and storage capacity.

[0006] Regarding switching control, existing solutions execute the phases of context saving, computation termination, configuration switching, and context recovery in a strictly serial manner, with the total switching overhead being a linear sum of the overhead of each phase. Furthermore, time-slice conflict arbitration relies on software intervention, introducing unpredictable timing jitter, which is insufficient to meet the deterministic latency requirements of hard real-time scenarios.

[0007] Regarding the security of dynamic loading, the configuration bitstream loading operation is usually written directly to the actual configuration port, lacking a hardware-level isolation mechanism. This poses a risk of configuration bus contention and state corruption during the loading process. In addition, loading failures typically require a full retransmission, with recovery times reaching minutes, impacting system availability.

[0008] In terms of data dependency management, existing solutions treat each function as a completely independent entity and do not incorporate the producer-consumer relationship between functions into scheduling decisions. When functions with dependencies are scheduled in time slices that are far apart, intermediate results need to be saved and restored multiple times, and shared intermediate results are repeatedly calculated, resulting in a significant waste of computing power.

[0009] In summary, existing technologies suffer from deficiencies in the five aspects mentioned above: lack of predictability in scheduling, non-tiered storage, non-pipelined switching, lack of isolation in loading, and lack of dependency awareness in decision-making. Improving any single aspect is insufficient to fundamentally solve the problems; therefore, a comprehensive technical solution designed holistically at the system architecture level is urgently needed. Summary of the Invention

[0010] (a) Purpose of the invention

[0011] This invention aims to solve the following technical problems of embedded reconfigurable hardware in multi-functional time-sharing multiplexing scenarios: (1) predictive adaptive decision-making problem of time slice scheduling; (2) context hierarchical storage and low-overhead saving and recovery problem; (3) hardware pipelined control and conflict arbitration problem of switching timing; (4) secure dynamic loading isolation problem within the time slice window; (5) cross-time slice data dependency awareness and shared state management problem, so as to achieve dynamic reconfiguration of hardware functions with high real-time performance, low switching overhead, high security and high resource utilization.

[0012] (II) Technical Solution

[0013] To achieve the above-mentioned objectives, the present invention provides the following technical solution.

[0014] The reconfigurable hardware time-division multiplexing dynamic reconfiguration system proposed in this invention consists of four layers (such as...). Figure 1 As shown), the layers work together through standardized interfaces:

[0015] (1) The scheduling decision layer is implemented by software and firmware, including a load monitoring module (built-in dual-scale trend prediction sub-module), a reinforcement learning scheduler (deep Q network variant) and a data dependency management module (built-in graph neural network (GNN) dependency encoding sub-module), which are used to perceive the system operating status, predict the load trend, generate time slice scheduling table, and send it to the switching control layer through a standardized configuration interface.

[0016] (2) The switching control layer is implemented in pure hardware and includes a seven-level adaptive pipeline switching engine, a priority conflict arbitrator and a safe loading controller, which are used to receive the scheduling table and perform deterministic switching under the precise triggering of the hardware timer.

[0017] (3) The context storage layer adopts a four-level heterogeneous storage architecture from L0 to L3 and includes a context heat monitoring and dynamic migration controller (built-in compression sensing engine) to realize differentiated hierarchical storage and dynamic migration of the context.

[0018] (4) The reconfigurable hardware execution layer includes a reconfigurable computing array and a shared state cache (built-in data prefetching engine), which serve as the actual execution carrier of the functional units.

[0019] Based on the above system architecture, the workflow of this invention is as follows (e.g.) Figure 2 (As shown).

[0020] 1. Scheduling Decision Phase

[0021] At the start of each scheduling cycle, the load monitoring module first performs dual-scale load prediction. The macro-scale Long Short-Term Memory (LSTM) network (64-128 hidden layers, 2 layers, inputting load data from the past M = 10 time slices and outputting predicted values ​​for the future N = 3 time slices) outputs the future load trend for each functional unit; the micro-scale sliding window regression model (window W = 16, sampling period 10 μs, forgetting factor 0.98) outputs an estimate of the load fluctuation for the remaining time of the current time slice. The two are integrated through an adaptive fusion mechanism, with the fusion weights dynamically adjusted online based on the prediction error. The fused prediction value is calculated according to equation (1):

[0022] L̂ fusion = w macro × L̂ macro + w micro × L̂ micro …………(1)

[0023] Among them, w macro = E micro / (E macro + E micro + ε), w micro = 1 - w macro .

[0024] Among the variables mentioned above, L̂ fusion To integrate predicted load, L̂ macro For macro-scale load forecasting, L̂ micro For predicting loads at the microscale, wmacro For macro-prediction fusion weights, w micro For micro-prediction fusion weights, E macro E represents the average absolute error of the macroscopic forecast over the most recent K time slices. micro The mean absolute error of the micro-prediction over the most recent K time slices, ε is a small constant to prevent division by zero (default 10). -6 ).

[0025] Preferably, the long short-term memory network is implemented on an FPGA using 16-bit fixed-point quantization, and the activation function of each gate unit is hardware-based using a lookup table; the microscale predictor uses a recursive least squares algorithm with a forgetting factor to update the regression coefficients online; the adaptive fusion mechanism dynamically adjusts the weights according to the relative performance of the two predictors under different load modes, so that the fused prediction always favors the more accurate predictor.

[0026] Meanwhile, the data dependency management module constructs an inter-functional data dependency graph G=(V, E) (V is a functional node, and E is a directed edge representing a producer-consumer relationship), which is encoded into a graph embedding vector G using a graph convolutional network (64 hidden layers, 2 layers). emb (Dimension 64).

[0027] The reinforcement learning scheduler will use the dual-scale prediction result L pred_macro L pred_micro Together with the current queue length Q, deadline D, historical execution time H, and graph embedding vector G for each function emb Together they constitute the state space S={L pred_macro ,L pred_micro , Q, D, H, G emb The optimal scheduling action is output through the decision network mapping.

[0028] Preferably, the reinforcement learning scheduler incorporates a model-independent meta-learning mechanism, enabling the scheduling strategy to rapidly adapt to new load modes through 1 to 3 steps of gradient updates. The scheduler generator transforms the optimal decision output by the scheduler into a specific schedule table containing the time slice length, execution order, and pipeline depth mode of each function, and atomically distributes it to the hardware switching control layer via a double-buffering mechanism.

[0029] 2. Backstage Preparation Phase

[0030] During the background preparation phase of the switchover execution, the secure loading controller utilizes a double-buffered configuration port (containing physically isolated ports A and B, with port A connected to the actual configuration port and port B used for preloading) to preload the configuration bitstream of the functions required for the next time slice into the shadow configuration register set (2 sets, one for the current running version V). n and preloaded version Vn+1 ), and complete block verification.

[0031] Furthermore, the block verification mechanism divides the configuration bitstream into several independent verification blocks (each block is 256 bytes by default). Each block independently calculates a Cyclic Redundancy Check (CRC) value. When a data block fails verification, only that block needs to be retransmitted instead of the entire bitstream. The CRC verification engine is embedded in the secure loading controller and is implemented using combinational logic to reduce verification latency.

[0032] 3. Switch execution phase

[0033] When the hardware timer count reaches the current time slice boundary, the seven-level adaptive pipeline engine of the switching control layer is triggered and starts, performing the switching according to the following pipeline levels:

[0034] Pipeline Level 1 (Computation Termination and Drain): Sends a termination signal to the current function, waits for the pipeline to drain, and quickly saves the L0 level context to L1 level storage.

[0035] Pipeline 2 (Fast Saving of Critical Context): Saves the control register set and status flags to L1 level.

[0036] Pipeline Level 3 (Shared State Check and Save): Checks whether the current function is a producer of other functions. If so, it saves the shared state to the shared state cache and triggers the data prefetch engine to prefetch the data required by the dependent functions from L3 storage to L1 cache.

[0037] Pipeline level 4 (context compression storage): The large context of the current function is compressed and migrated to L3 storage. This pipeline level is executed in parallel with pipeline level 5.

[0038] Pipeline 5 (New Feature Configuration Preload): Preloads the configuration information of the new feature from the shadow configuration register group and switches the contents of the shadow register to the actual configuration port.

[0039] Pipeline Level 6 (Fast Recovery of Critical Context): Recovers the critical context of new features from L1 storage.

[0040] Pipeline Level 7 (New Feature Startup): Sends a start signal to the new feature and begins execution of calculations.

[0041] During the compression storage operation of pipeline stage 4, the compression-aware engine automatically selects a compression strategy based on the context type label: integer data uses LZ4 lossless compression (including a pattern matching preprocessor), and floating-point data uses 8-bit or 16-bit quantization lossy compression. The compression operation is performed via direct memory access, running in parallel with the configuration preloading operation of pipeline stage 5, without adding any additional latency.

[0042] Furthermore, the pipeline engine features adaptive depth adjustment, bypassing pipeline stage 4 when context compression is not required, and operating in a dynamic switching mode with 7 or 5 stages. After overlapping execution of operations at each stage, the total switching overhead is the pipeline critical path delay rather than the linear accumulation of each stage, significantly improving switching efficiency.

[0043] While performing the switching operation, the context heat monitoring and dynamic migration controller periodically scans the access counters of each context entry, and calculates a comprehensive storage level score by combining functional priority and switching urgency, according to formula (2):

[0044] S c = w1 × H c + w2 × P f + w3 × U c …………(2)

[0045] Among them, H c For access popularity (normalized 0-1), P f For functional priority (normalized 0-1), U c To switch urgency (normalized 0-1). When S c When the threshold θ1 (default 0.75) is exceeded, migration to a higher speed level occurs. c When the value is below the threshold θ2 (default 0.30), migrate to a lower speed level.

[0046] Furthermore, address mapping management between different levels is achieved through a unified storage abstraction interface and hardware descriptor tables. The weighting coefficients w1, w2, and w3 are set to 0.5, 0.3, and 0.2 by default, respectively, and can be adjusted within ±30% depending on the application scenario. The specific configuration of the four-level storage architecture is as follows: L0 level (register file, 1 clock cycle, 4-64 KB), L1 level (distributed RAM, 1-2 clock cycles, 64-512 KB), L2 level (Block Random Access Memory (BRAM) or Ultra RAM (URAM), 3-5 clock cycles, 512 KB-8 MB), and L3 level (4th generation Double Data Rate Synchronous Dynamic Random Access Memory (DDR4 SDRAM) or high-bandwidth memory, 50-100 clock cycles, 4 MB-32 GB). Through this hierarchical management, high-frequency access with small contexts resides near the computation level to achieve nanosecond-level access latency, while low-frequency access with large contexts is moved to off-chip storage to free up on-chip capacity.

[0047] If multiple functions compete for hardware resources simultaneously during the switching process, the prediction-assisted hardware priority conflict arbiter uses combinational logic to resolve the conflict within a fixed 8 clock cycles. The comprehensive priority function is calculated according to equation (3):

[0048] P total = α1×P priority + α2×D urgency + α3×C switch_cost + α4×R predict …………(3)

[0049] Among them, P priority For static priority of functions, D urgency To assess the urgency of the deadline, C switch_cost For switching cost estimation, R predict To predict load demand.

[0050] Furthermore, the default weighting coefficients are 0.25, 0.30, 0.20, and 0.25, respectively, and can be adjusted within ±20% according to the application scenario. This arbitrator does not rely on software intervention, does not introduce timing jitter, and has good deterministic switching latency.

[0051] If the new version configuration malfunctions (such as function timeout or output verification error), the security loading controller will automatically roll back the configuration to the previous stable version V within the next time slice switching window. n-1 .

[0052] Furthermore, anomaly detection is triggered by error signals fed back from the execution layer, and the rollback operation is automatically executed by the state machine without software intervention. The version rollback mechanism maintains the current version V. n Compared to the previous stable version V n-1 Two versions ensure the system has the ability to quickly recover in the event of configuration loading errors.

[0053] 4. Post-switch execution phase

[0054] During the execution phase of the new function after the switch is completed, if the function has a producer-consumer dependency relationship with the preceding function, the scheduler has already arranged the dependent functions in adjacent time slices when making decisions (by embedding the dependency graph into the state space through graph neural network encoding, the scheduler implicitly learns the impact pattern of the dependency relationship on scheduling performance), and the data prefetching engine has prefetched the shared state data from L3 level storage to L1 level cache in pipeline stage 3. After the new function starts, it can directly access the data in a zero-copy manner.

[0055] Furthermore, the shared state buffer adopts a multi-port design, supporting simultaneous read and write operations, and is used to cache intermediate results transmitted across time slices. The data prefetch engine executes prefetching according to the data prefetch instructions automatically generated by the scheduler generator; when there are dependent function pairs with adjacent time slices in the scheduler, the scheduler generator inserts prefetch instructions at the end of the producer function execution. After a new function is started, it can directly access the prefetched data in a zero-copy manner, without having to reread from low-speed storage or repeat calculations, effectively reducing data access latency.

[0056] 5. Inter-module collaborative working mechanism

[0057] Figure 3 The interaction relationships of the aforementioned core mechanisms are illustrated. The modules exchange data through standardized interfaces and synchronize timing through hardware timers and handshake signals, collectively completing a closed loop from load prediction to switchover execution. The output of each stage serves as the input for the next stage. Dual-scale prediction results provide the scheduler with forward-looking decision-making basis; the scheduling table drives the switchover engine to execute according to plan; each pipeline stage of the switchover engine calls the storage layer read / write interface to complete context access and calls the safe loading module to complete atomic configuration commit; data dependency awareness is fed back to the scheduler to optimize the decision for the next cycle. The optimization effect of any stage is transmitted to the entire system through this causal chain.

[0058] (III) Beneficial Effects

[0059] The present invention has the following beneficial effects:

[0060] (1) The dual-scale load prediction and reinforcement learning scheduler endows the system with forward-looking scheduling capabilities, which can effectively improve the deadline satisfaction rate of urgent tasks and the utilization rate of computing resources.

[0061] (2) The four-level heterogeneous storage and compression sensing engine realizes context hierarchical management, which can significantly reduce switching latency, increase the effective capacity of on-chip storage, and support time-division multiplexing of more functions.

[0062] (3) The seven-level adaptive pipeline engine reduces the total switching overhead from serial linear accumulation to pipeline critical path delay, which greatly improves switching efficiency; the hardware priority arbitrator does not rely on software intervention, eliminates timing jitter in the arbitration process, and the switching delay has good determinism.

[0063] (4) The dual-buffered configuration port and shadow register achieve complete isolation between loading and running, eliminating the risk of configuration bus contention and accidental writing; the block CRC check refines the configuration loading fault tolerance granularity from full retransmission to single block retransmission, significantly shortening the fault recovery time; the version rollback mechanism enhances the system's fault resistance and improves system availability.

[0064] (5) Graph neural network dependency encoding incorporates the data dependency relationship between functions into the scheduling decision. Dependent functions are arranged in adjacent time slices, reducing the number of times intermediate results are saved and restored. Shared state buffer and zero-copy transfer mechanism effectively reduce data access latency and avoid the waste of computing power caused by repeated calculations. Attached Figure Description

[0065] Figure 1 This is a diagram of the overall system architecture of the present invention;

[0066] Figure 2 This is an overall flowchart of the method of the present invention;

[0067] Figure 3 This is a schematic diagram illustrating the core mechanism interaction and storage migration of this invention. Detailed Implementation

[0068] The present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments. It should be noted that these embodiments are only for illustrating the present invention and are not intended to limit the scope of the present invention.

[0069] Example 1

[0070] This embodiment uses an industrial edge computing gateway scenario as an example for illustration.

[0071] An FPGA chip was deployed in the edge computing gateway of a smart manufacturing plant to support five functional units, which time-division multiplexed the same reconfigurable computing area. Function A is industrial Ethernet protocol parsing with a hard real-time deadline of 1 ms; function B is machine vision image preprocessing with a soft real-time deadline of 10 ms; function C is a servo motor control loop with a hard real-time deadline of 100 μs; function D is predictive maintenance vibration signal fast Fourier transform analysis, which is a non-real-time function; and function E is industrial data encryption with a soft real-time deadline of 5 ms.

[0072] After adopting the technical solution of this invention, the system operation flow is as follows:

[0073] Predictive scheduling decision-making phase: The macro-scale LSTM predictor (96 hidden layer dimensions, 2 stacked layers) in the load monitoring module collects the actual load value sequence of each functional unit over the past 10 time slices and outputs the predicted load value for the next 3 time slices. When the macro-scale predictor detects that the load of function C will continue to rise (from 40% to 85%) over the next 3 time slices, the micro-scale sliding window regression model (16 sampling points in the window, sampling period of 10 μs) further confirms that the load fluctuation of function C in the remaining time slice of the current time slice is on the rise. After adaptive fusion of the dual-scale prediction results, the reinforcement learning scheduler outputs the action: extending the time slice length of function C by 50 μs and advancing the execution order of function C by one position. The scheduler generator transforms the above decisions into a specific schedule table and sends it to the hardware switching control layer.

[0074] Context-based hierarchical storage phase: Function C's context is accessed frequently (8 times within 10 time slices) and has a high priority (P). f = 7), Overall Storage Class Score c =0.5×0.8+0.3×1+0.2×normalized urgency≈0.82, exceeding the first threshold θ1 (0.75), and is migrated to L1-level high-speed register-level storage (FPGA distributed RAM), with an access latency of 1 to 2 clock cycles. The 2MB BRAM data context of function B has a low access frequency (S... c (≈ 0.35), was migrated to L3 level off-chip DDR4 SDRAM storage, and compressed to 1.2 MB using the LZ4 lossless compression algorithm by the compression sensing engine.

[0075] Secure Dynamic Loading Phase: The 500 KB configuration bitstream for the new feature F (temperature monitoring) is loaded securely in blocks via port B of the double-buffered configuration port, divided into 2048 independent parity blocks (256 bytes each). If a data block fails parity, only that block needs to be retransmitted, not the entire bitstream. After successful parity, the data is temporarily stored in the shadow configuration register group, awaiting atomic commit when the time slice switching window arrives.

[0076] Hardware pipeline switching phase: When the hardware timer triggers the switch from function B to function C, the seven-stage pipeline switching engine executes the switching operation. In pipeline stage 1, a termination signal is sent to function B and the L0 level context (approximately 4 KB) is saved, taking approximately 0.5 μs; in pipeline stage 2, the critical context is saved, taking approximately 0.3 μs; in pipeline stage 3, the edge detection image output by function B is checked to ensure it is the input to function D, the shared state (approximately 512 KB) is saved to the shared state buffer, and prefetching is triggered, taking approximately 1.5 μs; in pipeline stage 4, LZ4 compression is performed (2 MB compressed to 1.2 MB) and then the process is migrated to L3, taking approximately 3 μs, and this process runs in parallel with pipeline stage 5; in pipeline stage 5, the configuration for function C is loaded from the shadow configuration register set, taking approximately 2 μs; in pipeline stage 6, the critical context for function C is restored, taking approximately 0.5 μs; and in pipeline stage 7, function C is started. The total switching overhead is approximately 5 μs, significantly lower than the serial execution method. In this embodiment, since the context of function C is smaller in size after compression, the 5-level pipeline mode (bypass pipeline level 4) is selected to perform the switching, further reducing the switching latency.

[0077] In the cross-time-slice data dependency awareness stage: GNN dependency encoding encodes the dependency relationship between function B (producer) and function D (consumer) as a graph embedding vector and incorporates it into the scheduler state space. The scheduler automatically schedules them in adjacent time slices. At the end of function B's execution, the data prefetch engine prefetches the shared state data into the L1 cache, which is accessed with zero copy when function D starts.

[0078] In this embodiment, the deadline satisfaction rate of function C is significantly improved, the average switching latency is greatly shortened, the effective capacity of on-chip storage is significantly improved, the configuration loading failure recovery time is reduced from minutes to microseconds, and the utilization rate of computing resources is significantly improved.

[0079] Example 2

[0080] This embodiment uses a 5G base station baseband signal processing scenario as an example for illustration.

[0081] A large-scale FPGA chip is deployed in the baseband processing unit of a 5G base station, requiring four functional units to be time-division multiplexed within the same reconfigurable computing area. Function A is Physical Downlink Control Channel (PDCCH) decoding with a hard real-time cutoff of 125 μs; Function B is Physical Uplink Shared Channel (PUSCH) reception and processing with a hard real-time cutoff of 250 μs; Function C is beamforming weight calculation with a soft real-time cutoff of 500 μs; and Function D is Channel Quality Indicator (CQI) measurement and reporting with a soft real-time cutoff of 1 ms.

[0082] The system operation process is as follows:

[0083] In the predictive scheduling decision-making phase: The macroscopic LSTM predictor learns the periodic pattern of the PDCCH decoding load starting to rise approximately 50 μs before each radio frame boundary. The microscopic sliding window regression model captures the fluctuation of the function B load, which jumps from 30% to 90% within microseconds when a PUSCH burst arrives. Approximately 30 μs before each time slot boundary, the scheduler extends the time slice length of function A to 150 μs in advance. When a PUSCH burst is detected, the scheduler dynamically compresses the time slice of function C (from 200 μs to 120 μs) to reserve computing resources for function B.

[0084] Context-level storage stage: The demodulation intermediate data (256 KB) of function A is migrated to the L2 level on-chip BRAM storage due to the high access frequency, and the matrix operation intermediate result (512 KB) of function C is migrated to the L3 level off-chip DDR4 SDRAM storage due to the low access frequency, and is then compressed to approximately 300 KB by 8-bit quantization lossy compression.

[0085] Secure dynamic loading phase: The 1.2 MB configuration bitstream of the new function E (Channel State Information (CSI) Enhancement Processing) is loaded securely through block verification via a double-buffered configuration port, completely isolated from the normal operation of functions A and B.

[0086] Hardware pipeline switching phase: The seven-stage pipeline engine implements the switching from function A to function B. In pipeline stage 1, the demodulation pipeline of function A is emptied within 5 μs; in pipeline stage 3, the demodulation result (256 KB) output by function A is saved to the shared state buffer, and the channel estimation data required by function B is prefetched; pipeline stage 5 uses the shadow configuration register set to preload the configuration, with a total switching overhead of approximately 6 μs.

[0087] Cross-time slice data dependency awareness stage: The scheduler arranges functions with dependencies in adjacent time slices according to the GNN dependency encoding, and the data prefetching engine completes the prefetching of dependent data during the switching execution process.

[0088] In this embodiment, the PDCCH decoding deadline satisfaction rate is significantly improved, the time slot boundary switching overhead is greatly reduced, the beamforming weight calculation throughput is significantly improved, and the CQI measurement reporting delay is significantly shortened.

[0089] Example 3

[0090] This embodiment uses an autonomous driving multi-sensor fusion scenario as an example for illustration.

[0091] An embedded FPGA chip is deployed in a Level 4 autonomous driving domain controller, requiring time-division multiplexing of four functional units within the same reconfigurable computing region. Function A is LiDAR point cloud preprocessing with a hard real-time cutoff of 10ms; Function B is camera image target detection with a hard real-time cutoff of 33ms; Function C is millimeter-wave radar signal processing with a soft real-time cutoff of 50ms; and Function D is multi-sensor fusion and path planning with a hard real-time cutoff of 100ms.

[0092] The system operation process is as follows:

[0093] Predictive scheduling decision phase: Based on the dual-scale prediction results and the graph embedding vector generated by GNN-dependent encoding, the scheduler schedules functions A and B in time slices before function D.

[0094] Context-based hierarchical storage stage: The point cloud data (2 MB) of function A is migrated to L2 level on-chip BRAM storage due to its high access frequency, and the weight parameters (4 MB) of function B are migrated to L3 level after lossless compression to 2.6 MB.

[0095] Safe Dynamic Loading Phase: When a vehicle switches from urban roads to highways, the system dynamically loads the new function E (a target tracking algorithm specifically for highway scenarios). The 800 KB configuration bitstream of function E is loaded securely in blocks via port B and temporarily stored in the shadow configuration register group.

[0096] Hardware pipeline switching phase: The seven-level pipeline engine performs function switching. Before function D starts, the data prefetch engine prefetches the data it depends on from L2 and L3 to L1 cache.

[0097] Cross-time-slice data dependency awareness and version rollback phase: The point cloud preprocessing results (approximately 1 MB) of Function A and the object detection results (approximately 512 KB) of Function B are transferred to Function D in a zero-copy manner through a shared state buffer. If the object tracking accuracy of Function E falls below a threshold during runtime, the safe loading controller automatically rolls back to the previous stable version V within the next time-slice switching window. n-1 .

[0098] In this embodiment, the end-to-end latency of multi-sensor fusion is significantly reduced, the data access latency is reduced from milliseconds to microseconds, the dynamic loading time of new functions is greatly shortened, the configuration error recovery time is reduced from minutes to microseconds, and the system availability is significantly improved.

Claims

1. A reconfigurable hardware time-sharing dynamic reconfiguration method, characterized in that, Includes the following steps: S1: The scheduling decision layer predicts the future load demand of each functional unit through a dual-scale load trend prediction model, generates a time slice scheduling table through a reinforcement learning scheduler, and sends the scheduling table to the switching control layer. S2: The switching control layer receives the time slice scheduling table and performs the time slice switching operation under the trigger of a hardware timer through a seven-level adaptive pipeline switching engine according to the time slice order in the scheduling table. S3: During the execution of the switching operation, the context storage layer dynamically migrates and compresses the context according to the access frequency and functional priority through a four-level heterogeneous storage architecture. S4: Before the time slice switching operation is executed, the security loading controller preloads the configuration bit stream of the function required for the next time slice into the shadow configuration register group through the double-buffered configuration port and the shadow configuration register group, and performs block verification and version rollback management on the configuration bit stream during switching. S5: The data dependency management module constructs a data dependency graph between functions, generates a graph embedding vector through graph neural network dependency encoding, and incorporates it into the state space of the reinforcement learning scheduler to optimize the generation of the time slice scheduling table.

2. The reconfigurable hardware time-sharing dynamic reconfiguration method according to claim 1, characterized in that, The dual-scale load trend prediction model includes a macro-scale predictor and a micro-scale predictor. The macro-scale predictor uses a long short-term memory network with a hidden layer dimension of 64 to 128 and two layers. The input is the sequence of actual load values ​​of each functional unit in the past M time slices, and the output is the predicted load value in the next N time slices. The microscale predictor employs an online sliding window regression model. The input is the instantaneous load values ​​of the W most recent sampling points within the current time slice, and the output is the load fluctuation prediction for the remaining time of the current time slice. The dual-scale prediction results are integrated through an adaptive fusion mechanism, and the fusion weights are dynamically adjusted based on the online evaluation of the prediction error.

3. The reconfigurable hardware time-sharing dynamic reconfiguration method according to claim 1, characterized in that, The four-level heterogeneous storage architecture includes: L0 near-computation register level, using the internal register file of the compute array to store the active context of currently running functions; L1 high-speed register level, using distributed RAM to store the critical context of frequently accessed functions; L2 on-chip high-capacity cache level, using BRAM or URAM to store the context of functions with medium access frequency; and L3 off-chip extended storage level, using off-chip fourth-generation double data rate synchronous dynamic random access memory or high-bandwidth memory to store the large-volume context of low-frequency access functions. The context heat monitoring and dynamic migration controller periodically scans the access counters of each context entry and calculates a comprehensive storage level score S based on function priority and switching urgency. c = w1×H c +w2×P f + w3×U c When S c When the first threshold θ1 is exceeded, the context is migrated to a higher speed level. c When the value is below the second threshold θ2, the context is migrated to a lower speed level.

4. The reconfigurable hardware time-sharing dynamic reconfiguration method according to claim 1, characterized in that, The seven-level adaptive pipeline switching engine includes the following pipeline levels: Pipeline Level 1: Calculation Termination and Draining. Sends a termination signal to the currently running function, waits for its pipeline to be drained, and quickly saves the L0 level context of the current function to L1 level storage. Pipeline Level 2: Quickly save critical context, saving the critical context of the current function to L1 level storage; Pipeline Level 3: Shared State Check and Save. Check if the current function is a producer of other functions. If so, save the shared state to the shared state cache and trigger the data prefetch engine to prefetch the data required by the dependent functions to the L1 cache. Pipeline stage 4: Context compression storage, which compresses the large context of the current function and migrates it to L3 level storage, and executes it in parallel with pipeline stage 5; Pipeline 5: New feature configuration preloading, preloading configuration information for new features from the shadow configuration register set; Pipeline Level 6: Rapid recovery of critical contexts, recovering critical contexts for new features from L1 storage; Pipeline Level 7: New function activation. A start signal is sent to the new function to begin calculation.

5. The reconfigurable hardware time-sharing dynamic reconfiguration method according to claim 4, characterized in that, The pipeline engine has an adaptive depth adjustment function, which bypasses pipeline level 4 when the context does not require compression, and runs in a dynamic switching mode of level 7 or level 5.

6. The reconfigurable hardware time-sharing dynamic reconfiguration method according to claim 1, characterized in that, It also includes a prediction-assisted hardware priority conflict arbitration method: a priority conflict arbitrator is implemented using combinational logic to resolve conflicts between multiple candidate functions within a fixed 8 clock cycles, and the synthesized priority function is P. total = α1×P priority + α2×D urgency + α3×C switch_cost + α4×R predict , where P priority For static priority of functions, D urgency To assess the urgency of the deadline, C switch_cost For switching cost estimation, R predict To predict load demand.

7. The reconfigurable hardware time-sharing dynamic reconfiguration method according to claim 1, characterized in that, The secure loading controller achieves hardware-level loading isolation through a double-buffered configuration port and a shadow configuration register group: the double-buffered configuration port includes physically isolated port A and port B, with port A connected to the actual configuration port and port B used for preloading new feature configurations, achieving atomic commit of configurations through ping-pong switching; the shadow configuration register group is configured with two sets, one for the currently running version V. n and preloaded version V n+1 The block-based verification mechanism divides the configuration bitstream into several independent verification blocks, each calculating its own cyclic redundancy check value. If a data block fails verification, only that block needs to be retransmitted. The version rollback mechanism maintains the current version V. n Compared to the previous stable version V n-1 When the new version configuration fails to run, it will automatically roll back to the previous stable version.

8. The reconfigurable hardware time-sharing dynamic reconfiguration method according to claim 1, characterized in that, The data dependency management module constructs an inter-functional data dependency graph G=(V, E), where V is the set of functional nodes and E is the set of directed edges representing producer-consumer dependencies. A graph embedding vector G is generated through graph neural network encoding. emb It is incorporated into the state space of the reinforcement learning scheduler; the shared state buffer adopts a multi-port design to support simultaneous read and write operations; the data prefetch engine prefetches shared state data from L3 level storage to L1 level cache according to the data prefetch instructions automatically generated by the scheduler generator, realizing zero-copy data transfer.

9. The reconfigurable hardware time-sharing dynamic reconfiguration method according to claim 1, characterized in that, The reinforcement learning scheduler employs a variant of the deep Q-network structure, with the state vector S = {L pred_macro , L pred_micro , Q, D, H, G emb Mapped to the action space, where Q is the current queue length of each function, D is the deadline of each function, H is the historical execution time of each function, and G is the time to execute each function. emb The vector is an inter-functional dependency graph embedding vector; the reinforcement learning scheduler includes a meta-learning mechanism, which adopts a model-independent meta-learning style to achieve rapid adaptation of the scheduling strategy to new load modes through 1 to 3 steps of gradient update.

10. A reconfigurable hardware time-sharing dynamic reconfiguration system, characterized in that, include: The scheduling decision layer includes a load monitoring module, a reinforcement learning scheduler, and a data dependency management module. The load monitoring module includes a dual-scale trend prediction submodule, and the data dependency management module includes a graph neural network dependency encoding submodule, which are used to perceive the system operating status, predict load trends, and generate time slice scheduling tables. The switching control layer includes a seven-level adaptive pipelined switching engine, a priority conflict arbitrator, and a secure loading controller. The secure loading controller includes a block verification and version rollback submodule, which is used to receive the scheduling table and perform time slice switching operations. The context storage layer includes a four-level storage architecture: L0 near-computation register level, L1 high-speed register level, L2 on-chip high-capacity cache level, and L3 off-chip extended storage level, as well as a context heat monitoring and dynamic migration controller, which is used to realize differentiated hierarchical storage and dynamic migration of context. The reconfigurable hardware execution layer includes a reconfigurable computing array and a shared state buffer. The shared state buffer contains a data prefetch engine, which serves as the execution carrier for functional units and enables efficient data transfer across time slices.