A method for optimizing bandwidth of an HBM stacked memory chip
By predicting future resource capacity and establishing a complete resource time demand trajectory, the problem of unsynchronized resource confirmation in the HBM controller was solved, the bandwidth utilization of HBM stacked storage chips was optimized, time domain fragmentation was reduced, and resource utilization was improved.
Patent Information
- Application Number
- CN202611312881.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-27
- Publication Date
- 2026-11-20
Smart Images

Figure CN123138154A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of high-bandwidth memory control and memory access scheduling technology, specifically a bandwidth optimization method for HBM stacked memory chips. Background Technology
[0002] HBM achieves high parallel memory access capabilities through three-dimensional stacked storage dies, wide data interfaces, multi-channel structures, and multiple banks. During AI training, AI inference, matrix multiplication, high-performance computing, graph computing, and database analysis, the processor continuously generates a large number of read and write requests within a short period. The HBM controller needs to organize PRE, ACT, RD, WR, and data transfer processes among these requests. HBM access is not only affected by whether the target bank is currently idle, but also by the target row status, the minimum time from ACT to column access, precharge time, minimum row activation hold time, column command interval, activation command interval, number of activations within a limited time window, read / write direction switching, and data burst occupancy relationships.
[0003] Existing HBM controllers typically write access requests into a request queue first, and then select the next command from candidate requests within each command scheduling cycle based on the current Bank state, row hit status, request waiting time, and current timing validity. This type of method mainly solves the problems of "which command meets the issuance conditions" and "which of the multiple currently valid commands takes precedence". A single decision usually cannot prove that a request has obtained continuous executable resources in all critical stages from the start of the preceding state command to the completion of data transmission. Therefore, after a request's ACT command has been executed and changed the target Bank state, its subsequent RD or WR will still re-enter command contention. When there is no suitable time position for subsequent data paths or column command resources, the request will remain in the intermediate state and occupy the already changed Bank state.
[0004] Furthermore, even if idle Bank slots, idle command slots, and idle data transmission slots exist in several future clock cycles, these idle locations may not necessarily form a complete HBM transaction in terms of time relationship. For example, if the time relationship between an idle Bank interval and an idle data path interval does not satisfy the ACT to RD and RD to data return time relationship, this physical idle cannot be directly converted into effective business data transmission. Traditional scheduling methods based on Bank utilization, command interface utilization, or DQ utilization are unable to distinguish between effective idle that can form a complete transaction and time-domain fragments that have been cut into pieces that cannot support a complete transaction.
[0005] Furthermore, the locally optimal command selection in the current cycle can alter the future resource time structure. A row hit RD command may have a low command cost in the current cycle, but its data return window will occupy a future DQ time slot. If this occupation happens to cut off the only position where another request can form a complete ACT-RD-DQ path, then the current local selection will reduce the executability of multiple subsequent transactions. Simply increasing the queue depth can only increase the number of candidate requests and cannot solve the problem of missing transaction-level resource commitments when "preceding commands have been executed but subsequent resources have not yet been fully acquired".
[0006] Therefore, an HBM bandwidth optimization method is needed to pre-confirm, based on the current HBM state, committed but not yet completed access trajectories, and device timing parameters, that the complete resource time requirement of the request from the necessary pre-command to data completion can be fully accommodated by future resource capacity, and to retain a resource time structure more suitable for subsequent complete transactions between multiple legal trajectory positions. Summary of the Invention
[0007] Technical problems to be solved
[0008] To address the shortcomings of existing technologies, this invention provides a bandwidth optimization method for HBM stacked memory chips, solving the following problems:
[0009] 1. The existing HBM controller uses the validity of the current single command as the main scheduling basis. When the PRE and ACT pre-state commands are executed, it does not synchronously confirm that the subsequent RD or WR commands and the data transmission stage have obtained the complete resource time position. This causes the request to repeatedly compete for subsequent resources after entering the intermediate state. The time domain is easily disconnected between the change of the pre-bank state and the subsequent column access and data transmission.
[0010] 2. Existing scheduling methods mainly evaluate resource idleness based on Bank utilization, command interface utilization, or data transmission path utilization. It is difficult to identify whether scattered idle time slots on different resources can be combined into a complete storage transaction according to HBM time sequence relationship. This results in some seemingly idle resources forming structural time domain fragments that cannot continue to carry complete transactions due to the mismatch of time positions across Bank, command path, and data transmission path.
[0011] 3. In scenarios involving deep request queues and parallel planning of multiple requests, the future open and closed states of the target Bank, as well as shared commands and data transmission resources, will be continuously changed by requests that have been promised but not yet executed. If subsequent requests still generate command paths based on the current instantaneous state or the resource state that has not been updated, it is easy to cause problems such as inconsistent trajectory planning basis, duplicate resource reservation, and re-arbitration of generated trajectories.
[0012] Technical solution
[0013] To achieve the above objectives, the present invention provides the following technical solution: a bandwidth optimization method for HBM stacked memory chips, comprising the following steps: obtaining the current memory bank state information, committed access request information, and HBM timing parameters of the HBM controller; establishing the future legal capacity corresponding to constrained resources within a prediction time window starting from the current control time based on the memory bank state information, committed access request information, and HBM timing parameters; obtaining HBM access requests to be processed; performing address resolution, request attribute resolution, and dependency checks on the HBM access requests to be processed; and establishing a complete resource time demand trajectory consisting of storage command nodes, data transmission nodes, and time constraint edges between nodes based on the predicted state of the target Bank corresponding to the HBM access requests within the prediction time window; and optimizing the bandwidth of each constrained resource based on the complete resource time demand trajectory. Based on the resource requirements of the source and the future legal capacity, determine the set of legal starting positions of the complete resource time demand trajectory within the prediction time window. For each legal starting position in the set of legal starting positions, deduct the resource requirements of the corresponding complete resource time demand trajectory from the shadow capacity to obtain the remaining future legal capacity corresponding to each legal starting position. Determine the transaction fillability of each remaining future legal capacity based on the trajectory primitive set. Determine the target starting position based on the transaction fillability, the time position corresponding to the legal starting position, and the waiting time of the pending HBM access request. Atomically reserve the future legal capacity involved in the complete resource time demand trajectory based on the target starting position. Record the committed trajectory corresponding to the pending HBM access request and the target Bank prediction state change event. Execute the storage command node and data transmission node sequentially according to the planned time corresponding to the committed trajectory, and update the future legal capacity on a rolling basis as the control time advances.
[0014] Preferably, the storage state information includes the open / closed status of each Bank, the currently open row address, the time of the most recent ACT command, the time of the most recent PRE command, the time of the most recent RD command, the time of the most recent WR command, and the current data transmission status. The HBM timing parameters include the minimum time interval between the ACT command and the column access command, the minimum time interval between precharge and reactivation, the minimum row activation hold time, the minimum time interval between column commands, the minimum time interval between activation commands, the number of activation commands allowed within a limited time window, the read / write direction switching time, the read data return delay, the write data transmission delay, and the data burst length. The minimum time interval between two command events is written into the time constraint edge corresponding to the complete resource time demand trajectory, and the prohibited time interval formed by the command event for subsequent accesses is written into the future legal capacity of the corresponding constrained resource.
[0015] Preferably, a predicted state event chain is established for each Bank. Each predicted state event in the predicted state event chain includes a planned occurrence time relative to the current control time, an event type, and a row address corresponding to the event type. When generating a trajectory for a candidate starting position of the HBM access request to be processed, the last predicted state event no later than the candidate starting position is queried. The predicted state of the target Bank corresponding to the candidate starting position is determined based on the last predicted state event. When the predicted state is closed, an ACT command node and subsequent RD or WR command nodes are established. When the open row address corresponding to the predicted state is consistent with the target row address of the HBM access request to be processed, an RD command node or WR command node is established. When the open row address corresponding to the predicted state is inconsistent with the target row address, a PRE command node, an ACT command node, and an RD or WR command node are established sequentially.
[0016] Preferably, the complete resource time demand trajectory is represented as a directed constraint graph. The action nodes in the directed constraint graph include PRE command nodes, ACT command nodes, RD command nodes, WR command nodes, and data transmission nodes. Minimum time interval constraints are set between the action nodes based on the HBM timing parameters. For any action node, the earliest legal execution time of the action node is determined based on the planned execution times of all its directly preceding action nodes and the corresponding minimum time intervals. The latest allowed execution time of the action node is determined based on the maximum waiting budget, the time constraints of subsequent action nodes, and the prediction time window boundary. A planned execution time that satisfies the corresponding future legal capacity is determined between the earliest legal execution time and the latest allowed execution time.
[0017] Preferably, the future legal capacity is stored in bitmap or count form according to the constrained resources and discrete time slots within the prediction time window. A future legal capacity bitmap is established for constrained resources represented by binary capacity, and a future legal capacity counting vector is established for constrained resources represented by multi-level capacity. The actual occupied time slots and time-sequence prohibited time slots of the complete resource time demand trajectory on the constrained resources are formed into a resource demand bitmap. Based on the relative time slot positions in each resource demand bitmap, shift alignment and bitwise logical AND operation are performed on the corresponding future legal capacity bitmap to form a legal starting position bitmap corresponding to the HBM access request to be processed. The position with a value of 1 in the legal starting position bitmap corresponds to the starting position where the complete resource time demand trajectory satisfies the capacity constraints on all constrained resources.
[0018] Preferably, the trajectory primitive set is established by classifying the complete resource time demand trajectories actually generated by the HBM controller within the statistical window. Complete resource time demand trajectories with the same action node type, constrained resource category, and relative time slot relationship between action nodes are grouped into the same trajectory primitive category. For each trajectory primitive category, the trajectory occurrence weight, effective business data volume, and number of candidate starting positions in the baseline idle prediction time window are recorded. For the remaining future legal capacity, the legal starting position bitmap of each trajectory primitive category in the remaining future legal capacity is determined. The number of bits with a value of 1 in each legal starting position bitmap is counted and normalized according to the number of candidate starting positions in the corresponding baseline idle prediction time window. The result is then weighted and summed according to the trajectory occurrence weight and effective business data volume to obtain the transaction fillability of the remaining future legal capacity.
[0019] Preferably, for each trajectory primitive category, the trajectory occurrence weight is updated based on the trajectory occurrence weight of the previous statistical window, the actual occurrence ratio of the trajectory primitive category in the current statistical window, and the preset historical weight retention coefficient. The instant queue weight is determined based on the ratio of the number of candidate requests belonging to the trajectory primitive category in the current candidate request set to the total number of current candidate requests. The comprehensive trajectory weight used for calculating the current transaction fillability is determined based on the trajectory occurrence weight, the instant queue weight, and the preset trade-off coefficient.
[0020] Preferably, for each legitimate starting position of the pending HBM access request, the corresponding complete resource time demand trajectory is written into the shadow capacity to obtain the remaining future legitimate capacity. The unfillable fragment potential is determined based on the degree of decrease in the transaction fillability of the remaining future legitimate capacity relative to the transaction fillability of the baseline idle future legitimate capacity. Based on the unfillable fragment potential, the normalized time position of the legitimate starting position in the prediction time window, and the waiting aging value of the pending HBM access request, the admission cost of each legitimate starting position is determined according to a preset non-negative weight. The legitimate starting position with the lowest admission cost is selected as the target starting position.
[0021] Preferably, a capacity version number is set for the future legal capacity. When the trajectory calculation for the pending HBM access request begins, the corresponding read version number is recorded. When the trajectory calculation is completed and ready to be submitted, the read version number is compared with the current capacity version number. If they match, the complete resource time requirement trajectory is submitted. If they do not match, all resource locations involved in the complete resource time requirement trajectory are re-verified according to the current future legal capacity. When submitting the trajectory, the resource requirement corresponding to the complete resource time requirement trajectory is first deducted from the shadow capacity, and the target bank predicted state event increment and committed trajectory event are formed simultaneously. When the capacity value of each constrained resource in the shadow capacity is not less than 0 in the corresponding time slot and the predicted state event satisfies the established request order constraint, the future legal capacity, the target bank predicted state event chain, the committed trajectory table, and the capacity version number are updated.
[0022] Preferably, for two HBM access requests with overlapping access address ranges and at least one request being a write request, a completion order constraint is established to ensure that the data visibility time of the later request is no earlier than that of the earlier request. The refresh transaction is established as an internal complete resource time demand trajectory with the latest start time, and the resource demand corresponding to this trajectory is reserved in the future legal capacity. The legal starting position of ordinary access requests is restricted according to the latest start time of the refresh transaction. When a command node in the committed trajectory fails to execute at the planned time due to a refresh event, error recovery event, or ECC retry event, the command node that has already been executed in the committed trajectory is retained. The remaining resource time demand trajectory corresponding to the command node that has not yet been executed is regenerated according to the current HBM state. The unused future legal capacity in the original committed trajectory is released, and the complete trajectory admission is re-executed for the remaining resource time demand trajectory.
[0023] Beneficial effects
[0024] This invention provides a method for optimizing the bandwidth of HBM stacked memory chips. It has the following beneficial effects:
[0025] 1. Before a pending request enters the actual command execution state, the present invention generates a complete resource time requirement trajectory from the necessary pre-state command to the completion of data transmission, and reserves the required Bank, command path and data transmission resources for this trajectory in the future legal capacity in one go, so that when PRE or ACT enters the execution path, its subsequent column access and data transmission stages already have the corresponding resource time positions, thereby reducing the intermediate dwell time when the pre-state Bank has changed and the subsequent transaction stages are waiting for a long time.
[0026] 2. This invention determines the transaction fillability based on the number of complete and valid starting positions of the real trajectory primitive in the remaining future valid capacity, and evaluates the ability of the remaining resources to continue to carry complete transactions after different valid trajectories are submitted based on the transaction fillability. This transforms the trajectory position selection from a single resource idle judgment to a complete transaction executable space judgment, thereby reducing the structural time domain fragmentation formed across banks, command paths and data transmission paths, and improving the utilization of existing HBM interface resources to convert into effective business data transmission.
[0027] 3. This invention utilizes the Bank predictive state event chain to record committed requests that alter the future Bank state, and uses future valid capacity versions, shadow deductions, and atomic commits to enable parallel trajectory planning to be completed based on a consistent future resource state. Subsequent requests generate a complete resource time requirement trajectory according to the predicted Bank state after the execution of committed transactions, thereby reducing duplicate reservations and re-arbitrations caused by expired states. Attached Figure Description
[0028] Figure 1 This is a flowchart illustrating the overall bandwidth optimization method of the present invention.
[0029] Figure 2 A flowchart for generating the target storage predictive state and complete resource time requirement trajectory of the present invention;
[0030] Figure 3 Flowchart for determining the valid starting position of the complete resource time demand trajectory of this invention;
[0031] Figure 4 Flowchart for the transaction fillability evaluation and target start position determination of the present invention;
[0032] Figure 5 This is a flowchart of the capacity version verification and complete resource time requirement trajectory atomic submission process of the present invention;
[0033] Figure 6 This is a flowchart illustrating the committed trajectory execution, rolling update, and anomaly recovery processes of the present invention.
[0034] Figure 7 This is a trend chart of the bandwidth utilization efficiency of the present invention;
[0035] Figure 8 This is a trend chart of transaction fillability for the present invention. Detailed Implementation
[0036] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention. Specific Implementation Example 1:
[0038] like Figures 1 to 8 As shown, a bandwidth optimization method for HBM stacked memory chips is presented. This specific embodiment serves as the basic implementation of the present invention, and includes a continuous description of data sources, controller state establishment, future legal capacity initialization, target bank future state prediction, complete resource time requirement trajectory generation, complete trajectory admission, transaction fillability calculation, capacity version verification, atomic commit, committed trajectory execution, rolling update, and anomaly recovery. The controller obtains the physical address, read / write attributes, transmission length, request identifier, and arrival timestamp from the upstream request interface; obtains the target stack, target pseudo-channel, target bank group, target bank, target row, and column addresses from the HBM address decoding logic; obtains the currently effective PRE, ACT, RD, WR, and minimum timing parameters related to data transmission from the device timing configuration register; obtains the current open / closed state of each bank, open row address, and most recent command time from the bank status table; and obtains the reserved future command positions and data transmission positions for uncompleted transactions from the committed trajectory table and trajectory execution time bucket. The above data are all derived from the request information, status registers, and timing configuration registers that are already in use during the normal operation of the HBM controller. They do not rely on external training data. All judgments involving the legality of HBM hard timing directly use the effective parameters in the device configuration register. Transaction fillability, aging weight, and candidate position evaluation are only used for the selection among multiple complete legal trajectories that have already met the hard timing constraints.
[0039] In this specific embodiment, a controller scheduling clock cycle is defined as a discrete control time slot. The prediction time window is fixed at 128 time slots. The future legal capacity of binary constrained resources is stored as a 128-bit bitmap and divided into two 64-bit logic words for shifting and bit-by-bit logic operations. Counting constrained resources are stored as non-negative unsigned count values. A single admission calculation selects 16 requests from the request candidate table, performs dependency checks and generates complete trajectories for each. Each Bank sets a future state event table, with each entry storing at least the future relative time slot, event type, and target row address. When a Bank's event table has no free entries, the controller pauses adding new longer-term trajectory commitments for that Bank. Trajectory admission for that Bank resumes after the time window rolls to release completed event entries. Committed trajectories use time buckets to store planned command events. Future capacity, Bank prediction events, and time bucket events are submitted under the same capacity version. The execution end only consumes the time bucket events corresponding to the submitted version.
[0040] Let the current control time be Establish a length of Prediction time window for each discrete control slot:
[0041]
[0042] in, Relative to the current control time The established set of future time slots This indicates the current scheduling reference time of the HBM controller. The set element represents the total number of discrete time slots included in the prediction time window. Relative to Future time slot numbering and satisfying .
[0043] The constrained resources participating in the complete trajectory admission determination are represented as:
[0044]
[0045] in, Represents the set of all constrained resources. Indicates the first A constrained resource Represents the resource number and satisfies , This represents the total number of constrained resources. Constrained resources include Bank resources, Bank group constrained resources, pseudo-channel command resources, data transmission resources, read / write conversion constrained resources, and counting constrained resources used to express the number of activations within a limited time window.
[0046] Future legal capacity is represented as:
[0047]
[0048] in, This represents the future legal capacity corresponding to the current control moment. Representing resources Future Time Slot The legal capacity still allows for use by new complete transactions. Indicates the total number of constrained resources. Indicates the length of the prediction time window. For resources that allow only one mutually exclusive action to enter at a time, The value is either 0 or 1, for constrained resources that use quota counting. Take a non-negative integer.
[0049] Future legal capacity initialization will be completed based on the current actual HBM state, the current timing configuration, and fixed maintenance events:
[0050]
[0051] in, This represents the future legal capacity obtained from initialization. This represents the set of actual HBM states at the initialization time, including the open / closed states of each bank, the addresses of open rows, the time of the most recent command, and the status of data transmissions in transit. This represents the set of HBM timing parameters currently in effect. This represents the set of refresh and maintenance events that have been determined within the prediction time window. This refers to the process of initializing future capacity according to state, timing parameters, and fixed events.
[0052] Regarding the constraint on the number of ACTs allowed within a limited time window, let the maximum number of ACTs allowed in a protocol window be . The committed trajectory is in future time slots The number of ACTs already occupied within the same window as the baseline is The remaining activation quota is:
[0053]
[0054] in, Indicates future time slots The corresponding sliding time window is the number of new ACTs that the object is still allowed to commit to. This indicates the maximum number of ACTs allowed by the protocol window. This indicates the number of ACTs that have been reserved within the protocol window, and signifies that the trajectory has been committed to. Indicates the future time slot number.
[0055] Maintain a predictive state event chain for each Bank:
[0056]
[0057] in, Indicates that the Bank number is The predicted state event chain, Indicates the target Bank number. This indicates the first [number] of the Bank. A future state event, Indicates the event sequence number. This indicates the number of state events for that Bank that have been registered within the prediction time window.
[0058] Each state event is written as:
[0059]
[0060] in, Indicates an event Relative to the planned occurrence time slot at the current control moment, Indicates the event type, which can be one of the following: open row event, close row event, or maintenance reset event. This field indicates the row address involved in the event. When the event type does not contain a valid row address, this field is set to the default invalid encoding.
[0061] Candidate request test future start position At that time, the reading shall not be later than The last Bank state event, combined with the current actual Bank state, determines the location. The predicted Bank state is determined. When the Bank is predicted to be closed, an ACT followed by RD or WR trajectory skeleton is generated. When the predicted open line matches the requested target line, an RD or WR trajectory skeleton is generated. When the predicted open line does not match the requested target line, a PRE-ACT-RD or PRE-ACT-WR trajectory skeleton is generated.
[0062] ask The corresponding complete resource time demand trajectory is represented by a directed constraint graph:
[0063]
[0064] in, Indicates a request The corresponding complete resource time demand trajectory constraint diagram. Indicates the request number. Represents a set of action nodes. This represents the set of time-constrained edges between action nodes. Action nodes, depending on the actual request, include PRE, ACT, RD, WR, and data transfer nodes.
[0065] For any time-constrained edge ,satisfy:
[0066]
[0067] in, Indicates the preceding action node, Indicates the subsequent action node, Represents action nodes The time of execution of the plan Represents action nodes The time of execution of the plan This indicates the action node determined based on the current HBM timing parameters. To the action node The minimum legal time interval between them Indicates a request The time-constrained edge set.
[0068] Action Node The earliest legal time of enforcement is determined according to:
[0069]
[0070] Calculate, where, Represents action nodes The earliest legal time of enforcement Represents action nodes The set of directly preceding driving nodes. This represents any directly preceding driving node in the set. Indicates the direct preceding driver node The time of execution of the plan Represents action nodes To the action node The minimum legal time interval, This indicates that the maximum value is taken from the time lower bounds given by all direct predecessor constraints.
[0071] To improve the trajectory embedding rate, action nodes... Establish a finite time flexibility range:
[0072]
[0073] in, Represents action nodes The finalized execution time of the plan, Represents action nodes The earliest legal time determined by all predecessor timing constraints. This indicates the latest allowed time to be determined within the requested waiting budget, subsequent constraints, and forecast window boundaries.
[0074] Taking a read request in the closed state of the target bank as an example, let the ACT schedule time be... RD plan time is The minimum time from ACT to RD is ,but:
[0075]
[0076] in, Indicates the scheduled time when the ACT command is issued. Indicates the scheduled time when the RD command is issued. This represents the minimum time interval that must be satisfied between the current ACT and subsequent RD under the current HBM configuration.
[0077] Let the delay from RD to the start of returning valid read data be... ,but:
[0078]
[0079] in, This indicates the moment when the read request begins to occupy read data transfer resources. Indicates the time when the RD plan is issued. This indicates the read data return latency in the current HBM configuration.
[0080] If data suddenly becomes scarce If there are discrete time slots, then the continuous occupancy interval of data transmission resources is:
[0081]
[0082] in, This indicates the number of time slots continuously occupied by the data burst requested on the data transmission resource.
[0083] When the target bank opens other rows, let the PRE plan time be... The minimum time from pre-charging to reactivation is Then the ACT plan always satisfies:
[0084]
[0085] in, Indicates the scheduled execution time of the PRE command. Indicates the time when the ACT plan will be executed. This represents the minimum valid time interval between PRE and re-ACT under the current HBM configuration.
[0086] For binary capacity resources, define a request. In resources Requirements on:
[0087]
[0088] in, Indicates a request Starting from the trajectory's origin, the... Does each relative time slot occupy or prohibit resources? , Indicates the request number. Indicates the constrained resource number. This indicates the time slot offset relative to the starting point of the trajectory. Indicates a request Resources Generate a set of relative time slots that are actually occupied or time-prohibited.
[0089] When request Try from future time slots Initially, this is satisfied only with all resources and relative time slots:
[0090]
[0091] At time, position It belongs to a complete and valid starting position. Among them, Indicates a request In resources and relative time slots Capacity requirements, Representing resources Future Time Slot The remaining legal capacity, Indicates the starting time slot of the candidate trajectory. This indicates the relative time slot within the trajectory.
[0092] The future legal capacity bitmap representation is as follows:
[0093]
[0094] in, Representing resources Binary future legal capacity bitmap within the prediction time window Indicates future time slots Is there available capacity? This indicates the length of the prediction time window.
[0095] ask The valid starting point map is:
[0096]
[0097] in, Indicates a request A valid starting position bitmap This indicates a bitwise logical AND. Indicates a request The constrained resource number involved, Indicates a request In resources The demand on the relative time slot set, Indicates resources Future capacity bitmap according to relative demand location Bitmap after starting point alignment.
[0098] The complete resource time demand trajectory actually generated by the controller is categorized according to the resource time shape:
[0099]
[0100] in, Represents the set of trajectory primitives. Indicates the first Trajectory primitives, Indicates the trajectory primitive number. This represents the total number of trajectory primitive categories.
[0101] No. The historical weights of trajectory primitives are based on:
[0102]
[0103] Update, in which, Indicates the first The first statistical window after its end The historical occurrence weight of trajectory primitives Indicates the first Weighting of historical occurrences after the end of each statistical window. Indicates the first Within the first statistical window The actual occurrence rate of trajectory-like primitives Indicates the statistical window number. Represents the historical weight retention coefficient and satisfies .
[0104] In this weight update relationship, the previous historical weight corresponds to the historical weight of the same trajectory primitive category saved at the end of the previous statistical window, and the current actual occurrence ratio corresponds to the ratio of the number of requests for the trajectory primitive category in this statistical window to the total number of requests counted in this statistical window. When the system is initialized, the same initial weight is used among all established trajectory primitive categories. After a newly added trajectory primitive enters the statistics for the first time, it participates in the weight update of the next statistical window according to the actual occurrence ratio of this statistical window.
[0105] The real-time weights of the current candidate queue are determined according to:
[0106]
[0107] Calculate, where, Indicates the first The instantaneous weight of the trajectory primitive in the current candidate queue Indicates that the current candidate request belongs to the first... The number of requests for the trajectory primitive. This indicates the total number of current candidate requests. This represents the denominator protection constant that is greater than 0.
[0108] The overall trajectory weight is:
[0109]
[0110] in, Represents the first [number] used in the current transaction fillability calculation. The composite weight of trajectory primitives, Indicates the first The historical occurrence weight of trajectory primitives Indicates the first Trajectory-like primitives and instantaneous queue weights. Represents the tradeoff coefficient between historical weights and current weights, and satisfies .
[0111] future capacity The transaction fillability is:
[0112]
[0113] in, Indicates future legal capacity Transaction fillability This represents the total number of trajectory primitive categories. Indicates the trajectory primitive number. Indicates the first The composite weight of trajectory primitives, Indicates the first The amount of effective business data corresponding to the trajectory primitive. Indicates the first Trajectory primitives in future legal capacity The valid starting point bitmap in the image, This indicates the number of bits in the input bitmap that have a value of 1. Indicates the first The number of candidate starting points for the trajectory primitive in the baseline idle prediction window.
[0114] Based on future idle capacity As a normalized baseline, the potential energy of unfillable fragments is defined as follows:
[0115]
[0116] in, Indicates future legal capacity The potential energy of unfillable fragments The transaction fillability of the current future capacity. This represents the baseline future legal capacity established under the same HBM time sequence configuration without any service trajectory reservation. The transaction fillability represents the baseline future legal capacity. This represents the denominator protection constant that is greater than 0.
[0117] The denominator protection constant is only used to prevent division by zero when the baseline transaction fillability is zero. It does not participate in the HBM timing validity judgment. In this embodiment, when using 16-digit decimal fixed-point representation, this constant is set to the minimum positive fixed-point quantity. The baseline idle future legal capacity is established under the conditions of the same HBM timing configuration, the same prediction time window length, and no business trajectory commitment written. Therefore, its transaction fillability has the same dimension as the transaction fillability of the current future legal capacity.
[0118] ask Placed at a legal starting point The remaining future capacity of the shadow is denoted as The entry cost is:
[0119]
[0120] in, Indicates a request Choose a legal starting point The cost of entry This represents the non-negative weight corresponding to the potential energy of unfillable fragments. Indicates a request At the legal starting point The unfillable fragment potential energy of the remaining capacity after shadow deduction. This represents the non-negative weight corresponding to a future time position. Indicates the candidate start time slot number. Indicates the prediction window length. This indicates the non-negative weight corresponding to the request aging. Indicates a request The normalized waiting aging value.
[0121] The requested aging value is:
[0122]
[0123] in, Indicates a request The normalized waiting aging value, Indicates a request The accumulated waiting time after entering the HBM controller. This indicates the preset waiting time corresponding to reaching the aging saturation value. This means taking the smaller of the two input values.
[0124] The starting point of the target is:
[0125]
[0126] in, Indicates a request The final selected target starting time slot, Indicates a request The complete set of all valid starting positions. Indicates candidate starting point The corresponding entry cost, This indicates that the return value is the independent variable that minimizes the objective function.
[0127] Set version number for future legal capacity .ask Record the following when starting trajectory calculation:
[0128]
[0129] in, Indicates a request The version number recorded when starting to read future legal capacity. This indicates the current version number representing the legal future capacity at the time of reading.
[0130] The target trajectory requirement is denoted as The current version size is denoted as The shadow deduction result is:
[0131]
[0132] in, This indicates the shadow future legal capacity that has not yet taken effect on other access logics. The version number is The official future legal capacity, Indicates a request Based on the complete resource capacity requirements after the target starting point is shifted. When all shadow capacity is constrained and there is no negative capacity, and the request order constraints and Bank prediction events are consistent, update the official capacity and capacity version number, write the state change event formed by PRE or ACT to the Bank prediction event chain, and write the planned command event to the trajectory execution time bucket.
[0133] Suppose a request and requests Covering physical address ranges respectively and ,when:
[0134]
[0135] Furthermore, a request order constraint is established when at least one of the two requests is a write request. Indicates a request The physical data address range Indicates a request The physical data address range To represent the intersection of sets, This represents an empty set.
[0136] If request Must precede the request Once the architecture becomes visible, then:
[0137]
[0138] in, Indicates a request The moment when the architecture becomes visible. Indicates a request The moment when the architecture becomes visible. The visible state of a read request corresponds to the state where valid data has been received and the conditions for return from the upper layer are met. The visible state of a write request corresponds to the state where the controller's write operation is completed.
[0139] After the control clock advances by one time slot, the future capacity will meet the following requirements:
[0140]
[0141] in, Indicates control time Download resources Future offset The legal capacity of the location Indicates control time Download resources Future offset The legal capacity of the location Indicates the control time index. Indicates the future offset within the window. Indicates the constrained resource number. New capacity added at the end of the window is initialized based on the latest Bank status, committed trajectories, and maintenance events.
[0142] In the rolling update relationship, the current control moment corresponds to the current window, and the next control moment corresponds to the new window after the controller clock advances by one discrete time slot. Each non-end future position in the new window inherits the legal capacity of the next adjacent future position in the old window. The first future position in the old window is removed from the capacity table after the current time slot is completed. The newly added position at the end of the new window is regenerated based on the latest real Bank status, committed trajectory events, and confirmed maintenance events.
[0143] If a committed request for a subsequent trajectory fails to execute at the originally scheduled time due to refresh, error recovery, or ECC retry, the action nodes that have actually been completed are retained, unused future capacity in the original trajectory is released, the remaining resource time requirement trajectory for the unexecuted node is regenerated based on the current actual HBM state, and the complete trajectory admission is re-executed. This recovery process does not roll back completed HBM commands.
[0144] Within the observation window, let the total number of planned actions be... The number of actions completed within the planned time or the allowable deviation range of the controller is The trajectory fulfillment rate is:
[0145]
[0146] in, Indicates the trajectory fulfillment rate. This indicates the number of trajectory actions completed at the promised time. This indicates the total number of planned trajectory actions to be executed within the observation window. This represents the protection constant in the denominator that is greater than 0. The trajectory fulfillment rate is used to adjust non-protocol-mandated capacity protection margins and future commitment depths, but does not modify the hard timing parameters specified for HBM devices.
[0147] Effective service bandwidth is based on:
[0148]
[0149] It is confirmed that, among them, This indicates the effective service bandwidth within the observation window. This represents the total amount of valid business data completed within the observation window and capable of being submitted to the business request source. This indicates the duration of the observation window. Refresh, error recovery, and internal controller maintenance traffic are excluded. .
[0150] Data transmission path utilization rate is based on:
[0151]
[0152] It is confirmed that, among them, This indicates the effective utilization rate of the business data transmission path. This indicates the number of data transmission time slots actually carrying valid business data within the observation window. This indicates the total number of time slots available for business data transmission, as counted according to the current interface configuration within the observation window.
[0153] The HBM controller internally includes a request candidate table, a Bank prediction state event table, a future legal capacity table, a trajectory template table, a trajectory primitive statistics table, a committed trajectory table, a capacity version register, a trajectory execution time bucket, and a read / write data buffer status table. The request candidate table stores access requests for which a complete trajectory commitment has not yet been completed. The Bank prediction state event table stores the future state changes of committed requests to the Bank's open / closed state and open rows. The future legal capacity table stores the predicted window resource capacity using a bitmap and a small bit-width counting vector. The trajectory template table stores the basic command constraint skeleton corresponding to different Bank states. The trajectory primitive statistics table stores the actual trajectory categories and their historical occurrence weights. The committed trajectory table stores requests for completed atomic capacity reservations and their command time positions. The trajectory execution time bucket stores planned command events according to future time slot indexes.
[0154] In one hardware pipeline implementation, the first stage resolves the physical address of the request and performs dependency checks. The second stage reads the target Bank's predicted events and instantiates the trajectory template. The third stage generates a resource requirement bitmap or capacity counting requirements. The fourth stage determines the complete and valid starting point based on future valid capacity. The fifth stage simulates shadow deduction for candidate starting points and calculates changes in local transaction fillability. The sixth stage completes candidate request and starting point selection. The seventh stage completes capacity version verification and atomic commit. The trajectory execution path is independent of the admission pipeline. Based on the current time bucket, it directly provides committed commands to the final timing verification logic of HBM. Therefore, multiple cycle delays in the admission calculation pipeline do not block the execution of committed HBM commands.
[0155] The storage capacity required for future legal capacity can be expressed as:
[0156]
[0157] in, This indicates the total number of bits that the future valid capacity table needs to store. Indicates the length of the prediction time window. This represents the number of constrained resources expressed in terms of single-bit capacity. This indicates the quantity of constrained resources represented using multi-digit counting capacity. This represents the storage bit width used by each countable resource in a single future time slot. This storage size is related to the forecast window and the number of constrained resources, and does not correspond linearly to the total capacity of HBM user data.
[0158] The prediction window length is based on:
[0159]
[0160] Settings, among which Indicates the prediction window length. This indicates the maximum time required to cover the entire process of a normal business request from the first necessary action to the completion of data transmission under the current HBM timing configuration. This represents the time margin reserved for flexible action postponement, read / write conversion, and maintenance events.
[0161] In the controller implementation of this embodiment, the prediction time window is 128 controller time slots, the number of candidate requests entering a complete trajectory search in a single instance is 16, the upper limit of trajectory primitive categories is 32, and the capacity version register uses a 32-bit unsigned counter. The historical weight of transaction fillability is evenly set according to the currently established trajectory primitive categories during system initialization. The historical weight retention coefficient is 0.875, the trade-off coefficient between historical weight and immediate queue weight is 0.75, the weight corresponding to unfillable fragment potential energy is 0.55, the weight corresponding to future starting position is 0.25, the weight corresponding to request waiting aging is 0.20, the waiting time for request aging to reach saturation is 256 controller time slots, the maximum request waiting budget is 512 controller time slots, and the denominator protection constant is 0.0000152587890625. The above performance parameters are stored in the controller configuration register. The minimum timing parameters specified by the HBM protocol are directly read from the device configuration register and maintained at or above the device requirements.
[0162] Taking a read request with the target bank closed as an example, when the controller schedules an ACT command in the 12th time slot in the future, and the minimum time interval between ACT and RD in the current device configuration is 4 controller time slots, the earliest planned position for the RD command is the 16th time slot. When the read data return delay is 6 controller time slots and the data burst of this request continuously occupies 4 controller time slots, the data transmission resources need to maintain continuous legal capacity from the 22nd to the 25th time slots. The controller simultaneously checks the bank group constraints corresponding to ACT, the activation quota within the limited time window, the column command constraints corresponding to RD, and the data transmission capacity from the 22nd to the 25th time slots. If any of the required capacity is insufficient, the candidate trajectory will not enter the committed state. When all capacities are met, the multiple legal starting positions of the trajectory are compared according to the transaction fillability and admission cost.
[0163] In this embodiment, the classification of trajectory primitives is based on the sequence of action node types, the categories of constrained resources involved, and the relative time slot relationships of adjacent action nodes. Trajectories within the same category have the same resource time requirement shape. Each statistical window takes 1024 service requests that have entered the trajectory generation stage as update samples. After the statistical window ends, the historical occurrence weights of the trajectory primitives are updated. When the total number of current candidate requests is zero, the immediate queue weight is not calculated, and the historical weights of the previous statistical window are maintained. When a candidate request reappears, the immediate queue weight calculation is resumed. This process ensures that trajectory statistics only affect the selection between multiple complete and valid locations and do not participate in HBM hard-time sequence validity determination.
[0164] According to the above configuration, the complete operation sequence of this specific embodiment is as follows: After system initialization, a baseline future legal capacity is established based on the current Bank real state, in-transit data, and confirmed maintenance events. After a new request enters the candidate table, address resolution and overlapping address dependency checks are performed. The admission pipeline reads the target Bank prediction event and determines the opening / closing state and open row of the target Bank for each candidate future position. Then, the complete resource time requirement trajectory corresponding to the state is instantiated. Each command node in the trajectory determines the earliest legal time based on the device timing parameters, and determines all complete legal positions by combining the future capacity of the corresponding Bank, Bank group, pseudo-channel command path, read / write conversion path, data transmission path, and counting constraint resources. For requests with multiple complete legal positions, a partial deduction is performed on the shadow capacity, and the number of legal starting points of the trajectory primitives after deduction is compared. The target position is determined based on the admission cost. Before submission, all resource positions involved are re-verified through the capacity version. After verification, the formal future legal capacity, Bank prediction state event, and trajectory execution time bucket are written at once. When the controller clock advances, the committed commands in the current time bucket are directly executed and the future capacity is rolled. Abnormal events only re-admit the remaining trajectories that have not yet been executed. Therefore, from request input, status acquisition, trajectory calculation, capacity judgment, submission execution to completion or abnormal recovery, a definite data source and processing path are formed, and the user data address or HBM internal data layout is not changed during the implementation process. Specific Implementation Example 2:
[0166] like Figures 1 to 8 As shown, in Specific Embodiment 1, while maintaining the same request data source, future legal capacity, Bank predicted state event chain, complete resource time demand trajectory, transaction fillability, capacity version verification, and atomic commit mechanism, this Specific Embodiment further illustrates the application under high-concurrency read transactions by explicitly supplementing the request combination and trajectory layout for high-concurrency read transactions. In an embodiment where an HBM controller is connected to an AI accelerator, the controller receives requests... , and .ask Access the target row that is currently open in Bank0, and make a request. Access Bank1, which is currently closed, and make a request. Access another target row in Bank0 that is different from the currently open row. The controller determines this based on the Bank's predictive event chain. Corresponding RD-data transmission trajectory, Corresponding to ACT-RD-data transmission trajectory, Corresponding to PRE-ACT-RD-data transmission trajectory.
[0167] controller to Find multiple valid starting positions of RD, and then... Find the complete trajectory position that simultaneously satisfies the ACT interval, the ACT-RD interval, and the continuous data transmission capacity. If After using the earliest RD position, its data return occupies space. Losing the complete DQ transfer window, and After moving to another legal position Able to execute completely in the front and If the row hit is still maintained, the two candidate layouts correspond to different transaction fill rates. The controller selects the layout with the lower admission cost, completes the atomic capacity commitment for the corresponding trajectory first, and then executes commands according to the time bucket. PRE must not be turned off The opened line has already been committed to being used, therefore Only in Bank0 predicting state and A complete trajectory can only be obtained at positions where all trajectories are allowed. In this embodiment, the controller does not immediately execute based on a single "row hit priority" rule. The temporal layout of multiple transactions is determined based on the complete trajectory and future capacity. Specific Implementation Example 3:
[0169] like Figures 1 to 8 As shown, while maintaining the complete transaction admission and execution mechanism unchanged in Specific Implementation 1, this specific implementation further illustrates the processing methods when read-write direction switching, refresh deadlines, and ECC recovery transactions are accessed within the same future legal capacity framework, specifically addressing the additional processing for read-write mixed transactions, refresh transactions, and ECC recovery transactions. Under a read-write mixed load, when a write request enters the candidate table, it first confirms that the corresponding data is already in the write data buffer, or confirms, according to the upstream transaction protocol, that the write data arrived before the promised write data sending time. The write trajectory includes the WR command, write data path occupancy, and read-write direction switching constraints. The read request trajectory simultaneously checks the HBM data return time slot and the future capacity of the controller read return buffer.
[0170] A refresh transaction is represented as an internal complete resource time requirement trajectory with the latest start time. Let the latest valid start time of the refresh transaction be... The current control time is Its refresh margin is:
[0171]
[0172] in, This represents the remaining time margin before the latest valid start position of the refresh transaction. This indicates the latest valid start time that meets the device refresh requirements. This indicates the current control time. Once the refresh trajectory is determined, its Bank resources and command resources are directly written to the future legal capacity, and ordinary business trajectories must not intrude into the refresh resource time range.
[0173] For reread transactions triggered by ECC detection, the ECC recovery request re-enters the candidate table and generates a new complete trajectory based on the current real bank state. The recovery request has an independent request identifier and inherits the original transaction data consistency relationship, and is still subject to transaction-level admission based on future legitimate capacity. Specific Implementation Example 4:
[0175] like Figures 1 to 8 As shown, while maintaining the future legal capacity, complete resource time demand trajectory, and capacity version submission mechanism unchanged in Specific Implementation 1, this specific implementation further illustrates resource layering and shared capacity processing in multi-pseudo-channel and multi-HBM stack systems by explicitly supplementing capacity layering for locally constrained resources, cross-pseudo-channel shared resources, and cross-HBM stack shared system resources. In an HBM controller with multiple pseudo-channels, each pseudo-channel maintains its local Bank prediction event and local Bank capacity, and the shared future legal capacity is maintained by command constraints or data transmission constraints jointly constrained by multiple pseudo-channels. A request is considered a complete legal trajectory only if both local capacity and shared capacity are satisfied simultaneously. This allows the trajectory search logic of different pseudo-channels to run in parallel, and the capacity version mechanism provides consistency control for shared resource submission.
[0176] In a multi-HBM stack system, each stack maintains independent future legal capacity for its internal bank, command, and data resources. When the processor on-chip interconnect and return buffer are system resources shared by multiple stacks, the future capacity of the shared resources is added to the complete request trajectory. The timing constraints within each HBM stack are still resolved independently by their respective controllers, avoiding the establishment of a global mapping structure that covers the entire HBM user address space. Specific Implementation Example 5:
[0178] like Figures 1 to 8As shown, in Specific Implementation 1, while maintaining the complete trajectory admission, hard timing validity verification, and committed trajectory execution mechanism unchanged, this Specific Implementation further illustrates the operational improvements under parameter calibration and load variation conditions, specifically addressing the operational conditions of performance parameter calibration, low-load simplification, and shortening the future commitment window when the fulfillment rate decreases. When the system first uses this method, the prediction window is set to cover the length of the longest normal service trajectory and safety margin of the current device, and the fragment potential energy weight and start-up time weight use the controller's preset initial values. During operation, the trajectory fulfillment rate, effective service bandwidth, data path effective utilization rate, average request wait, and transaction fillability are statistically analyzed. Only the transaction fillability weight, historical smoothing coefficient, number of candidate start points, future commitment depth, and non-protocol mandatory protection margin are adjusted; the minimum hard timing value required by the HBM specification is not modified.
[0179] When the number of candidate requests is below the low-load threshold set by the controller, the complete trajectory is allowed, but the earlier position is directly selected from multiple legal starting points to reduce the number of transaction fillability comparisons. When the load increases, fillability comparisons of multiple legal starting points are enabled. When the trajectory fulfillment rate in the continuous observation window is below the degradation threshold set by the controller, the future commitment window is shortened, and the final HBM timing checker is retained as the command safety boundary.
[0180] It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising a reference structure" does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes the element.
[0181] Although embodiments of the invention have been shown and described, it will be understood by those skilled in the art that various changes, modifications, substitutions and alterations can be made to these embodiments without departing from the principles and spirit of the invention, the scope of which is defined by the appended claims and their equivalents.
Claims
1. A method for optimizing the bandwidth of HBM stacked memory chips, characterized in that: The process includes the following steps: obtaining the current storage bank state information, committed access request information, and HBM timing parameters of the HBM controller; establishing the future legal capacity corresponding to constrained resources within a prediction time window starting from the current control time, based on the storage bank state information, committed access request information, and HBM timing parameters; obtaining pending HBM access requests; performing address resolution, request attribute resolution, and dependency checks on the pending HBM access requests; and establishing a complete resource time demand trajectory consisting of storage command nodes, data transmission nodes, and time constraint edges between nodes based on the predicted state of the target Bank corresponding to the pending HBM access request within the prediction time window; and determining the required future legal capacity based on the resource demand of each constrained resource according to the complete resource time demand trajectory and the future legal capacity. The set of legal starting positions for the complete resource time demand trajectory within the prediction time window is defined. For each legal starting position in the set of legal starting positions, the resource demand of the corresponding complete resource time demand trajectory is deducted from the shadow capacity to obtain the remaining future legal capacity corresponding to each legal starting position. The transaction fillability of each remaining future legal capacity is determined based on the trajectory primitive set. The target starting position is determined based on the transaction fillability, the time position corresponding to the legal starting position, and the waiting time of the pending HBM access request. The future legal capacity involved in the complete resource time demand trajectory is atomically reserved according to the target starting position. The committed trajectory corresponding to the pending HBM access request and the target Bank prediction state change event are recorded. The storage command node and data transmission node are executed sequentially according to the planned time corresponding to the committed trajectory, and the future legal capacity is updated on a rolling basis as the control time advances.
2. The bandwidth optimization method for HBM stacked memory chips according to claim 1, characterized in that: The storage state information includes the open / closed status of each Bank, the currently open row address, the time of the most recent ACT command, the time of the most recent PRE command, the time of the most recent RD command, the time of the most recent WR command, and the current data transmission status. The HBM timing parameters include the minimum time interval between the ACT command and the column access command, the minimum time interval between precharge and reactivation, the minimum row activation hold time, the minimum time interval between column commands, the minimum time interval between activation commands, the number of activation commands allowed within the limited time window, the read / write direction switching time, the read data return delay, the write data transmission delay, and the data burst length. The minimum time interval between two command events is written into the time constraint edge corresponding to the complete resource time demand trajectory, and the prohibited time interval formed by the command event for subsequent accesses is written into the future legal capacity of the corresponding constrained resource.
3. The bandwidth optimization method for HBM stacked memory chips according to claim 1, characterized in that: A predicted state event chain is established for each Bank. Each predicted state event in the predicted state event chain includes a planned occurrence time relative to the current control time, an event type, and a row address corresponding to the event type. When generating a trajectory for a candidate starting position of an HBM access request to be processed, the last predicted state event no later than the candidate starting position is queried. The predicted state of the target Bank at the candidate starting position is determined based on the last predicted state event. When the predicted state is closed, an ACT command node and subsequent RD or WR command nodes are established. When the open row address corresponding to the predicted state is consistent with the target row address of the HBM access request to be processed, an RD command node or WR command node is established. When the open row address corresponding to the predicted state is inconsistent with the target row address, a PRE command node, an ACT command node, and an RD or WR command node are established sequentially.
4. The bandwidth optimization method for HBM stacked memory chips according to claim 1, characterized in that: The complete resource time demand trajectory is represented as a directed constraint graph. The action nodes in the directed constraint graph include PRE command nodes, ACT command nodes, RD command nodes, WR command nodes, and data transmission nodes. Minimum time interval constraints are set between action nodes based on the HBM timing parameters. For any action node, the earliest legal execution time of the action node is determined based on the planned execution times of all its directly preceding action nodes and the corresponding minimum time intervals. The latest allowed execution time of the action node is determined based on the maximum waiting budget, the time constraints of subsequent action nodes, and the prediction time window boundary. The planned execution time that satisfies the corresponding future legal capacity is determined between the earliest legal execution time and the latest allowed execution time.
5. The bandwidth optimization method for HBM stacked memory chips according to claim 1, characterized in that: The future legal capacity is stored in bitmap or count form according to the constrained resources and discrete time slots within the prediction time window. A future legal capacity bitmap is established for constrained resources represented by binary capacity, and a future legal capacity counting vector is established for constrained resources represented by multi-level capacity. The actual occupied time slots and time-prohibited time slots of the complete resource time demand trajectory on the constrained resources are formed into a resource demand bitmap. Based on the relative time slot positions in each resource demand bitmap, shift alignment and bitwise logical AND operation are performed on the corresponding future legal capacity bitmap to form a legal starting position bitmap corresponding to the HBM access request to be processed. The position with a value of 1 in the legal starting position bitmap corresponds to the starting position where the complete resource time demand trajectory satisfies the capacity constraints on all constrained resources.
6. The bandwidth optimization method for HBM stacked memory chips according to claim 1, characterized in that: The trajectory primitive set is established by classifying complete resource time demand trajectories actually generated by the HBM controller within the statistical window. Complete resource time demand trajectories with the same action node type, constrained resource category, and relative time slot relationship between action nodes are grouped into the same trajectory primitive category. For each trajectory primitive category, the trajectory occurrence weight, effective business data volume, and number of candidate starting positions in the baseline idle prediction time window are recorded. For the remaining future legal capacity, the legal starting position bitmap of each trajectory primitive category in the remaining future legal capacity is determined. The number of bits with a value of 1 in each legal starting position bitmap is counted and normalized according to the number of candidate starting positions in the corresponding baseline idle prediction time window. The remaining future legal capacity is then weighted and summed according to the trajectory occurrence weight and effective business data volume to obtain the transaction fillability of the remaining future legal capacity.
7. The bandwidth optimization method for HBM stacked memory chips according to claim 6, characterized in that: For each trajectory primitive category, the trajectory occurrence weight is updated based on the trajectory occurrence weight of the previous statistical window, the actual occurrence ratio of the trajectory primitive category in the current statistical window, and the preset historical weight retention coefficient. The instant queue weight is determined based on the ratio of the number of candidate requests belonging to the trajectory primitive category in the current candidate request set to the total number of current candidate requests. The comprehensive trajectory weight used for calculating the current transaction fillability is determined based on the trajectory occurrence weight, the instant queue weight, and the preset trade-off coefficient.
8. The bandwidth optimization method for HBM stacked memory chips according to claim 6, characterized in that: For each legitimate starting position of the pending HBM access request, the corresponding complete resource time demand trajectory is written into the shadow capacity to obtain the remaining future legitimate capacity. The unfillable fragment potential is determined based on the degree of decrease in the transaction fillability of the remaining future legitimate capacity relative to the transaction fillability of the baseline idle future legitimate capacity. Based on the unfillable fragment potential, the normalized time position of the legitimate starting position in the prediction time window, and the waiting aging value of the pending HBM access request, the admission cost of each legitimate starting position is determined according to a preset non-negative weight. The legitimate starting position with the minimum admission cost is selected as the target starting position.
9. The bandwidth optimization method for HBM stacked memory chips according to claim 1, characterized in that: A capacity version number is set for the future legal capacity. When the trajectory calculation for the pending HBM access request begins, the corresponding read version number is recorded. When the trajectory calculation is completed and ready to be submitted, the read version number is compared with the current capacity version number. If they match, the complete resource time requirement trajectory is submitted. If they do not match, all resource locations involved in the complete resource time requirement trajectory are re-verified according to the current future legal capacity. When submitting the trajectory, the resource requirement corresponding to the complete resource time requirement trajectory is first deducted from the shadow capacity, and the target bank predicted state event increment and committed trajectory event are formed simultaneously. When the capacity value of each constrained resource in the shadow capacity is not less than 0 in the corresponding time slot and the predicted state event satisfies the established request order constraint, the future legal capacity, the target bank predicted state event chain, the committed trajectory table, and the capacity version number are updated.
10. The bandwidth optimization method for HBM stacked memory chips according to claim 1, characterized in that: For two HBM access requests with overlapping access address ranges and at least one write request, a completion order constraint is established to ensure that the data visibility time of the later request is no earlier than that of the earlier request. The refresh transaction is established as an internal complete resource time demand trajectory with the latest start time, and the resource demand corresponding to this trajectory is reserved in the future legal capacity. The legal start position of ordinary access requests is restricted according to the latest start time of the refresh transaction. When a command node in the committed trajectory fails to execute at the planned time due to a refresh event, error recovery event, or ECC retry event, the command node that has already been executed in the committed trajectory is retained. The remaining resource time demand trajectory corresponding to the command node that has not yet been executed is regenerated according to the current HBM state. The unused future legal capacity in the original committed trajectory is released, and the complete trajectory admission is re-executed for the remaining resource time demand trajectory.
