A kind of ether mill mine machine system and its dig mine method
Technical field
The present invention relates to virtual digit coin technical field more particularly to a kind of ether mill mine machine system and its dig mine method.
Background technique
From middle acute hearing after proposition bit coin in 2009, block chain technology is gradually known, as produced by it
Ideal money such as spring bamboo generally enter the visual field of people.Its major way for obtaining ideal money is exactly to carry out digging mine, and dig
Equipment needed for mine is exactly mine machine.
Block chain ideal money mine machine experienced CPU (Central such as bit coin (Bitecoin) mine machine
Processing Unit, central processing unit) mine machine → GPU (Graphics Processing Unit, graphics processor) mine machine
→ FPGA (Field-Programmable Gate Array, field programmable gate array) mine machine → ASIC (Application
Specific Integrated Circuit, application-specific IC) such a development course of mine machine.Not with bit coin
Together, ether mill (Ethereum) the Ethash common recognition anti-ASIC of algorithm.Therefore, it even if ether mill ASIC mine machine occurs, can only also hold
The general calculating of row, or it is equivalent to better CPU, do not have very high economic benefit.Currently, mainstream ether mill mine owner wants
It is the video card mine machine based on GPU.
For economic benefit, generally all specific mine machine can be used to dig specific ideal money, such as using GPU mine machine come into
Row ETH (ether coin), XMR (door sieve coin), ZEC (big zero coin) dig BTC (bit coin) etc. using ASIC mine machine.Such as: application number
A kind of bit coin digging mine machine provided by Chinese patent for 201420260178.5, it includes a cabinet which, which digs mine machine,
One mainboard, hard disk are installed in cabinet, above-mentioned mainboard is equipped at least one asic chip, several mould groups, and the mould group is by radiating
Piece, circuit board and several fan terminals set on both ends form, several power supplies and several wind are equipped in the cabinet
Fan, is additionally provided with the first PCBA and the 2nd PCBA between the cabinet and mainboard.Bit coin mine machine in the patent belongs to ASIC mine machine,
It is only able to achieve the digging mine process for comparing special coin, can not carry out digging mine to other kinds of ideal money, lack flexibility;Separately
Outside, hardware is only capable of executing specific algorithm, and hardware salvage value is very low (value for referring to hardware components after terminating to dig mine).
Disadvantage present in existing ether mill mine machine is: the ideal money that existing ether mill mine machine can execute is total to
It is single to know algorithm, i.e., existing ether mill mine machine, which is only able to achieve, carries out digging mine to a certain specific ideal money, lack flexibility, and
The not reproducible utilization of hardware or recycling rate of waterused are low.
Summary of the invention
The purpose of the present invention is to provide one kind to be carried out using the characteristics of flexibility and rapid shaping of fpga chip
The ether mill mine machine system of mine is flexibly dug, can be can be realized using single mine machine to a variety of different types of ideal moneys
Digging mine is carried out, the reusable rate of its hardware is improved.
For above-mentioned purpose, the invention discloses a kind of ether mill mine machine system, which includes:
Programming module, the hardware description of the ideal money common recognition algorithm for writing multiple and different types;
Algorithm memory module, for storing the ideal money common recognition algorithm for multiple and different types that above-mentioned programming module is write
Hardware description;
Interface communication module, for submitting registration information to the block of external Virtual currency network to log in above-mentioned block;
It is also used to obtain and show the block information of external Virtual currency network block so that user is according to the block information selection target
Ideal money;
Computing module, for switching and executing and the selected mesh of user according to the selected destination virtual currency of user
The corresponding common recognition algorithm of mark ideal money type carries out digging mine.
Further, above-mentioned ether mill mine machine system further includes;
CPU control module, the normal operation for coordinated control modules.
Further, above-mentioned ether mill mine machine system further include:
Memory modules, the interior multiple memory modules of setting of the memory modules, are produced for caching in common recognition algorithm calculating process
Raw operational data;And memory modules are external in above-mentioned computing module.
Further, in above-mentioned memory modules further include:
Multiple Memory control modules carry out concurrent operation for controlling above-mentioned multiple memory modules respectively.
Further, above-mentioned computing module and programming module are all set in inside fpga chip, are hung on outside the fpga chip
Above-mentioned CPU control module.
Based on a kind of ether mill mine machine system disclosed in this invention, corresponding, the invention also discloses a kind of ether
The digging mine method of mill mine machine, the digging mine method include the following steps:
S1: writing and stores the hardware description of the ideal money common recognition algorithm of multiple and different types;
S2: submit registration information to the block of external Virtual currency network to log in the block;
S3: obtaining the block information of external Virtual currency network block so that user is according to above-mentioned block information selection target
Ideal money;
S4: according to the selected destination virtual currency of user, switch and execute and the selected destination virtual currency of user
Corresponding common recognition algorithm carries out digging mine.
Further, above-mentioned ether mill mine machine is internally provided with CPU, the normal fortune for coordinated control ether mill mine machine
Row.
Further, outer on above-mentioned CPU to hang with fpga chip, the fpga chip is for writing and executing common recognition algorithm.
Further, it is circumscribed on above-mentioned fpga chip multiple for caching the memory modules of operational data and above-mentioned more
A memory modules constitute a memory modules.
Further, it is additionally provided in the memory modules of above-mentioned ether mill mine machine multiple for controlling multiple memory moulds respectively
Block is to carry out the Memory control module of concurrent operation.
A kind of ether mill mine machine system disclosed in this invention and its digging mine method, are write simultaneously using fpga chip
The hardware description of the common recognition algorithm of the ideal money of multiple and different types is saved, and can be empty according to the selected target of user
Quasi- currency type carries out digging mine to select to execute corresponding common recognition algorithm, can effectively improve ether mill mine machine and dig the flexible of mine
Property, and effectively increase the reusable value of hardware resource;Also by will be hung on CPU outside fpga chip to pass through CPU
The normal operation of coordinated control ether mill mine machine.
In addition, the present invention also passes through multiple memory modules (DDR module) the progress concurrent operation that will be external in fpga chip
To effectively improve the memory bit wide and bandwidth of DDR module, so can effectively improve common recognition algorithm operation efficiency, and reduce with
The too electric energy loss of mill mine machine.
Detailed description of the invention
Fig. 1 is that ether mill mine machine system of one of the embodiment one based on FPGA forms figure;
Fig. 2 is that the system structure of the CPU module and fpga chip in embodiment one forms figure;
Fig. 3 is the digging mine method flow diagram of ether mill mine machine system of one of the embodiment one based on FPGA;
Fig. 4 is that ether mill mine machine system of one of the embodiment two based on FPGA forms figure.
Specific embodiment
Illustrate embodiments of the present invention below by way of specific specific example, those skilled in the art can be by this specification
Other advantages and efficacy of the present invention can be easily understood for disclosed content.The present invention can also pass through in addition different specific realities
The mode of applying is embodied or practiced, the various details in this specification can also based on different viewpoints and application, without departing from
Various modifications or alterations are carried out under spirit of the invention.It should be noted that in the absence of conflict, following embodiment and implementation
Feature in example can be combined with each other.
It should be noted that illustrating the basic structure that only the invention is illustrated in a schematic way provided in following embodiment
Think, only shown in schema then with related component in the present invention rather than component count, shape and size when according to actual implementation
Draw, when actual implementation kenel, quantity and the ratio of each component can arbitrarily change for one kind, and its assembly layout kenel
It is likely more complexity.
Embodiment one
Since existing ether mill mine machine is only applicable to the digging mine process of a certain certain types of ideal money, i.e., it only leads to
It crosses and executes the common recognition algorithm of a certain fixation and carry out the digging mine process of single ideal money, flexibility is low;In addition, since it is only used
In executing a certain specific common recognition algorithm, it will cause the salvage value of hardware it is lower (salvage value refer to terminating to dig mine it
The value of hardware components afterwards), not reproducible utilization.Therefore, for flexibility present in existing ether mill mine machine, low, hardware can
The defects such as recycling rate of waterused is low, present embodiments providing one kind can write using fpga chip and save multiple and different void
Dig the ether mill mine machine system of mine on the basis of the hardware description of the common recognition algorithm of quasi- currency.
A kind of ether mill mine machine system is present embodiments provided, referring to Fig.1, which specifically includes: programming module 100,
Algorithm memory module 200, interface communication module 300 and computing module 400.
Programming module 100, the hardware description of the ideal money common recognition algorithm for writing multiple and different types.That is: user
It, can be by bit coin, ether coin, Lay spy coin, multiple up to generation coin, door sieve coin etc. before carrying out digging mine using the ether mill mine machine
The hardware description of the common recognition algorithm of different types of ideal money is write in advance by the programming module.
Algorithm memory module 200, the ideal money for storing multiple and different types that above-mentioned programming module is write are known together
The hardware description of algorithm.The common recognition algorithm for multiple and different type Virtual currency that user is write in advance by programming module
Hardware description save to the algorithm memory module, in order to be able to selective calling algorithm stores mould according to the actual situation
The common recognition algorithm of a certain ideal money in block carries out operation.
Interface communication module 300, for submitting registration information to the block of external Virtual currency network to log in above-mentioned area
Block;It is also used to obtain and show the block information of external Virtual currency network block so that user selects mesh according to the block information
Mark ideal money.The interface communication module can be network interface in addition, can be used in being counted with external ideal money network
According to interaction, so as to realize the communication process such as the submission of fast registration and its registration information of block, the acquisition of block information.
Wherein, block information should include the type of each ideal money in block, real time price, convenient for user's observation
The change curve etc. of each ideal money price.Interface communication module is by way of obtaining and showing the block information, energy
User is enough set more intuitively to get the actual conditions of the ideal money of each type in the block, to keep user reasonable
Selection target ideal money carries out digging mine.
Computing module 400, for switching and executing selected with user according to the selected destination virtual currency of user
The corresponding common recognition algorithm of ideal money type carries out digging mine.
It should be understood that determining that a certain ideal money is according to the block information that interface communication module is shown in user
In the case where destination virtual currency (such as: door sieve coin), the computing module by algorithm memory module get institute it is pre-stored
The common recognition algorithm (i.e. Croptonight algorithm) of door sieve coin;And then the computing module is total to what the ether mill mine machine should execute
Knowledge algorithm changeover is Croptonight algorithm corresponding with door sieve coin, and execute the Croptonight algorithm of this sieve coin into
Row digs mine, to obtain door sieve coin.
It is to be noted that computing module 400 and programming mould referring to Fig. 2, in the ether mill mine machine system of the present embodiment
Block 100 is all set in inside fpga chip 500.Moreover, the periphery of fpga chip is provided with multiple interfaces, in order to deposit with algorithm
Storage module 200, interface communication module 300 is connected in real time and data interaction.
Wherein, referring to Fig. 2, the ether mill mine machine system further include:
CPU control module 600, the normal operation for coordinated control modules.The CPU control module passes through FPGA core
On piece peripheral interface is attached, to constitute the ether mill mine machine system that CPU+FPGA chip is main system structure.
In addition, the periphery of the fpga chip in the present embodiment be also provided with control key, USB interface, I/O mouthfuls, LED,
The functional interfaces such as RESET.
Based on a kind of ether mill mine machine system provided by the present embodiment, corresponding, the present embodiment additionally provides one kind
The digging mine method of ether mill mine machine, referring to Fig. 3, which specifically comprises the following steps:
S1: writing and stores the hardware description of the ideal money common recognition algorithm of multiple and different types;
S2: submit registration information to the block of external Virtual currency network to log in the block;
S3: obtaining the block information of external Virtual currency network block so that user is according to above-mentioned block information selection target
Ideal money;
S4: according to the selected destination virtual currency of user, switch and execute and the selected destination virtual currency of user
Corresponding common recognition algorithm carries out digging mine.
It a kind of ether mill mine machine system provided by the present embodiment and its mine method is dug, is write using fpga chip
And the hardware description of the common recognition algorithm of the ideal money of multiple and different types is saved, to enable the ether mill mine machine to difference
The ideal money of type dig mine to effectively improve the flexibility that ether mill mine machine digs mine, also effectively increases hardware resource
Reusable value;Corresponding common recognition algorithm can also be selected to execute according to the selected destination virtual currency type of user
Digging mine is carried out, keeps it more humanized.In addition, also by will be hung on CPU outside fpga chip to pass through CPU coordinated control ether
The normal operation of mill mine machine.
Embodiment two
A kind of ether mill mine machine system is present embodiments provided, referring to Fig. 3, which includes: programming mould
Block 100, algorithm memory module 200, interface communication module 300 and computing module 400.
Programming module 100, the hardware description of the ideal money common recognition algorithm for writing multiple and different types.That is: user
It, can be by bit coin, ether coin, Lay spy coin, multiple up to generation coin, door sieve coin etc. before carrying out digging mine using the ether mill mine machine
The hardware description of the common recognition algorithm of different types of ideal money is write in advance by the programming module.
Algorithm memory module 200, the ideal money for storing multiple and different types that above-mentioned programming module is write are known together
The hardware description of algorithm.The common recognition algorithm for multiple and different type Virtual currency that user is write in advance by programming module
Hardware description save to the algorithm memory module, in order to be able to selective calling algorithm stores mould according to the actual situation
The common recognition algorithm of a certain ideal money in block carries out operation.
Interface communication module 300, for submitting registration information to the block of external Virtual currency network to log in above-mentioned area
Block;It is also used to obtain and show the block information of external Virtual currency network block so that user selects mesh according to the block information
Mark ideal money.The interface communication module can be network interface in addition, can be used in being counted with external ideal money network
According to interaction, so as to realize the communication process such as the submission of fast registration and its registration information of block, the acquisition of block information.
Wherein, block information should include the type of each ideal money in block, real time price, convenient for user's observation
The change curve etc. of each ideal money price.Interface communication module is by way of obtaining and showing the block information, energy
User is enough set more intuitively to get the actual conditions of the ideal money of each type in the block, to keep user reasonable
Selection target ideal money carries out digging mine.
Computing module 400, for switching and executing selected with user according to the selected destination virtual currency of user
The corresponding common recognition algorithm of ideal money type carries out digging mine.
It should be understood that determining that a certain ideal money is according to the block information that interface communication module is shown in user
In the case where destination virtual currency (such as: door sieve coin), the computing module by algorithm memory module get institute it is pre-stored
The common recognition algorithm (i.e. Croptonight algorithm) of door sieve coin;And then the computing module is total to what the ether mill mine machine should execute
Knowledge algorithm changeover is Croptonight algorithm corresponding with door sieve coin, and execute the Croptonight algorithm of this sieve coin into
Row digs mine, to obtain door sieve coin.
Wherein, the computing module 400 in the ether mill mine machine system of the present embodiment and programming module 100 are all set in FPGA
Inside chip 500.Moreover, the periphery of fpga chip is provided with multiple interfaces, in order to logical with algorithm memory module 200, interface
Letter module 300, memory modules 700 are attached.
Wherein, ether mill (Ethereum) the Ethash common recognition anti-ASIC of algorithm, needs a large amount of memory bandwidth and capacity.Base
In this, the ether mill mine machine system further include:
Memory modules 700, the interior multiple memory modules (DDR module) 800 of setting of the memory modules 700, for caching common recognition
Generated operational data in algorithm calculating process;And memory modules are external in above-mentioned computing module 400.
That is: using computing module during algorithm is known together in execution, multiple needs can be generated and repeat the operations called
Data, the operational data are buffered in the DDR inside modules in order to call the operational data to carry out digging mine;And by will be more
A DDR module is combined into a memory modules.
Wherein, the inside of the memory modules 700 is additionally provided with multiple Memory control modules (MCB module) 900, each
MCB module corresponds to a DDR module, in order to be able to carry out concurrent operation to each DDR module in memory modules, effectively mention
The memory bit wide and bandwidth of high DDR module.Furthermore it is also possible to support the higher fpga chip of memory bit wide to provide by selecting
A large amount of memory bandwidth and capacity, can effectively reduce the electric energy loss of ether mill mine machine.
Wherein, the ether mill mine machine system further include:
CPU control module 600, the normal operation for coordinated control modules.The CPU control module passes through FPGA core
On piece peripheral interface is attached, to constitute the Major Systems structure of the ether mill mine machine of CPU+FPGA chip.
Based on a kind of ether mill mine machine system provided by the present embodiment, corresponding, the present embodiment additionally provides one kind
The digging mine method of ether mill mine machine, similar to shown in Fig. 3 in embodiment one, which specifically comprises the following steps:
S1: writing and stores the hardware description of the ideal money common recognition algorithm of multiple and different types;
S2: submit registration information to the block of external Virtual currency network to log in the block;
S3: obtaining the block information of external Virtual currency network block so that user is according to above-mentioned block information selection target
Ideal money;
S4: according to the selected destination virtual currency of user, switch and execute and the selected destination virtual currency of user
Corresponding common recognition algorithm carries out digging mine.
It a kind of ether mill mine machine system provided by the present embodiment and its mine method is dug, is write using fpga chip
And the hardware description of the common recognition algorithm of the ideal money of multiple and different types is saved, to enable the ether mill mine machine to difference
The ideal money of type dig mine to effectively improve the flexibility that ether mill mine machine digs mine, also effectively increases hardware resource
Reusable value;Corresponding common recognition algorithm can also be selected to execute according to the selected destination virtual currency type of user
Digging mine is carried out, keeps it more humanized, there is preferable practicability.
Note that the above is only a better embodiment of the present invention and the applied technical principle.It will be appreciated by those skilled in the art that
The invention is not limited to the specific embodiments described herein, be able to carry out for a person skilled in the art it is various it is apparent variation,
It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above embodiments to the present invention
It is described in further detail, but the present invention is not limited to the above embodiments only, without departing from the inventive concept, also
It may include more other equivalent embodiments, and the scope of the invention is determined by the scope of the appended claims.