CN-122019415-A - Prejudging type request hanging method and device
Abstract
The invention relates to the technical field of digital integrated circuit design, and discloses a method and a device for pre-judging request suspension, wherein the method comprises that a request register sends a pre-judging inquiry request identity of a first writing request to a pre-judging suspension logic processing module in the current clock period, a request cache register sends the inquiry request identity of the first writing request and input cache information to the pre-judging suspension logic processing module in the next clock period, and in the current time period, based on the pre-judging query request identity of the first write-in request, performing cache query, storing a query back pressure result of the first write-in request, based on the query request identity of the first write-in request, acquiring a request downstream register state in the next clock period, generating write-in enabling based on the request downstream register state and the query back pressure result of the current clock period, and storing input cache information based on the write-in enabling. The invention reduces the request blocking rate.
Inventors
- WANG YUXIANG
- YU MEILAN
Assignees
- 太初(无锡)电子科技有限公司
Dates
- Publication Date
- 20260512
- Application Date
- 20251230
Claims (10)
- 1. The pre-judging type request suspension method is characterized by being applied to an integrated digital circuit, wherein the integrated digital circuit comprises a request register, a request cache register, a request downstream register and a pre-judging type suspension logic processing module; The request register acquires a first write-in request in a current clock cycle, sends a pre-judging query request identity of the first write-in request to the pre-judging suspension logic processing module, acquires a second write-in request in a next clock cycle, and sends the pre-judging query request identity of the second write-in request to the pre-judging suspension logic processing module; the request buffer register acquires the first write-in request in the next clock period, and sends the query request identity and the input buffer information of the first write-in request to the pre-judging suspension logic processing module; The pre-judging suspension logic processing module performs cache inquiry based on the pre-judging inquiry request identity of the first writing request in the current time period to obtain an inquiry back pressure result of the first writing request, stores the inquiry back pressure result of the first writing request, performs cache inquiry based on the pre-judging inquiry request identity of the second writing request in the next clock period to obtain an inquiry back pressure result of the second writing request, stores the inquiry back pressure result of the second writing request, and sends the inquiry back pressure result of the first writing request to the request cache register based on the inquiry request identity of the first writing request; The request buffer register acquires a request downstream register state in the next clock cycle, generates write-in enabling based on the request downstream register state and a query back pressure result of the current clock cycle, and sends the write-in enabling to the pre-judging suspension logic processing module; and the pre-judging suspension logic processing module stores the input cache information based on the write-in enabling.
- 2. The method of claim 1, wherein the integrated digital circuit further comprises a response register and a downstream response register, the method further comprising: the pre-judging suspension logic processing module acquires the query response identity of the read response sent by the response register and sends output cache information corresponding to the query response identity of the read response to the response register; The response register acquires the state of the downstream response register, if the state of the downstream response register is ready, write enabling is generated, and the write enabling is sent to the pre-judging suspension logic processing module; and the prejudging suspension logic processing module deletes the output cache information corresponding to the query response identity of the read response based on the writing-out enabling.
- 3. The method of claim 1, wherein the pre-determined suspension logic processing module comprises a suspension space allocation sub-module and a congestion detection sub-module, wherein the pre-determined suspension logic processing module performs a cache query based on a pre-determined query request identity of the first write request in a current time period to obtain a query back pressure result of the first write request, and the method comprises: The suspension space allocation sub-module compares the pre-judging query request identity of the first writing request with the recorded identity in the current time period, allocates a writing number for the pre-judging query request identity of the first writing request based on a comparison result, and sends the writing number to the blocking detection sub-module; And the congestion detection sub-module carries out congestion judgment on the suspension space corresponding to the writing number to obtain a query back pressure result of the first writing request.
- 4. The method of claim 3, wherein the suspension space allocation sub-module compares the pre-determined query request identity of the first write request with the recorded identities during a current time period, and allocates a write number to the pre-determined query request identity of the first write request based on the comparison result, comprising: If the recorded identity is provided with the first write request pre-judging query request identity, acquiring the query request identity of the current clock cycle, and comparing the query request identity of the current clock cycle with the first write request pre-judging query request identity; if the query request identity of the current clock period is equal to the pre-judging query request identity of the first writing request, taking the corresponding suspension space number of the recorded identity as the writing number; Or if the recorded identity mark does not have the pre-judging query request identity mark and the first write-in request, the suspension space allocation submodule takes the number of each free suspension space as the write-in number.
- 5. The method of claim 3, wherein the congestion detection submodule performs congestion judgment on the suspension space corresponding to the write number to obtain a query back pressure result of the first write request, and the method comprises: the blocking detection sub-module acquires the remaining suspensible request quantity of the hanging space corresponding to the writing number and writing-out enabling, inquiring response identification, inquiring request enabling, prejudging inquiring request enabling and writing enabling under the current clock cycle; and the blockage detection submodule predicts the suspensible number of the hanging space corresponding to the writing number based on the residual suspensible request number of the hanging space, the writing-out enabling, the query response identity, the query request enabling, the pre-judging query request enabling and the writing enabling to obtain a query back pressure result of the first writing request.
- 6. The method of claim 5, wherein the congestion detection sub-module performs congestion determination on a suspension space corresponding to the write number, further comprising: the blocking detection submodule acquires the number of different identity mark requests which can be suspended; and the blockage detection submodule predicts the suspensible number of the hanging space corresponding to the writing number based on the residual suspensible different identity mark request number, the writing enabling, the query response identity mark, the query request enabling, the prejudging query request enabling and the writing enabling to obtain a query back pressure result of the first writing request.
- 7. The pre-judging type request suspension device is characterized by comprising a request register, a request cache register, a request downstream register and a pre-judging type suspension logic processing module; The request register is used for acquiring a first write-in request in a current clock cycle, sending a pre-judging query request identity of the first write-in request to the pre-judging suspension logic processing module, acquiring a second write-in request in a next clock cycle, and sending the pre-judging query request identity of the second write-in request to the pre-judging suspension logic processing module; The request cache register is used for acquiring the first write-in request in the next clock period, and sending the query request identity of the first write-in request and the input cache information to the pre-judging suspension logic processing module; The pre-judging suspension logic processing module is used for carrying out cache inquiry based on the pre-judging inquiry request identity of the first writing request in the current time period to obtain the inquiry back pressure result of the first writing request, storing the inquiry back pressure result of the first writing request, carrying out cache inquiry based on the pre-judging inquiry request identity of the second writing request in the next clock period to obtain the inquiry back pressure result of the second writing request, storing the inquiry back pressure result of the second writing request, sending the inquiry back pressure result of the first writing request to the request cache register based on the inquiry back pressure identity of the first writing request, The request buffer register is used for acquiring a request downstream register state in the next clock cycle, generating write-in enabling based on the request downstream register state and the query back pressure result of the current clock cycle, and sending the write-in enabling to the pre-judging suspension logic processing module; The pre-judging suspension logic processing module is used for storing the input cache information based on the write-in enabling.
- 8. An electronic device, comprising: A memory and a processor, the memory and the processor being communicatively coupled to each other, the memory having stored therein computer instructions, the processor executing the computer instructions to perform the pre-determined request suspension method of any one of claims 1 to 6.
- 9. A computer-readable storage medium having stored thereon computer instructions for causing a computer to perform the pre-determined request suspension method of any one of claims 1 to 6.
- 10. A computer program product comprising computer instructions for causing a computer to perform the pre-determined request suspension method of any one of claims 1 to 6.
Description
Prejudging type request hanging method and device Technical Field The invention relates to the technical field of digital integrated circuit design, in particular to a pre-judging type request hanging method and device. Background In the field of digital integrated circuit design, along with continuous improvement of chip performance requirements, a high-bandwidth multi-request scene is becoming more common, in order to realize efficient parallel processing of multiple requests, a cache feasibility query is required to be executed on a storage space first for a request to be processed, when the storage space meets a cache condition, a system temporarily stores request data into the space, and after a target write response is fed back to the system, corresponding request data is deleted from the storage space. However, in the related request suspension processing method, in a multi-request parallel processing scenario, after a single request finishes a cache feasibility query and a data writing operation, the next request is processed, so that the request blocking rate is higher. Disclosure of Invention The invention provides a pre-judging type request hanging method and device, which are used for solving the problem of high request blocking rate. In a first aspect, the invention provides a pre-determined request suspension method applied to an integrated digital circuit, wherein the integrated digital circuit comprises a request register, a request cache register, a request downstream register and a pre-determined suspension logic processing module; The request register acquires a first write-in request in the current clock cycle, sends a pre-judging query request identity of the first write-in request to the pre-judging suspension logic processing module, acquires a second write-in request in the next clock cycle, and sends the pre-judging query request identity of the second write-in request to the pre-judging suspension logic processing module; The request buffer register acquires a first write-in request in the next clock period, and transmits the query request identity of the first write-in request and input buffer information to the pre-judging suspension logic processing module; The method comprises the steps that a pre-judging suspension logic processing module performs cache inquiry based on a pre-judging inquiry request identity of a first writing request in a current time period to obtain an inquiry back pressure result of the first writing request, stores the inquiry back pressure result of the first writing request, performs cache inquiry based on a pre-judging inquiry request identity of a second writing request in a next clock period to obtain an inquiry back pressure result of the second writing request, stores the inquiry back pressure result of the second writing request, and sends the inquiry back pressure result of the first writing request to a request cache register based on the inquiry request identity of the first writing request; The request cache register acquires the state of a request downstream register in the next clock cycle, generates write-in enabling based on the state of the request downstream register and the query back pressure result of the current clock cycle, and sends the write-in enabling to the pre-judging suspension logic processing module; The pre-determined suspension logic processing module stores the input cache information based on the write enable. The pre-judging request hanging method provided by the embodiment obtains a first writing request in a current clock period through a request register, sends a pre-judging query request identity of the first writing request to a pre-judging hanging logic processing module, obtains a second writing request in a next clock period, requests a cache register to obtain the first writing request in the next clock period, sends the query request identity of the first writing request and input cache information, and the pre-judging hanging logic processing module performs cache query based on the pre-judging query request identity of the first writing request in the current time period to obtain a query back pressure result of the first writing request, stores the query back pressure result of the first writing request in the next clock period, performs cache query based on the pre-judging query request identity of the second writing request, stores the query back pressure result of the second writing request, sends the query back pressure result of the first writing request to the request register based on the query back pressure identity of the first writing request, realizes that the query back pressure result of the first writing request is sent to the cache request, and the cache register can be simultaneously reduced in the same time period and the cache register based on the pre-judging back pressure request, and the cache back pressure logic processing module can simultaneously reduce the consumption of the query