Pages:
Author

Topic: FPGA mining for fun and profit - page 11. (Read 67149 times)

legendary
Activity: 1050
Merit: 1000
You are WRONG!
May 17, 2011, 01:22:34 PM
#23
can you opensource the code?
staff
Activity: 4228
Merit: 8644
May 17, 2011, 01:16:12 PM
#22
For people who don't know a ton about FPGA stuff, you can run a hash engine natively in hardware using a hew hundred gates at most for MD5, and run one hash per clock cycle, with a clock speed of 5-550 Mhz.  

Your figures are wildly off.  A ununrolled miner takes about 90K LU, and a internally pipelined one that can reach high clockrates is probably more like 180K LU.  Millions of gates.   This pushes you into the most expensive FPGAs currently available just to get good performance...

FPGAs are great for H/j  but not H/$ at the moment. The upcoming generation of FPGAs may improve this somewhat.  The number's you're describing aren't really realistic except via fully custom asic with NREs in the million dollar range.



sr. member
Activity: 266
Merit: 251
May 17, 2011, 01:10:06 PM
#21
Apologies but no more development information will be posted.  I've been offered a 25% share from someone that owns 2 FPGA clusters.  If you haven't seen that type of hardware before think a 156 FPGAs per machine.

I was afraid this would happen.  I don't think it's good for this stuff to be kept secret.  To that end:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

I will offer a 10 BTC bounty to the first person who either:

1) Makes publicly available the source code and complete setup instructions for an FPGA-based Bitcoin mining device that can be created with off-the-shelf hardware.

or

2) Offers an ASIC-based Bitcoin mining device for sale to the general Bitcoin community, and makes publicly available all schematics, source code, and other relevant information used to develop said device.

Either of the above devices must cost no more than $0.60 USD per megahash per second that they provide, and must consume no more than 0.3 watts per megahash.

Designs must not be encumbered by any sort of "intellectual property" restrictions, with the exception of GPL-style copyleft licenses.

- -Chris Acheson, 5/17/11
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iQIcBAEBCAAGBQJN0qr4AAoJEBgPDxtXUJkiGM8QAIO+uqNz2vte4lo+BXtbRLsD
rxZAKWmnirlrl3+XxyewwFytmufi469qf+gcEvYURXVOfbzB2lT4/SZu3TWpWtuv
8jTeCSlM+AqCs5JJfX0yI86QqSVmCMa7V7cj/sU6Y1ad77JQEiNuoWhfYzUjeaQP
naDhlZlw/dbrbWmVPN4NsKawXKqQ0RDOyZfG/y5uLJAvFM6JK3qZ9nWd4aFKkV1K
mULv+PJ9vgzDElQKlNfvfQZ7ITYcNM+DER7Dn7p7TgTFlqOnIZz/SfG3c03yWfPB
FixNZz0RzzCcCUv0wr086HiLEuC9FB0z3sDxQJvGGQ7LBl+LrlsqvTu+dQLdf5R4
c0HN3RPTm+VIyMv8P/mIiqx05Tfnn1wvdc9AD4L7xwuhlKemHEmMLPueMV82Ciol
d7yusC/s+KCOTxkOS4twXDwCQNQi8noYaF+HE0w4mMu8I/NNqyCdi2qExCwO8oqz
6PUnfjKNS302lGHo3Gwh9KXdGSO6tLLX97uRil2i4rHyUz7z4zGBX+2Sla/b12CE
Ucwv0u/Kt6mWLQaVd5HzEp8R5GIB/TgUnHl3Z/eh1j85TBpmbyNJnSUO8sG6M9IU
uk2nwG8BtF2jDN+237kvNB1FZl7U1wZigahd75zfGe+TfjNIeHLtxEcdZNfCwBIv
s8Ga7TYsYeA/+g6Ra75f
=onT1
-----END PGP SIGNATURE-----

It's not a whole lot, but hopefully others will join me.
newbie
Activity: 28
Merit: 1
May 17, 2011, 01:02:18 PM
#20
Apologies but no more development information will be posted.  I've been offered a 25% share from someone that owns 2 FPGA clusters.  If you haven't seen that type of hardware before think a 156 FPGAs per machine.

I had a feeling this is what would happen.

Can you at least give us the rough specs of the clusters, so I can ballpark about how many Gh/sec you'll end up pulling?  If they're machines like this, then you're probably going to be pulling anywhere from 500Gh/sec to 5.5 Th/sec per machine.  If it's a small cluster of perhaps 24 machines used for cryptographic attacks and research, then that one cluster will probably end up with more compute power than the entire rest of the network. 

Man, now I want to dig out my old Spartan 3 fpga board and see if I can get a working hash engine out of it just for giggles.



For people who don't know a ton about FPGA stuff, you can run a hash engine natively in hardware using a hew hundred gates at most for MD5, and run one hash per clock cycle, with a clock speed of 5-550 Mhz.  Most of these chips have anywhere from 2000 gates for the barest of bare bones $50 DIY kits to about 9 million on the latest Virtex 7. 

Assuming the hash engine took 350 gates (2 orders of magnitude reliable), the chip runs at 550 MHz, and has 9 million gates, and was just 20% efficient, that is 80% of the time the chip is waiting for data or or otherwise not hashing, you could see about 2.8 trillion hashes per second.  TRILLION HASHES PER SECOND.  Even using worst case figures, a 5 million gate device at 250 Mhz, 5000 gates per hash engine, and a 5% utilization factor, you still get 50 Gh/sec, over 200 times the hash calculating power of a Ati Radeon 5850.



Think more along the lines of this http://www.dinigroup.com/new/DNBFC_S12_12_Cluster.html
newbie
Activity: 12
Merit: 0
May 17, 2011, 12:57:31 PM
#19
Apologies but no more development information will be posted.  I've been offered a 25% share from someone that owns 2 FPGA clusters.  If you haven't seen that type of hardware before think a 156 FPGAs per machine.

I had a feeling this is what would happen.

Can you at least give us the rough specs of the clusters, so I can ballpark about how many Gh/sec you'll end up pulling?  If they're machines like this, then you're probably going to be pulling anywhere from 500Gh/sec to 5.5 Th/sec per machine.  If it's a small cluster of perhaps 24 machines used for cryptographic attacks and research, then that one cluster will probably end up with more compute power than the entire rest of the network. 

Man, now I want to dig out my old Spartan 3 fpga board and see if I can get a working hash engine out of it just for giggles.



For people who don't know a ton about FPGA stuff, you can run a hash engine natively in hardware using a hew hundred gates at most for MD5, and run one hash per clock cycle, with a clock speed of 5-550 Mhz.  Most of these chips have anywhere from 2000 gates for the barest of bare bones $50 DIY kits to about 9 million on the latest Virtex 7. 

Assuming the hash engine took 350 gates (2 orders of magnitude reliable), the chip runs at 550 MHz, and has 9 million gates, and was just 20% efficient, that is 80% of the time the chip is waiting for data or or otherwise not hashing, you could see about 2.8 trillion hashes per second.  TRILLION HASHES PER SECOND.  Even using worst case figures, a 5 million gate device at 250 Mhz, 5000 gates per hash engine, and a 5% utilization factor, you still get 50 Gh/sec, over 200 times the hash calculating power of a Ati Radeon 5850.

full member
Activity: 126
Merit: 100
May 17, 2011, 12:23:14 PM
#18
* sigh *

well, i guess we know where mining is headed...
newbie
Activity: 28
Merit: 1
May 17, 2011, 12:16:30 PM
#17
Apologies but no more development information will be posted.  I've been offered a 25% share from someone that owns 2 FPGA clusters.  If you haven't seen that type of hardware before think a 156 FPGAs per machine.
sr. member
Activity: 406
Merit: 250
May 17, 2011, 11:48:08 AM
#16
The concept appears viable but I fear might be cost prohibitive
Gpu's can be used for some other purpose once mining becomes in efficient
What's a person to do with the left over $1000 worth of fpga equipment in a yr or 2

Continue to mine with extremely electricity efficient hardware.
member
Activity: 112
Merit: 10
May 17, 2011, 11:32:36 AM
#15
So looking over the FPGA I realized how much of the chip was unused.  Why is this important?

FPGAs are reconfigurable, don't think of them as a single processor.  I did some coding and added another hashing pipeline to the chip and smoothed out some bumps.  A single pipeline is now doing about 133MH/s with the chip around 210MH/s total (a bit less for the crude pipeline I cut/pasted/mauled).  This is significant because as long as I have enough enough logic gates available I can add more pipelines.  How many more?  Quite a few  Grin

If I put this on a Virtex-7 which is designed for 400Gb/s operations and took advantage of it's large number of gates then it would be a hashing monster,


The concept appears viable but I fear might be cost prohibitive
Gpu's can be used for some other purpose once mining becomes in efficient
What's a person to do with the left over $1000 worth of fpga equipment in a yr or 2
sr. member
Activity: 966
Merit: 254
May 17, 2011, 11:06:34 AM
#14
Don't ruin bitcoin-.-

It wouldn't be too nice to have spent 1000$ when a 400$ chip will do it 40 times better-.-
newbie
Activity: 28
Merit: 1
May 17, 2011, 10:50:47 AM
#13
So looking over the FPGA I realized how much of the chip was unused.  Why is this important?

FPGAs are reconfigurable, don't think of them as a single processor.  I did some coding and added another hashing pipeline to the chip and smoothed out some bumps.  A single pipeline is now doing about 133MH/s with the chip around 210MH/s total (a bit less for the crude pipeline I cut/pasted/mauled).  This is significant because as long as I have enough enough logic gates available I can add more pipelines.  How many more?  Quite a few  Grin

If I put this on a Virtex-7 which is designed for 400Gb/s operations and took advantage of it's large number of gates then it would be a hashing monster,
legendary
Activity: 2618
Merit: 1007
May 17, 2011, 07:42:53 AM
#12
if the algorithm can be implemented in a hardware, the power consumption will be decreased a lot, will this cause the BTC price down?
The BTC price is not tied to power prices (currently it costs ~ 1USD in electricity to mine 1 BTC!).

Should there be an easily available solution for a relatively cheap ASIC box with a few GHashes/s and low power consumption, the difficulty would probably skyrocket and the electricity cost on GPUs would go so high that it becomes as ineffective as CPU mining today.

I guess it'll still take a while (as ASICs also don't materialize out of thin air!) but I personally expect this to happen this year still, should bitcoin continue to be so popular.

Already a 400USD FPGA with (if you optimize the code maybe) ~150 MH/s that has a laughable power consumption might be a danger for GPU mining in the medium term (as they would be very easy to cool)
newbie
Activity: 3
Merit: 0
May 17, 2011, 07:26:16 AM
#11
if the algorithm can be implemented in a hardware, the power consumption will be decreased a lot, will this cause the BTC price down?
newbie
Activity: 28
Merit: 1
May 17, 2011, 01:40:29 AM
#10
I doubt that this could bit a single 5770 card, but i am looking forward for your results Smiley

I know it can.  I've used FPGAs for brute forcing crypto before and it was a lot more involved than hashing.  Graphics cards aren't made for hashing. They're good at it because of the way their processing is optimized (ATIs over Nvidia), now with an FPGA you can get a processor that does everything in hardware, no software or code to run to perform the algorithms.  That's why you see very high performance out of FPGAs since they've essentially become a processor that does that one task purely in hardware.

I've prototyped a dedicated AES cypto chip for an in-line encryption device that was running at 10Gb/s with an FPGA.  It'll work, but I don't have a fat government contract funding development.  I'm shooting for the most cost effective solution in power an cost as possible.

That's the challenge, and I like challenges.
full member
Activity: 226
Merit: 100
May 17, 2011, 12:38:39 AM
#9
I doubt that this could bit a single 5770 card, but i am looking forward for your results Smiley
newbie
Activity: 28
Merit: 1
May 16, 2011, 11:49:41 PM
#8
Highly interested in this. How much would you say the FPGA's for usb/pci-e cost?

http://www.picocomputing.com/E101/

They're about $400

It could be a lot cheaper.  If I get the VHDL optimized I can get it turned into an ASIC and put a number of those on a PCIe express card/other format card.

Development costs/time vs job will slow me down but I'm not going to be a tool and post my bitcoin address or a donate button like a beggar.  I could also get distracted by some other shiny project that has a greater return for my efforts.  That or it works so well I just keep it for myself and profit.

I may play with the idea of a standalone miner that you just put the configuration on a micro-sd card add power and Ethernet and get mining.
newbie
Activity: 3
Merit: 0
May 16, 2011, 11:11:19 PM
#7
Highly interested in this. How much would you say the FPGA's for usb/pci-e cost?
newbie
Activity: 28
Merit: 1
May 16, 2011, 10:42:46 PM
#6
I have a compiler that'll convert C code to VHDL that's why I said it was crude but it works as a proof of concept.  I've just got to go through the code and write properly now, which may take a bit depending on my workload.
member
Activity: 138
Merit: 11
Exchange BTC in Telegram https://bit.ly/2MEfiw8
May 16, 2011, 09:16:16 PM
#5
You did all this in a single day?
newbie
Activity: 28
Merit: 1
May 16, 2011, 07:47:07 PM
#4
Give us the averaged Mhash/power consumption stats for all 16 Xilinx, including the price for one of them, then we can talk.

The performance/watt isn't an issue, the cost however will.

The challenge will be to find an inexpensive FPGA board with the right performance/cost.

I can design a mining board with FPGAs and that's what I may end up doing but that's not trivial and would take some time.
Pages:
Jump to: