The invention relates to a storage device controlled by a clock, and particularly to a dynamic D flip-flop, and a data operation unit, a chip, a hash board and a computing device using the same.
Virtual currency (e.g., BTC, ETH) is a digital currency in the form of P2P, and since launching of BTC system in 2009, the virtual currency has attracted widespread attention. The system constructs a distributed shared general ledger based on a block chain, thereby ensuring safety, reliability and decentration of system operation.
In terms of hash operation and proof of work, BTC is an only correct hash obtained by computation to prove the proof of work, thereby obtaining bookkeeping package block weight, so an award is acquired, and this is the proof of work (Pow).
Currently, except brute-force computation, no effective algorithm is still available for hash operation. Mining BTC starts from low cost hardware of CPU or GPU, but with population of BTC, the process of mining has a great change. Now, mining activities are transferred to field-programmable gate array (FPGA) or application specific integrated circuit (ASIC), and mining efficiency of such FPGA or ASIC mining mode is extremely high.
The D flip-flops have a very extensive application, and can be applied for registers, shift registers, frequency division and waveform generators of digital signals. The D flip-flop has two inputs of data (Data) and clock (CLK), and one output (Q), and data can be written into or read from the D flip-flop.
CN1883116A discloses a positive feed-back D flip-flop circuit 106 shown in
As for a new generation computing device for mining virtual digital currency, the process of mining is a production line for performing a large amount of repetitive logic computation, so several D flip-flops are required for storing data. Therefore, in the computing device with a large number of D flip-flops, disadvantages of an increased chip area, a slow operation speed, and difficulty in controlling electric leakage exist.
CN1883116A further discloses a dynamic D flip-flop circuit 102 shown in
In the dynamic D flip-flop, the inverter 202 and the analog switch 204 are separately configured, and have problems of difficulty in controlling the analog switch, and a slow access speed.
To solve the above problems, the invention provides a dynamic D flip-flop for a computing device, which can effectively reduce chip area, power consumption, and logic delay.
To realize the object, the invention provides a dynamic D flip-flop, comprising:
an input terminal, an output terminal and at least one clock signal terminal;
a first latch unit for transmitting data of the input terminal and latching the data under control of a clock signal;
a second latch unit for latching data of the output terminal and inversely transmitting the data latched by the first latch unit under control of a clock signal; and
an output driving unit for inverting and outputting the data received from the second latch unit;
the first latch unit, the second latch unit and the output driving unit being sequentially connected in series between the input terminal and the output terminal;
wherein the second latch unit outputs in high level, low level and high impedance states by means of a single element under control of a clock signal.
In the dynamic D flip-flop, the second latch unit is a three-state inverter.
In the dynamic D flip-flop, the three-state inverter further comprises a first PMOS transistor, a second PMOS transistor, a first NMOS transistor and a second NMOS transistor sequentially connected in series between a power supply and ground.
In the dynamic D flip-flop, the first PMOS transistor and the second NMOS transistor perform switch control according to a clock signal, and the clock signals of the first PMOS transistor and the second NMOS transistor are inverted.
In the dynamic D flip-flop, the second PMOS transistor and the first NMOS transistor perform switch control according to a clock signal, and the clock signals of the second PMOS transistor and the first NMOS transistor are inverted.
In the dynamic D flip-flop, the second latch unit uses low leakage devices and/or the output driving unit uses high threshold voltage devices.
In the dynamic D flip-flop, the first NMOS transistor and the second NMOS transistor use low leakage current transistors.
In the dynamic D flip-flop, the dynamic D flip-flop further comprises a positive feedback unit for inverting data of the output terminal and feeding the data to the output driving unit.
In the dynamic D flip-flop, the positive feedback unit is an inverter connected in parallel to both ends of the output driving unit.
In the dynamic D flip-flop, the first latch unit uses a delay unit.
In the dynamic D flip-flop, the clock signal terminal is connected with a clock buffer using low threshold units.
In the dynamic D flip-flop, a plurality of dynamic D flip-flops are connected in parallel.
Application of the dynamic D flip-flop of the invention can reduce approximately 30% of the chip area, thereby reducing production cost of the chip, and increasing product competitiveness. In terms of expanding, such dynamic D flip-flop can replace a D flip-flop in digital logic to simplify wiring process of the back-end layout, reduce design difficulty, and improve performance, thereby obtaining an advantage of area, and increasing practicability.
To better realize the object, the invention further provides a data operation unit, comprising a control circuit, an operational circuit and a plurality of dynamic D flip-flops interconnected with each other, the plurality of dynamic D flip-flops being connected in series and/or in parallel, wherein the plurality of dynamic D flip-flops are any one of the dynamic D flip-flops.
To better realize the object, the invention further provides a chip, comprising any one of the data operation units.
To better realize the object, the invention further provides a hash board for a computing device, comprising any one of the chips.
To better realize the object, the invention further provides a computing device, comprising a power supply board, a control board, a connection board, a radiator and a plurality of hash boards, the control board connected to the hash boards through the connection board, the radiator provided around the hash boards, and the power supply board configured to supply a power supply for the connection board, the control board, the radiator and the hash boards, wherein the hash board is any one of the hash boards.
Application of the computing device of the invention can better save the chip area, reduce production cost, and further reduce power consumption of the computing device.
Hereinafter the invention is described in details with reference to the accompanying drawings and the detailed embodiments, but the invention is not limited thereto.
Specific terms are used in the specification and the subsequent claims to refer to specific components. Those skilled in the art shall understand that the manufacturer may give a different name to the same component. The specification and the subsequent claims distinguish components from each other by different functions of the components, instead of different names.
“Comprise” and “include” mentioned in the whole specification and the subsequent claims are open words, and shall be explained as “include but is not limited to”. In addition, “connection” herein includes any direct or indirect electrical connection means. Indirect electrical connection means comprises connection through other devices.
Hereinafter structure principle and working principle of the invention are described in detail with reference to the accompanying drawings.
Referring to
Referring to
A gate terminal 514 of the PMOS transistor 510 is controlled by the clock signal CLKN, and a gate terminal 515 of the NMOS transistor 513 is controlled by the clock signal CLKP as clock control terminals of the three-state inverter 502.
When CLKP is a low level, CLKN is a high level, the PMOS transistor 510 and the NMOS transistor 513 are both in a turn-off state, and the three-state inverter 502 is in a high impedance state, such that data at the first node 550 cannot pass through the three-state inverter 502, and data at a second node 551 are latched to hold the original state, thereby functioning as a data register.
When CLKP is a high level, CLKN is a low level, the PMOS transistor 510 and the NMOS transistor 513 are both in a turn-on state, the three-state inverter 502 functions to invert data of the input terminal, such that data at the first node 550 are inverted and outputted to the second node 551 to rewrite the data at the second node 551.
Referring to
Referring to
Referring to
A gate terminal 614 of the PMOS transistor 611 is controlled by the clock signal CLKN, and a gate terminal 615 of the NMOS transistor 612 is controlled by the clock signal CLKP as clock control terminals of the three-state inverter 602.
When CLKP is a low level, CLKN is a high level, the PMOS transistor 611 and the NMOS transistor 612 are both in a turn-off state, and the three-state inverter 602 is in a high impedance state, such that data at the first node 650 cannot pass through the three-state inverter 602, and data at a second node 651 are latched to hold the original state, thereby functioning as a data register.
When CLKP is a high level, CLKN is a low level, the PMOS transistor 611 and the NMOS transistor 612 are both in a turn-on state, the three-state inverter 602 functions to invert data of the input terminal, such that data at the first node 650 are inverted and outputted to the second node 651 to rewrite the data at the second node 651.
Referring to
In addition, as for the dynamic D flip-flops shown in
It shall be noted that the dynamic D flip-flops shown in
Hereinafter working principle of the dynamic D flip-flop according to the invention is explained in details.
As shown in
As shown in
Assuming that the electric charge produced on the parasitic capacitor 100 is Q, a capacitance of the parasitic capacitor 100 is C, and a voltage at both ends of a polar plate of the parasitic capacitor is V,
If the leakage current is Ileakage, a leakage time t is:
In current production process, data stored in the parasitic capacitor 100 can be held for about 5 ns. In other words, if the data stored in the parasitic capacitor are updated periodically during data holding, the circumstance of data error won't occur. A working frequency of the current computing device is often above 500 MHz which far exceeds a desired data update frequency, such that the dynamic D flip-flop of the invention can be applied in the computing device, thereby reducing an error rate of an operation result of the computing device, and improving processing performance of a virtual currency operation device.
On the other hand, due to influence of leakage current, the electric charge stored on the parasitic capacitor 100 is gradually decreased, such that voltages at the second nodes 551 and 651 that shall be originally a high level are gradually reduced, and the voltages at the second nodes 551 and 651, serving as inputs of the inverters 503 and 603, cause the inverters 503 and 603 in a subthreshold turn-on state. The inverters 503 and 603 in the subthreshold turn-on state form a direct current discharge path directly from the power supply VDD to the ground GND, causing a sharp increase in power consumption.
Since the NMOS transistors 512, 513, 612 and 613 of the three-state inverters 502, 602 use the low leakage devices, and the inverters 503 and 603 use the high threshold voltage devices, the dynamic D flip-flops 500 and 600 of the invention can effectively reduce the leakage current on the NMOS transistors 512, 513, 612 and 613, and possibility of the inverters 503 and 603 working in a subthreshold interval, thereby reducing power consumption of the dynamic D flip-flops. The manners of low leakage devices and high threshold voltage devices can be used separately, and also can be used simultaneously.
In addition, as for the dynamic D flip-flops having the positive feedback unit, due to positive feedback function of the inverters 518 and 618, data stored on the parasitic capacitor 100 can be held normally till the data are rewritten by new data. Therefore, it is unnecessary to periodically update the data stored on the parasitic capacitor during data holding, and the circumstance of data error also won't occur.
The invention further provides a data operation unit, and
The invention further provides a chip, and
The invention further provides a hash board, and
The invention further provides a computing device, and the computing device is preferably configured to operation of mining virtual digital currency. Of course, the computing device also can be configured to any other massive operations, and
It shall be noted that in the invention, orientation or positional relationship indicated by the terms “transverse”, “longitudinal”, “up”, “down”, “front”, “back”, “left”, “right”, “vertical”, “horizontal”, “top”, “bottom”, “in”, “out”, and the like is the orientation or positional relationship illustrated by the drawings, and is only for the purpose of describing the invention and simplifying the explanation, rather than indicating or suggesting that the referred device or element must have specific orientation, and be constructed and operated in specific orientation, so it shall not be understood as limits to the invention.
Although the embodiments of the invention have been disclosed above, they can be fully applied to various fields suitable for the invention but not as limits to those listed in the specification and the embodiments. For those skilled in the art, additional modifications can be easily implemented, so without departing from general concepts defined by the appended claims and equivalent scopes, the invention is not limited to specific details and figures illustrated and described here.
In other words, the invention also may have various other embodiments, and those skilled in the art shall make various corresponding modifications and variations according to the invention without departing from spirit and essence of the invention, but these corresponding modifications and variations shall belong to the scope protected by the appended claims of the invention.
Application of the dynamic D flip-flop, and a data operation unit, a chip, a hash board and a computing device using the same of the invention has the following advantageous effects:
can reduce approximately 30% of the chip area, power consumption and logic delay, thereby reducing production cost of the chip, and increasing product competitiveness. In terms of expanding, such dynamic D flip-flop can replace a D flip-flop in digital logic to simplify wiring process of the back-end layout, reduce design difficulty, and improve performance, thereby obtaining an advantage of area, and increasing practicability.
Number | Date | Country | Kind |
---|---|---|---|
201810667038.2 | Jun 2018 | CN | national |
201810667040.X | Jun 2018 | CN | national |
201810667264.0 | Jun 2018 | CN | national |
201810667321.5 | Jun 2018 | CN | national |
201810667322.X | Jun 2018 | CN | national |
This application is a Conitnuation application of U.S. patent application Ser. No. 17/045,276, filed on Oct. 5, 2020, and entitled “Dynamic D Flip-Flop, Data Operation Unit, Chip, Hash Board and Computing Device”, the entire contents of which are incorporated herein by reference. This non-provisional application claims priority under 35 U.S.C. § 119(a) on Patent Application No. 201810667322.X, 201810667321.5, 201810667040.X, 201810667038.2, 201810667264.0 filed in P. R. China on Jun. 25, 2018, the entire contents of which are hereby incorporated by reference. Some references, if any, which may include patents, patent applications and various publications, may be cited and discussed in the description of this invention. The citation and/or discussion of such references, if any, is provided merely to clarify the description of the present invention and is not an admission that any such reference is “prior art” to the invention described herein. All references listed, cited and/or discussed in this specification are incorporated herein by reference in their entireties and to the same extent as if each reference was individually incorporated by reference.
Number | Date | Country | |
---|---|---|---|
Parent | 17045276 | Oct 2020 | US |
Child | 17645826 | US |