Bitcoin Forum
April 27, 2024, 09:11:06 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 [17] 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 »
  Print  
Author Topic: Official Open Source FPGA Bitcoin Miner (Last Update: April 14th, 2013)  (Read 432887 times)
NF6X
Member
**
Offline Offline

Activity: 98
Merit: 10



View Profile WWW
June 27, 2011, 03:00:33 PM
 #321

ArtForz claims to get 190MH/s out of an XC6SLX150. While I haven't seen this with my own eyes I think he's trustworthy enough to rely on it.
He also claimed to be currently prototyping a 2U rackmount rig with 32 of them, reaching 6GH/s and using like 300 watts of power. He said that he's planning to sell machines like this, estimating a time to market of about 2 months and a cost of $6K-$8K.

Thanks for the data point!

Yeah, I think 240MH/s should be doable with these, possibly even a bit more.
What about trying to officially get permission to let them mine during the nights?

Back when we were a start-up, I would have done it without asking. Now that we've been bought by a much larger company, and then bought again by a huge company, it wouldn't fly. They made a point of bussing us all a hundred miles to the headquarters and showing us how closely they watch everything in their NOC... I might be able to sneak some trial synthesis runs into the queues, though.

Regarding the comments about the relative utility of FPGAs vs. GPUs, I'll say that if FPGAs had no utility beyond Bitcoin mining, they wouldn't be sold in the first place. With a little thought about the feature set required by other users, FPGA mining-optimized platforms can be made to serve a larger market than just Bitcoin miners. Also, with an XC6LX150 costing around $160 in single quantity, I think they'd easily resell for half of that to somebody who would desolder and reball them. FPGAs are quite useful; they just have utility to a different market than GPUs.

The price of the FPGA itself is only part of the reason for the relatively high cost of generic FPGA evaluation boards that are suitable for mining experiments. The FPGAs which have enough gates for an unrolled mining engine also have a large number of IOs, and are generally in big BGA packages. The eval boards bring all of that IO out, and it takes a lot of layers to escape so many nets from the chip. An LX150 requires about 16 layers for full die escape in a mainstream PCB process. The Virtex 5 board on my desk has 20 layers. We have big emulation machines at work with over 50 Virtex 6 parts mounted on 38 (!) layer boards (before you ask, no, I don't have access to those for mining experiments!). Off the shelf FPGA boards don't look price-competitive with GPUs, but the gap should be much smaller on low-layer-count boards optimized for high gate count, low IO applications. Things start to look even more interesting in hypothetical larger arrays, when you factor in the costs of computers, power supplies and cooling to host bunches of GPUs vs. the lower power and cooling requirements of FPGAs.
1714252266
Hero Member
*
Offline Offline

Posts: 1714252266

View Profile Personal Message (Offline)

Ignore
1714252266
Reply with quote  #2

1714252266
Report to moderator
Transactions must be included in a block to be properly completed. When you send a transaction, it is broadcast to miners. Miners can then optionally include it in their next blocks. Miners will be more inclined to include your transaction if it has a higher transaction fee.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714252266
Hero Member
*
Offline Offline

Posts: 1714252266

View Profile Personal Message (Offline)

Ignore
1714252266
Reply with quote  #2

1714252266
Report to moderator
1714252266
Hero Member
*
Offline Offline

Posts: 1714252266

View Profile Personal Message (Offline)

Ignore
1714252266
Reply with quote  #2

1714252266
Report to moderator
BkkCoins
Hero Member
*****
Offline Offline

Activity: 784
Merit: 1009


firstbits:1MinerQ


View Profile WWW
June 27, 2011, 03:50:23 PM
 #322

If someone was considering the money to build ASICs wouldn't it be smarter to approach Xilinx/Altera about a specially packaged FPGA solution. Say the one above, XC6SLX150, with some optimizations improving the parts needed for better SHA speeds and in a small package with only a few pins? I don't know if their engineers ever do custom solutions, nor how many they sell of the high end units, but given some good quantity of needed parts it seems like it may work.

NF6X
Member
**
Offline Offline

Activity: 98
Merit: 10



View Profile WWW
June 27, 2011, 04:15:55 PM
 #323

If someone was considering the money to build ASICs wouldn't it be smarter to approach Xilinx/Altera about a specially packaged FPGA solution. Say the one above, XC6SLX150, with some optimizations improving the parts needed for better SHA speeds and in a small package with only a few pins? I don't know if their engineers ever do custom solutions, nor how many they sell of the high end units, but given some good quantity of needed parts it seems like it may work.

A well-designed ASIC should be able to achieve much higher hash rates than any FPGA implementation in a given amount of die area. A custom-packaged FPGA would just change the packaging cost with no performance benefit, and the package cost is a smallish portion of the entire chip cost. It wouldn't even affect the PCB cost significantly, since we have the option of simply leaving a lot of the IO pins unconnected. The Spartan 6 FPGAs have a lot of pins, but they're not on a terribly fine pitch so it doesn't take advanced PCB design rules to route the outer few rows of pins and leave the inner rows of IO pins unconnected.

If you're willing to spend ASIC money, you want to end up with an ASIC when you're done.
makomk
Hero Member
*****
Offline Offline

Activity: 686
Merit: 564


View Profile
June 27, 2011, 06:23:51 PM
 #324

Very cool!  Cool Looks like he has put further development on hold, due to the heavy cost of building prototypes. It's a CE115 based design, and those chips aren't cheap! I wonder if the design is compatible with a smaller chip ...

That's a very good question indeed, especially since I seem to recall that an appropriately-compiled version of my modifications to your original miner just fits on the EP4CE75 at a claimed 100 MHash/sec (with something like 97% usage, IIRC). I assume the EP3C80 would give similar performance too.

Edit: I'd have mentioned this before but I've been distracted and the cost saving isn't really enough.

Edited to add:
Would it be possible to incorporate this optimization in to the fpga core? http://forum.bitcoin.org/index.php?topic=22965.0
I saw that earlier. In theory, the FPGA synthesis tools automatically carry out optimisations like that for you; they optimise logic in a fundamentally different way to OpenCL compilers. Not sure how true this is in practice.

Quad XC6SLX150 Board: 860 MHash/s or so.
SIGS ABOUT BUTTERFLY LABS ARE PAID ADS
lame.duck
Legendary
*
Offline Offline

Activity: 1270
Merit: 1000


View Profile
June 27, 2011, 07:08:17 PM
 #325

Edited to add:
Would it be possible to incorporate this optimization in to the fpga core? http://forum.bitcoin.org/index.php?topic=22965.0
I saw that earlier. In theory, the FPGA synthesis tools automatically carry out optimisations like that for you; they optimise logic in a fundamentally different way to OpenCL compilers. Not sure how true this is in practice.

Some times ago i read a comment on this: 'Every cs student have to learn to work with Karnough Veight Diagrams and how the Quine McClusky algorithm work. When it goes to practice the synthesis software puts all in a lut'. Since there are 3 input variables there should be nothing to do.
newMeat1
Full Member
***
Offline Offline

Activity: 210
Merit: 100



View Profile
June 27, 2011, 07:47:08 PM
 #326

I will merge my hardware thread with this software thread just to get everything in one place. Here's the download location for all of my hardware files:
http://www.filedropper.com/pcbtoupload62611

It would be great to have a few more sets of eyes check my design over, especially the pin connections and the circuit board. If we can raise ~$460, I'll give it another shot. I'm at $1.50 so far    Wink

How cool would it be to have a ~140 Mhash/s rig, 4.4 Watts, submerged in mineral oil, and completely quiet? Cost for the board =$426, maybe another $15 for the mineral oil bath.


lame.duck
Legendary
*
Offline Offline

Activity: 1270
Merit: 1000


View Profile
June 27, 2011, 08:11:36 PM
 #327

It would be great to have a few more sets of eyes check my design over, especially the pin connections and the circuit board. If we can raise ~$460, I'll give it another shot. I'm at $1.50 so far    Wink

How cool would it be to have a ~140 Mhash/s rig, 4.4 Watts, submerged in mineral oil, and completely quiet? Cost for the board =$426, maybe another $15 for the mineral oil bath.

Is the FPGA dead, or is there a chance to get the chip reballed? I could send you some 0,5 mm balls if you want to try it yourself. If the chip is working at all, you could also try add a better power suppy connection with  Cu foil. Maybe you could even get around a nonworking pll by supplying the clock with direct clocking the design.
newMeat1
Full Member
***
Offline Offline

Activity: 210
Merit: 100



View Profile
June 27, 2011, 09:36:18 PM
 #328

It's dead, unfortunately. I shorted the 1.2V core to 3.3V...

TheSeven
Hero Member
*****
Offline Offline

Activity: 504
Merit: 500


FPGA Mining LLC


View Profile WWW
June 27, 2011, 10:25:44 PM
 #329

Looking at your board I seriously doubt that your power supply is stable enough for the FPGA to run reliably. I don't see any bypassing caps or switching regulators? Can that couple of SMD voltage regulators really supply like 10 amps on 1.2V?
Usually a 6+ layer board would be used for this. Doing it with 4 layers is tough. 2 layers seems to be impossible.

My tip jar: 13kwqR7B4WcSAJCYJH1eXQcxG5vVUwKAqY
newMeat1
Full Member
***
Offline Offline

Activity: 210
Merit: 100



View Profile
June 27, 2011, 11:28:57 PM
Last edit: June 27, 2011, 11:54:59 PM by newMeat1
 #330

Quote
Looking at your board I seriously doubt that your power supply is stable enough for the FPGA to run reliably. I don't see any bypassing caps or switching regulators? Can that couple of SMD voltage regulators really supply like 10 amps on 1.2V?

Thank you, seriously, for the input.

The 2 LDO's are rated for 3A*1.2V each. There are bypass caps on each LDO (just like their datasheets say). Keep in mind, this thing only consumes 4.4W. So I give it plenty of power. From exploring with an oscilloscope, it looks like all the peripherals are working. I'm more worried about whether the pins are hooked up right.

In the most recent revision, I added another LDO for the 2.5V. (Previously I was using diodes to drop from 3.3V to ~2.5V, but that was sketchy).

Yeah, it is hard to fit it on 2 layers. But I followed all the rules (with a few exceptions that are mentioned in the design concerns file).

The advantages of 2 layers are:
1) it's cheap
2) better cooling on the back side of the chip

TheSeven
Hero Member
*****
Offline Offline

Activity: 504
Merit: 500


FPGA Mining LLC


View Profile WWW
June 28, 2011, 05:34:54 AM
 #331

Quote
Looking at your board I seriously doubt that your power supply is stable enough for the FPGA to run reliably. I don't see any bypassing caps or switching regulators? Can that couple of SMD voltage regulators really supply like 10 amps on 1.2V?

Thank you, seriously, for the input.

The 2 LDO's are rated for 3A*1.2V each. There are bypass caps on each LDO (just like their datasheets say). Keep in mind, this thing only consumes 4.4W. So I give it plenty of power. From exploring with an oscilloscope, it looks like all the peripherals are working. I'm more worried about whether the pins are hooked up right.

In the most recent revision, I added another LDO for the 2.5V. (Previously I was using diodes to drop from 3.3V to ~2.5V, but that was sketchy).

Yeah, it is hard to fit it on 2 layers. But I followed all the rules (with a few exceptions that are mentioned in the design concerns file).

The advantages of 2 layers are:
1) it's cheap
2) better cooling on the back side of the chip

Have you actually measured that the FPGA doesn't use more than 4.4 watts? Don't trust the simulation tools here, we're pushing this thing very close to its limits, and at least the power consumption estimated for my FPGA by the Xilinx tools was way off.

Usually you should have lots of bypassing caps immediately below the FPGA. ArtForz reported that he sticked to the Xilinx reference design which already had some of those, and that it still just wasn't sufficient for our purposes. I don't see any of them in that area on your board, so I'm not very confident that this will work.

Did you realize that using LDOs means that it isn't the FPGA that needs most cooling, but rather the LDOs? You're running at ~35% efficiency there, so they'll need to dissipate like 8 watts, assuming the 4.4 watts for the FPGA are correct.

My tip jar: 13kwqR7B4WcSAJCYJH1eXQcxG5vVUwKAqY
newMeat1
Full Member
***
Offline Offline

Activity: 210
Merit: 100



View Profile
June 28, 2011, 06:04:54 AM
 #332

No, to be honest with you, I didn't look at LDO efficiency. Now that I know it depends on Vout/Vin, I see the problem. 1.2V/3.3V isn't very good     Tongue

But, I also realized I can drop the 3.3V supply and do everything with 2.5V. That will be a lot simpler all around and also help with the LDO efficiency. Thanks

fpgaminer (OP)
Hero Member
*****
Offline Offline

Activity: 560
Merit: 517



View Profile WWW
June 28, 2011, 06:43:04 AM
 #333

Quote
Have you actually measured that the FPGA doesn't use more than 4.4 watts?
The 4.4 watt figure was established using my C120 dev kit, which has a power meter on it, so it's fairly accurate.

lame.duck
Legendary
*
Offline Offline

Activity: 1270
Merit: 1000


View Profile
June 28, 2011, 06:43:37 AM
 #334

The FPGA Vendors write in their design  guides, a 10 nF capacitor per power/ground Pin pair.  For most designs, this will be not needed since you don't toggle every other flipflop per clock cycle. But using a heavy piplined design means a lot of toggeling flipflops, and  constantly the same. So i think 4 layers are a minimum, with one massive ground and on massive, maybe split power plan for the voltages. And maybe you should use a 1mm or even 0,5 mm board, to keep inductance of the vias low. You can omit bypass capacitors 'completely', if you have a board with 10+ layers.


TheSeven
Hero Member
*****
Offline Offline

Activity: 504
Merit: 500


FPGA Mining LLC


View Profile WWW
June 28, 2011, 01:46:10 PM
 #335

No, to be honest with you, I didn't look at LDO efficiency. Now that I know it depends on Vout/Vin, I see the problem. 1.2V/3.3V isn't very good     Tongue

But, I also realized I can drop the 3.3V supply and do everything with 2.5V. That will be a lot simpler all around and also help with the LDO efficiency. Thanks

If you want to spend a few bucks more (still neglegible compared to the FPGA), and want way less heat dissipation, you might consider to use switchers instead. I'd consider it most practical to have a 5V input, and LDO to 2.5V, and a switcher to 1.2V. That way you can easily avoid problems with the connector's voltage drop.

I just had a quick look at what's available at digikey and spotted this one: http://search.digikey.com/scripts/DkSearch/dksus.dll?Detail&name=811-2213-1-ND
Output voltage is programmable from 0.6 to 3.3V, at 1.2V it accepts 2.4V-5.5V input, provides 6A output, and operates at 85-90% efficiency.
Price ranges from $13 for one of them to $830 for 100.

My tip jar: 13kwqR7B4WcSAJCYJH1eXQcxG5vVUwKAqY
newMeat1
Full Member
***
Offline Offline

Activity: 210
Merit: 100



View Profile
June 28, 2011, 10:32:51 PM
 #336

OK, OK... I will plan for some type of switching power supply.  Cheesy And I'll put plenty of bypass caps around the chip's edges.

I really don't think 2 layers is a problem. Yes, it's a 484-pin chip, but how many pins get interesting signals? Maybe about 5. The top layer is the ground plane. Probably 70% of the pins go there. The bottom layer is half 2.5V, half 1.2V. Somewhere you have to make room for a clock pin and a few JTAG pins (those are all concentrated in one area)

I took a look around eBay for some cheap used FPGA boards today, but there's not much there. That and the fact that miners are dropping out --> more motivation to finish this project

comboy
Sr. Member
****
Offline Offline

Activity: 247
Merit: 252



View Profile
June 30, 2011, 02:26:08 PM
 #337

I've been trying to run this miner from repo under linux, but I have problems with TclUrl. I did not have it, so I downloaded it and compiled, but now I get:

ERROR: Can't load library: libTclCurl7.19.6.so. The operating system reports the following error: libTclCurl7.19.6.so: wrong ELF class: ELFCLASS64

any hints on how to solve it?

Variance is a bitch!
lame.duck
Legendary
*
Offline Offline

Activity: 1270
Merit: 1000


View Profile
June 30, 2011, 03:14:51 PM
 #338

I've been trying to run this miner from repo under linux, but I have problems with TclUrl. I did not have it, so I downloaded it and compiled, but now I get:

ERROR: Can't load library: libTclCurl7.19.6.so. The operating system reports the following error: libTclCurl7.19.6.so: wrong ELF class: ELFCLASS64

any hints on how to solve it?


Sounds to me as you try to use a 64bit  lib on a 32 bit linux.  For me, your aproach  works fine.
comboy
Sr. Member
****
Offline Offline

Activity: 247
Merit: 252



View Profile
June 30, 2011, 04:14:53 PM
 #339

I've been trying to run this miner from repo under linux, but I have problems with TclUrl. I did not have it, so I downloaded it and compiled, but now I get:

ERROR: Can't load library: libTclCurl7.19.6.so. The operating system reports the following error: libTclCurl7.19.6.so: wrong ELF class: ELFCLASS64

any hints on how to solve it?


Sounds to me as you try to use a 64bit  lib on a 32 bit linux.  For me, your aproach  works fine.

That was a good hint. I still don't understand it though. I'm on 64bit, I've compiled it and also tried debian 64bit binary, in both cases getting mentioned error. After your post I gave some 32bit binary a try (on my 64bit system), and it worked. And so the adventure begins Smiley It definitely needs some leds blinking Cool I was also wondering, do these chips have any built-in temperature sensor?

Variance is a bitch!
TheSeven
Hero Member
*****
Offline Offline

Activity: 504
Merit: 500


FPGA Mining LLC


View Profile WWW
June 30, 2011, 04:40:17 PM
 #340

I've been trying to run this miner from repo under linux, but I have problems with TclUrl. I did not have it, so I downloaded it and compiled, but now I get:

ERROR: Can't load library: libTclCurl7.19.6.so. The operating system reports the following error: libTclCurl7.19.6.so: wrong ELF class: ELFCLASS64

any hints on how to solve it?


Sounds to me as you try to use a 64bit  lib on a 32 bit linux.  For me, your aproach  works fine.

That was a good hint. I still don't understand it though. I'm on 64bit, I've compiled it and also tried debian 64bit binary, in both cases getting mentioned error. After your post I gave some 32bit binary a try (on my 64bit system), and it worked.

Sounds like you're running 32bit Tcl on a 64bit system and tried to load a 64bit module, which won't work.

My tip jar: 13kwqR7B4WcSAJCYJH1eXQcxG5vVUwKAqY
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 [17] 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 »
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!