A data transmission update module and a data transmission update method
By designing the data transmission update module and using the clock signals of the comparison unit and the handshake unit to update the data, the problem of the asynchronous circuit handshake unit occupying a large area and low throughput rate is solved, and the effects of reducing power consumption and improving throughput rate are achieved.
Patent Information
- Application Number
- CN202311223010.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-19
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2043-09-19
AI Technical Summary
The handshake unit of the existing asynchronous circuit occupies a large area and has a low throughput rate, and cannot effectively solve the problem of high power consumption of the clock tree of the synchronous circuit.
A data transmission update module is designed, including a transmission unit, a comparison unit and a handshake unit. By comparing the input and output data, a high level is generated when the data is inconsistent. After delay processing, the clock signal fire is output to drive the transmission unit to update the data. A D flip-flop is used. , XOR gates and latches and other components to achieve asynchronous updates of data transmission.
Minimize circuit flipping, reduce power consumption, and improve throughput. The fire signal is generated through the latch to reduce area occupation. Two-phase single-rail data transmission is used to improve throughput.
Smart Images

Figure CN117313614B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data output updating, and more specifically, to a data transmission updating module and a data transmission updating method. Background Art
[0002] With the development of the integrated circuit industry, the scale of chip integration is increasing. At present, people are mainly focusing on synchronous digital integrated circuits. In synchronous digital systems, all state flips occur at the transition edge of the synchronous clock, and the system state is stored in the register. Synchronous circuits have a complete design process and mature EDA tools, and they dominate digital large-scale integrated circuits. However, due to their clock offset, large deviations at different process angles, and high global clock power consumption, people have turned their attention to asynchronous circuits. Asynchronous circuits have low power consumption because they do not have a global clock. At the same time, because they are event-driven circuits, they essentially avoid the problem of clock offset. Because the pipeline levels can be uneven, they also have a larger margin than synchronous circuits at different process angles, making the circuit more stable and running faster.
[0003] Existing asynchronous handshake units are generally based on dual-rail circuits or muller C units and triggers, occupying a large area and having a low throughput. Summary of the invention
[0004] The present invention aims at the technical problems of large circuit area occupation and low throughput in the prior art, and provides a data transmission update module and a data transmission update method.
[0005] According to a first aspect of the present invention, there is provided a data transmission update module, comprising a transmission unit, a comparison unit and a handshake unit;
[0006] The comparison unit is used to compare the input data and the output data of the transmission unit, and when the input data and the output data are inconsistent, output a high level and input the high level into the handshake unit;
[0007] The handshake unit is used to output a high-level clock signal fire after delay processing according to the high level input by the comparison unit. The high-level clock signal fire drives the transmission unit to turn on, allowing an input signal different from the output signal to pass through, so as to update the transmitted data.
[0008] Based on the above technical solution, the present invention can also make the following improvements.
[0009] Optionally, the transmission unit is a D flip-flop, the comparison unit is an XOR gate, the D terminal and Q terminal of the D flip-flop are respectively connected to two input terminals of the XOR gate, wherein the D terminal of the D flip-flop is the data input terminal, and the Q terminal is the data output terminal.
[0010] Optionally, the handshake unit includes a latch, the output of the XOR gate is connected to the first input of the AND gate through a first delay, the in_ack signal is connected to the second input of the AND gate through a NOT gate, the output of the AND gate is connected to the EN end of the latch, the D end of the latch is connected to 1'b1, 1'b1 is a high level, the Q output of the latch is connected to the RST end of the latch through a second delay, the Q output of the latch is also connected to the clock control end and the out_ack end of the D flip-flop, wherein the output out_ack signal is used to control the operation of the previous level transmission unit to ensure the correct transmission of data, wherein the first delay and the second delay need to perform delay matching according to each level of combinational logic unit.
[0011] According to a second aspect of the present invention, there is provided a data transmission update method, comprising:
[0012] Initialize the clock signal Clk of the clock control terminal of the D flip-flop to a low level;
[0013] The XOR gate is used to detect whether the data at the D and Q ends of the D flip-flop are consistent. If they are inconsistent, the XOR gate output signal in_req is high level;
[0014] The signal in_req enters one input terminal of the AND gate through the first delay device, and the low-level signal in_ack enters the other input terminal of the AND gate through the NOT gate. The AND gate outputs a high level, making the EN terminal of the latch high level. The Q terminal of the latch outputs the clock signal fire, which controls the clock control terminal of the D flip-flop to turn on the D flip-flop, so that the input data of the D terminal of the D flip-flop passes through, completing the update of data transmission.
[0015] According to a third aspect of the present invention, a data transmission update module is provided, comprising a multi-level combinational logic unit, a multi-level D flip-flop, a multi-level comparison unit and a multi-level handshake unit, wherein the data outputted from the Q end of the previous level D flip-flop is connected to the input end of the combinational logic unit of this level, the output end of the combinational logic unit of this level is connected to the D end of the D flip-flop of this level, the Q end of the D flip-flop of this level is connected to the input end of the combinational logic unit of the next level, the D end and the Q end of the D flip-flop of this level are respectively connected to the two input ends of the XOR gate of this level, the output end of the XOR gate of this level is connected to the handshake unit of this level, and the handshake unit of this level outputs a clock signal fire m The clock control terminal of the D flip-flop at this level is given, and the clock signal fire output by the handshake unit at this level mInput into the previous handshake unit to control the clock signal fire output by the previous handshake unit m-1 , the Q end of the last stage D flip-flop outputs data.
[0016] According to a fourth aspect of the present invention, there is provided a data transmission update method, comprising:
[0017] The input data is connected to the D terminal of the first-stage D flip-flop through the first-stage combinational logic unit. According to whether the D-terminal data of the first-stage D flip-flop is consistent with the Q-terminal data, the first-stage handshake unit outputs the corresponding clock signal fire0;
[0018] The Q-end data of the first-stage D flip-flop is connected to the D-end of the second-stage D flip-flop through the second-stage combinational logic unit. According to whether the D-end data and the Q-end data of the second-stage D flip-flop are consistent, the second-stage handshake unit outputs the corresponding clock signal fire1;
[0019] Only when the clock signal fire1 is low, fire0 can be set to 1, turning on the first-stage D flip-flop and allowing new input data to pass;
[0020] And so on, until the new input data is output through the Q end of the last stage D flip-flop.
[0021] The present invention provides a data transmission update module and a data transmission update method, which compare the input and output data of a transmission unit, generate clock pulses when the two are different, and allow new data to pass, thereby minimizing the flipping of the circuit and solving the problem of high power consumption of the synchronous circuit clock tree. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] Figure 1 A schematic diagram of the structure of a data transmission update module provided by an embodiment of the present invention;
[0023] Figure 2 It is a schematic diagram of the structure of the transmission unit and the comparison unit;
[0024] Figure 3 It is a structural diagram of the handshake unit;
[0025] Figure 4 A flowchart of a data transmission update method provided by an embodiment of the present invention;
[0026] Figure 5 A structural diagram of a data transmission update module provided by another embodiment of the present invention;
[0027] Figure 6 A flowchart of a data transmission update method provided by another embodiment of the present invention. DETAILED DESCRIPTION
[0028] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention. In addition, the technical features in the various embodiments or single embodiments provided by the present invention can be arbitrarily combined with each other to form a feasible technical solution. This combination is not subject to the constraints of the sequence of steps and / or the structural composition mode, but must be based on the ability of ordinary technicians in this field to achieve. When the combination of technical solutions is contradictory or cannot be achieved, it should be considered that such a combination of technical solutions does not exist and is not within the scope of protection required by the present invention.
[0029] Figure 1 The present invention provides a data transmission update module, comprising a transmission unit, a comparison unit and a handshake unit. The comparison unit is used to compare the input data and output data of the transmission unit, and when the input data and the output data are inconsistent, the comparison unit outputs a high level and inputs the high level into the handshake unit; the handshake unit is used to output a high level clock signal fire after a delay process according to the high level input by the comparison unit, and the high level clock signal fire drives the transmission unit to start, so that new input data different from the output data passes, so as to update the transmitted data.
[0030] Among them, see Figure 2 ,for Figure 1 The circuit structure of the transmission unit and the comparison unit in the embodiment, wherein the transmission unit is a D flip-flop, the comparison unit is an XOR gate, the D terminal and the Q terminal of the D flip-flop are respectively connected to the two input terminals of the XOR gate, and the output terminal of the XOR gate is connected to the handshake unit, wherein the D terminal of the D flip-flop is the data input terminal, and the Q terminal is the data output terminal. The XOR gate is used to compare the input data of the D terminal of the D flip-flop with the output data of the Q terminal. If the input data is consistent with the output data, the XOR gate outputs a low level; if the input data is inconsistent with the output data, the XOR gate outputs a high level.
[0031] See also Figure 3, is a circuit structure of a handshake unit, the handshake unit includes a latch, the output end of the XOR gate is connected to the first input end of the AND gate through a first delay, the in_ack signal (initial low level) is connected to the second input end of the AND gate through a NOT gate, the output end of the AND gate is connected to the EN end of the latch, the D end of the latch is connected to 1'b1, 1'b1 is a high level, the Q output end of the latch is connected to the RST end of the latch through a second delay, the Q output end of the latch is also connected to the clock control end and the out_ack end of the D flip-flop, wherein the output out_ack signal is connected to the in_ack signal of the previous level handshake unit, which is used to control the operation of the previous level transmission unit to ensure the correct transmission of data, wherein the first delay and the second delay need to perform delay matching according to each level of combinational logic unit.
[0032] See also Figure 4 ,for Figure 1-Figure 3 The working principle flow chart of the data transmission update module includes:
[0033] Step 1, initializing the clock signal Clk of the clock control terminal of the D flip-flop to a low level;
[0034] Step 2, using an XOR gate to detect whether the data at the D end and the Q end of the D flip-flop are consistent. If not, the XOR gate outputs a signal in_req at a high level.
[0035] Step 3, the signal in_req enters one input terminal of the AND gate through the first delay device, and the low-level signal in_ack enters the other input terminal of the AND gate through the NOT gate. The AND gate outputs a high level, making the EN terminal of the latch high level, and the Q terminal of the latch outputs the clock signal fire, which controls the clock control terminal of the D flip-flop to turn on the D flip-flop, so that the new input data at the D terminal of the D flip-flop passes through, completing the update of data transmission.
[0036] Step 4, if the data of the D end and the Q end of the D flip-flop detected by the XOR gate are consistent, it means that the input data has not been updated and is the same as the previous output data, then the XOR gate outputs a low level, then the EN end of the latch is a low level, and the output clock signal fire is a low level, controlling the D flip-flop to be locked and not working.
[0037] See also Figure 5, is a data transmission update module of another embodiment of the present invention, comprising a multi-level combinational logic unit, a multi-level D flip-flop, a multi-level comparison unit and a multi-level handshake unit, the data outputted by the Q end of the previous level D flip-flop is connected to the input end of the combinational logic unit of this level, the output end of the combinational logic unit of this level is connected to the D end of the D flip-flop of this level, the Q end of the D flip-flop of this level is connected to the input end of the combinational logic unit of the next level, the D end and the Q end of the D flip-flop of this level are respectively connected to the two input ends of the AND-OR gate of this level, the output end of the XOR gate of this level is connected to the handshake unit of this level, and the handshake unit of this level outputs a clock signal fire m The clock control terminal of the D flip-flop at this level is given, and the clock signal fire output by the handshake unit at this level m Input into the previous handshake unit to control the clock signal fire output by the previous handshake unit m-1 , the Q end of the last stage D flip-flop outputs data.
[0038] Understandably, Figure 5 The data transmission update module in Figure 1-Figure 3 The system is composed of multiple data transmission update modules cascaded in series. The input data enters the first-level module, passes through multiple cascaded modules, and is output by the last-level module.
[0039] It should be noted that if Figure 5 As shown, for example, when the first-level D flip-flop detects that the input data and the output data are inconsistent, the handshake unit should output a high-level clock signal fire0, so that the new input data passes through the first-level D flip-flop to reach the second-level combinational logic unit. However, at this time, it is necessary to consider whether the second-level D flip-flop is also working. When the clock signal fire1 output by the second-level handshake unit is 1, it indicates that the second-level D flip-flop is also working. If the data of the first-level D flip-flop is also input into the second-level D flip-flop, a chaotic state will occur. Therefore, only when the clock signal fire1 output by the second-level D flip-flop is 0, the first-level handshake unit will output a high-level clock signal fire0, turn on the first-level flip-flop, and allow the new input data to pass through the first-level D flip-flop.
[0040] See also Figure 6 ,for Figure 5 The working principle flow chart of the data transmission update module in FIG. 1 includes:
[0041] Step 1', the input data is connected to the D terminal of the first-stage D flip-flop through the first-stage combinational logic unit, and the first-stage handshake unit outputs the corresponding clock signal fire0 according to whether the D-terminal data and the Q-terminal data of the first-stage D flip-flop are consistent;
[0042] Step 2', the Q-end data of the first-stage D flip-flop is connected to the D-end of the second-stage D flip-flop through the second-stage combinational logic unit, and the second-stage handshake unit outputs the corresponding clock signal fire1 according to whether the D-end data and the Q-end data of the second-stage D flip-flop are consistent;
[0043] Step 3', only when the clock signal fire1 is at a low level, fire0 can be set to 1, turning on the first-stage D flip-flop and allowing new input data to pass;
[0044] Step 4', and so on, until the new input data is output through the Q terminal of the last stage D flip-flop.
[0045] In this embodiment, a 32-bit multiplication and addition unit is used as an example. Figure 2 The asynchronous handshake circuit shown in the figure is simulated and wired on Vivado, including the following steps:
[0046] The input data width is 16 bits, and the input is data_a, data_b. The operation formulas of each level are listed as follows, which are divided into three levels of pipeline. According to the above circuit structure, a handshake unit micro-pipeline structure based on data change is adopted, in which the first-level combinational logic is multiplication, the second-level combinational logic is addition, and the third-level combinational logic is multiplication.
[0047] p0 = data_a*data_b;
[0048] p1=p0[31:16]+p0[15:0];
[0049] p2=p0[31:8]*p0[7:0];
[0050] Use Verilog code to describe the hardware of the circuit. During simulation, the delay units DELAY1 and DELAY2 in the circuit can be manually added with the required delay. The specific physical implementation requires the use of delay chains to complete the RTL design. After adding the xdc file to perform comprehensive wiring on the circuit, you can see the post-simulation waveform to determine whether the function is correct.
[0051] A data transmission update module and a data transmission update method provided by the present invention have the following advantages:
[0052] 1. The present invention generates clock pulses by detecting data changes in the circuit, thereby minimizing circuit flipping and reducing circuit power consumption.
[0053] 2. The present invention uses a latch to generate a fire signal, which saves more area than a handshake unit composed of a trigger.
[0054] 3. The present invention adopts two-phase single-rail data transmission, which has a higher throughput rate than the four-phase circuit.
[0055] It should be noted that in the above embodiments, the description of each embodiment has its own emphasis, and for parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0056] Although the preferred embodiments of the present invention 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 that fall within the scope of the present invention.
[0057] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
Claims
1. A data transmission update module, characterized in that: It includes a transmission unit, a comparison unit and a handshake unit; The comparison unit is used to compare the input data and the output data of the transmission unit, and when the input data and the output data are inconsistent, output a high level and input the high level into the handshake unit; The handshake unit is used to output a high-level clock signal fire after delay processing according to the high-level input of the comparison unit, and the high-level clock signal fire drives the transmission unit to turn on, so that the input signal different from the output signal passes through, so as to update the transmitted data; The transmission unit is a D flip-flop, the comparison unit is an XOR gate, the D terminal and the Q terminal of the D flip-flop are respectively connected to the two input terminals of the XOR gate, wherein the D terminal of the D flip-flop is a data input terminal, and the Q terminal is a data output terminal; The handshake unit includes a latch, the output end of the XOR gate is connected to the first input end of the AND gate through the first delay, the in_ack signal is connected to the second input end of the AND gate through the NOT gate, the output end of the AND gate is connected to the EN end of the latch, the D end of the latch is connected to 1'b1, 1'b1 is a high level, the Q output end of the latch is connected to the RST end of the latch through the second delay, and the Q output end of the latch is also connected to the clock control end and the out_ack end of the D flip-flop, wherein the output out_ack signal is used to control the operation of the previous stage transmission unit to ensure the correct transmission of data, wherein the first delay and the second delay need to perform delay matching according to each stage of combinational logic unit.
2. The data transmission update method based on the data transmission update module according to claim 1, characterized in that: include: Initialize the clock signal Clk of the clock control terminal of the D flip-flop to a low level; The XOR gate is used to detect whether the data at the D and Q ends of the D flip-flop are consistent. If they are inconsistent, the XOR gate output signal in_req is high level; The signal in_req enters one input terminal of the AND gate through the first delay device, and the low-level signal in_ack enters the other input terminal of the AND gate through the NOT gate. The AND gate outputs a high level, making the EN terminal of the latch high level. The Q terminal of the latch outputs the clock signal fire, which controls the clock control terminal of the D flip-flop to turn on the D flip-flop, so that the input data of the D terminal of the D flip-flop passes through, completing the update of data transmission.
3. A data transmission update module, characterized in that: It includes a multi-level combinational logic unit, a multi-level D flip-flop, a multi-level comparison unit and a multi-level handshake unit. The data outputted from the Q end of the previous level D flip-flop is connected to the input end of the combinational logic unit of this level. The output end of the combinational logic unit of this level is connected to the D end of the D flip-flop of this level. The Q end of the D flip-flop of this level is connected to the input end of the combinational logic unit of the next level. The D end and the Q end of the D flip-flop of this level are respectively connected to the two input ends of the XOR gate of this level. The output end of the XOR gate of this level is connected to the handshake unit of this level. The handshake unit of this level outputs a clock signal fire m The clock control terminal of the D flip-flop at this level is given, and the clock signal fire output by the handshake unit at this level m Input into the previous handshake unit to control the clock signal fire output by the previous handshake unit m-1 , the Q end of the last stage D flip-flop outputs data; Also includes: The input data is connected to the D terminal of the first-stage D flip-flop through the first-stage combinational logic unit. According to whether the D-terminal data of the first-stage D flip-flop is consistent with the Q-terminal data, the first-stage handshake unit outputs the corresponding clock signal fire0; The Q-end data of the first-stage D flip-flop is connected to the D-end of the second-stage D flip-flop through the second-stage combinational logic unit. According to whether the D-end data and the Q-end data of the second-stage D flip-flop are consistent, the second-stage handshake unit outputs the corresponding clock signal fire1; Only when the clock signal fire1 is low, fire0 can be set to 1, turning on the first-stage D flip-flop and allowing new input data to pass; And so on, until the new input data is output through the Q end of the last stage D flip-flop.
Citation Information
Patent Citations
Trigger unit for clock gating based on data comparison
CN114417758A
Asynchronous signal transmission circuit and method, chip and electronic equipment
CN116227399A
