Pipeline stage back pressure control method and device
By presetting fixed pipeline stages and combinatorial logic processing of simultaneous input and output buffers, the problem of backpressure timing in multi-depth pipelines is solved, the signal transmission path is simplified, design efficiency and stability are improved, and frequent adjustments to the bypass buffer are avoided. needs.
Patent Information
- Application Number
- CN202410842035.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-26
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2044-06-26
AI Technical Summary
Existing pipeline backpressure technology is difficult to effectively solve the backpressure timing problem of multi-depth pipelines, especially when the design complexity increases and the iterative optimization process requires frequent adjustment of the bypass buffer, resulting in a waste of time and energy.
Receive the upstream effective signal by preset fixed pipeline stage and same-input and same-output buffer, generate a fixed pipeline-level backpressure signal and a same-input and same-output buffer backpressure signal, and generate the upstream backpressure signal based on combinational logic to ensure the connection between different pipeline stages. There is no pause in between, simplifying the transmission path of the back pressure signal.
The transmission timing of the backpressure signal downstream of the pipeline stage is improved, reducing the workload of design iteration and optimization, significantly cutting off the backpressure path, and improving the efficiency and stability of the design.
Smart Images

Figure CN118426512B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of pipeline back pressure, and in particular, to a pipeline stage back pressure control method and device. Background Art
[0002] At present, in order to solve the problem of back pressure timing of multi-depth pipelines, pipeline back pressure is usually performed through the following two methods: first, when designing the pipeline, the number of pipeline stages is controlled to be relatively small to ensure that the back pressure of the pipeline stage is not a critical path. However, this method is only applicable to pipelines with less depth and lower design complexity, and cannot meet the current application scenarios where the pipeline depth is increasing due to the increase in design complexity; second, a bypass buffer is added in the middle of the deep pipeline to cut off the back pressure. However, this method faces the following problems: during the iteration and optimization of the design, the position of the bypass buffer needs to be continuously adjusted, and each adjustment takes a lot of time and effort. Summary of the invention
[0003] In an embodiment of the present application, a pipeline stage back pressure control method and device are provided.
[0004] A first aspect of an embodiment of the present application provides a pipeline back pressure control method, comprising:
[0005] Receiving an upstream valid signal through a preset fixed pipeline stage, and receiving an upstream valid signal through a preset same-input and same-output buffer, wherein the preset same-input and same-output buffer has the same depth as the preset fixed pipeline stage, and there is no pause between different pipeline stages in the preset fixed pipeline stage;
[0006] Based on the preset fixed pipeline stage and the preset simultaneous-input and simultaneous-output buffer, respectively, outputting the fixed pipeline stage effective signal and the simultaneous-input and simultaneous-output buffer effective signal according to the upstream effective signal;
[0007] Obtain a downstream back pressure signal, and generate a fixed pipeline level back pressure signal according to the downstream back pressure signal;
[0008] Generate a same-in and same-out buffer back pressure signal according to a fixed pipeline stage back pressure signal and a fixed pipeline stage effective signal;
[0009] Based on the combinatorial logic of the preset COIO buffer, an upstream backpressure signal is generated according to the COIO buffer backpressure signal and the COIO buffer non-full state signal, and sent to the upstream to process the data of the preset fixed pipeline level.
[0010] In an optional embodiment of the present application, the depth of the preset co-input and co-output buffer and the preset fixed pipeline level is the amount of stored data.
[0011] In an optional embodiment of the present application, the method of outputting a fixed pipeline level valid signal and a simultaneous-input and simultaneous-output buffer valid signal according to an upstream valid signal based on a preset fixed pipeline level and a preset simultaneous-input and simultaneous-output buffer, respectively, includes:
[0012] Input the upstream valid signal into the first register of the preset fixed pipeline stage to obtain the output signal of the first register, cyclically execute the step of inputting the output signal of the M-1th register into the Mth register to obtain the output signal of the Mth register, and use the output signal of the Mth register at the depth of the preset fixed pipeline stage as the fixed pipeline stage valid signal, wherein the value of M is 2 to the depth of the preset fixed pipeline stage;
[0013] The upstream valid signal is input into any register of the preset simultaneous input and output buffer. When any register among all the registers has an output, any existing output is used as the simultaneous input and output buffer valid signal.
[0014] In an optional embodiment of the present application, generating a same-input and same-output buffer back pressure signal according to a fixed pipeline stage back pressure signal and a fixed pipeline stage valid signal includes:
[0015] When the fixed pipeline stage back pressure signal or the fixed pipeline stage valid signal is 1, a same-input and same-output buffer back pressure signal is generated, wherein the same-input and same-output buffer back pressure signal is 1.
[0016] In an optional embodiment of the present application, the method of generating an upstream back pressure signal based on a preset combinational logic of a co-input and co-output buffer according to a back pressure signal of the co-input and co-output buffer and a non-full state signal of the co-input and co-output buffer includes:
[0017] When the CIEO buffer backpressure signal or the CIEO buffer non-full state signal is 1, an upstream backpressure signal is generated, wherein the upstream backpressure signal is 1.
[0018] In an optional embodiment of the present application, the processing of data of a preset fixed pipeline level includes:
[0019] Input data and read execution results for preset fixed pipeline stages at the same time.
[0020] In an optional embodiment of the present application, the method further includes: when the depth of the preset fixed pipeline stage is increased or decreased, the depth of the preset same-input and same-output buffer is correspondingly increased or decreased.
[0021] A second aspect of an embodiment of the present application provides a pipeline stage back pressure control device, comprising:
[0022] A preset fixed pipeline stage is used to receive an upstream valid signal, output a fixed pipeline stage valid signal according to the upstream valid signal, obtain a downstream back pressure signal, and generate a fixed pipeline stage back pressure signal according to the downstream back pressure signal, wherein in the preset fixed pipeline stage, there is no pause between different pipeline stages;
[0023] A preset same-in-one-out buffer is used to receive an upstream valid signal, wherein the preset same-in-one-out buffer has the same depth as a preset fixed pipeline stage, outputs a same-in-one-out buffer valid signal according to the upstream valid signal, generates a same-in-one-out buffer back pressure signal according to the fixed pipeline stage back pressure signal and the fixed pipeline stage valid signal, and based on the combinational logic of the preset same-in-one-out buffer, generates an upstream back pressure signal according to the same-in-one-out buffer back pressure signal and the same-in-one-out buffer non-full state signal, and sends it to the upstream to process the data of the preset fixed pipeline stage.
[0024] In an optional embodiment of the present application, the first register of the preset fixed pipeline stage is used to obtain the output signal of the first register according to the upstream valid signal, and the Mth register of the preset fixed pipeline stage is used to obtain the output signal of the Mth register according to the output signal of the M-1th register, and the output signal of the Mth register at the depth of the preset fixed pipeline stage is used as the fixed pipeline stage valid signal, wherein the value of M is 2 to the depth of the preset fixed pipeline stage;
[0025] Any one of the preset SIMO buffer registers is used to receive an upstream valid signal. When any one of all the registers has an output, any existing output is used as a SIMO buffer valid signal. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0027] Figure 1 A flow chart of a pipeline back pressure control method provided by an embodiment of the present application;
[0028] Figure 2 A signal flow diagram of a pipeline stage of a preset fixed pipeline stage provided by an embodiment of the present application;
[0029] Figure 3 A signal flow diagram of a preset fixed pipeline level provided for one embodiment of the present application;
[0030] Figure 4 A signal flow diagram of a preset same-input and same-output buffer provided in one embodiment of the present application;
[0031] Figure 5 A signal flow diagram of a bypass buffer provided by one embodiment of the present application;
[0032] Figure 6 A schematic diagram of the structure of a pipeline stage back pressure control device provided in one embodiment of the present application;
[0033] Figure 7 A schematic diagram of the computer device structure provided for one embodiment of the present application. DETAILED DESCRIPTION
[0034] In the process of implementing the present application, the inventors found that the current pipeline-level back pressure technology cannot solve the back pressure timing problem of multi-depth pipelines.
[0035] In view of the above problems, a pipeline stage back pressure control method is provided in an embodiment of the present application, which receives an upstream valid signal through a preset fixed pipeline stage, and receives an upstream valid signal through a preset same-input and same-output buffer, wherein the preset same-input and same-output buffer has the same depth as the preset fixed pipeline stage, and there is no pause between different pipeline stages in the preset fixed pipeline stage; based on the preset fixed pipeline stage and the preset same-input and same-output buffer, respectively, a fixed pipeline stage valid signal and a same-input and same-output buffer valid signal are output according to the upstream valid signal; a downstream back pressure signal is obtained, and a fixed pipeline stage back pressure signal is generated according to the downstream back pressure signal; and a fixed pipeline stage back pressure signal is generated according to the fixed pipeline stage. The pipeline stage back pressure signal and the fixed pipeline stage valid signal generate a same-in-and-out buffer back pressure signal; based on the combinational logic of the preset same-in-and-out buffer, an upstream back pressure signal is generated according to the same-in-and-out buffer back pressure signal and the same-in-and-out buffer non-full state signal, and sent to the upstream to process the data of the preset fixed pipeline stage. The pipeline stage downstream back pressure signal of the preset fixed pipeline stage only needs to be transmitted to the upstream of the preset fixed pipeline stage through one combinational logic, and there is no need to pass through multiple combinational logics of the preset fixed pipeline stage. The transmission timing of the pipeline stage downstream back pressure signal can be improved, and the back pressure timing problem of multi-depth pipelines can be solved.
[0036] The solutions in the embodiments of the present application can be implemented using various computer languages, for example, the object-oriented programming language Java and the interpreted scripting language JavaScript.
[0037] In order to make the technical solutions and advantages in the embodiments of the present application more clearly understood, the exemplary embodiments of the present application are further described in detail below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present application, rather than an exhaustive list of all the embodiments. It should be noted that the embodiments in the present application and the features in the embodiments can be combined with each other without conflict.
[0038] See also Figure 1 , the pipeline back pressure control method provided by the embodiment of the present application includes:
[0039] S1, receiving an upstream valid signal through a preset fixed pipeline stage, and receiving an upstream valid signal through a preset same-input and same-output buffer, wherein the preset same-input and same-output buffer has the same depth as the preset fixed pipeline stage, and in the preset fixed pipeline stage, there is no pause between different pipeline stages.
[0040] In an optional embodiment of the present application, the preset fixed pipeline stage may be a digital signal processor or a register transfer stage circuit with a constant number of pipeline stages, wherein in the preset fixed pipeline stages, there is no pause between different pipeline stages.
[0041] In an optional embodiment of the present application, the depth of the preset co-input and co-output buffer and the preset fixed pipeline level is the amount of stored data.
[0042] In an optional embodiment of the present application, one of the preset fixed pipeline levels is as follows: Figure 2 As shown, i_valid is the input signal of the current pipeline stage, Reg is the register of the current pipeline stage, O_valid is the output signal of the current pipeline stage, O_ready is the back pressure signal fed back by the next pipeline stage of the current pipeline stage, ~o_valid is the negated value of O_valid, and i_ready is the back pressure signal fed back by the current pipeline stage obtained after O_ready passes through the combinational logic. The combinational logic is a logic gate or gate. Figure 2 The relationship between different signals is as follows:
[0043] O_valid = vld_r.
[0044] I_ready = ~vld_r | o_ready.
[0045] In an optional embodiment of the present application, the preset fixed pipeline level is as follows: Figure 3 As shown, it is composed of multiple Figure 2 The single pipeline stages shown are connected.
[0046] In an optional embodiment of the present application, the preset same-in and same-out buffer is as follows: Figure 4 As shown, it includes multiple registers and a combinational logic, wherein the registers are used to transmit upstream valid signals, and the combinational logic is used to process and transmit downstream backpressure signals.
[0047] S2, based on the preset fixed pipeline stage and the preset SIMIO buffer, output the fixed pipeline stage valid signal and the SIMIO buffer valid signal according to the upstream valid signal.
[0048] In an optional embodiment of the present application, the method of outputting a fixed pipeline level valid signal and a simultaneous-input and simultaneous-output buffer valid signal according to an upstream valid signal based on a preset fixed pipeline level and a preset simultaneous-input and simultaneous-output buffer, respectively, includes:
[0049] Input the upstream valid signal into the first register of the preset fixed pipeline stage to obtain the output signal of the first register, cyclically execute the step of inputting the output signal of the M-1th register into the Mth register to obtain the output signal of the Mth register, and use the output signal of the Mth register at the depth of the preset fixed pipeline stage as the fixed pipeline stage valid signal, wherein the value of M is 2 to the depth of the preset fixed pipeline stage;
[0050] The upstream valid signal is input into any register of the preset simultaneous input and output buffer. When any register among all the registers has an output, any existing output is used as the simultaneous input and output buffer valid signal.
[0051] S3, obtaining a downstream back pressure signal, and generating a fixed pipeline level back pressure signal according to the downstream back pressure signal.
[0052] In an optional embodiment of the present application, based on a logical combination of preset fixed pipeline levels, the downstream back pressure signal generates a fixed pipeline level back pressure signal.
[0053] S4, generating a same-in and same-out buffer back pressure signal according to the fixed pipeline stage back pressure signal and the fixed pipeline stage valid signal.
[0054] In an optional embodiment of the present application, generating a same-input and same-output buffer back pressure signal according to a fixed pipeline stage back pressure signal and a fixed pipeline stage valid signal includes:
[0055] When the fixed pipeline stage back pressure signal or the fixed pipeline stage valid signal is 1, a same-input and same-output buffer back pressure signal is generated, wherein the same-input and same-output buffer back pressure signal is 1.
[0056] S5, based on the combinational logic of the preset COIO buffer, an upstream backpressure signal is generated according to the COIO buffer backpressure signal and the COIO buffer non-full state signal, and sent to the upstream to process the data of the preset fixed pipeline level.
[0057] In an optional embodiment of the present application, the combinational logic may be a logic gate or a gate.
[0058] In an optional embodiment of the present application, the method of generating an upstream back pressure signal based on a preset combinational logic of a co-input and co-output buffer according to a back pressure signal of the co-input and co-output buffer and a non-full state signal of the co-input and co-output buffer includes:
[0059] When the CIEO buffer backpressure signal or the CIEO buffer non-full state signal is 1, an upstream backpressure signal is generated, wherein the upstream backpressure signal is 1.
[0060] In an optional embodiment of the present application, the processing of data of a preset fixed pipeline level includes:
[0061] Input data and read execution results for preset fixed pipeline stages at the same time.
[0062] In an optional embodiment of the present application, the method further includes: when the depth of the preset fixed pipeline stage is increased or decreased, the depth of the preset same-input and same-output buffer is correspondingly increased or decreased.
[0063] See also Figure 5 , Figure 3 The preset fixed pipeline stages shown and Figure 4 The signal transmission process between the preset same-input and same-output buffers shown is as follows: the preset fixed pipeline stage and the preset same-input and same-output buffer both receive the data output signal i_valid sent from the upstream, and the multiple registers of the preset fixed pipeline stage process the data output signal i_valid to obtain the data output signal o_valid of the preset fixed pipeline stage, and the multiple registers of the preset same-input and same-output buffer process the data output signal Fifo_i_valid to obtain the data output signal Fifo_o_valid of the preset same-input and same-output buffer, and the downstream feeds back the data receivable signal o_ready, and the preset same-input and same-output buffer receives and inputs the data receivable signal o_ready and the data output signal o_valid of the preset fixed pipeline stage into the logic gate to obtain the data receivable signal Fifo_i_ready of the preset fixed pipeline stage, and when Fifo_i_ready, o_valid, o_ready and i_valid are all 1, the preset fixed pipeline stage receives the data from the upstream and sends the data to the downstream at the same time.
[0064] In this application, Fifo_i_ready is used to replace the original i_ready timing path, which greatly reduces the back pressure path of the ready signal, utilizes less area, and achieves timing improvement. In the process of design iteration and optimization of fixed pipeline levels, it does not affect the original design, does not bring additional work, and the effect of cutting off the back pressure is obvious.
[0065] It should be understood that, although the various steps in the flow chart are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear description in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a portion of the steps in the figure may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these sub-steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
[0066] See also Figure 6 , an embodiment of the present application provides a pipeline stage back pressure control device, comprising:
[0067] A preset fixed pipeline stage is used to receive an upstream valid signal, output a fixed pipeline stage valid signal according to the upstream valid signal, obtain a downstream back pressure signal, and generate a fixed pipeline stage back pressure signal according to the downstream back pressure signal, wherein in the preset fixed pipeline stage, there is no pause between different pipeline stages;
[0068] A preset same-in-one-out buffer is used to receive an upstream valid signal, wherein the preset same-in-one-out buffer has the same depth as a preset fixed pipeline stage, outputs a same-in-one-out buffer valid signal according to the upstream valid signal, generates a same-in-one-out buffer back pressure signal according to the fixed pipeline stage back pressure signal and the fixed pipeline stage valid signal, and based on the combinational logic of the preset same-in-one-out buffer, generates an upstream back pressure signal according to the same-in-one-out buffer back pressure signal and the same-in-one-out buffer non-full state signal, and sends it to the upstream to process the data of the preset fixed pipeline stage.
[0069] In an optional embodiment of the present application, the first register of the preset fixed pipeline stage is used to obtain the output signal of the first register according to the upstream valid signal, and the Mth register of the preset fixed pipeline stage is used to obtain the output signal of the Mth register according to the output signal of the M-1th register, and the output signal of the Mth register at the depth of the preset fixed pipeline stage is used as the fixed pipeline stage valid signal, wherein the value of M is 2 to the depth of the preset fixed pipeline stage;
[0070] Any one of the preset SIMO buffer registers is used to receive an upstream valid signal. When any one of all the registers has an output, any existing output is used as a SIMO buffer valid signal.
[0071] For the specific definition of the above-mentioned pipeline back pressure control device, please refer to the definition of the pipeline back pressure control method above, which will not be repeated here. Each module in the above-mentioned pipeline back pressure control device can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0072] In one embodiment, a computer device is provided, the internal structure diagram of which can be as follows: Figure 7 As shown. The computer device includes a processor, a memory, a network interface and a database connected via a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data. The network interface of the computer device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, a pipeline back pressure control method as described above is implemented. It includes: a memory and a processor, the memory stores a computer program, and when the processor executes the computer program, any step in the above method is implemented.
[0073] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, any step in the above pipeline backpressure control method can be implemented.
[0074] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0075] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0076] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0077] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0078] Although the preferred embodiments of the present application have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present application.
[0079] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. A pipeline back pressure control method, characterized in that: include: Receiving an upstream valid signal through a preset fixed pipeline stage, and receiving an upstream valid signal through a preset same-input and same-output buffer, wherein the preset same-input and same-output buffer has the same depth as the preset fixed pipeline stage, and there is no pause between different pipeline stages in the preset fixed pipeline stage; Based on the preset fixed pipeline stage and the preset simultaneous-input and simultaneous-output buffer, respectively, outputting the fixed pipeline stage effective signal and the simultaneous-input and simultaneous-output buffer effective signal according to the upstream effective signal; Obtain a downstream back pressure signal, and generate a fixed pipeline level back pressure signal according to the downstream back pressure signal; Generate a same-in and same-out buffer back pressure signal according to a fixed pipeline stage back pressure signal and a fixed pipeline stage effective signal; Based on the combinational logic of the preset COIO buffer, an upstream backpressure signal is generated according to the COIO buffer backpressure signal and the COIO buffer non-full state signal, and sent to the upstream to process the data of the preset fixed pipeline level. The method of generating an upstream back pressure signal based on a preset combinational logic of a COEO buffer and a COEO buffer back pressure signal and a COEO buffer non-full state signal comprises: When the CIEO buffer backpressure signal or the CIEO buffer non-full state signal is 1, an upstream backpressure signal is generated, wherein the upstream backpressure signal is 1.
2. The method according to claim 1, characterized in that The depth of the preset COIO buffer and the preset fixed pipeline level is the amount of stored data.
3. The method according to claim 2, characterized in that The method is based on a preset fixed pipeline stage and a preset simultaneous-input and simultaneous-output buffer, and outputs a fixed pipeline stage valid signal and a simultaneous-input and simultaneous-output buffer valid signal according to an upstream valid signal, including: Inputting the upstream valid signal into the first register of the preset fixed pipeline stage to obtain the output signal of the first register, cyclically executing the step of inputting the output signal of the M-1th register into the Mth register to obtain the output signal of the Mth register, and taking the output signal of the last register of the preset fixed pipeline stage as the valid signal of the fixed pipeline stage, wherein the serial number of the last register in the preset fixed pipeline stage is the depth of the preset fixed pipeline stage, wherein the value of M is 2 to the depth of the preset fixed pipeline stage; The upstream valid signal is input into any register of the preset simultaneous input and output buffer. When any register among all the registers has an output, any existing output is used as the simultaneous input and output buffer valid signal.
4. The method according to claim 1, characterized in that: The generating of the same-input and same-output buffer back pressure signal according to the fixed pipeline stage back pressure signal and the fixed pipeline stage effective signal comprises: When the fixed pipeline stage back pressure signal or the fixed pipeline stage valid signal is 1, a same-input and same-output buffer back pressure signal is generated, wherein the same-input and same-output buffer back pressure signal is 1.
5. The method according to claim 1, characterized in that The processing of the data of the preset fixed pipeline level includes: Input data and read execution results for the preset fixed pipeline stages at the same time.
6. The method according to claim 1, characterized in that The method further includes: when the depth of the preset fixed pipeline stage is increased or decreased, the depth of the preset co-input and co-output buffer is correspondingly increased or decreased.
7. A pipeline stage back pressure control device, characterized in that: include: A preset fixed pipeline stage is used to receive an upstream valid signal, output a fixed pipeline stage valid signal according to the upstream valid signal, obtain a downstream back pressure signal, and generate a fixed pipeline stage back pressure signal according to the downstream back pressure signal, wherein in the preset fixed pipeline stage, there is no pause between different pipeline stages; A preset same-in-one-out buffer is used to receive an upstream valid signal, wherein the preset same-in-one-out buffer has the same depth as a preset fixed pipeline stage, outputs a same-in-one-out buffer valid signal according to the upstream valid signal, generates a same-in-one-out buffer backpressure signal according to a fixed pipeline stage backpressure signal and a fixed pipeline stage valid signal, and based on the combinational logic of the preset same-in-one-out buffer, generates an upstream backpressure signal according to the same-in-one-out buffer backpressure signal and a same-in-one-out buffer non-full state signal, and sends the upstream to process the data of the preset fixed pipeline stage. The method of generating an upstream back pressure signal based on a preset combinational logic of a COEO buffer and a COEO buffer back pressure signal and a COEO buffer non-full state signal comprises: When the CIEO buffer backpressure signal or the CIEO buffer non-full state signal is 1, an upstream backpressure signal is generated, wherein the upstream backpressure signal is 1.
8. The device according to claim 7, characterized in that The depth of the preset COIO buffer and the preset fixed pipeline level is the amount of stored data.
9. The device according to claim 8, characterized in that The first register of the preset fixed pipeline stage is used to obtain the output signal of the first register according to the upstream valid signal, the Mth register of the preset fixed pipeline stage is used to obtain the output signal of the Mth register according to the output signal of the M-1th register, and the output signal of the last register of the preset fixed pipeline stage is used as the valid signal of the fixed pipeline stage, and the sequence number of the last register in the preset fixed pipeline stage is the depth of the preset fixed pipeline stage, wherein the value of M is 2 to the depth of the preset fixed pipeline stage; Any one of the preset SIMO buffer registers is used to receive an upstream valid signal. When any one of all the registers has an output, any existing output is used as a SIMO buffer valid signal.
Citation Information
Patent Citations
Data processing system and method for task scheduling in a data processing system
CN103765384A
Forward bypass buffer circuit
CN109376098A
